avcpp
2.0
Wrapper for the FFmpeg that simplify usage from C++ projects.
|
Wrapper for the FFmpeg that simplify usage it from C++ projects.
Currently covered next functionality:
You can read the full documentation here.
You should install FFmpeg packages from the deb-multimedia.org site:
Note 1: I did not test building on Debian.
Note 2: Debian Wheezy repo contains only FFmpeg 1.0.8. I tested building only with 2.x. So it is strongly recoment use Wheezy back-ports repo.
If you are on Ubuntu bionic or Linux Mint 19.x you should add ffmpeg-4 PPA:
After that just install the same packages as above.
There are two ways to compile either with CMake or with meson. By default meson is faster, but if your project uses CMake, those instructions might be better for integration.
If your Git version so old (refer to the SO for clarification) you can just replace --recurse-submodules
with pair of git submodule init && git submodule update
.
If FFmpeg located in non-standard place:
To point install prefix:
Install:
or (for packaging)
Refer to CMake documentation for more details that can cover some special cases.
Before you can begin with the building you have to clone the repository like this:
IDE Integration:
There are extentions for various IDEs like VS Code/Codium, Eclipse, Xcode, etc. Refer to the docs for more information.
Building the project:
If you don't have the dependencies installed, meson will download and compile them. Because ffmpeg is so large (~2000 c files), you should consider using your package manager to install them. You can then build the project with the following commands:
Configuring the project:
By default the sample projects and the test are compiled. If you don't want this you can disable it with the following commands:
You can set the install prefix using meson --prefix <your/own/prefix>
. To see all of the available options just type meson configure
and meson configure --help
to get more information.
Installing the project:
Just type meson install
and the project will be installed in the configured prefix (/usr/local by default).
Running the tests:
To run the test just use meson test
. If you disabled the test this will do nothing.