Install ffmpeg

Latest response

Hi guys

I am trying to install ffmpeg but it complains about libSDL2 not available. How do I install ffmpeg?

[root@desktop ~]# dnf install ffmpeg
Updating Subscription Management repositories.
Last metadata expiration check: 1:06:23 ago on Sun 11 Oct 2020 17:26:47 SAST.
Error:
Problem: conflicting requests
- nothing provides libSDL2-2.0.so.0()(64bit) needed by ffmpeg-4.2.4-1.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

Regards,
Anish

Responses

Hi Anish,

The package ffmpeg can be installed by executing the following commands :

sudo subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms

sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo dnf install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm

sudo dnf upgrade
sudo dnf install ffmpeg

If you still receive the mentioned error message, you will have to wait until the matching SDL2 package is available. :)

Regards,
Christian

this solution works to install ffmpeg on RHEL9, just change the 8 to a 9 in the scripts. also signature check problem fixed by using update-crypto-policies --set DEFAULT:SHA1 But please don’t forget to switch back, e.g.: update-crypto-policies --set DEFAULT above suggestion came from https://www.redhat.com/en/blog/rhel-security-sha-1-package-signatures-distrusted-rhel-9 thanks for the tip, couldnt get ffmpeg to install. now its installed, live videos still dont play. the hunt continues.

Hi Chris,

You may want to install the gstreamer1-libav package from RPM Fusion as well ... :)

Regards,
Christian

This Dockerfile worked for me:

FROM registry.access.redhat.com/ubi9/ubi
RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
RUN dnf install -y https://download1.rpmfusion.org/free/el/rpmfusion-free-release-9.noarch.rpm
RUN dnf upgrade -y
RUN dnf install -y --enablerepo=codeready-builder-for-rhel-9-x86_64-rpms ffmpeg
CMD ["ffmpeg", "-version"] 

with help from https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html-single/building_running_and_managing_containers/index?extIdCarryOver=true&sc_cid=701f2000001Css5AAC#proc_adding-software-in-a-standard-ubi-container_assembly_adding-software-to-a-ubi-container

It's already installed. Still no access to live YouTube videos. Any suggestions from RHEL9 on why this is?

This fails with the error:

[FAILED] rpmfusion-free-release-8.noarch.rpm: Curl error (60): Peer certificate cannot be authenticated with given CA certificates for https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm [SSL certificate problem: EE certificate key too weak] Curl error (60): Peer certificate cannot be authenticated with given CA certificates for https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm [SSL certificate problem: EE certificate key too weak]

Thanks Christian. I forgot about codeready everytime i install RHEL on anything.

You're welcome, Łukasz ! :)