Stable: 2.5.2
Development: 2.6-alpha3
As verified by another person in the following thread:
http://forums.gentoo.org/viewtopic-p-3763313.html#3763313
the Gentoo ebuild for moc does not appear to build a codec for aac even when the proper use flags are set. I will copy the thread below for convenience:
I emerged moc yesterday and have been loving except for a couple of problems.
My latest is that it won't play m4a files. Here is the configuration:
I put a bunch of goodies in make.conf:
tropic ~ # grep USE /etc/make.conf
USE="fortran g77 apache2 php alsa mplayer ffmpeg vorbis mad aac mp3 flac moc"
I installed ffmpeg:
tropic ~ # eix -I ffmpeg
* media-video/ffmpeg
Available versions: 0.4.9_p20050226-r3 0.4.9_p20051216 ~0.4.9_p20060302 *0.4.9_p20060517 ~0.4.9_p20060530 [M]0.4.9_p20060816
Installed: 0.4.9_p20060530
Homepage: http://ffmpeg.sourceforge.net/
Description: Complete solution to record, convert and stream audio and video. Includes libavcodec.
Found 1 matches
Then I installed moc, and logged the output:
(ENTIRE emerge_moc.log file is available at: http://cer.ucsd.edu/~james/moc.log)
tropic ~ # grep ffmpeg emerge_moc.log (plus a few lines for clarity.)
checking for ffmpeg-config... no
config.status: creating decoder_plugins/ffmpeg/Makefile
Decoder plugins: mp3 vorbis flac ffmpeg speex
Making all in ffmpeg
make[3]: Entering directory `/var/tmp/portage/moc-2.4.1/work/moc-2.4.1/decoder_plugins/ffmpeg'
if /bin/sh ../../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/ffmpeg -I../.. -pthread -O3 -march=pentium3 -pipe -Wall -W -I/usr/include/alsa -MT libffmpeg_decoder_la-ffmpeg.lo -MD -MP -MF ".deps/libffmpeg_decoder_la-ffmpeg.Tpo" -c -o libffmpeg_decoder_la-ffmpeg.lo `test -f 'ffmpeg.c' || echo './'`ffmpeg.c; \
then mv -f ".deps/libffmpeg_decoder_la-ffmpeg.Tpo" ".deps/libffmpeg_decoder_la-ffmpeg.Plo"; else rm -f ".deps/libffmpeg_decoder_la-ffmpeg.Tpo"; exit 1; fi
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/ffmpeg -I../.. -pthread -O3 -march=pentium3 -pipe -Wall -W -I/usr/include/alsa -MT libffmpeg_decoder_la-ffmpeg.lo -MD -MP -MF .deps/libffmpeg_decoder_la-ffmpeg.Tpo -c ffmpeg.c -fPIC -DPIC -o .libs/libffmpeg_decoder_la-ffmpeg.o
ffmpeg.c: In function 'ffmpeg_seek':
ffmpeg.c:177: warning: unused variable 'err'
ffmpeg.c:176: warning: unused variable 'data'
ffmpeg.c:174: warning: unused parameter 'sec'
/bin/sh ../../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc -pthread -O3 -march=pentium3 -pipe -Wall -W -I/usr/include/alsa -export-dynamic -o libffmpeg_decoder.la -rpath /usr/lib/moc/decoder_plugins -module -avoid-version libffmpeg_decoder_la-ffmpeg.lo -lavformat -lavcodec -lz -ldl -lvorbisenc -lavutil -lvorbis -lm -logg -lm
i686-pc-linux-gnu-gcc -shared .libs/libffmpeg_decoder_la-ffmpeg.o -pthread -lavformat -lavcodec -lz -ldl /usr/lib/libvorbisenc.so -lavutil /usr/lib/libvorbis.so /usr/lib/libogg.so -lm -march=pentium3 -Wl,-soname -Wl,libffmpeg_decoder.so -o .libs/libffmpeg_decoder.so
creating libffmpeg_decoder.la
(cd .libs && rm -f libffmpeg_decoder.la && ln -s ../libffmpeg_decoder.la libffmpeg_decoder.la)
make[3]: Leaving directory `/var/tmp/portage/moc-2.4.1/work/moc-2.4.1/decoder_plugins/ffmpeg'
Making install in ffmpeg
make[2]: Entering directory `/var/tmp/portage/moc-2.4.1/work/moc-2.4.1/decoder_plugins/ffmpeg'
make[3]: Entering directory `/var/tmp/portage/moc-2.4.1/work/moc-2.4.1/decoder_plugins/ffmpeg'
/bin/sh ../../libtool --mode=install /bin/install -c 'libffmpeg_decoder.la' '/var/tmp/portage/moc-2.4.1/image//usr/lib/moc/decoder_plugins/libffmpeg_decoder.la'
/bin/install -c .libs/libffmpeg_decoder.so /var/tmp/portage/moc-2.4.1/image//usr/lib/moc/decoder_plugins/libffmpeg_decoder.so
/bin/install -c .libs/libffmpeg_decoder.lai /var/tmp/portage/moc-2.4.1/image//usr/lib/moc/decoder_plugins/libffmpeg_decoder.la
make[3]: Leaving directory `/var/tmp/portage/moc-2.4.1/work/moc-2.4.1/decoder_plugins/ffmpeg'
make[2]: Leaving directory `/var/tmp/portage/moc-2.4.1/work/moc-2.4.1/decoder_plugins/ffmpeg'
strip: i686-pc-linux-gnu-strip --strip-unneeded
usr/lib/moc/decoder_plugins/libffmpeg_decoder.so
>>> Merging media-sound/moc-2.4.1 to /
>>> /usr/lib/moc/decoder_plugins/libffmpeg_decoder.la
>>> /usr/lib/moc/decoder_plugins/libffmpeg_decoder.so
>>> Safely unmerging already-installed instance...
--- !mtime obj /usr/lib/moc/decoder_plugins/libffmpeg_decoder.so
--- !mtime obj /usr/lib/moc/decoder_plugins/libffmpeg_decoder.la
checking for ffmpeg-config... no
bugged me at first but apparently moc is supposed to be able to find ffmpeg even without ffmpeg-config.
strip: i686-pc-linux-gnu-strip --strip-unneeded
usr/lib/moc/decoder_plugins/libffmpeg_decoder.so
What does this mean? Does it think that ffmpeg is unneeded? All the other codecs (mp3,vorbis,etc) were under this strip heading also, and they play so this doesn't appear to be a problem, whatever it means.
And after all of this mumbo jumbo, it still says "No codec for this file." when I try to play m4a's in moc.
Ideas?
hiben
Wed, 2006-12-06 11:00
Permalink
I'm using moc with gentoo
I'm using moc with gentoo myself but I think I'm not into m4a's...
If you could point me to some sample-files (legal only please :) ) I would like to take a look at this.
To the '--strip-unneeded' : This won't affect the function of the decoder (and the decoder has been built).
anjames
Thu, 2006-12-07 20:10
Permalink
solved
I fixed it by adding:
then remerging ffmpeg and moc with
emerge -Da ffmpeg moc
hiben
Thu, 2006-12-07 11:42
Permalink
I just checked some M4As,
I just checked some M4As, works fine for me...
Thats my ffmpeg-setup :