[MPlayer-users] No MP3 encoder in LAVC??

Giacomo Comes comes at naic.edu
Fri Nov 18 20:25:45 CET 2005


On Fri, Nov 18, 2005 at 12:14:00PM -0500, The Wanderer wrote:
> Giacomo Comes wrote:
> 
> >On Thu, Nov 17, 2005 at 10:25:08PM -0500, The Wanderer wrote:
> 
> >>configure.log does in fact report successful detection of
> >>libavcodec, so that isn't the problem. -ac ffmp3 works just fine
> >>for audio decoding, so there is some form of libavcodec-based MP3
> >>support in there. 'ffmpeg -formats' from a CVS updated pretty much
> >>the same time reports 'mp3' as one of the recognized codecs, and
> >>the same copy of ffmpeg is capable of encoding MP3 audio, so my
> >>system does have everything necessary for libavcodec to do MP3
> >>encoding.
> >>
> >>'mp3' is listed as one of the valid arguments to '-lavcopts acodec'
> >>in the man page; I've tried 'mp2', which is also listed and is the
> >>default, and that does not produce this problem.
> >>
> >>Any clue what's going on, or where I could look to find out more?
> >
> >libavcodec does not include a native mp3 encoder. It needs lame
> >installed. Do you have lame (or lame-devel) installed?
> 
> lame, yes, and liblame0, and for that matter toolame, though not
> apparently liblame-dev - but since I *can* use MP3 encoding in FFmpeg
> itself, and since '-oac mp3lame' works just fine, that doesn't appear to
> explain away the situation. Any other ideas?
> 
> (It makes less difference than it might have, if the code involved is
> going to be pretty much the same anyway, but it's the principle of the
> thing - especially since, as I've indicated, this *did* work previously
> (possibly as little as two days ago) and I haven't changed anything that
> I know of since then.)

Ok, here are more info.
The message "Audio LAVC, couldn't find encoder for codec mp3"
is there in recent CVS (at least in the last 10 days, I don't have older CVS
and until the new server is there it seems pretty hard to access old CVS 
snapshot).
The cause is that some codec don't get registered anymore.
In the file libavcodec/allcodecs.c
there are lines like:
#ifdef CONFIG_MP3LAME
#ifdef CONFIG_MP3LAME_ENCODER
    register_avcodec(&mp3lame_encoder);
#endif //CONFIG_MP3LAME_ENCODER
#endif
and in config.h CONFIG_MP3LAME_ENCODER is defined, but not CONFIG_MP3LAME

I assume that recently libavcoded has changed, but configure has not been
correctly updated.
Can somebody confirm this?

Giacomo




More information about the MPlayer-users mailing list