@hackage ffmpeg-light0.11.0
Minimal bindings to the FFmpeg library.
Installation
Dependencies (7)
- JuicyPixels >=3.1 && <3.3
- base >=4.6 && <4.10
- either
- exceptions
- mtl >=2.2.1 && <2.3
- transformers >=0.4.1 && <0.6 Show all…
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) <* cleanupTested with FFmpeg 2.7 - 3.0