> or = ffmpeg-4.1.3 ebuilds show WARNING: Building with deprecated library libavresample in configure phase. # Mandatory configuration myconf=( --enable-avfilter --enable-avresample --disable-stripping https://github.com/FFmpeg/FFmpeg/commit/c29038f3041a4080342b2e333c1967d136749c0f "lavr: deprecate the entire library Deprecate the entire library. Merged years ago to provide compatibility with Libav, it remained unmaintained by the FFmpeg project and duplicated functionality provided by libswresample. In order to improve consistency and reduce attack surface, as well as to ease burden on maintainers, it has been deprecated. Users of this library are asked to migrate to libswresample, which, as well as providing more functionality, is faster and has higher accuracy." Please remove --enable-avresample (defaults to "no") or add an USE flag for it. libswresample is built by default. If there are any packages still depending on lavr then we can make a tracker bug of this after the change.
do we have any package still needing this ?
(In reply to Alexis Ballier from comment #1) > do we have any package still needing this ? media-video/transcode-1.1.7-r4 https://bugs.gentoo.org/show_bug.cgi?id=722296 was the only one that needed a patch when I rebuilt the installed packages depending on ffmpeg. Let's find it out.
After some months of testing with disabled avresample and with now fixed transcode bug I see no problems on my system. Please go ahead and remove the config option setting.
alsa-plugins still seems to use it at least
(In reply to Alexis Ballier from comment #4) > alsa-plugins still seems to use it at least But configure of media-plugins/alsa-plugins-1.2.2 succeeds even if it does not find libavresample. /var/tmp/portage/media-plugins/alsa-plugins-1.2.2/work/alsa-plugins-1.2.2/configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/alsa-plugins-1.2.2 --htmldir=/usr/share/doc/alsa-plugins-1.2.2/html --with-sysroot=/ --libdir=/usr/lib64 --with-alsalconfdir=/etc/alsa/conf.d --with-speex=lib --disable-arcamav --enable-libav --enable-jack --enable-samplerate --enable-mix --disable-oss --enable-pulseaudio --enable-speexdsp --enable-usbstream checking for samplerate... yes checking for libavcodec libavutil libavresample... no Plugin directory: /usr/lib64/alsa-lib ALSA_CFLAGS: ALSA_LIBS: -lasound JACK plugin: yes JACK_CFLAGS: JACK_LIBS: -ljack Pulseaudio plugin: yes pulseaudio_CFLAGS: -D_REENTRANT pulseaudio_LIBS: -lpulse Samplerate plugin: yes samplerate_CFLAGS: samplerate_LIBS: -lsamplerate Maemo plugin: no Using Osso resource manager: no Libav A52 plugin: Libav rate plugin: Speex rate plugin: lib Speex preprocess plugin: yes AAF plugin: no >>> Source configured. And no problems to emerge it: ================================================================= Package Settings ================================================================= media-plugins/alsa-plugins-1.2.2::gentoo was built with the following: USE="ffmpeg jack libsamplerate mix pulseaudio speex usb_stream -arcam_av -debug -oss" ABI_X86="32 (64) (-x32)" Upstream issue: https://github.com/alsa-project/alsa-plugins/issues/7 No commits to alsa-plugins git since 19. Feb. 2020
(In reply to jospezial from comment #5) > (In reply to Alexis Ballier from comment #4) > > alsa-plugins still seems to use it at least > > But configure of media-plugins/alsa-plugins-1.2.2 succeeds even if it does > not find libavresample. > well, yeah, because it disables the feature, which is even worse since it's a silent fail
media-video/webcamoid[ffmpeg] uses it as well.
If there is any interest I can develop a patch series to put libavresample under a USE flag and make alsa-plugins[ffmpeg] and webcamoid[ffmpeg] dependent on it.
removed from ffmpeg git master https://github.com/FFmpeg/FFmpeg/commit/420cedd49745b284c35d97b936b71ff79b43bdf7
(In reply to jospezial from comment #9) > removed from ffmpeg git master > https://github.com/FFmpeg/FFmpeg/commit/ > 420cedd49745b284c35d97b936b71ff79b43bdf7 https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b347f3e83ffc3405cdac5524c07acb20bee906f9 removed from media-video/ffmpeg-9999.ebuild
ffmpeg-4.4.2.ebuild and ffmpeg-4.2.4-r2.ebuild are the last ebuilds with --enable-avresample The 2 PRs in gentoo about avresample are closed now. ffmpeg-5.0.1.ebuild and ffmpeg-9999.ebuild don't have it anymore. Let's keep this bug open as reminder for people who use the old versions and to avoid duplicates. Can be closed when the 2 affected versions are removed from tree.
Just a note, also media-libs/libopenshot-0.3.2-r1 searched for it but as it also finds libswresample as mentioend in this thread it is probably working as expected against media-video/ffmpeg-6.1.1-r1: -- Checking for module 'libavcodec' -- Found libavcodec, version 60.31.102 -- Checking for module 'libavformat' -- Found libavformat, version 60.16.100 -- Checking for module 'libavutil' -- Found libavutil, version 58.29.100 -- Checking for module 'libswscale' -- Found libswscale, version 7.5.100 -- Checking for module 'libswresample' -- Found libswresample, version 4.12.100 -- Checking for module 'libavresample' -- Package 'libavresample', required by 'virtual:world', not found -- Found FFmpeg: /usr/lib64/libavcodec.so;/usr/lib64/libavformat.so;/usr/lib64/libavutil.so;/usr/lib64/libswscale.so;/usr/lib64/libswresample.so (found version "6.1.1") found components: avcodec avformat avutil swscale swresample missing components: avresample
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3e1a7b730cfacf5d3ef666583747526a17a2d65 commit c3e1a7b730cfacf5d3ef666583747526a17a2d65 Author: Ionen Wolkens <ionen@gentoo.org> AuthorDate: 2025-03-09 13:24:25 +0000 Commit: Ionen Wolkens <ionen@gentoo.org> CommitDate: 2025-03-11 09:03:18 +0000 media-video/ffmpeg: add 4.4.5-r2 based on 6.1.2-r1's ebuild Similar bare losing a few options, albeit given this version is for compat and normal users do not need the full set of features (they should use ffmpeg-6+), skip a few inconvenient IUSE/options: - chromium: needs a different patch/logic it seems - glslang: ffmpeg-4 did not have shaderc support, meaning that this is the only alternative, but this breaks too easily - mmal: was formerly kept due to lack of IUSE=soc, but would rather not keep the raspberrypi-userland dependency forever - npp: not tested, and doubt anyone would want this on anything but latest ffmpeg (needs nvidia-cuda-toolkit) - qsv: intelmedia-sdk is dead, and this version did not support libvpl - amf: likely broken in this old version wrt bug #910271, assuming newer 4.4.5 did not fix it, but even if it did still little reason to support things like qsv/amf/nvenc as they are being left behind in old versions - soc: plus all its logic, never had a patch for this version anyway - vmaf: seems broken with current libvmaf version wrt bug #931137, and old libvmaf has some simd-related issues building (we *could* patch ffmpeg but at this point I feel little reason to for ffmpeg-4). - --enable-avresample (bug #722274): off by default, and gone in later versions, no need to keep it enabled still - --enable-lto: old version did not take =arg and, either way, keeping it on this older codebase with a lot of asm just seem like trouble More would likely fit that list, but not trying to overdo until something actually causes a problem. Would've wanted to drop USE=nvenc due to its dependency on old nv-codec-headers but rather mask it not to have to update revdeps that depend on nvenc over this. Hopefully not overlooked anything relevant, spent less time on this than ffmpeg-7 and "downgrading" an ebuild is awkward. Ultimately this version is going to be short lived, there is almost nothing left (that we package) that requires it. Closes: https://bugs.gentoo.org/722274 Closes: https://bugs.gentoo.org/910271 Closes: https://bugs.gentoo.org/931137 Signed-off-by: Ionen Wolkens <ionen@gentoo.org> media-video/ffmpeg/Manifest | 1 + media-video/ffmpeg/ffmpeg-4.4.5-r2.ebuild | 484 ++++++++++++++++++++++++++++++ 2 files changed, 485 insertions(+)