Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 952971 - media-video/ffmpeg-6.1.2-r1 appears to have dropped support for mp3 encoder (tl;dr need to enable USE=lame now)
Summary: media-video/ffmpeg-6.1.2-r1 appears to have dropped support for mp3 encoder (...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Ionen Wolkens
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-31 19:15 UTC by Nick Soveiko
Modified: 2025-04-01 02:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (einfo.txt,7.32 KB, text/plain)
2025-03-31 19:16 UTC, Nick Soveiko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Soveiko 2025-03-31 19:15:42 UTC
my scripts for transcoding into mp3 format have stopped working after upgrade from media-video/ffmpeg-6.1.2 to media-video/ffmpeg-6.1.2-r1. specific error message is "Encoder not found".

there was no change in USE flags, nor any warnings from emerge.

Reproducible: Always

Steps to Reproduce:
1. $ emerge =media-video/ffmpeg-6.1.2-r1
2. $ ffmpeg -loglevel error -i test.flac test.mp3

Actual Results:  
[aost#0:0 @ 0x55cd64053a80] Automatic encoder selection failed Default encoder for format mp3 (codec mp3) is probably disabled. Please choose an encoder manually.
[aost#0:0 @ 0x55cd64053a80] Error selecting an encoder
Error opening output file test.mp3.
Error opening output files: Encoder not found



Expected Results:  
successfully convert test.flac to test.mp3

$ ffmpeg -encoders |grep -i mp3
ffmpeg version 6.1.2 Copyright (c) 2000-2024 the FFmpeg developers
  built with gcc 14 (Gentoo 14.2.1_p20241221 p7)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --docdir=/usr/share/doc/ffmpeg-6.1.2-r1/html --ar=x86_64-pc-linux-gnu-ar --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --nm=x86_64-pc-linux-gnu-nm --pkg-config=x86_64-pc-linux-gnu-pkg-config --ranlib=x86_64-pc-linux-gnu-ranlib --disable-stripping --disable-debug --disable-optimizations --optflags=' ' --enable-iconv --enable-pic --enable-shared --disable-static --enable-manpages --disable-podpages --disable-txtpages --disable-decklink --disable-libaribcaption --disable-libdavs2 --disable-libklvanc --disable-libmysofa --disable-libopenvino --disable-libshine --disable-libtls --disable-libuavs3d --disable-libxavs --disable-libxavs2 --disable-pocketsphinx --disable-rkmpp --disable-vapoursynth --disable-cuda-nvcc --disable-libcelt --disable-libglslang --disable-liblensfun --disable-libmfx --disable-libopencv --disable-librist --disable-libtensorflow --disable-mbedtls --disable-mmal --disable-omx --disable-omx-rpi --disable-gcrypt --disable-lzma --disable-libpulse --enable-gpl --disable-ffnvcodec --enable-bzlib --disable-libvpl --enable-opencl --disable-libsrt --disable-libaom --disable-libvpx --disable-libzvbi --disable-libsmbclient --disable-libgsm --enable-libxvid --disable-libvidstab --disable-librav1e --disable-vdpau --enable-version3 --disable-libjxl --disable-librabbitmq --disable-libopenh264 --disable-libjack --disable-libflite --disable-libsnappy --disable-libtwolame --disable-libsvtav1 --disable-libmp3lame --disable-cuvid --disable-libopenmpt --disable-libplacebo --disable-libfribidi --disable-libfdk-aac --disable-libbs2b --disable-appkit --disable-libspeex --enable-postproc --enable-libxml2 --disable-libshaderc --disable-libzimg --enable-alsa --enable-libfontconfig --enable-libdav1d --disable-libvmaf --enable-sdl2 --disable-nvdec --disable-cuda-llvm --disable-libaribb24 --disable-libnpp --enable-libdrm --enable-libxcb-shm --disable-libkvazaar --disable-gnutls --disable-nvenc --disable-amf --enable-libxcb --disable-libcodec2 --enable-lcms2 --disable-libopencore-amrnb --disable-libtesseract --disable-libvo-amrwbenc --disable-libopus --disable-gmp --enable-vulkan --disable-libopenjpeg --enable-vaapi --enable-libx264 --enable-libx265 --disable-librtmp --enable-libwebp --enable-zlib --enable-libxcb-shape --disable-libsoxr --disable-librubberband --disable-libzmq --disable-htmlpages --enable-libv4l2 --disable-libssh --disable-libtheora --disable-libmodplug --enable-opengl --enable-libfreetype --disable-openal --enable-librsvg --enable-libass --disable-libgme --disable-chromaprint --disable-ladspa --disable-libiec61883 --disable-libilbc --disable-libcdio --disable-frei0r --disable-sndio --disable-libcaca --enable-libxcb-xfixes --disable-libbluray --disable-libopencore-amrwb --disable-libdc1394 --enable-xlib --enable-openssl --disable-lv2 --enable-libvorbis --enable-libharfbuzz
  libavutil      58. 29.100 / 58. 29.100
  libavcodec     60. 31.102 / 60. 31.102
  libavformat    60. 16.100 / 60. 16.100
  libavdevice    60.  3.100 / 60.  3.100
  libavfilter     9. 12.100 /  9. 12.100
  libswscale      7.  5.100 /  7.  5.100
  libswresample   4. 12.100 /  4. 12.100
  libpostproc    57.  3.100 / 57.  3.100
Comment 1 Nick Soveiko 2025-03-31 19:16:45 UTC
Created attachment 923362 [details]
emerge --info
Comment 2 Paul Zander 2025-03-31 19:22:02 UTC
Flag was renamed from mp3 to lame in https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00eddc65d7bd9ecaa9973fd46e544bbbfe5c9479 and then trickled down to 6.*.

See --disable-libmp3lame in your config flags.
Comment 3 Ionen Wolkens gentoo-dev 2025-03-31 19:28:41 UTC
Did worry that it'd affect a few users given it came without warning, but yes, just enable USE=lame instead as noted in comment #2 (sorry for the inconvenience).

The USE was often confused as being required for playback, thus the renaming alongside other refactoring.
Comment 4 Nick Soveiko 2025-03-31 19:30:53 UTC
(In reply to Paul Zander from comment #2)
> Flag was renamed from mp3 to lame in
> https://gitweb.gentoo.org/repo/gentoo.git/commit/
> ?id=00eddc65d7bd9ecaa9973fd46e544bbbfe5c9479 and then trickled down to 6.*.
> 
> See --disable-libmp3lame in your config flags.

a ewarn about it would be highly appropriate and appreciated
Comment 5 Ionen Wolkens gentoo-dev 2025-03-31 19:42:06 UTC
(In reply to Nick Soveiko from comment #4)
> (In reply to Paul Zander from comment #2)
> > Flag was renamed from mp3 to lame in
> > https://gitweb.gentoo.org/repo/gentoo.git/commit/
> > ?id=00eddc65d7bd9ecaa9973fd46e544bbbfe5c9479 and then trickled down to 6.*.
> > 
> > See --disable-libmp3lame in your config flags.
> 
> a ewarn about it would be highly appropriate and appreciated
I'd kinda rather not at this point, need to bother with special logic to detect whether USE=mp3 was set before in pkg_preinst so that not everyone will see it for nothing -- and it won't be shown for anyone that has already upgraded (been a while for ~testing, albeit arguably only 4 days for stable).
Comment 6 Ionen Wolkens gentoo-dev 2025-03-31 19:47:07 UTC
(maybe could add it anyway, albeit only tomorrow, can't right now)
Comment 7 Nick Soveiko 2025-03-31 19:50:41 UTC
(In reply to Ionen Wolkens from comment #6)
> (maybe could add it anyway, albeit only tomorrow, can't right now)

thank you. and please do not forget to update USE flag description, it still says "prefer" and not "required".
Comment 8 Ionen Wolkens gentoo-dev 2025-04-01 01:56:39 UTC
(In reply to Nick Soveiko from comment #7)
> (In reply to Ionen Wolkens from comment #6)
> > (maybe could add it anyway, albeit only tomorrow, can't right now)
> 
> thank you. and please do not forget to update USE flag description, it still
> says "prefer" and not "required".
That's the global USE description (ffmpeg does not have its own), honestly I don't see why it mentions prefers (it shouldn't say required either, it should be something more neutral).

Technically an alternative exists, but it's not packaged (libshine), so it could've made sense in that context.
Comment 9 Larry the Git Cow gentoo-dev 2025-04-01 02:30:03 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=669bc67fee14ad45ffae318e098cc01d7421cf17

commit 669bc67fee14ad45ffae318e098cc01d7421cf17
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2025-04-01 02:13:11 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2025-04-01 02:27:06 +0000

    media-video/ffmpeg: warn about USE mp3->lame renaming
    
    Users that have already upgraded will not see this, but still better
    late than never. Use pkg_pretend given fits better and old ffmpeg is
    still installed there to check.
    
    Closes: https://bugs.gentoo.org/952971
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 media-video/ffmpeg/ffmpeg-4.4.5-r2.ebuild | 9 +++++++++
 media-video/ffmpeg/ffmpeg-6.1.2-r1.ebuild | 9 +++++++++
 media-video/ffmpeg/ffmpeg-7.1.1.ebuild    | 9 +++++++++
 media-video/ffmpeg/ffmpeg-9999.ebuild     | 9 +++++++++
 4 files changed, 36 insertions(+)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff6b85a7f297dc06a6c899f99b8346e9b10e6869

commit ff6b85a7f297dc06a6c899f99b8346e9b10e6869
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2025-04-01 02:00:37 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2025-04-01 02:27:05 +0000

    profiles/use.desc: reword USE=lame description
    
    "Prefer" implies that there is an alternative, but most packages
    do not have one, and it's not for the global use.desc to know
    whether it's required for support or just a preference on each
    package. So use something more neutral.
    
    Bug: https://bugs.gentoo.org/952971
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 profiles/use.desc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)