Skip to content

Instantly share code, notes, and snippets.

@echohack
Forked from anonymous/gist:4fc5e3aaf2b35ec16bd9
Last active August 29, 2015 14:15
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 echohack/41b548c265e1bd002316 to your computer and use it in GitHub Desktop.
Save echohack/41b548c265e1bd002316 to your computer and use it in GitHub Desktop.
# Convert all flac files in all subdirs to mp3 with ffmpeg
find . -type f -name "*.flac" -print0 | while read -d $'\0' a; do
< /dev/null ffmpeg -i "$a" -qscale:a 0 "${a[@]/%flac/mp3}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment