Skip to content

External libraries integration

Alexander Berezhnoi edited this page Dec 14, 2019 · 6 revisions

It is possible to extend the script with a functionality that downloads and builds an additional library that will be integrated into FFmpeg's result binaries.

An actual list of libraries that are supported can be found in the FFmpeg's configure script near the 'External library support' section.

To add a new library to the compilation process several steps should be done:

1. Allow new argument parsing

In scripts/parse-arguments.sh file you need to add a block similar to this:

--enable-libdav1d)
      EXTERNAL_LIBRARIES+=( "libdav1d" )
      shift
    ;;

The actual value of the --enable-xxx has to be picked from the FFmpeg's configure script arguments list.

The libdav1d in this case is a name of a library and it is used in several other places. Stay tuned.

2. Add 2 scripts for downloading and building the library

They both have to be placed in a directory with the name of an external library, like script/libdav1d, for example.

download.sh

build.sh

Clone this wiki locally