Created
February 17, 2013 14:22
-
-
Save jingle/4971672 to your computer and use it in GitHub Desktop.
Convert flac to mp3 using avconv
This file contains 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 | |
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