Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 244524 - media-video/{mplayer,ffmpeg} use different USE flags for amr support (and both are undocumented)
Summary: media-video/{mplayer,ffmpeg} use different USE flags for amr support (and bot...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-26 21:29 UTC by Markus Wernig
Modified: 2008-10-27 00:35 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).