Created
July 26, 2015 22:24
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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