Skip to main content
Version: v5.9.0

Compile Libxcoder and FFmpeg for Quadra and Logan

Preparation​

These two separate solutions can be compiled together using a batch script that calls devenv.exe rather than using the VS IDE. However if preferred, the IDE can be used instead by loading and building the VS solution file (.sln). Manually copy the intermediate and output files the same way the batch script does.

The compilation of FFmpeg v4.3.1 is shown as an example below.

  1. From the release package folder

Quadra_SW_v3.0.0

Copy the following two folders into a new folder, in this example the folder named NETINT_Windows is used

  • libxcoder
  • tools
  1. Clone FFmpeg-n4.3.1 from git
git clone -b n4.3.1 --depth=1 https://github.com/FFmpeg/FFmpeg.git FFmpeg-n4.3.1 

image-20260828-224902.png

  1. From the following folder
Quadra_SW_V3.1.1_EN3

copy the patch file below

FFmpeg-n4.3.1_netint_v3.1.1_EN3.diff

to the FFmpeg-n4.3.1 folder created in Step 2 by the git clone command

  1. Change directory to
FFmpeg-n4.3.1
  1. Apply the patch with the following command  
patch -p 1 -t -i FFmpeg-n4.3.1_netint_v3.1.1_EN3.diff

image-20260828-224918.png

Compiling Libxcoder and FFmpeg for Quadra or ReleaseDLL​

This process is simple with only three steps required

  1. Change directory into tools\MSVS2019\quadra.

  2. Run one of the following batch files as admin to build either the libxcoder and FFmpeg Release, or the ReleaseDLLwindows_automated_compiling_ffmpeg_n4.3.1.bat - > for Release buildwindows_automated_compiling_ffmpeg_n4.3.1_dll.bat - > for ReleaseDLL

note

Ensure the following extension is installed on the host before running the batch files: VS2019 --> Extensions --> Manage Extensions --> Microsoft Visual Studio Installer Projects

image-20260828-224949.png

  1. If the user runs the Release batch files, the output build executable and setup files are found in the build directory.

image-20260828-225000.png

  1. If the user runs the ReleaseDLL batch files, the contents of the build folder will also have additional DLL files, as in the example below.
    image-20260828-225009.png

Libxcoder and FFmpeg for Quadra Logan or ReleaseDLL​

Follow this section to compile the libxcoder and FFmpeg for either a Quadra and Logan release, or a ReleaseDLL

1        Change directory into

tools\MSVS2019\quadra+logan

2        Ensure the following extension is installed before running any batch files

VS2019 --> Extensions --> Manage Extensions --> Microsoft Visual Studio Installer Projects

image-20260828-225159.png

3        Run the following batch files as admin to build libxcoder, libxcoder_logan and FFmpeg Release or the ReleaseDLL

windows_automated_compiling_ffmpeg_n4.3.1.bat  - >   Release build
windows_automated_compiling_ffmpeg_n4.3.1_dll.bat - > for ReleaseDLL build

4        The output executable and setup files can be found in the build directory.

image-20260828-225144.png

5        If the ReleaseDLL batch files are used then the contents of the build folder will also have the additional DLL output files as shown in the example below.

image-20260828-225135.png