qbbr.io / blog

Source: markdown

install (debian):

$ sudo aptitude install shntool vorbis-tools wavpack

using:

$ wvunpack -cc file.iso.wv
$ shnsplit -o 'cust ext=ogg oggenc -q9 - -o %f' -f file.cue -t %t file.wav

convert .iso.wv to .ogg with auto rename .ogg files:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
#!/bin/sh
# ./isowv2ogg

FILE=$1
TMP_DIR=tmp
mkdir tmp
wvunpack -cc $1 -o $TMP_DIR/
cd $TMP_DIR
CUE=`find . -name '*.cue'`
WAV=`find . -name '*.wav'`
YEAR=`cat $CUE | grep DATE | awk '{ print $3 }'`
ALBUM=`cat $CUE | grep TITLE | head -n 1 | sed 's/TITLE //' | sed  's/"//g'`
echo $ALBUM
shnsplit -o 'cust ext=ogg oggenc -q9 - -o %f' -f $CUE -t "%n - %p - %a - $YEAR - %t" $WAV
rm -f $WAV
cd ..
mv $TMP_DIR "$YEAR-$ALBUM"
echo '[DONE]'

script using:

./isowv2ogg file.iso.wv
comments powered by Disqus
On your computer does not found Web Browser!
Plz install it.
Firefox
Chromium
Google Chrome
Safari
Opera