I tried a while ago to update using rpm-ostree as usual, but was met with this error:
error: Impossible de depsolve la transaction ; 1 problème détecté :
Problème : requêtes conflictuelles
- le paquet ffmpeg-5.0.2-1.fc36.x86_64 nécessite ffmpeg-libs(x86-64) = 5.0.2-1.fc36, mais aucun fournisseur ne peut être installé
- le paquet ffmpeg-5.0.1-3.fc36.x86_64 nécessite ffmpeg-libs(x86-64) = 5.0.1-3.fc36, mais aucun fournisseur ne peut être installé
- le paquet ffmpeg-libs-5.0.2-1.fc36.x86_64 est en conflit avec libavcodec-free fourni par libavcodec-free-5.0.2-1.fc36.x86_64
- le paquet ffmpeg-libs-5.0.1-3.fc36.x86_64 est en conflit avec libavcodec-free fourni par libavcodec-free-5.0.2-1.fc36.x86_64
(sorry my config is in French, it basically says that ffmpeg-libs packages are conflicting with libavcodec-free).
One friend of mine recently told me that I could uninstall ffmpeg, do the upgrade, and then reinstall ffmpeg afterwards; I did the first two steps but however whenever I try to reinstall ffmpeg I get the exact same error.
Is there a way to fix that or have a workaround? I can’t watch any stream or video through firefox anywhere but on Youtube anymore, and I think this might be the cause.
I tried installing ffmpeg-free instead but this doesn’t solve that issue with Firefox. I also tried using a flatpak-installed Firefox but I get the same problem.
I considered upgrading to Fedora 37 kinoite but I run into another issue if I try to rebase, although I would probably make another topic regarding that one since I have absolutely no clue if it would solve anything and I would like to keep the focus on one issue at once. That said please tell me if rebasing would actually be a good idea.
The libraries provided by ffmpeg -lib is a more complete version than the ones from libavcodec-free. There is also a ffmpeg-free package which is a crippled version of ffmpeg.
Okay so I tried that, installing libavcodec-free returns that it’s already provided by libavcodec-free-5.0.2-1.fc36.x86_64 but I can add it as an inactive request, which I did, but it does not solve any of my issues.
Also as I stated in my post, I already have installed ffmpeg-freeinstead, but it doesn’t solve my issue regarding Firefox not decoding videos.
thanks for the answers, although I should specify I’m using Fedora 36 Kinoite, which is an OSTree system that doesn’t use dnf but rpm-ostree instead with different options. I’m trying to find alternatives to your suggestions but i got nothing working so far.
The default installed packages are ffmpeg-free and libavcodec-free.
You should be able to run the rpm-ostree commands to install & enable the rpmfusion-nonfree and rpmfusion-free repos, then run the commands to swap out ffmpeg-free and install ffmpeg, which also will pull in the libavcodec package needed there.
rpm-ostree would layer the packages so the ones from rpmfusion would be the active packages.
Yes, I already have the rpmfusion-nonfree and rpmfusion-free repos enabled since the begining, I already removed ffmpeg-free but to no change. In fact, I had ffmpeg (the full one) installed before as a layered package, but as I said it had the same conflict with the libavcodec-free library during the latest update so I uninstalled it before updating.
To be honest, I’m really considering just reinstalling Fedora from a live USB, since I also cannot rebase it to Fedora 37 Kinoite as it have an issue with the librtmp library when I try doing it.
That is why libavcodec-free should be removed and the package ffmpeg-libs will provide the full versions of this library. The word “free” here means stuff was removed so it could be distributed directly be Fedora.
error: Package/capability 'libavcodec-free' is not currently requested
Update: finally managed to rebase on Fedora 37 Kinoite, still have the same issue but with the fc37 packages of libavcodec-free, tried rpm-ostree override remove libavcodec-free-5.1.2-1.fc37.x86_64, and got met with:
Problème : le paquet libchromaprint-1.5.1-5.fc37.x86_64 nécessite libavcodec.so.59()(64bit), mais aucun fournisseur ne peut être installé
- le paquet libchromaprint-1.5.1-5.fc37.x86_64 nécessite libavcodec.so.59(LIBAVCODEC_59)(64bit), mais aucun fournisseur ne peut être installé
- requêtes conflictuelles
It seems that libchromaprint prevents me from actually remove libavcodec-free, so where should I go from there?
Okay so I found a workaround regarding Firefox, a friend recommended me to just install the Flathub version of Firefox which works fine regardless of weither ffmpeg is installed. I had to do a few tries, but just make sure to reboot after installing it and specifically launch this one through the installer so it doesn’t start the OS issued Firefox until you pin it properly to the task manager or set whatever shortcut you use to start Firefox.
This was p-much the main issue with ffmpeg not installing, idk if I should mark this as the solution as the initial problem isn’t solved but the workaround is effective.
That indicates you should remove the libavutil-free and libavcodec-free packages (and possibly libavformat-free) that seem installed by fedora to allow ffmpeg to install the needed libraries for ffmpeg.
These type conflicts seem generated by fedora choosing to provide ffmpeg-free and supporting libraries that are all modified to remove the restricted codecs fedora is not allowed to distribute.
rpm-ostree override remove libavutil-free libavformat-free
Checking out tree d6b56fa... done
Resolving dependencies... done
error: Could not depsolve transaction; 2 problems detected:
Problem 1: package kpipewire-5.26.4-1.fc37.x86_64 requires libavformat.so.59()(64bit), but none of the providers can be installed
- package kpipewire-5.26.4-1.fc37.x86_64 requires libavformat.so.59(LIBAVFORMAT_59)(64bit), but none of the providers can be installed
- conflicting requests
Problem 2: package libswscale-free-5.1.2-1.fc37.x86_64 requires libavutil.so.57()(64bit), but none of the providers can be installed
- package libswscale-free-5.1.2-1.fc37.x86_64 requires libavutil.so.57(LIBAVUTIL_57)(64bit), but none of the providers can be installed
- package libswscale-free-5.1.2-1.fc37.x86_64 requires libavutil-free(x86-64) = 5.1.2-1.fc37, but none of the providers can be installed
- conflicting requests
Note that I have installed libavcodec-freeworld in kinoite. Which fixes Firefox codec issue. But I am still unable to install ffmpegthumbs which I need to preview dolphin video thumbnail. Any solution is appreciated.