mp3 encoding (with lame?)

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

mp3 encoding (with lame?)

Andy Civil
Is it possible to encode to mp3 with ffmpeg?

The formats file has a D and E next to the mp3 format, which implies
decoding and encoding.

If I give an mp3 filename, it creates an mp3 file, but the encoding is
mp2. The file plays in Winamp, but will NOT play on an ipod shuffle.
(Thanks, ffmpeg, very confusing for naive shuffle user!)

If I search for help on mp3, some sites say simply "install lame" and
some say I have to recompile with lame support. (I'm not up for
recompiling just yet.) Others diverge off onto using "mencoder" (I'd
rather stick to ffmpeg).

I've tried using -acodec libmp3lame but it's not recognised. I thought I
already installed lame somewhere, but maybe not; how can I tell?

Most important question: how to encode to mp3 (possibly using lame)
without recompiling?

Many thanks...

--
Andy
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: mp3 encoding (with lame?)

Eduardo M Kalinowski-2
On Dec 20, 2007 2:01 PM, Andy Civil <[hidden email]> wrote:

> Is it possible to encode to mp3 with ffmpeg?
>
> The formats file has a D and E next to the mp3 format, which implies
> decoding and encoding.
>
> If I give an mp3 filename, it creates an mp3 file, but the encoding is
> mp2. The file plays in Winamp, but will NOT play on an ipod shuffle.
> (Thanks, ffmpeg, very confusing for naive shuffle user!)
>
> If I search for help on mp3, some sites say simply "install lame" and
> some say I have to recompile with lame support. (I'm not up for
> recompiling just yet.) Others diverge off onto using "mencoder" (I'd
> rather stick to ffmpeg).
>
> I've tried using -acodec libmp3lame but it's not recognised. I thought I
> already installed lame somewhere, but maybe not; how can I tell?
>
> Most important question: how to encode to mp3 (possibly using lame)
> without recompiling?

If the version you have was not compiled with lame support, then it's
impossible. Only recompiling will give you lame support.

Apparently the version you have indeed lacks lame support, but since
you did not give us the output messages, we cannot tell for sure.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: mp3 encoding (with lame?)

Michel Bardiaux-2
In reply to this post by Andy Civil
Andy Civil a écrit :

> Is it possible to encode to mp3 with ffmpeg?
>
> The formats file has a D and E next to the mp3 format, which implies
> decoding and encoding.
>
> If I give an mp3 filename, it creates an mp3 file, but the encoding is
> mp2. The file plays in Winamp, but will NOT play on an ipod shuffle.
> (Thanks, ffmpeg, very confusing for naive shuffle user!)
>
> If I search for help on mp3, some sites say simply "install lame" and
> some say I have to recompile with lame support. (I'm not up for
> recompiling just yet.) Others diverge off onto using "mencoder" (I'd
> rather stick to ffmpeg).
>
> I've tried using -acodec libmp3lame but it's not recognised. I thought I
> already installed lame somewhere, but maybe not; how can I tell?
>
> Most important question: how to encode to mp3 (possibly using lame)
> without recompiling?

Run ffmpeg -v. If the "configuration" line does not contain
--enable-libmp3lame, you wont be able to use lame without recompiling.
If it does, use -acodec libmp3lame. If problem, post the exact command
line and its complete output messages. No vague stuff like "its not
recognized" please.

>
> Many thanks...
>


--
Michel Bardiaux
R&D Director
T +32 [0] 2 790 29 41
F +32 [0] 2 790 29 02
E mailto:[hidden email]

Mediaxim NV/SA
Vorstlaan 191 Boulevard du Souverain
Brussel 1160 Bruxelles
http://www.mediaxim.com/
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: mp3 encoding (with lame?)

Andy Civil
Michel Bardiaux wrote:

> Run ffmpeg -v. If the "configuration" line does not contain
> --enable-libmp3lame, you wont be able to use lame without recompiling.
> If it does, use -acodec libmp3lame. If problem, post the exact command
> line and its complete output messages. No vague stuff like "its not
> recognized" please.
>

Ouch :-)

Well, in this specific case, I think "it's not recognised" is a pretty
fair translation of "Unknown codec 'libmp3lame'" but on principle, I
agree with you... not least because if I'd bothered to post the output,
you would have immediately seen that I did not have lame support listed
in my "configuration" line :-(

In the end, I just used the "lame.exe" file that came with the [binary
version of the] lame encoder stuff. I'm a bit disappointed because I
wanted to use ffmpeg all the way, but of course, lame does the job.

Thank you, Michel, you're a very helpful guy.

--
Andy
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user