Install FFmpeg on CentOS 8

FFmpeg is a set of free open source computer programs that provides a complete solution for recording, converting, and streaming audio and video. FFmpeg is developed under the Linux platform, but it can also be compiled and run in other operating system environments, including Windows and Mac OS X. This article describes how to install FFmpeg on CentOS 8.

1. Add RPMfusion warehouse

To install FFmpeg on CentOS 8, you need to add the RPMfusion repository:

$ sudo yum install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm

2. Install FFmpeg

After adding the RPMfusion repository, run the following two commands to install FFmpeg:

$ sudo yum install http://rpmfind.net/linux/epel/7/x86_64/Packages/s/SDL2-2.0.10-1.el7.x86_64.rpm$ sudo yum install ffmpeg

If necessary, you can install the development library:

$ sudo yum -y install ffmpeg-devel

3. Check the installation of FFmpeg on CentOS8

$ rpm -qi ffmpeg$ ffmpeg -version

4. Use FFmpeg

Split video: The following command can start from time 00:00:15, and intercept 5 seconds of video.

ffmpeg -ss 00:00:15-t 00:00:05-i input.mp4 -codec copy output.mp4

Combining videos: The method of using the FFmpeg concat splitter to losslessly combine videos with the same specifications has a relatively high success rate.

First create a text file filelist.txt:

file 'input1.webm'file 'input2.webm'file 'input3.webm'

Then enter the following command to merge the video files in filelist.txt into one file in order:

ffmpeg -f concat -i filelist.txt -c copy output.webm

The above only briefly introduces the simple methods of FFmpeg cutting and merging videos. If you want to learn more about how FFmpeg processes videos, you can refer to the official document: www.ffmpeg.org/documentation.html.

Note: This article is original by Bitau and may not be reprinted on any platform without permission. If you need to reprint, contact the author~

Recommended Posts

Install FFmpeg on CentOS 8
How to install FFmpeg on CentOS 8
Install Docker on Centos7
install LNMP on centos7.4
Install Java on Centos 7
Nodejs install on centos7
Install RabbitMQ on CentOS 7
Install Node.js on Centos
Maven install on centos7
Install MongoDB on CentOS 7
Install Surelog on CentOS8
Openjdk install on centos7
Install Jenkins on centos7
install RabbitMQ on centos
Install RabbitMQ on CentOS 7
install Docker on centos6.5
install oracle on centos
Install Elasticsearch 6 on centos7
Install RabbitMQ on CentOS7
Install ElasticSearch 7.x on CentOS 7
Install MySQL 8.0.16 on Linux Centos
Install docker transfer on Centos7
Install docker on Centos system
install EPEL repo on centos
1.5 Install Centos7
Install Zabbix 3.4 based on CentOS 7
install virtualbox on centos server
Install Nginx server on CentOS 7
How to install jdk1.8 on centOS7
How to install MySQL on CentOS 8
Install JDK8 in rpm on CentOS7
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
Install MySQL on Linux CentOS7 (Windows)
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
​Install Oracle database on CentOS Linux
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