Skip to content

Instantly share code, notes, and snippets.

@jhelgert
Last active February 4, 2016 16:14
Show Gist options
  • Save jhelgert/f718d6bc8798f6cd1376 to your computer and use it in GitHub Desktop.
Save jhelgert/f718d6bc8798f6cd1376 to your computer and use it in GitHub Desktop.
Converts all .flac files to .mp3 (v0) and keeps the metadata
#!/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