1
#!/bin/sh /usr/share/dpatch/dpatch-run
2
## 01-default-encoder.dpatch by Taku Yasui <tach@debian.or.jp>
4
## DP: Set default encoder oggenc. (closes: #135113)
5
## DP: Passes track number to oggent (Closes #322738).
6
## DP: Using ~/ogg instead of ~/mp3 as output directory.
7
## DP: Removes useless 'Created by Grip' comment (Closes: #214723).
11
diff -Naur grip-3.3.1.orig/src/grip.c grip-3.3.1/src/grip.c
12
--- grip-3.3.1.orig/src/grip.c 2005-06-25 18:00:55.000000000 +0000
13
+++ grip-3.3.1/src/grip.c 2006-08-14 22:09:38.000000000 +0000
15
ginfo->using_builtin_cdp=FALSE;
17
ginfo->in_rip_thread=FALSE;
18
- strcpy(ginfo->ripfileformat,"~/mp3/%A/%d/%n.wav");
19
+ strcpy(ginfo->ripfileformat,"~/ogg/%A/%d/%n.wav");
21
FindExeInPath("cdparanoia", ginfo->ripexename, sizeof(ginfo->ripexename));
22
strcpy(ginfo->ripcmdline,"-d %c %t:[.%s]-%t:[.%e] %w");
24
ginfo->stop_between_tracks=FALSE;
25
*ginfo->wav_filter_cmd='\0';
26
*ginfo->disc_filter_cmd='\0';
27
- ginfo->selected_encoder=1;
28
- strcpy(ginfo->mp3cmdline,"-h -b %b %w %m");
29
- FindExeInPath("lame", ginfo->mp3exename, sizeof(ginfo->mp3exename));
30
- strcpy(ginfo->mp3fileformat,"~/mp3/%A/%d/%n.%x");
31
- strcpy(ginfo->mp3extension,"mp3");
32
+ ginfo->selected_encoder=6;
33
+ strcpy(ginfo->mp3cmdline,"-a %a -b %b -d %y -G %g -N %t -l %d -o %m -t %n %w");
34
+ FindExeInPath("oggenc", ginfo->mp3exename, sizeof(ginfo->mp3exename));
35
+ strcpy(ginfo->mp3fileformat,"~/ogg/%A/%d/%n.%x");
36
+ strcpy(ginfo->mp3extension,"ogg");
38
*ginfo->mp3_filter_cmd='\0';
39
ginfo->delete_wavs=TRUE;
40
ginfo->add_to_db=FALSE;
43
- strcpy(ginfo->m3ufileformat,"~/mp3/%A-%d.m3u");
44
+ strcpy(ginfo->m3ufileformat,"~/ogg/%A-%d.m3u");
45
ginfo->kbits_per_sec=128;
46
ginfo->edit_num_cpu=1;
49
ginfo->tag_mp3_only=TRUE;
50
- strcpy(ginfo->id3_comment,_("Created by Grip"));
51
+ strcpy(ginfo->id3_comment,_(""));
52
*ginfo->cdupdate='\0';
53
ginfo->sprefs.no_lower_case=FALSE;
54
ginfo->sprefs.allow_high_bits=FALSE;