Created
September 5, 2012 19:13
-
-
Save FernandoEscher/3642818 to your computer and use it in GitHub Desktop.
File splitter and converter from FLAC to OGG
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 | |
echo "Breacking file into tracks..." | |
cuebreakpoints *.cue | shnsplit -o flac *.flac | |
echo "Converting flac tracks to ogg quality 9..." | |
oggenc -q9 split-track*.flac | |
echo "Tagging files with info from the cue sheet..." | |
cuetag *.cue split-track*.ogg | |
sleep 7 | |
echo "Renaming files according to tags..." | |
lltag split-track*.ogg --rename "%n - %t" --no-tagging --yes | |
echo "Folder clean up..." | |
rm *.flac *.cue *.txt *.url *.log *.jpg | |
echo "DONE!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment