3GP audio support (amr_nb) is missing in MPlayer. Added yet another USE flag (as if they're isn't enough already ;), called '3gp'. Patch attached...
OK, bugs.gentoo.org is broken again & presently can't accept attachment submissions so here it is in text format: --- mplayer-1.0_pre7.ebuild.orig 2005-05-27 12:47:15.000000000 +0930 +++ mplayer-1.0_pre7.ebuild 2005-05-27 12:49:36.000000000 +0930 @@ -5,7 +5,7 @@ inherit eutils flag-o-matic kernel-mod RESTRICT="nostrip" -IUSE="3dfx 3dnow 3dnowext aac aalib alsa altivec arts bidi bl cpudetection +IUSE="3dfx 3dnow 3dnowext 3gp aac aalib alsa altivec arts bidi bl cpudetection custom-cflags debug dga divx4linux doc dts dvb cdparanoia directfb dvd dv dvdread edl encode esd fbcon gif ggi gtk i8x0 ipv6 jack joystick jpeg libcaca lirc live lzo mad matroska matrox mmx mmxext mythtv nas nls nvidia vorbis opengl @@ -24,7 +24,11 @@ mirror://mplayer/releases/fonts/font-arial-iso-8859-2.tar.bz2 mirror://mplayer/releases/fonts/font-arial-cp1250.tar.bz2 svga? ( http://mplayerhq.hu/~alex/svgalib_helper-${SVGV}-mplayer.tar.bz2 ) - gtk? ( mirror://mplayer/Skin/Blue-${BLUV}.tar.bz2 )" + gtk? ( mirror://mplayer/Skin/Blue-${BLUV}.tar.bz2 ) + 3gp? ( ftp://ftp.3gpp.org/specs/2005-03/Rel-5/26_series/26073-530.zip + ftp://ftp.3gpp.org/specs/2005-03/Rel-5/26_series/26104-540.zip + ftp://ftp.3gpp.org/specs/2005-03/Rel-5/26_series/26204-530.zip )" + # Only install Skin if GUI should be build (gtk as USE flag) DESCRIPTION="Media Player for Linux" @@ -149,6 +153,28 @@ cd ${S} + if use 3gp; then + unpack 26073-530.zip + unpack 26104-540.zip + unpack 26204-530.zip + cd libavcodec + mkdir amr + mkdir amr_float + mkdir amrwb_float + cd amr + unzip ${S}/26073-530_ANSI_C_source_code.zip > /dev/null + mv c-code/* ./ + cd ../amr_float + unzip ${S}/26104-540_ANSI_C_source_code.zip > /dev/null + mv c-code/* ./ + cd ../amrwb_float + unzip ${S}/26204-530_ANSI-C_source_code.zip > /dev/null + mv c-code/* ./ + cd ../../ + sed -e 's:-pedantic-errors -I. $(CFLAGS_$(MODE)) -D$(VAD):-I. $(CFLAGS_$(MODE)) -D$(VAD) -DMMS_IO:' \ + -i 'libavcodec/amr/makefile' || die "enable 3gp/amr sed failed" + fi + #adds mythtv support to mplayer use mythtv && epatch ${FILESDIR}/mplayer-mythtv.patch
Created attachment 63026 [details, diff] amr patch for mplayer-1.0_pre7.ebuild Works for me (on x86). Thanks! I try to attach the patch so people don't have to use "patch -l".
Can this be closed, as mplayer-1.0_pre8-r1 and mplayer-1.0_pre20060810 have amr-support.
Sorry