Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Playing m4a files in moc: No codec for this file. [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
anjames
Tux's lil' helper
Tux's lil' helper


Joined: 30 Jul 2004
Posts: 111
Location: San Diego, CA

PostPosted: Thu Nov 30, 2006 7:56 pm    Post subject: Playing m4a files in moc: No codec for this file. [solved] Reply with quote

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:
Code:
tropic ~ # grep USE /etc/make.conf
USE="fortran g77 apache2 php alsa mplayer faad faad2 ffmpeg vorbis mad mp3 flac moc"


I installed ffmpeg:
Code:
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:
Code:
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


Code:
checking for ffmpeg-config... no

bugged me at first but apparently moc is supposed to be able to find ffmpeg even without ffmpeg-config.

Code:
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.

Similar deal when playing with mplayer:
Code:
Requested audio codec family [faad] (afm=faad) not available.


Ideas?
_________________
Alex James

"Physics is like sex: sure there are applications but that's not why we do it." --Richard Feynman


Last edited by anjames on Thu Dec 07, 2006 8:09 pm; edited 1 time in total
Back to top
View user's profile Send private message
anjames
Tux's lil' helper
Tux's lil' helper


Joined: 30 Jul 2004
Posts: 111
Location: San Diego, CA

PostPosted: Thu Nov 30, 2006 8:55 pm    Post subject: Reply with quote

update: added USE=aac to make.conf and recompiled both moc and mplayer.

moc still says no codec

mplayer works now. But mplayer doesn't have playlists, and other nice moc options, so I still want to fix moc.

Blimey!
_________________
Alex James

"Physics is like sex: sure there are applications but that's not why we do it." --Richard Feynman
Back to top
View user's profile Send private message
madisonicus
Veteran
Veteran


Joined: 20 Sep 2006
Posts: 1130

PostPosted: Thu Nov 30, 2006 9:44 pm    Post subject: Reply with quote

anjames wrote:
tropic ~ # grep USE /etc/make.conf
USE="fortran g77 apache2 php alsa mplayer faad faad2 ffmpeg vorbis mad mp3 flac moc"


First thing I see is that neither faad nor faad2 are USE flags. (Available USE flags: http://www.gentoo-portage.com/USE) They are packages, however.

Also, according to the highly-recommended gentoo-wiki, at least, you'll need to emerge faad2 in order to play m4a files: http://gentoo-wiki.com/M4A . It's very likely, though I don't know from personal experience, that moc is just a front end to a player like faad2.

HTH,
m
_________________
Please add [SOLVED] to your message title if you feel that your question has been answered.
------
Intel Q9300 Core2 Quad * Gigabyte GA-EP35C-DS3R
Samsung x360
AMD64 x2 4200+ * TF7050-M2 * HTPC
ZOTAC ION A-U Mini-ITX * HTPC
Back to top
View user's profile Send private message
anjames
Tux's lil' helper
Tux's lil' helper


Joined: 30 Jul 2004
Posts: 111
Location: San Diego, CA

PostPosted: Thu Nov 30, 2006 10:18 pm    Post subject: Reply with quote

Ooh, touche...

So I pulled those two use flags, and I had previously installed faad. Please pardon my neglect of mentioning this earlier.

Still no progress though. Hmm....
_________________
Alex James

"Physics is like sex: sure there are applications but that's not why we do it." --Richard Feynman
Back to top
View user's profile Send private message
madisonicus
Veteran
Veteran


Joined: 20 Sep 2006
Posts: 1130

PostPosted: Thu Nov 30, 2006 11:53 pm    Post subject: Reply with quote

Hmmm...Having tried both 2.4.0 and 2.4.1 (the mp4-enabled versions) with just about every set of useflags, I can't get mocp 2.4.1 to play an aac mp4 file either. They play fine on everything else though.

Might be worth a post to the website: http://moc.daper.net. The dev seems pretty cool. Might also be worth filing a bug about, since the website claims aac support. Could be something wonky with the ebuild. There's also an SVN version....

Would like to hear if you figure this out: playing around with moc, I discovered that I actually like it quite a bit. 8)

-m
_________________
Please add [SOLVED] to your message title if you feel that your question has been answered.
------
Intel Q9300 Core2 Quad * Gigabyte GA-EP35C-DS3R
Samsung x360
AMD64 x2 4200+ * TF7050-M2 * HTPC
ZOTAC ION A-U Mini-ITX * HTPC
Back to top
View user's profile Send private message
anjames
Tux's lil' helper
Tux's lil' helper


Joined: 30 Jul 2004
Posts: 111
Location: San Diego, CA

PostPosted: Tue Dec 05, 2006 5:03 pm    Post subject: Reply with quote

Will do. I'm waiting for the password email from their forum now.
_________________
Alex James

"Physics is like sex: sure there are applications but that's not why we do it." --Richard Feynman
Back to top
View user's profile Send private message
anjames
Tux's lil' helper
Tux's lil' helper


Joined: 30 Jul 2004
Posts: 111
Location: San Diego, CA

PostPosted: Thu Dec 07, 2006 8:08 pm    Post subject: Reply with quote

I fixed it by adding:

Code:
user@host ~ $ grep moc /etc/portage/package.keywords
media-sound/moc aac a52 flac ffmpeg mad oss vorbis alsa speex libsamplerate curl sndfile musepack


then remerging ffmpeg and moc with
Code:
emerge -Da ffmpeg moc

_________________
Alex James

"Physics is like sex: sure there are applications but that's not why we do it." --Richard Feynman
Back to top
View user's profile Send private message
madisonicus
Veteran
Veteran


Joined: 20 Sep 2006
Posts: 1130

PostPosted: Thu Dec 07, 2006 8:32 pm    Post subject: Reply with quote

Fixed it for me too! Thanks.

Suggest adding [SOLVED] to the title to help folks who have a similar problem find a solution.

-m
_________________
Please add [SOLVED] to your message title if you feel that your question has been answered.
------
Intel Q9300 Core2 Quad * Gigabyte GA-EP35C-DS3R
Samsung x360
AMD64 x2 4200+ * TF7050-M2 * HTPC
ZOTAC ION A-U Mini-ITX * HTPC
Back to top
View user's profile Send private message
anjames
Tux's lil' helper
Tux's lil' helper


Joined: 30 Jul 2004
Posts: 111
Location: San Diego, CA

PostPosted: Thu Dec 07, 2006 8:52 pm    Post subject: Reply with quote

hehe, one step ahead of you.
_________________
Alex James

"Physics is like sex: sure there are applications but that's not why we do it." --Richard Feynman
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum