Comment 4 for bug 135956

Revision history for this message
Vladimir Meremyanin (v-stiff) wrote :

In software development there are little hard tasks by itself, one of them is to combine thousands of small and easy features.

As I see the complexity comes from the notion of 'virtual file' song, or something like that, while internally some parts rely on the fact that song is a real file. Of course this is solvable problem, but requires rewriting some internal API, that's why author considers it difficult and low-priority.

Meanwhile, you can use shnsplit to achieve happiness :)

Here is the script I use (just put it into your ~/.bin/split_to_flac )

if [ "$2x" == "x" ]; then
  echo 'Usage: split_to_flac <cue_name> <source_file>'
  exit 1
fi

# split files
##cat "$1" | shnsplit -o flac -t '%n - %t' "$2"
cat "$1" | shnsplit -o flac "$2"

# some rips have zero track
rm split-track00.flac

# set tags
cuetag "$1" split-track*

for i in `cueprint -t '%02n ' "$1"`; do
  name=`cueprint -t '%02n - %t' -n $i "$1"`
  mv split-track$i.flac "$name.flac"
done