Skip to content

Cross-Compilation toolchain to build FFmpeg binaries with Docker

License

Notifications You must be signed in to change notification settings

A-Sai-Chaithanya/ffmpeg-build

Repository files navigation

FFmpeg Build

This project contains docker files necessary to build and test, minimal and static FFmpeg binaries with LAME encoder support for Linux, Windows, macOS and Android-Linux OS/Platforms.

Supported OS/Platforms

  • MacOS (arm64)
  • MacOS (x86_64)
  • Linux (aarch64)
  • Linux (x86_64)
  • Windows (amd64)
  • Android-Linux (aarch64)

Folder Overview

  • build-tools - Dockerfile to build a docker image with all cross compilation tools needed
    Docker Hub (prebuild image) : saichaithanya/ffmpeg-build-toolchain
  • buildmaster - Dockerfile to build FFmpeg binaries
  • test_files - media test files to test the built FFmpeg binaries

Dependencies

  • docker
  • python3

Execution

  • cd into repository cd ffmpeg-build
  • run chmod 744 ./trigger.sh to add execution permission for the file
  • run ./trigger.sh to generate the binaries
  • ffmpeg binaries built are stored under ffmpeg_bin/ folder under the same repository
  • test.py contains simple test cases to test the built ffmpeg binaries

Licence

The source code of ffmpeg-build is offered under MIT license. See the LICENSE.txt for more details.

However, the binaries of FFmpeg software included with ffmpeg-build source code have a different license.

As per FFmpeg License Compliance:
This software uses code of FFmpeg licensed under the LGPLv2.1and its source can be downloaded here. This software uses libraries from the FFmpeg project under the LGPLv2.1.