Here you can find very useful infos about packages and commands to split a loseless audio .ape file and convert it to flac files.
Basically, using ubuntu
sudo apt-get install cuetools shntool
You will also need the monkeys-audio tools package mac_3.99*.deb
In the link above it is suggested to add a repository, but it won't work with ubuntu quantal 12.10
I'd suggest to use https://launchpad.net/~flacon/+archive/ppa/+build/3698121
to download a compile and debianized file that can be easily installed this way
sudo dpkg-i
Now, you will have all the tools installed.
Just do
cuebreakpoints *.cue | shnsplit -o flac *.ape ;
And then tag the file using the information in the cue file:
cuetag *.cue split-track*.flac ;
If you wanna rename now many split-track*.flac files this wonderful script from here will become your friend and save you the manual work (that's indeed because we love computers!!!).
#!/bin/bash
for a in *.flac; do
ARTIST=`metaflac "$a" --show-tag=ARTIST | sed s/.*=//g`
TITLE=`metaflac "$a" --show-tag=TITLE | sed s/.*=//g`
TRACKNUMBER=`metaflac "$a" --show-tag=TRACKNUMBER | sed s/.*=//g`
mv "$a" "`printf %02g $TRACKNUMBER` - $ARTIST - $TITLE.flac"
done
Nessun commento:
Posta un commento