Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Can someone tell me how to convert a mp3 audio file to flac format using ffmpeg? I Googled extensively, but almost all resources point to converting flac to mp3, something like ffmpeg -i "input.flac" -ab 320k -map_meta_data 0:0 "output.mp3".

share|improve this question

migrated from stackoverflow.com Aug 4 '12 at 15:32

This question came from our site for professional and enthusiast programmers.

Did you try ffmpeg -i input.mp3 output.flac already? –  patrix Aug 4 '12 at 11:52
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 '12 at 12:00
I'll make an answer out of it then. Metadata might improve the conversion process but is not really required usually. –  patrix Aug 4 '12 at 12:10
Converting from mp3 gets you worse quality, because mp3 is a lossy audio codec. –  AnonymousLurker Aug 4 '12 at 13:58
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. –  Rusty Monkey Dec 13 '12 at 18:44

1 Answer 1

up vote 5 down vote accepted

Did you try ffmpeg -i input.mp3 output.flac already?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.