Wiki > FFmpeg
ffmpeg is pre-installed on all servers, however it may not be built with flags that you want. This article is for if you need to compile your own to add additional compilation flags.
Installing custom FFmpeg
-
Connect to your slot with SSH
-
Create a temporary build directory for FFmpeg
mkdir -p ~/ffmpeg_build
-
Download the latest source snapshot of FFmpeg
wget https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 -O ffmpeg-snapshot.tar.bz2
-
Extract the source snapshot
tar xjvf ffmpeg-snapshot.tar.bz2
-
Compile FFmpeg. You can add any additional configuration flags to the
./configure
line.cd ffmpeg ./configure --prefix="$HOME/ffmpeg_build" --extra-cflags="-I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib" --bindir="$HOME/bin" make make install
-
Add
~/bin
to yourPATH
environment variable. You do not need to run this command if you already have~/bin
in yourPATH
.echo 'export PATH="$HOME/bin:$PATH"' >> ~/.bashrc source ~/.bashrc
-
Run FFmpeg
ffmpeg --version
Troubleshooting
For more detailed information, consult the FFmpeg Compilation Guide.