Skip to content

Instantly share code, notes, and snippets.

@FernandoEscher
Created September 5, 2012 19:12
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 FernandoEscher/3642806 to your computer and use it in GitHub Desktop.
Save FernandoEscher/3642806 to your computer and use it in GitHub Desktop.
File splitter and converter from APE to OGG
#!/bin/bash
echo "Breaking file into tracks..."
cuebreakpoints *.cue | shnsplit -o flac *.ape
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 *.ape
echo "DONE!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment