@hackage / ffmpeg-light

Minimal bindings to the FFmpeg library.

Latest0.14.1

About

Metadata

  • Last updated , by AnthonyCowley
  • License BSD-3-Clause
  • Maintained by: acowley@gmail.com

  • Lottery factor: 0

Links

Installation

Tested Compilers

  1. 9.2.1
  2. 9.0.2
  3. 8.10.7
  4. 8.8.4
  5. 8.6.5

Package Flags

Use the -f option with cabal commands to enable flags

    builddemo (off by default)

    Build demo executable

    buildrasterdemo (off by default)

    Build Rasterific demo executable

    buildvplaydemo (off by default)

    Build video player demo executable

    buildtranscodedemo (off by default)

    Build transcode demo executable

    buildaudioextractdemo (off by default)

    Build audio-extract demo executable

    buildaudiosindemo (off by default)

    Build audio-sin demo executable

Readme

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 with FFmpeg 3.1 - 3.4.2