Convert .flac to .mp3 with ffmpeg, keeping all metadata

Vito Gentile picture Vito Gentile · Sep 30, 2014 · Viewed 75.4k times · Source

How can I convert .flac to .mp3 with ffmpeg, keeping all metadata (that is converting Vorbis comment in .flac files to ID3v2 metadata of .mp3)?

Answer

Vito Gentile picture Vito Gentile · Sep 30, 2014

The following command keeps high quality on .mp3 (320 kbps), and metadata from .flac file are converted to ID3v2 format, which can be included in .mp3 files:

ffmpeg -i input.flac -ab 320k -map_metadata 0 -id3v2_version 3 output.mp3