Interfacing with the Quadra device can be through several frameworks, including FFmpeg.

 Supported Versions

  • 3.27

  • 4.3.1

  • 5.1.2

  • 6.1

  • 7.1

  • 7.1.3

  • 8.0.1

  • 8.1 

Only FFmpeg 4.3.1 is fully supported in Windows and Android.

Download FFmpeg

To clone the GitHub FFmpeg repository from the command line, run the command and specify which n<version> (for Example 4.3.1) you require from the list of supported FFmpeg versions.

git clone -b n<version> --depth=1 https://github.com/FFmpeg/FFmpeg.git FFmpeg

Example:

git clone -b n4.3.1 --depth=1 https://github.com/FFmpeg/FFmpeg.git FFmpeg

Patch FFmpeg

  1. Copy the FFmpeg patch file from the untarred SW release package to the FFmpeg/ folder, depending on which official <version> of FFmpeg was downloaded.

cp Quadra_SW_V*/FFmpeg-n<version>_netint_v*.diff FFmpeg/

Example:

cp Quadra_SW_V*/FFmpeg-n4.3.1_netint_v*.diff FFmpeg/
  1. Change to the FFmpeg/ folder:

cd FFmpeg/
  1. Apply the relevant NETINT patch to the FFMpeg <version>, for Example 4.3.1

patch -t -p 1 < FFmpeg-n<version>_netint_v*.diff

Example

patch -t -p 1 < FFmpeg-n4.3.1_netint_v*.diff

Build FFmpeg

  1. Run the build_ffmpeg.sh script with the following command lines (these will build with Quadra by default):

sudo make clean
bash build_ffmpeg.sh

The sudo make clean command line above may return with an error if there are no previous build files to clean up. If you see a similar error message to the one below and you in the correct directory, if there are no existing build files then this is expected.

Makefile:167: /tests/Makefile: No such file or directory make: *** No rule to make target '/tests/Makefile'. Stop.
  1. Now install FFmpeg with Quadra to the system, with the following command:

sudo make install