ffmpeg-light-0.13.0: Minimal bindings to the FFmpeg library.
Safe HaskellNone
LanguageHaskell2010

Codec.FFmpeg.Probe

Synopsis

Files

withAvFile :: (MonadMask m, MonadIO m) => String -> AvFormat m a -> m a Source #

nbStreams :: MonadIO m => AvFormat m Int Source #

formatName :: MonadIO m => AvFormat m String Source #

duration :: MonadIO m => AvFormat m Int64 Source #

Streams

data AvStreamT m a Source #

Instances

Instances details
MonadTrans AvStreamT Source # 
Instance details

Defined in Codec.FFmpeg.Probe

Methods

lift :: Monad m => m a -> AvStreamT m a #

Monad m => MonadReader AVStream (AvStreamT m) Source # 
Instance details

Defined in Codec.FFmpeg.Probe

Methods

ask :: AvStreamT m AVStream #

local :: (AVStream -> AVStream) -> AvStreamT m a -> AvStreamT m a #

reader :: (AVStream -> a) -> AvStreamT m a #

Monad m => Monad (AvStreamT m) Source # 
Instance details

Defined in Codec.FFmpeg.Probe

Methods

(>>=) :: AvStreamT m a -> (a -> AvStreamT m b) -> AvStreamT m b #

(>>) :: AvStreamT m a -> AvStreamT m b -> AvStreamT m b #

return :: a -> AvStreamT m a #

Functor m => Functor (AvStreamT m) Source # 
Instance details

Defined in Codec.FFmpeg.Probe

Methods

fmap :: (a -> b) -> AvStreamT m a -> AvStreamT m b #

(<$) :: a -> AvStreamT m b -> AvStreamT m a #

Applicative m => Applicative (AvStreamT m) Source # 
Instance details

Defined in Codec.FFmpeg.Probe

Methods

pure :: a -> AvStreamT m a #

(<*>) :: AvStreamT m (a -> b) -> AvStreamT m a -> AvStreamT m b #

liftA2 :: (a -> b -> c) -> AvStreamT m a -> AvStreamT m b -> AvStreamT m c #

(*>) :: AvStreamT m a -> AvStreamT m b -> AvStreamT m b #

(<*) :: AvStreamT m a -> AvStreamT m b -> AvStreamT m a #

MonadIO m => MonadIO (AvStreamT m) Source # 
Instance details

Defined in Codec.FFmpeg.Probe

Methods

liftIO :: IO a -> AvStreamT m a #

withStream :: MonadIO m => Int -> AvStreamT (AvFormat m) a -> AvFormat m a Source #

streamImageSize :: MonadIO m => AVCodecContext -> AvStreamT m (Int, Int) Source #

Gives the (width, height) of a video stream in pixels, not accounting for the pixel aspect ratio.

Dictionaries

dictFoldM_ :: MonadIO m => ((String, String) -> m ()) -> AVDictionary -> m () Source #