Hydrogenaudio Forums

Lossy Audio Compression => MP3 => Topic started by: gheniso on 2019-04-14 18:30:31

Title: Flac to MP3 + LAME
Post by: gheniso on 2019-04-14 18:30:31
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?
Title: Re: Flac to MP3 + LAME
Post by: tehabe on 2019-04-14 18:36:13
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.
Title: Re: Flac to MP3 + LAME
Post by: m14u on 2019-04-14 19:28:13
afaik, foobar`s converter use stdout/in. no matter flac/wav/etc. default settings for lame is working.
Title: Re: Flac to MP3 + LAME
Post by: lvqcl on 2019-04-14 20:20:31
Code: [Select]
flac -d -c input.flac | lame -V2 - output.mp3
or
Code: [Select]
flac -d input.flac -o - | lame -V2 - output.mp3
SimplePortal 1.0.0 RC1 © 2008-2019