Skip to content

Instantly share code, notes, and snippets.

@aldur
Created July 2, 2015 08:20
Show Gist options
  • Save aldur/d2b0c2b0ca2d9aee1a27 to your computer and use it in GitHub Desktop.
Save aldur/d2b0c2b0ca2d9aee1a27 to your computer and use it in GitHub Desktop.
Convert Flac to MP3 while keeping metadata
for f in *.flac; do ffmpeg -i "$f" -ab 320k -map_metadata 0 -id3v2_version 3 "${f%flac}mp3"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment