Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 244524

Summary: media-video/{mplayer,ffmpeg} use different USE flags for amr support (and both are undocumented)
Product: Gentoo Linux Reporter: Markus Wernig <public>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Status: RESOLVED INVALID    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Markus Wernig 2008-10-26 21:29:28 UTC
When building ffmpeg and mplayer with amr support, the USE flag differs.
It seems to be "amr" for ffmpeg, which then links in both amrnb and amrwb libraries, while it apparently is "amrnb" and "amrwb" for mplayer.
Neither of the three are mentioned in /usr/portage/profiles/use.desc
All three are needed, though, to fully use mplayer/mencoder on video files with amr audio streams (as produced by a variety of PDAs, Cell phones etc.).

The USE flags should be unified and - at least - documented.

Reproducible: Always

Steps to Reproduce:
1. Have no amr-specific USE flag in make.conf. Run "emerge ffmpeg mplayer".
ldd /usr/bin/mplayer | grep -i amr
ldd /usr/lib/libavcodec.so | grep -i amr
both return empty.

2. Add USE flag "amr" to make.conf. Run "emerge ffmpeg mplayer".
ldd /usr/bin/mplayer | grep -i amr
returns empty
ldd /usr/lib/libavcodec.so | grep -i amr
returns:
        libamrnb.so.3 => /usr/lib/libamrnb.so.3 (0xb773f000)
        libamrwb.so.3 => /usr/lib/libamrwb.so.3 (0xb76f7000)

3. Have USE flags "amr amrnb amrwb" in make.conf. Run "emerge ffmpeg mplayer".
ldd /usr/bin/mplayer | grep -i amr
and
ldd /usr/lib/libavcodec.so | grep -i amr
both return:
        libamrnb.so.3 => /usr/lib/libamrnb.so.3 (0xb773f000)
        libamrwb.so.3 => /usr/lib/libamrwb.so.3 (0xb76f7000)
Comment 1 Ben de Groot (RETIRED) gentoo-dev 2008-10-27 00:35:48 UTC
They are documented in profiles/use.local.desc as well as each packages metadata.xml. And you don't actually need amr support in ffmpeg to use mplayer or mencoder (the mplayer package doesn't depend on ffmpeg).