/ffmpeg-static

Bash script collection to compile FFmpeg statically

Primary LanguageShellMIT LicenseMIT

ffmpeg-static

Bash script collection to compile statically FFmpeg and install it using symbolic links.

Target OS is Ubuntu.

Compilation is based on FFmpeg wiki compilation guide.

nasm version ≥ 2.14
yasm version ≥ 1.2.0
meson version ≥ 0.47
(sudo pip install -U meson)

FFmpeg is compiled with the following libraries :

Installation


===== Symbolic links folder =====
mkdir -p ~/.local/bin

===== nvenc =====
git -C nv-codec-headers pull 2> /dev/null || git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.git
cd nv-codec-headers
make
sudo make install

===== Documentation =====
Drop man folder in ~/.local/share
or
echo "MANPATH_MAP $HOME/.local/bin $HOME/ffmpeg-static/build/current/share/man" >> ~/.manpath

===== Script =====
# ffmpeg version
export FFBUILD_VERSION=snapshot

# optional maintain version build folder. /etc/environment
sudo su
echo "FFBUILD_VERSION=snapshot" >> /etc/environment

git clone https://github.com/rmkimathi/ffmpeg-static.git
cd ~/ffmpeg-static
./build.sh -h
./build.sh all