Installing ffmpeg, libx264 (for ffmpeg-free)

Hi All,

I’m trying to install ffmpeg using the following:

dnf install ffmpeg ffmpeg-devel,

but I receive following error:
Last metadata expiration check: 0:56:39 ago on Mon 22 Apr 2024 11:10:46 AM JST.
Error:
Problem 1: package ffmpeg-devel-3.4.13-1.el7.x86_64 from rpmfusion-free-updates requires libavdevice(x86-64) = 3.4.13-1.el7, but none of the providers can be installed

  • package ffmpeg-devel-3.4.13-1.el7.x86_64 from rpmfusion-free-updates requires libavdevice.so.57()(64bit), but none of the providers can be installed
  • conflicting requests
  • nothing provides libcdio_cdda.so.1()(64bit) needed by libavdevice-3.4.13-1.el7.x86_64 from rpmfusion-free-updates
  • nothing provides libcdio_cdda.so.1(CDIO_CDDA_1)(64bit) needed by libavdevice-3.4.13-1.el7.x86_64 from rpmfusion-free-updates
  • nothing provides libcdio_paranoia.so.1()(64bit) needed by libavdevice-3.4.13-1.el7.x86_64 from rpmfusion-free-updates
  • nothing provides libcdio_paranoia.so.1(CDIO_PARANOIA_1)(64bit) needed by libavdevice-3.4.13-1.el7.x86_64 from rpmfusion-free-updates
    Problem 2: package ffmpeg-3.4.13-1.el7.x86_64 from rpmfusion-free-updates requires libavdevice.so.57()(64bit), but none of the providers can be installed
  • package ffmpeg-3.4.13-1.el7.x86_64 from rpmfusion-free-updates requires libavdevice.so.57(LIBAVDEVICE_57)(64bit), but none of the providers can be installed
  • conflicting requests
  • nothing provides libcdio_cdda.so.1()(64bit) needed by libavdevice-3.4.13-1.el7.x86_64 from rpmfusion-free-updates
  • nothing provides libcdio_cdda.so.1(CDIO_CDDA_1)(64bit) needed by libavdevice-3.4.13-1.el7.x86_64 from rpmfusion-free-updates
  • nothing provides libcdio_paranoia.so.1()(64bit) needed by libavdevice-3.4.13-1.el7.x86_64 from rpmfusion-free-updates
  • nothing provides libcdio_paranoia.so.1(CDIO_PARANOIA_1)(64bit) needed by libavdevice-3.4.13-1.el7.x86_64 from rpmfusion-free-updates
    (try to add ‘–skip-broken’ to skip uninstallable packages or ‘–nobest’ to use not only best candidate packages)

Also, I tried to install ffmpeg-free, but when I try as:

ffmpeg -framerate 3 -pattern_type glob -i ‘ni*.png’ -c:v libx264 -r 30 -pix_fmt yuv420p ni0_452t.mp4

it says:“Unknown encoder ‘libx264’”

Thanks in advance.

Cheers

Is the epel-release installed? I think that package does not come with alma repos

Whatever repo you have installed, where it’s pulling these packages from, is for CentOS 7, not AlmaLinux 8 or 9.

This guide says to use the rpmfusion repo: Installing ffmpeg on RedHat Enterprise Linux 8 - Ben Holcomb

I haven’t done it/used it before, so use at your own risk.