Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Can someone tell me how I can convert an .mp3 audio file to .flac format using ffmpeg? I Googled extensively, but almost all resources point to converting .flac to .mp3, in such a way:
Ummm, I just tried, and it works! Thanks. I thought that I will always have to put some metadata pertaining to the conversion while converting from one format to another.
– Cupidvogel
Aug 4, 2012 at 12:00
1
I'll make an answer out of it then. Metadata might improve the conversion process but is not really required usually.
To elaborate on the previous comment: your MP3 file is lossy--meaning that it contains audio artifacts that may or may not be audible to you, but they're there. FLAC is a lossless codec that can preserve the quality of an original recording so that it's exactly as it was e.g. on the CD. But if you convert a poor quality MP3 to Flac, it's garbage in/garbage out--the poor quality doesn't magically get removed by converting to flac.
ffmpeg -i input.mp3 output.flac
already?