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)?
One-liner to convert all .flac files to .mp3 in a single directory, keeping most metadata:
.flac
.mp3
for file in *.flac; do ffmpeg -i $file -q:a 0 ${file:r}.mp3; done
(Note: ${file:r} removes the extension of the given filepath)
${file:r}