F38: I can not install ffmpeg. So can I rotate videos with some other library?

Hi guys!
I used ffmpeg for rotating video captured on a smartphone.
I need it gust in this case.
So the question is: Can I rotate videos in Fedora 38 without ffmpeg library?

[dragonserw@fedora ~]$ uname -a && sudo dnf install ffmpeg -y
Linux fedora 6.2.11-300.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr 13 20:27:09 UTC 2023 x86_64 GNU/Linux
Last metadata expiration check: 2:58:48 ago on Пн 24 апр 2023 10:51:55.
Error: 
 Problem: problem with installed package libswscale-free-6.0-4.fc38.x86_64
  - package ffmpeg-libs-6.0-6.fc38.x86_64 conflicts with libswscale-free provided by libswscale-free-6.0-4.fc38.x86_64
  - package ffmpeg-libs-6.0-6.fc38.x86_64 conflicts with libswscale-free provided by libswscale-free-6.0-2.fc38.x86_64
  - package ffmpeg-6.0-6.fc38.x86_64 requires ffmpeg-libs(x86-64) = 6.0-6.fc38, but none of the providers can be installed
  - conflicting requests
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages)
[dragonserw@fedora ~]$

You can install ffmpeg-free from Fedora repositories and complement it with libavcodec-freeworld from RPM Fusion, i.e. dnf install ffmpeg-free libavcodec-freeworld.

Alternatively, you could try doing what dnf suggests, i.e. adding --allowerasing to the command. The ffmpeg package from RPM Fusion conflicts with the ffmpeg-free FFmpeg stack in Fedora, so the Fedora FFmpeg libraries need to be replaced with their RPM Fusion counterparts.

4 Likes

Thank you a lot Dominik, now the question is answered, thanks pal! :slight_smile:
Another question: for what purpose should I install libavcodec-freeworld – in which cases it will be useful?

libavcodec-freeworld contains codecs that Fedora cannot distribute, so they are missing in Fedora build (libavcodec-free). Try playing some videos with and without it.

1 Like

Ok, that sounds good.
One more question, if you are so kind to answer it:

Lets assume there is a fresh clean installation of Fedora Workstation 38.
And I perform 2 steps after the install:
The First Step is:

sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm -y #https://rpmfusion.org/Configuration

While the Second step is:

sudo dnf update -y && sudo dnf install ffmpeg-free gstreamer1-plugin-openh264 gstreamer1-plugins-bad-freeworld libavcodec-freeworld -y #https://dragonserw.ru/wiki:fedora

My question is: Is it enough for playing YouTube, VK-com, Vimeo; .mkv, .webp, .mp3, .aac, .ogg; HEVC?
And does it some excesses in the Second command?

I think your second step should work, but I recommend following the instructions from Howto/Multimedia - RPM Fusion instead.

Using the group update command is more reliable than manually naming the packages like gstreamer1-..., because it will still be correct even if there are new packages or name changes in the future.

3 Likes

i note that the idea to install ffmpeg-free was presented.
Fedora provides ffmpeg-free, libavcodec-free, and several other media “-free” packages.

It is worthwhile to note that ALL those packages coming from the fedora repo are stripped of the codecs that fedora is unable to distribute due to various license/copyright/etc. limitations.

It seems that many have an equivalent “-freeworld” package in the rpmfusion repo that does include the codecs that are stripped from the version in the fedora repos.

If you want to have use of all the available codecs then the packages from the rpmfusion repos are recommended. In some cases as a replacement and in others as a supplemental package that just adds the codecs.

Note there have been significant changes in packaging of av codecs with the switch from F37 to F38.

Note there have been significant changes in packaging of av codecs with the switch from F37 to F38.

I was unable to get ffmpeg installed on either Silverblue or Kinoite and simply gave up. Too frustrating.

You certainly should be able to use rpm-ostree to install rpm packages on either silverblue or kinoite. If you give up that easily then it will be difficult to learn managing your own systems.

The package noted for fedora 38 is ffmpeg-free.

Ok, that sounds good.
One more question, if you are so kind to answer it:

Lets assume there is a fresh clean installation of Fedora Workstation 38.
And I perform 2 steps after the install:
The First Step is:

sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm -y #https://rpmfusion.org/Configuration

While the Second step is:

sudo dnf update -y && sudo dnf install ffmpeg-free gstreamer1-plugin-openh264 gstreamer1-plugins-bad-freeworld libavcodec-freeworld -y #https://dragonserw.ru/wiki:fedora

My question is: Is it enough for playing YouTube, VK-com, Vimeo;
.mkv, .webp, .mp3, .aac, .ogg; HEVC?

Yes, depending on the media player you want to use…

And does it some excesses in the Second command?

You want either ffmpeg-free OR libavcodec-freeworld, not both. In fact,
they’re mutually exclusive and conflict with each other.

Regards,
Dominik

1 Like

I used
sudo dnf install ffmpeg gstreamer1-plugin-openh264 gstreamer1-plugins-bad-freeworld libavcodec-freeworld gstreamer1-plugins-ugly gstreamer1-plugins-good-extras vlc --best --allowerasing
and it installed all the codecs I needed for the media I use of all types. It also removed several conflicting *-free packages which are the fedora (limited codec) versions

Hello Dominik!
I entered this commands in my Fedora 38 installation:

sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm -y #https://rpmfusion.org/Configuration
sudo dnf update -y && sudo dnf install ffmpeg-free gstreamer1-plugin-openh264 gstreamer1-plugins-bad-freeworld -y #https://dragonserw.ru/wiki:fedora
sudo dnf install intel-media-driver -y && sudo reboot now #https://rpmfusion.org/Howto/Multimedia

And you know what? VLC and Videos play ‘H.264 (High Profile)’ videos, but the message of ‘Unable to find requested codec’ appears.

Do you have libavcoded-freeworld package installed?

Regards,
Dominik

You want either ffmpeg-free OR libavcodec-freeworld, not both

I removed it.