5
# dj@nagy:~/tmp% COMMENT="1998 A&M Records; 540 974-2" abcde -l
8
# abcde -w "1998 A&M Records; 540 974-2"
9
# dj@nagy:~/tmp% abcde -w '1993 A\&M Records\; 540 126-2'
14
# OUTPUTFORMAT='${ARTISTFILE}/${ALBUMFILE}/${TRACKNUM}-${TRACKFILE}'
15
# VAOUTPUTFORMAT='Various/${ALBUMFILE}/${TRACKNUM}-${ARTISTFILE}-${TRACKFILE}'
18
print "run OGGENCODEROPTS=\"-q 9\" COMMENT=\"blah blah\" abcde -l"
19
## OUTPUTFORMAT='${ARTISTFILE}-${ALBUMFILE}/${TRACKNUM}.${TRACKFILE}'
20
# OUTPUTFORMAT='${ARTISTFILE}/${ALBUMFILE}/${TRACKNUM}-${TRACKFILE}'
21
## VAOUTPUTFORMAT='Various-${ALBUMFILE}/${TRACKNUM}.${ARTISTFILE}-${TRACKFILE}'
22
# VAOUTPUTFORMAT='Various/${ALBUMFILE}/${TRACKNUM}-${ARTISTFILE}-${TRACKFILE}'
26
my $d = 0; # set to 1 for debug
29
my $quality = $ENV{CDRIP_QUALITY} || 7;
31
# empty @ARGV to get a sane diamond operator
41
$d and print "songlist: @songlist\n";
44
for my $s (@songlist) {
46
next if ($s =~ /^skip$/);
47
my ($ra, $rt) = split ' - ', $s;
49
defined $ra or die "hu!? no artist in songlist file!\n";
51
unless (defined $rt) {
52
# we are not in sampler mode
60
$t =~ s[/][_]g and warn "removed evil / from $t\n";
71
$w = "0".$i unless ($i > 9);
74
$w = "$w"."-"."$a"."-"."$t"; # filename for .wav
76
$w = "$w" . "-" . "$t";
79
# $m = $w.".mp3"; # filename for .mp3
80
my $m = $w.".ogg"; # filename for .ogg
82
# $call = "cdparanoia $i - | lamer - $m";
84
# [09-Jan:22:21 koef] $oggenc -m 2 Track01.wav
85
# [09-Jan:22:21 koef] mode 2 zou 128 kbit moeten doen
86
# mp3's zijn meestal in 128. oggenc default 144 kbit, da vreet meer schijf
88
# [20-Jun:12:17 Fruit] 1411 kbit
89
# [20-Jun:12:17 Fruit] ik rip naar flac :)
91
# [20-Jun:12:18 Fruit] ogg -q3 is voor de meeste muziek van mij goed genoeg
92
# [20-Jun:12:18 Fruit] als er iets gevoeligs tussen zit pak ik meestal -q5
94
# my $call = "cdparanoia -q $i - | oggenc -b 128 -o $m";
95
# gives bitrate_nominal=128031
97
# let's see if we can crank quality up somewhat: -q 7 gives
98
# bitrate_nominal=224032
99
my $call = "cdparanoia -q $i - | oggenc -q $quality -o \"$m\"";
105
$call .= " -a \"$ra\"";
107
$call .= " -t \"$rt\" -";
109
warn "system($call)\n";
110
system($call) unless $d;
112
# system("id3 -t \"$rt\" $m") unless $d;
113
# system("id3 -a \"$ra\" $m") unless $d;
122
dr_cdrip - rip audio cd's to ogg
126
B<dr_cdrip> B<[>I<args>B<]> < I<id3-tag-file>
130
dr_cdrip sets up a cdparanoia(1) - oggenc(1) pipe for each track on your
131
audio cd, so that the audio on your cd will be stored as .ogg files on your
132
harddisk. I<args> will get passed to each songs' oggenc(1) invocation.
134
I<id3-tag-file> could look like this:
137
Think of one - Den Antwaarpse Shabi
139
Electrotwist - The Smurfer
141
Evil characters are discarded from the file, we don't want
142
them to appear in filenames. If a line lacks a ' - ', the
143
line is assumed to be a title.
145
Defauls setting of oggenc(1)'s --quality level is 7, override by
146
setting the CDRIP_QUALITY environment variable.
148
Note: mp3's id3 tags seem to be called "comments" in the .ogg world.
152
dj@gelfand ~$ export CDRIP_QUALITY=9
153
dj@gelfand /h.../The_New_York_Contemporary_Five$ dr_cdrip \
154
-l "The New York Contemporary Five" -a "Archie Shepp" \
155
-c "description=Don Cherry: crnt, Archie Shepp: ts, Don \
156
Moore: b, JC Moses:d" -c "genre=Jazz" -c "date=1963" \
157
-c "location=Copenhagen" \
158
-c "copyright=1991 Storyville Records" -c "license=All Rights Reserved" \
159
-c "organization=Storyville" \
160
-c "contact=http://www.storyville-records.com/" \
161
-c "diskid=bd10c70d" < /tmp/songlist
164
http://freedb.org/modules.php?name=Sections&sop=viewarticle&artid=6 for info on
165
disk id. Beware! A diskid comment is _not_ mentioned in the xiph.org
168
(oggenc's -t will be used by dr_cdrip. -a might be.)
170
supported extra comments are (see ogg123.c)
172
VERSION=, TRACKNUMBER=, ISRC=
174
ARTIST is -a, ALBUM is -l TITLE is -t.
176
VERSION is e.g. 'Biosphere Foo Mix'. Multipe ARTIST tags can occur; this use
177
is encouraged if applicable. -c foo will be displayed by ogg123 as 'Comment:
182
cdcd tracks | sed 's/^.*\]\ *//' | sed 's/\ $//'
184
to extract a songlist from a cddb database.
188
The format of the songinfo input file is non-standard. Support for cddb is
193
http://xiph.org/ogg/vorbis/doc/v-comment.html
195
abcde - A Better CD Encoder at http://www.hispalinux.es/~data/abcde.php
197
=head1 VERSION, SOURCE
199
This file is maintained at http://git.mdcc.cx/draai
203
First version written 2001-01-09. Last maintenance, as of 2007-08-22,
208
Copyright: © 2001-2005 Joost van Baal
210
This program is in the public domain.
214
Joost van Baal <spamhere@mdcc.cx>