package ffmpeg-avutil

  1. Overview
  2. Docs
Bindings for the ffmpeg avutil libraries

Install

Dune Dependency

Authors

Maintainers

Sources

v1.0.0-beta1.tar.gz
md5=69d8276d0fccb3d6e7f3d7d24f75d397
sha512=f9b9663f54c73626e345b11d4140b94d98abd8601eed7f9c951d9d12da10f023d3197423c0939e32b1e39fefd6ee09997da274e38795f7470ca72b144c37f147

Description

Published: 16 Jun 2021

README

ocaml-ffmpeg

ocaml-ffmpeg is an OCaml interface for the FFmpeg Multimedia framework.

The modules currently available are :

Avutil : base module containing the share types and utilities

Avcodec : the module containing decoders and encoders for audio, video and subtitle codecs.

Av : the module containing demuxers and muxers for reading and writing multimedia container formats.

Avdevice : the module containing input and output devices for grabbing from and rendering to many common multimedia input/output software frameworks.

Avfilter : the module containing audio and video filters.

Swresample : the module performing audio resampling, rematrixing and sample format conversion operations.

Swscale : the module performing image scaling and color space/pixel format conversion operations.

Please read the COPYING file before using this software.

Prerequisites:

  • ocaml >= 4.05.0

  • FFmpeg >= 3.0

  • dune >= 2.0

  • findlib >= 0.8.1

Installation:

The preferred installation method is via opam:

opam install ffmpeg

This will install the latest release of all ffmpeg-related modules. You can also install individual modules, for instance:

opam install ffmpeg-avcodec ffmpeg-avfilter

If you wish to install the latest code from this repository, you can do:

opam install .

From within this repository.

Compilation:

dune build

Documentation:

The API documentation is available here.

Examples:

The audio_decoding example shows how to read frames from an audio file and convert them into bytes.

The audio_device example shows how to read 500 audio frames from an input audio device or an URL and write them into an output audio device or a file.

The decode_audio example shows how to parse packets from a mapped file, decode them and write the resulting frames into a file.

The demuxing_decoding example shows how to demuxing and decoding audio, video and subtitle frames from a file, converts them into bytes and write them in raw files.

The encode_audio example shows how to convert a float array into stereo frames and encode them into packets.

The encode_video example shows how to create video frames and write them encoded into a file.

The encoding example shows how to create a multimedia file with audio and video streams.

The player example shows how to read a multimedia file and write audio and video frames to output devices.

The remuxing example shows how to remuxing multimedia file packets without decoding them.

The transcode_aac example shows how to transcode an audio file into an AAC audio file.

The transcoding example shows how to transcode audio streams into the AAC codec, video streams into the H264 codec and write them to an output file.

Author:

This author of this software may be contacted by electronic mail at the following address: savonet-users@lists.sourceforge.net.

Dependencies (6)

  1. base-threads
  2. dune-configurator build
  3. dune >= "2.0"
  4. ocaml >= "4.08.0"
  5. conf-ffmpeg build
  6. conf-pkg-config build

Dev Dependencies

None

Used by (6)

  1. ffmpeg = "1.0.0~beta1"
  2. ffmpeg-av < "1.0.0~beta2"
  3. ffmpeg-avcodec < "1.0.0~beta2"
  4. ffmpeg-avfilter < "1.0.0~beta2"
  5. ffmpeg-swresample < "1.0.0~beta2"
  6. ffmpeg-swscale < "1.0.0~beta2"

Conflicts (1)

  1. ffmpeg < "0.5.0"
OCaml

Innovation. Community. Security.