Skip to main content


If you are using a Hotmail or Outlook email address, please change it now, as Microsoft is rejecting all email from our service outright.
Topic: Flac to MP3 + LAME (Read 3541 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Flac to MP3 + LAME

Hello all, I just want to quick clarification and suggestions please.  I currently use Foobar2000 to convert my flac to mp3.  I am wondering if I can convert using LAME on the command line?  I always thought you were able too, but when i tried to do it I get errors such as:
Warning: unsupported audio format
Can't init infile '1 Help Me.flac'"

If you can convert using the command line, could you post me an example command? And lastly, What other methods do you all use for converting Flac to Mp3?

Re: Flac to MP3 + LAME

Reply #1
You need to convert the FLAC to PCM first, because that is what LAME expects. Foobar2000 does this for you, on the command line you need to do it yourself.

But I have no idea how to do it on Windows.

Re: Flac to MP3 + LAME

Reply #2
afaik, foobar`s converter use stdout/in. no matter flac/wav/etc. default settings for lame is working.

Re: Flac to MP3 + LAME

Reply #3
Code: [Select]
flac -d -c input.flac | lame -V2 - output.mp3
Code: [Select]
flac -d input.flac -o - | lame -V2 - output.mp3

Re: Flac to MP3 + LAME

Reply #4
Linux bash, converting a whole folder of FLACs to MP3s:
Code: [Select]
find . -iname "*.flac" -exec sh -c 'ffmpeg -i "$1" -ab 320k -map_metadata 0 -id3v2_version 3 "${1%.flac}.mp3"' _ {} \;

Or, for just one file:
Code: [Select]
ffmpeg -i file.flac -ab 320k -map_metadata 0 -id3v2_version 3 file.mp3

SimplePortal 1.0.0 RC1 © 2008-2021