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.
Thank you a lot Dominik, now the question is answered, thanks pal!
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.
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.
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.
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.
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