Last active
February 4, 2016 16:14
-
-
Save jhelgert/f718d6bc8798f6cd1376 to your computer and use it in GitHub Desktop.
Converts all .flac files to .mp3 (v0) and keeps the metadata
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
#!/bin/bash | |
IFS=$'\n' | |
for i in $(ls *.flac); | |
do ffmpeg -i "$i" -codec:a libmp3lame -q:a 0 -map_metadata 0 -id3v2_version 3 "${i%.flac}".mp3 | |
done | |
unset IFS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment