Skip to content

nanake/ffmpeg-tinderbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Essentially it's a tool, tinderbox, that automates the process of checking out and building a recent FFmpeg source code, including nonfree libraries such as libfdk-aac and decklink.

For a manual build, follow detailed instructions below:


Prelude

Requirements

Ensure you have the following tools installed on your system:

  • Bash
  • Docker

Targets, Variants and Addins

Targets:

  • win64: Build for 64-bit Windows
  • win32: Build for 32-bit Windows

Variants:

  • gpl: Builds all libraries from scripts.d folder except libfdk-aac and decklink
  • lgpl: Excludes additional libraries (avisynth, davs2, vidstab, x264, x265 and xavs2)
  • nonfree: Includes both non-free libraries (libfdk-aac and decklink) and all libraries of the gpl variant

Addins:

  • debug: Adds debug symbols to the build. It's gdb compatible embedded debug info

Building

  1. Build base-image:
docker build -t ghcr.io/nanake/base-${TARGET}:latest images/base-${TARGET}

Note: You might need to modify the rootfs image by specifying a public image base, such as fedora:rawhide.

  1. Build target-variant image:
./generate.sh ${TARGET} ${VARIANT}
docker build -t ghcr.io/nanake/${TARGET}-${VARIANT}:latest .

Alternatively, You can build both base-image and target-variant image by simply invoke makeimage.sh. For example:

./makeimage.sh win64 nonfree
  1. Build FFmpeg
./build.sh ${TARGET} ${VARIANT} ${ADDINS}

To create a shared build of FFmpeg, append -shared to the VARIANT name. For example:

./build.sh win64 gpl-shared

Upon successful build completion, the build artifacts will be available in the artifacts folder.


Acknowledgments

The foundation for this build script comes from the work of BtbN.