Build FFmpeg from scratch with Python!
This work is inspired by ffmpeg-build-script. Markus did a great job on gathering requirements for multiple components. But I can't use it because of Bash. Bash is a real shit: fragile syntax, no debug, no IDE, no error reporting.
Forked from https://github.com/openstreamcaster/ffmpeg-builder
- Build:
python3 build.py --build
- Clean:
python3 build.py --clean
- Help:
python3 build.py --help
- GNU/Linux
- MacOS
- Windows (MSYS2)
Windows is a very unfriendly place. Unfortunately, it's the only place with games. Don't trust Windows build, and it needs in-depth testing. Nonetheless, here are the steps to build:
- Install MSYS2. It's like ArchLinux, but with Windows Kernel. Follow all steps, update everything as the page says.
- Cast this magic spell to set up environment:
pacman -S --needed base-devel mingw-w64-i686-toolchain mingw-w64-x86_64-toolchain mingw-w64-i686-cmake mingw-w64-x86_64-cmake mingw-w64-x86_64-llvm mingw-w64-x86_64-clang
- Install Python
pacman -S python3 mingw-w64-x86_64-python3-pip
and runpip3 install plumbum
- Run
python3 build.py --build
as usual and pray your gods.
Universal Permissive License, as in LICENSE.md in this repository.
The UPL is a lax, non-copyleft license that is compatible with the GNU GPL. The UPL contains provisions dealing explicitly with the grant of patent licenses, whereas many other simple lax licenses only have an implicit grant. © Free Software Foundation
Short hint: you may use it in your Apache 2 or GPL projects, but there's a lot of nuances and implications, so please ask professional help if you don't understand anything about licensing.