ffmpeg-light-0.7.1: Minimal bindings to the FFmpeg library.

Safe HaskellNone
LanguageHaskell2010

Codec.FFmpeg.Common

Contents

Synopsis

Documentation

av_free :: Ptr () -> IO () Source

Utility functions

wrapIOError :: (MonadIO m, Error e, MonadError e m) => IO a -> m a Source

Catch an IOException from an IO action and re-throw it in a wrapping monad transformer.

errMsg :: (Error e, MonadError e m) => String -> m a Source

Throw an error with a String message.

Wrappers that may throw IOExceptions.

frame_alloc_check :: IO AVFrame Source

Allocate an AVFrame and set its fields to default values.

frame_get_buffer_check :: AVFrame -> CInt -> IO () Source

Allocate new buffer(s) for audio or video data with the required alignment. Note, for video frames, pixel format, width, and height must be set before calling this function. For audio frames, sample format, nb_samples, and channel_layout must be set.