Skip to content

Instantly share code, notes, and snippets.

@jingle
Created February 17, 2013 14:22
Show Gist options
  • Save jingle/4971672 to your computer and use it in GitHub Desktop.
Save jingle/4971672 to your computer and use it in GitHub Desktop.
Convert flac to mp3 using avconv
#!/bin/bash
find "$1" -type f -name "*.flac" -print0 | while read -d $'\0' song
do
output=${song%.flac}.mp3
avconv -i "$song" -metadata album="$1" -metadata comment="Jingle" -b 192k "$output"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment