[MPlayer-users] No MP3 encoder in LAVC??
The Wanderer
inverseparadox at comcast.net
Fri Nov 18 20:43:35 CET 2005
Giacomo Comes wrote:
> 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:
>>> 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"
...I don't know why it didn't occur to me to go looking for that...
> 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).
You can still get older CVS without needing to download specific
snapshot tarballs; just make another source tree (either with 'cp
--preserve=all' or by making a new checkout) and use 'cvs -D'.
> 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.
The lines you quote above were committed back in May, so that wouldn't
seem to be "recent" - but it is later than the last time I know for
certain I successfully used '-lavcopts acodec=mp3', so it could
potentially be the cause of the problem.
There was another set of #ifdef changes committed to allcodecs.c on
10-26, although it doesn't look likely to be related; none of the other
commits to that file seem to have the potential to have anything to do
with the matter at hand.
Thanks for covering for my intuitive laziness...
--
The Wanderer
Warning: Simply because I argue an issue does not mean I agree with any
side of it.
Secrecy is the beginning of tyranny.
More information about the MPlayer-users
mailing list