# preferences for jack-2.99.9 # remove this file to get a new one filled with the defaults. # This file is parsed as python code, it's easy to break things. jackrc_version = "2.99.9" jackrc_py_version = "2.2.2" ## edit these defaults: ripper = "cdparanoia" # use which program to rip: cdparanoia, tosha, # cdda2wav, dagrab (untested) cd_device = "/dev/hdd" # use which device for ripping gen_device = "/dev/hdd" # cdda2wav needs the scsi generic device encoder = "oggenc" # use which encoder (bladeenc, lame, gogo, l3enc, # mp3enc, xing, oggenc) attention: this is a # symbolic name which is defined later in this file # (see helpers), NOT the executable's name bitrate = 160 # default bitrate vbr = 1 # use variable bitrate for encoders which support it vbr_quality = 10 # the vbr quality - 0 is worst, 10 is best # set up freedb (if needed): freedb_server = "freedb" # your freedb server, see freedb_servers below my_mail = "don+freedb@donarmstrong.com" # your e-mail address, needed for freedb submissions # if environ.has_key('http_proxy'): del environ['http_proxy'] # uncomment above line if you don't want to use # your default proxy for freedb queries # specify how the resulting files are named: # %n: track number # %a: artist # %t: track title # %l: album title # %y: album release year - individual track years are unsupported # %g: album genre - individual track genres are unsupported #rename_fmt = "%n.%t" # encoded files are renamed to rename_fmt = "%a-%l-%n-%t"# "Artist - Album - 01 - Tracktitle.[ext]" #rename_fmt_va = "%n.%a-%t" # ditto for Various Artists CDs rename_fmt_va = "%l-%n-%a-%t" rename_num = "%02i" # numbering format, used for %n above, e.g. # %02i with leading '0': 01, 02, ... , 11, ... rename_dir = 1 # rename directory as well: append_year = "(%y)" # append the year (if given) to dir: " (1999)" dir_template = "%a/%l" # if create_dirs is set and freedb data is # available, files are put in # base_dir + "//". # here is a new way to do conversion to lowercase, even with non-ascii charsets. # Unfortunately, this needs python >= 2.2 and you have to specify the charset. char_filter = "" # disabled by default #char_filter = ".decode(charset).lower().encode(charset)" # uncomment to try charset = "latin-1" # or "ascii", "utf-8", ... This is only the # default. override with --charset unusable_chars = "/\r" # put chars which can't be used in filenames # here and their replacement_chars = ["%", ""] # replacements here. replacement_chars is # stretched to match unusable_chars' length # using the last char as fill # example 1: replace all " " by "_": # unusable_chars = " " # replacement_chars = "_" # example 2: replace umlauts by an alternate representation and kill some # special characters: # unusable_chars = "äöüÄÖÜß?*^()[]{}" # replacement_chars = ["ae", "oe", "ue", "Ae", "Oe", "Ue", "ss", ""] # example 3: use only lowercase, " " --> "_": # unusable_chars = " " + uppercase # replacement_chars = "_" + lowercase # Note: this does not include umlauts or other non-plain-ASCII characters # because a) jack forces the locale to C and b) uppercase and lowercase # are not symmetric, e.g. with the de_DE locale "Ä" would become "ã". # Instead, add them explicitly: + "ÄÖÜ" / + "äöü" respectively. # The "right" way is to use char_filter above but this needs python >= 2.2. # these influence the status screen while processing tracks show_time = 1 # display track length instead of "track" show_names = 1 # set this to 1 to display freedb track names instead # "track_01", ... This will not fit in 80x24 term's # other stuff: recurse_dirs = 2 # search how deep for workdir #searchdirs = ["/opt/mp3", "."] # where to start when searching for workdir searchdirs = [os.curdir] # the default is the current directory (".") # if recurse_dirs > 0 #base_dir = os.curdir # where to create the subdir(s) (".") base_dir = environ['HOME'] + "/jack" update_interval = 1.0 # update status screen every ... seconds max_load = 10 # only start new encoders when load < max_load # xtermset related stuff - when enabled, jack uses xtermset to resize your # xterm so that you can see all tracks. xtermset_enable = 0 # disable if you don't have xtermset installed restore_xterm_width = 0 default_width = 80 # your xterm's geometry default_height = 24 # these are autodetected when using curses keep_free = 5*2**20 # suspend if less than keep_free bytes are free # don't set this to zero as encoded file size prediction # is always a bit below actual sizes => we might need # some extra space. # more defaults, these can be changed from the command line: encoders = 4 # encode how many files in parallel otf = 0 # on-the-fly operation with supported helper apps create_dirs = 1 # create (and name if applicable) subdir(s) reorder = 0 # reorder tracks to save space while encoding keep_wavs = 1 # keep encoded WAVs only_dae = 0 # only rip, do not code, implies keep_wavs read_ahead = 99 # number of tracks to read in advance nice_value = 12 # what nice level (priority) encoders get overwrite = 0 # overwrite existing files remove_files = 0 # remove jack.* files when done silent_mode = 0 # silent-mode means: no output to screen ## Things to do when finished exec_when_done = 0 # execute commands below when finished, default: no # this is command line controllable exec_rip_done = "eject " + cd_device # eject the CD when ripping is finished exec_no_err = "play /usr/local/audio/allok.wav" # play sound when finished exec_err = "play /usr/local/audio/error.wav" # this is played when an # error occured freedb_dir = "" # change this to something like "/var/spool/cddb" and # all queries will be done in this (local) directory; # failed local queries will be done via network freedb_pedantic = 0 # don't be pedantic when parsing freedb data, e.g. # the ambigous (various artists) TTITLE # "The Artist - Track a Title - Cool Remix" is split # at the first possible separator. ########################## end of normal options ############################## # you can add/modify all helper apps, here are some examples: freedb_servers['freedb-user'] = { 'host': "freedb.freedb.org", 'id': prog_name + " " + prog_version, 'mail': "freedb-submit@freedb.org", 'my_mail': "default" } helpers['lame-user'] = { 'type': "encoder", 'target': "mp3", 'inverse-quality': 1, 'cmd': "lame --alt-preset cbr %r %i %o", 'vbr-cmd': "lame -h -v -V %q --nohist %i %o", 'otf-cmd': "lame --alt-preset cbr %r - %o", 'vbr-otf-cmd': "lame -h -v -V %q --nohist - %o", # from lame: -V n quality setting for VBR. default n=4 # 0=high quality,bigger files. 9=smaller files 'status_blocksize': 160, 'bitrate_factor': 1, 'status_start': "%", 'percent_fkt': """ s = split(i['buf'], '\\015') if len(s) >= 2: s=s[-2] if len(s) == 1: s=s[0] if find(s, "%") >= 0: # status reporting starts here y = split(s, "/") y1 = split(y[1], "(")[0] percent = float(y[0]) / float(y1) * 100.0 elif find(s, "Frame:") >= 0: # older versions, like 3.13 y = split(s, "/") y0 = split(y[0], "[")[-1] y1 = split(y[1], "]")[0] percent = float(y0) / float(y1) * 100.0 else: percent = 0 """ } #################### end of auto-generated .jackrc ############################