]> git.donarmstrong.com Git - misc.git/blob - .jackrc
add ripit configuration
[misc.git] / .jackrc
1 # preferences for jack-2.99.9
2 # remove this file to get a new one filled with the defaults.
3 # This file is parsed as python code, it's easy to break things.
4
5 jackrc_version = "2.99.9"
6 jackrc_py_version = "2.2.2"
7
8
9 ## edit these defaults:
10 ripper = "cdparanoia"       # use which program to rip: cdparanoia, tosha,
11                             # cdda2wav, dagrab (untested)
12 cd_device = "/dev/hdd"    # use which device for ripping
13 gen_device = "/dev/hdd"   # cdda2wav needs the scsi generic device
14
15 encoder = "oggenc"          # use which encoder (bladeenc, lame, gogo, l3enc,
16                             # mp3enc, xing, oggenc) attention: this is a
17                             # symbolic name which is defined later in this file
18                             # (see helpers), NOT the executable's name
19
20 bitrate = 160               # default bitrate
21 vbr = 1                     # use variable bitrate for encoders which support it
22 vbr_quality = 10                    # the vbr quality - 0 is worst, 10 is best
23
24 # set up freedb (if needed):
25 freedb_server = "freedb"    # your freedb server, see freedb_servers below
26 my_mail = "don+freedb@donarmstrong.com"               # your e-mail address, needed for freedb submissions
27
28 # if environ.has_key('http_proxy'): del environ['http_proxy']
29                             # uncomment above line if you don't want to use
30                             # your default proxy for freedb queries
31
32 # specify how the resulting files are named:
33 #   %n: track number
34 #   %a: artist
35 #   %t: track title
36 #   %l: album title
37 #   %y: album release year - individual track years are unsupported
38 #   %g: album genre - individual track genres are unsupported
39
40 #rename_fmt = "%n.%t"           # encoded files are renamed to
41 rename_fmt = "%a-%l-%n-%t"# "Artist - Album - 01 - Tracktitle.[ext]"
42 #rename_fmt_va = "%n.%a-%t"   # ditto for Various Artists CDs
43 rename_fmt_va = "%l-%n-%a-%t"
44 rename_num = "%02i"             # numbering format, used for %n above, e.g.
45                                 # %02i with leading '0': 01, 02, ... , 11, ...
46 rename_dir = 1                  # rename directory as well:
47 append_year = "(%y)"           # append the year (if given) to dir: " (1999)"
48 dir_template = "%a/%l"          # if create_dirs is set and freedb data is
49                                 # available, files are put in
50                                 # base_dir + "/<artist>/<albumname>".
51
52 # here is a new way to do conversion to lowercase, even with non-ascii charsets.
53 # Unfortunately, this needs python >= 2.2 and you have to specify the charset.
54 char_filter = ""                # disabled by default
55 #char_filter = ".decode(charset).lower().encode(charset)"   # uncomment to try
56 charset = "latin-1"             # or "ascii", "utf-8", ... This is only the
57                                 # default. override with --charset
58
59 unusable_chars = "/\r"          # put chars which can't be used in filenames
60                                 # here and their
61 replacement_chars = ["%", ""]   # replacements here. replacement_chars is
62                                 # stretched to match unusable_chars' length
63                                 # using the last char as fill
64
65 # example 1: replace all " " by "_":
66 # unusable_chars = " "
67 # replacement_chars = "_"
68
69 # example 2: replace umlauts by an alternate representation and kill some
70 #             special characters:
71 # unusable_chars = "äöüÄÖÜß?*^()[]{}"
72 # replacement_chars = ["ae", "oe", "ue", "Ae", "Oe", "Ue", "ss", ""]
73
74 # example 3: use only lowercase, " " --> "_":
75 # unusable_chars = " " + uppercase
76 # replacement_chars = "_" + lowercase
77 # Note: this does not include umlauts or other non-plain-ASCII characters
78 # because a) jack forces the locale to C and b) uppercase and lowercase
79 # are not symmetric, e.g. with the de_DE locale "Ä" would become "ã".
80 # Instead, add them explicitly: + "ÄÖÜ" / + "äöü" respectively.
81 # The "right" way is to use char_filter above but this needs python >= 2.2.
82
83 # these influence the status screen while processing tracks
84 show_time = 1       # display track length instead of "track"
85 show_names = 1      # set this to 1 to display freedb track names instead
86                     # "track_01", ... This will not fit in 80x24 term's
87
88 # other stuff:
89 recurse_dirs = 2                # search how deep for workdir
90 #searchdirs = ["/opt/mp3", "."] # where to start when searching for workdir
91 searchdirs = [os.curdir]        # the default is the current directory (".")
92                                 # if recurse_dirs > 0
93 #base_dir = os.curdir           # where to create the subdir(s) (".")
94 base_dir = environ['HOME'] + "/jack"
95
96 update_interval = 1.0           # update status screen every ... seconds
97 max_load = 10                   # only start new encoders when load < max_load
98
99 # xtermset related stuff - when enabled, jack uses xtermset to resize your
100 # xterm so that you can see all tracks.
101 xtermset_enable = 0             # disable if you don't have xtermset installed
102 restore_xterm_width = 0
103 default_width = 80              # your xterm's geometry
104 default_height = 24             # these are autodetected when using curses
105
106 keep_free = 5*2**20     # suspend if less than keep_free bytes are free
107                         # don't set this to zero as encoded file size prediction
108                         # is always a bit below actual sizes => we might need
109                         # some extra space.
110
111 # more defaults, these can be changed from the command line:
112 encoders = 4        # encode how many files in parallel
113 otf = 0             # on-the-fly operation with supported helper apps
114 create_dirs = 1     # create (and name if applicable) subdir(s)
115 reorder = 0         # reorder tracks to save space while encoding
116 keep_wavs = 1       # keep encoded WAVs
117 only_dae = 0        # only rip, do not code, implies keep_wavs
118 read_ahead = 99     # number of tracks to read in advance
119 nice_value = 12     # what nice level (priority) encoders get
120 overwrite = 0       # overwrite existing files
121 remove_files = 0    # remove jack.* files when done
122 silent_mode = 0     # silent-mode means: no output to screen
123
124 ## Things to do when finished
125 exec_when_done = 0  # execute commands below when finished, default: no
126                     # this is command line controllable
127 exec_rip_done = "eject " + cd_device # eject the CD when ripping is finished
128 exec_no_err = "play /usr/local/audio/allok.wav"  # play sound when finished
129 exec_err = "play /usr/local/audio/error.wav"     # this is played when an
130                                                  # error occured
131
132 freedb_dir = ""         # change this to something like "/var/spool/cddb" and
133                         # all queries will be done in this (local) directory;
134                         # failed local queries will be done via network
135 freedb_pedantic = 0     # don't be pedantic when parsing freedb data, e.g.
136                         # the ambigous (various artists) TTITLE
137                         # "The Artist - Track a Title - Cool Remix" is split
138                         # at the first possible separator.
139
140 ########################## end of normal options ##############################
141
142 # you can add/modify all helper apps, here are some examples:
143 freedb_servers['freedb-user'] = {
144     'host': "freedb.freedb.org",
145     'id': prog_name + " " + prog_version,
146     'mail': "freedb-submit@freedb.org",
147     'my_mail': "default"
148 }
149
150 helpers['lame-user'] = {
151     'type': "encoder",
152     'target': "mp3",
153     'inverse-quality': 1,
154     'cmd': "lame --alt-preset cbr %r %i %o",
155     'vbr-cmd': "lame -h -v -V %q --nohist %i %o",
156     'otf-cmd': "lame --alt-preset cbr %r - %o",
157     'vbr-otf-cmd': "lame -h -v -V %q --nohist - %o",
158
159 # from lame:     -V n    quality setting for VBR.  default n=4
160 #                        0=high quality,bigger files. 9=smaller files
161
162     'status_blocksize': 160,
163     'bitrate_factor': 1,
164     'status_start': "%",
165     'percent_fkt': """
166 s = split(i['buf'], '\\015')
167 if len(s) >= 2: s=s[-2]
168 if len(s) == 1: s=s[0]
169 if find(s, "%") >= 0:       # status reporting starts here
170     y = split(s, "/")
171     y1 = split(y[1], "(")[0]
172     percent = float(y[0]) / float(y1) * 100.0
173 elif find(s, "Frame:") >= 0:    # older versions, like 3.13
174     y = split(s, "/")
175     y0 = split(y[0], "[")[-1]
176     y1 = split(y[1], "]")[0]
177     percent = float(y0) / float(y1) * 100.0
178 else:
179     percent = 0
180
181 """
182 }
183 #################### end of auto-generated .jackrc ############################
184