Skip to main content

Notice

Please be aware that much of the software linked to or mentioned on this forum is niche and therefore infrequently downloaded. Lots of anti-virus scanners and so-called malware detectors like to flag infrequently downloaded software as bad until it is either downloaded enough times, or its developer actually bothers with getting each individual release allow listed by every single AV vendor. You can do many people a great favor when encountering such a "problem" example by submitting them to your AV vendor for examination. For almost everything on this forum, it is a false positive.
Topic: Flac to MP3 + LAME (Read 3704 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
or
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