On Monday, 08 November 2021 at 10:12, Andreas Schneider wrote:
Hi,
there are several packages in the distribution which require FFMPEG (libavformat, libavcodec, etc.), one of them being chromium. The package could be created in a way that you can easily replace it with a version from rpmfusion to get to the full encoder/decoder set including H264 etc.
This is working fine with openSUSE and packages from Packman.
https://build.opensuse.org/package/show/multimedia:libs/ffmpeg-4 https://pmbs.links2linux.org/package/show/Essentials/A_tw-ffmpeg
The Packman version always has a higher release version than the one in the distribution.
I'm interested in this, as I try to package electron for Fedora. The big problem is the included ffmpeg. With openSUSE I can just use the system ffmpeg, with Fedora I have to do some source code voodoo which I really would like to avoid.
Maintaining such package would require keeping watch for any new files you'd need to include and going through legal review each time you do.
IMO it's much less work to just maintain everything that depends on FFmpeg in RPM Fusion.
If you're determined, however, you could start with what Chromium does: https://src.fedoraproject.org/rpms/chromium/blob/rawhide/f/clean_ffmpeg.sh
Feel free to flag me for package review. I one of the maintainers of the ffmpeg package in RPM Fusion.
Regards, Dominik