Installing FFMPEG on CentOS
FFMPEG is a powerful multimedia processing tool that can be used to convert audio and video files, resize videos, add subtitles, and much more. In this tutorial, we will walk you through the process of installing FFMPEG on CentOS.
Prerequisites
Before we begin, make sure that you have:
- A server running CentOS 7
- Root access to the server
Step 1: Update System
First, we need to update the system packages to ensure that we have the latest versions installed.
sudo yum update -y
Step 2: Install EPEL Repository
FFMPEG is not available in the default CentOS repository. So, we need to enable the EPEL (Extra Packages for Enterprise Linux) repository.
sudo yum install epel-release -y
Step 3: Install FFMPEG
Now that we have added the EPEL repository, we can install FFMPEG using the following command:
sudo yum install ffmpeg ffmpeg-devel -y
Step 4: Verify Installation
To verify that FFMPEG is installed correctly, run the following command:
ffmpeg -version
You should see output similar to the following:
ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-39)
configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-gnutls --enable-gpl --enable-ladspa --enable-libass --enable-libbluray --enable-libcdio --enable-libdc1394 --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvenc --enable-omx --enable-shared --enable-version3
This output confirms that FFMPEG is installed and ready to use.
Conclusion
In this tutorial, we have shown you how to install FFMPEG on CentOS. FFMPEG is a versatile tool that can be used for many multimedia processing tasks. With FFMPEG installed, you can now start using it to convert, resize, and manipulate audio and video files on your CentOS server.