Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cueek: a python script to manipulate cuesheets
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
4nykey
Apprentice
Apprentice


Joined: 11 Feb 2004
Posts: 176

PostPosted: Sat Aug 12, 2006 9:07 pm    Post subject: Cueek: a python script to manipulate cuesheets Reply with quote

Hello. I thought I'd share this in case anybody might find it useful.
The script is at http://opensvn.csie.org/4nykey/scripts/cueek.py (it's a svn repo so you can `svn co').

Few caveats:
    cuesheet must point to an existing file. The cue usually contains a line that reads `FILE="foo.ext" WAVE', so if foo.ext is present in the same dir as cue, it should be all fine. But it can be "bar.another_ext" or "Foo.EXT" or whatever, then the cue needs to be edited.
    Cuesheet can contain non-ascii chars at times, then '-m' option has to be used. As cues are mostly created with windows tools (EAC, etc) it should be '-m cpxxx' (western languages are cp1252, cyrillic is cp1251, etc)

Tools you might need:
    media-libs/flac (reading, writing flacs)
    media-sound/wavpack (reading, writing wv files)
    media-sound/lame and media-sound/lltag (mp3z)
    media-sound/vorbis-tools (oggz)
    ...

Couple of examples:
first run: cueek.py -v foo.cue (it'll print cd layout and create config file)
edit ~/.cueekrc to customize or add some options, e.g:
Code:
[mpc]
encode: mppenc --silent --overwrite --unicode %m - %f
tag:    ' --tag '
rg:     replaygain --smart --auto %f

[mp3]
encode: lame --silent -V2 --vbr-new - %f
ext_tag: lltag --yes
ext_tag_switch: ' --tag '
rg: mp3gain -a -k -t -p -q %f

[ogg]
encode: oggenc -Q -q 7 %m -o %f -
tag: ' -c '
rg: vorbisgain -aq %f

encoding to vorbis:
Code:
cueek.py -w -e ogg -o /dev/null foo.cue

encoding to mp3 & vorbis, removing source file & applying replay-gain:
Code:
cueek.py -wvdr -e mp3,ogg -o /dev/null foo.cue

burning cd from so-called 'non-compliant' cue (if you ever used EAC, you should be familiar with the issues involved):
Code:
cueek.py -w foo.cue | cue2toc > burnme.toc
cdrdao simulate burnme.toc
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum