@hackage ffmpeg-light0.8

Minimal bindings to the FFmpeg library.

  • Installation

  • Dependencies (0)

  • Dependents (1)

    @hackage/acme-everything
  • Package Flags

      builddemo
       (off by default)

      Build demo executable

      buildrasterdemo
       (off by default)

      Build Rasterific demo executable

Stream frames from an encoded video, or stream frames to a video output file. To read the first frame from an h264-encoded file into a JuicyPixels Maybe DynamicImage,

import Codec.FFmpeg
import Codec.Picture
import Control.Applicative

go :: IO (Maybe DynamicImage)
go = do (getFrame, cleanup) <- imageReader "myVideo.mov"
        (fmap ImageRGB8 <$> getFrame) <* cleanup

Tested on OS X 10.9.4 with FFmpeg 2.3 installed via homebrew.