Created
February 24, 2013 09:41
-
-
Save jingle/5023254 to your computer and use it in GitHub Desktop.
Convert ape to mp3 using avconv, split with mp3splt and cue
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 "*.ape" -print0 | while read -d $'\0' song | |
do | |
output=${song%.ape}.mp3 | |
cue=${song%.ape}.cue | |
avconv -i "$song" -b 192k "$output" | |
if ls "$cue" &> /dev/null; then | |
mp3splt -a -c "$cue" "$output" | |
rm "$output" | |
else | |
echo "no need to split" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment