Installation for the Linux users
Installing the software with Linuxbrew
Install Linuxbrew, a package manger originally designed for macOS, which has been ported to Linux. You can install Linuxbrew by pasting the following command at a Terminal prompt:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
Then add to your configurations file for the terminal sessions (which is usually
.zshrc) the following three lines:
echo 'export PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"' >> ~/.bashrc
echo 'export MANPATH="/home/linuxbrew/.linuxbrew/share/man:$MANPATH"' >> ~/.bashrc
echo 'export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:$INFOPATH"' >> ~/.bashrc
After successful installation you should restart the Terminal and execute:
Once Linuxbrew is installed, for our purpose, we recommend building FFmpeg with the command:1
brew install ffmpeg --with-freetype --with-openjpeg --with-tesseract
Testing your installation
Once you followed the installation above, you should have ffmpeg, ffplay and ffprobe installed.
Test ffmpeg by pasting into the Terminal the line:
ffmpeg -f lavfi -i mandelbrot -t 10 -pix_fmt yuv420p ~/Desktop/mandelbrot.mov
This should produce on your Desktop a file of the Mandelbrot pattern.
Test ffplay by pasting into the Terminal the line:
This should play the Mandelbrot file.
Test ffprobe by pasting into the Terminal the line:
ffprobe -show_format -show_streams -print_format json ~/Desktop/mandelbrot.mov
This should display the Mandelbrot file’s technical metadata.
Installing the software from a build
Please follow the instructions given at: ffmpeg.org/download.html
- The recommended parameters are:
- Enables FreeType support, e.g. for adding titles.
- Enables JPEG 2000 encoding and decoding.
- Enables the Tesseract filter for optical character recognition, e.g. for extracting inter-titles or subtitles.