Skip to content

Instantly share code, notes, and snippets.

@ariefbayu
Created July 26, 2015 22:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ariefbayu/79f44ff14b2c2762e303 to your computer and use it in GitHub Desktop.
Save ariefbayu/79f44ff14b2c2762e303 to your computer and use it in GitHub Desktop.
Snippet to convert all *.flac in a directory to *.mp3 while preserving its id3 medatas
(for FILE in *.flac ; do ffmpeg -i "$FILE" -f mp3 -ab 320000 -map_metadata 0 -id3v2_version 3 "`basename "$FILE" .flac`.mp3" || break; done)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment