@hackage ffmpeg-light0.2
Minimal bindings to the FFmpeg library.
Categories
License
BSD-3-Clause
Maintainer
acowley@gmail.com
Links
Versions
Installation
Dependencies (5)
- JuicyPixels >=3.1 && <3.2
- base >=4.6 && <5
- mtl >=2.1.3 && <2.2
- transformers >=0.3 && <0.4
- vector >=0.10.9 && <0.11 Show all…
Dependents (1)
@hackage/acme-everything
Package Flags
builddemo
(off by default)
Build 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
import Control.Monad.Trans.Maybe
go :: IO (Maybe DynamicImage)
go = do (getFrame, cleanup) <- frameReaderT "myVideo.mov"
(runMaybeT $ getFrame >>= toJuicyT) <* cleanupTested on OS X 10.9.2 with FFmpeg 2.2.1 installed via homebrew.