To use this package, put the following dependency into your project's dependencies section:
This is a D port of the FFmpeg C headers. Please check FFmpeg website for more information on the application and libraries
NOTE: This branch is compatible with ffmpeg 3.1.x, for other versions please see the other branches for usage information.
Adding to DUB
ffmpeg-d in your dub project add the following dependency to your dub.json file.
The main configuration of the project is set up as a source library. Linking to FFmpeg libraries is defined
in the dub.json. If FFmpeg libraries are not visible in your build system, provide the library directory with
argument in your project's configuration as:
There are a few examples in the examples directory, these can be compiled to working executables using DUB:
dub build -c remux_example
Other examples written in C can be found on the main FFMpeg site: https://www.ffmpeg.org/doxygen/3.1/examples.html
It is noted that FFmpeg compiled on OS X with clang fails linking with DMD. Workaround is to install the FFmpeg libraries using Homebrew. See the issue #1 for more info.
Running D unit tests with dub:
... will print the associated FFmpeg library versions. This is useful for checking versions expected by this binding and the actual library.
Currently the library has been tested with FFmpeg 2.7.6, 2.8.0, 3.0.9, 3.1.10 libraries.
Please use the branch of this repo that corresponds to the same major.minor version of FFmpeg. For example use
release/3.1 with FFmpeg 3.1.10.
Newer versions should be tested in future. If you've already tested this library with newer FFmpeg, please let us know in the gitter chat room!
Any contribution is most welcome! Also, any feedback is very valuable - please give us a hint about the system your using this library on, and the version of the FFmpeg libraries your linking to your program, so other people could know what configuration will work for them!
This library is licensed under LGPL v2.1 license, as are most files in the FFmpeg libraries. Any use of this library also follows license rules of the original FFmpeg library. For additional info refer to the FFmpeg license file
- Registered by Relja Ljubobratovic
- 3.1.1 released a year ago
- Copyright © 2013