USharing
开放博客

Install FFMpeg on CentOS 8 with YUM or DNF

Prerequisites

  • Running CentOS 8
  • Root Access (typical on a VPS) or have a sudo user (typical on a shared hosting environment or other VPS environments)
  • Comfortable with YUM/DNF and RPM commands (Please don’t blindly copy and paste code, understand it!)

Step 1: Install EPEL repository

There is two repositories which we will be relying on to install FFMpeg on CentOS 8.  The first is the EPEL repository, which contains a bunch of extra packages not shipped with the base CentOS 8 install media.

In CentOS 8, the EPEL repository can be installed using YUM or DNF, whichever you’re more comfortable with.  DO NOT issue both commands, one or the other.

For YUM, issue the following command:

yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

If you’re using DNF, use the following command:

dnf -y install https://download.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

You should have successfully installed the EPEL repository at this point.

Step 2: Install RPM Fusion repository

RPM Fusion has two repositories we will be using, a free one and a nonfree one.  They are both free to use, but the nonfree repository contains software that may not be covered under open source licensing.

Using YUM, you can install using the following command:

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

If you prefer DNF, use the following command:

dnf config-manager --enable PowerTools && dnf install --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm

Please remember, only use YUM or DNF, but not both.  This will cause conflicts.

Step 3: Install SDL2 Library Dependencies

FFMpeg will require the use of the SDL2 library.  You can install it with your favorite tool again.

Using YUM, issue the following command:

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

With DNF, use the following command:

dnf install http://rpmfind.net/linux/epel/7/x86_64/Packages/s/SDL2-2.0.10-1.el7.x86_64.rpm

This should show a successful install of the SDL2 libraries.

Step 4: Install FFMpeg

Here’s what you’ve been waiting for!  Let’s actually install FFMpeg.

Using YUM, the following command:

yum install ffmpeg ffmpeg-devel

Using DNF, issue the following command:

dnf install ffmpeg ffmpeg-devel

This should leave you with a successful install of FFMpeg.

Step 5: Verify install of FFMpeg

rpm -qi ffmpeg
ffmpeg -version

 

赞(0) 打赏
未经允许不得转载:USharing » Install FFMpeg on CentOS 8 with YUM or DNF

觉得文章有用就打赏一下文章作者

微信扫一扫打赏