How to install FFmpeg on CentOS 8

FFmpeg is a free and open source tool set for processing multimedia files. It contains a series of audio and video libraries, such as: libavcodec, libavformat, and libavutil. Using FFmpeg, you can convert between various video and audio formats, set the bit rate, edit audio, video, and scale video.

This article mainly describes how to install FFmpeg on CentOS 8.

1. Install FFmpeg on CentOS 8

FFmpeg is not provided in the default CentOS 8 source repository. You can choose to compile and install FFmpeg from source files, or use the dnf tool to install from the Negativo17 source repository. We will use the second option.

Complete the following steps to install FFmpeg on CentOS 8:

  1. Negativo17 software source depends on EPEL and PowerTools software source. Run the following command as root or another user with sudo privileges to enable the necessary software sources:
sudo dnf install epel-release
sudo yum config-manager --set-enabled PowerTools
sudo yum-config-manager --add-repo=https://negativo17.org/repos/epel-multimedia.repo
  1. Once the software source is enabled, install FFmpeg:
sudo dnf install ffmpeg
  1. Verify the FFmpeg installation by checking the version number:
ffmpeg -version

At the time of writing this article, the current version of FFmpeg in the Negativo17 software source is 2.8.15.

ffmpeg version 4.2.2Copyright(c)2000-2019 the FFmpeg developers
built with gcc 8(GCC)...

This command will also print out FFmpeg configuration options.

that's it. FFmpeg has been installed on your CentOS machine, and you can start using it.

Second, use FFmpeg

In this chapter, we will look at a basic example on how to use ffmpeg.

2.1 Basic conversion###

When using ffmpeg to convert audio and video files, you do not need to specify the input and output formats. The input file format will be automatically detected, and the output format will be guessed from the file extension.

ffmpeg -i input.mp4 output.webm
ffmpeg -i input.mp3 output.ogg

2.2 Use codec###

When converting files, use the -c option to specify the codec. It can be the name of any supported encoder or decoder, or a special value copy means that only the input stream is copied.

ffmpeg -i input.mp4 -c:v libvpx -c:a libvorbis output.webm
ffmpeg -i input.mp3 -c:a libopus output.ogg

Three, summary##

We have shown how to install FFmpeg on CentOS 8. You should now browse official FFmpeg documentation page and learn how to use FFmpeg to convert your video and audio files.

Recommended Posts

How to install FFmpeg on CentOS 8
How to install jdk1.8 on centOS7
How to install MySQL on CentOS 8
How to install Memcached on CentOS 8
How to install R on CentOS 8
How to install Virtualbox on CentOS 8
How to install TensorFlow on CentOS 8
How to install TeamViewer on CentOS 8
How to install Perl 5 on CentOS
How to install Git on CentOS 8
How to install Gradle on CentOS 8
How to install Elasticsearch on CentOS 8
How to install Jenkins on CentOS 8
How to install Java on CentOS 8
How to install Go on CentOS 8
How to install GCC on CentOS 8
How to install Yarn on CentOS 8
How to install Nginx on CentOS 8
How to install Asterisk on CentOS 7
How to install Jenkins on CentOS 8
How to install Vagrant on CentOS 8
How to install Python 3.8 on CentOS 8
How to install Tomcat 9 on CentOS 8
How to install Webmin on CentOS 8
How to install Ruby on CentOS 8
How to install Skype on CentOS 8
How to install htop on CentOS 8
How to install Python on CentOS 8
How to install Elasticsearch on CentOS 8
How to install Postgresql on CentOS 8
How to install Wordpress on Centos
How to install htop on CentOS 8
How to install TeamViewer on CentOS 8
How to install MariaDB on CentOS 8
How to install MongoDB on CentOS 7
How to install Odoo 13 on CentOS 8
How to install Apache on CentOS 8
How to install OpenCV on CentOS 8
How to install PHP on CentOS 8
How to install MongoDB on CentOS 8
Install FFmpeg on CentOS 8
How to install Apache Maven on CentOS 8
How to install Apache Kafka on CentOS 7
[Graphic] How to install tomcat on centos
R&D: How To Install Python 3 on CentOS 7
How to install GCC compiler on CentOS 7
How to install offline JDK1.8 on centos7.0
How to install and configure Elasticsearch on CentOS 7
How to install Visual Studio Code on CentOS 8
How to install and use Docker on CentOS 7
How to install RPM packages on CentOS Linux
How to install and configure VNC on CentOS 8
How to install and use Composer on CentOS 8
How to install and configure Redis on CentOS 8
How to install Node.js and npm on CentOS 8
How to install jdk1.8.0_151 and mysql5.6.38 on centos7.2.1511
How to install and configure phpMyAdmin on CentOS 6
How to install and use Curl on CentOS 8
How to install and configure Owncloud on CentOS 8
How to install VirtualBox client extension on CentOS 8
How to install Docker CE on RHEL 8 / CentOS 8