Linux

How to install FFMPEG On Debian & Ubuntu Servers

H.264/MPEG-4 Part 10 or AVC (Advanced Video Coding) is the standard for HD video compression. It is currently one of the most commonly used formats for the recording, compression, and distribution of HD video. The FFMPEG package provided by Debian repositories doesn’t support H.264 due to patent restrictions. But luckily, deb-multimedia.org provides a complete FFmpeg package compiled with full H.264 support and it’s very easy to install to F2HCloud NVMe VPS servers or Cheap Dedicated Servers. You will need root access to install FFMPEG on Debian/Ubuntu-based OS.

Install FFMPEG Ubuntu/Debian

First, add the deb multimedia source, We are adding the source for Debian 9 in this example.

Debian 9 FFmpeg Install

echo "deb http://www.deb-multimedia.org stretch main non-free" >> /etc/apt/sources.list

Debian 10 FFmpeg Install

echo "deb http://www.deb-multimedia.org buster main non-free" >> /etc/apt/sources.list

Update apt and install deb-multimedia keyring

Next update apt to get the new files list from the source you just added in the previous step.

apt-get update
apt-get install deb-multimedia-keyring
apt-get update

Remove the Debian FFmpeg package if you have already installed it.

You may have FFmpeg installed already. If you do remove it.

apt-get remove ffmpeg

Now, install FFmpeg. The total installation is just over 200MB.

apt-get install ffmpeg x264

Check FFmpeg Version

ffmpeg -version

The output should be similar to this. If you can see “–enable-libx264”, you have H.264 support and the installation is complete. Yuu have now installed FFMPEG on a Ubuntu/Debian Linux Server

ffmpeg version 3.3.9 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 6.3.0 (Debian 9.3.0-18+deb9u1) 20200516

configuration: --enable-libdc1394 --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-avfilter --enable-libdirac --disable-decoder=libdirac --enable-libfreetype --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --extra-libs=-lgcrypt --disable-altivec --disable-armv5te --disable-armv6 --disable-vis
libavutil 50. 43. 0 / 50. 43. 0
libavcodec 52.123. 0 / 52.123. 0
libavformat 52.111. 0 / 52.111. 0
libavdevice 52. 5. 0 / 52. 5. 0
libavfilter 1. 80. 0 / 1. 80. 0
libswscale 0. 14. 1 / 0. 14. 1
libpostproc 51. 2. 0 / 51. 2. 0
ffmpeg 0.7.13
libavutil 50. 43. 0 / 50. 43. 0
libavcodec 52.123. 0 / 52.123. 0
libavformat 52.111. 0 / 52.111. 0
libavdevice 52. 5. 0 / 52. 5. 0
libavfilter 1. 80. 0 / 1. 80. 0
libswscale 0. 14. 1 / 0. 14. 1
libpostproc 51. 2. 0 / 51. 2. 0

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button