Penguin
Blame: PerfectDVDRips
EditPageHistoryDiffInfoLikePages
Annotated edit history of PerfectDVDRips version 31, including all changes. View license author blame.
Rev Author # Line
29 BenStaz 1 !!stazenc
2
30 BenStaz 3 Update : Has any of the WLUG'ers have some NTSC DVDs I can please borrow. I have rewritten the script to work with NTSC DVDs, and it has worked perfectly on the only NTSC DVD in my collection. Once I confirm the script works with a few more discs I'll update the wiki with the new code. Cheers!
25 BenStaz 4
5 I have written a bash script that from a directory containing vob files, will make an extremely good looking XviD dvdrip.
6 I'd really appreciate it if you would try it out and let me know if there are any bugs. I've had great success with it.
7 At the moment it only works on a PAL DVD source, but it the future this will be updated to make perfect rips from an NTSC source. Will also be updated to make rips of DVD's containing tv-eps.
8
9 !Required Arguments
10
11 *The first argument is always the path to the vob directory.
12
13 *--title <n> or -t <n> : This tells the script which DVD title we wish to encode. (Get a list of them with the argument --list-titles) Note : n is a NUMBER. Make sure to choose the right one (look at the lengths of each title after using the '-l' option.)
14
15 *--output <file> or -o <file> : This is the output filename. Eg : armageddon.avi
16
17 !Optional Arguments
18
19 *--max-ar-error <n> or -e <n> : This tells us the maximum AR error (percentage) to allow. This defaults at 3. I wouldn't make this value any higher than 5.
20
21 !Changelog
22
23 <verbatim>
24 28/12/2006
25 Fixed : Bug causing all files to be hidden!
26
27 27/12/2006
28 Added : It should now be possible to encode to XviD directly from the DVD disc, provided the DVD only has CSS encryption and
29 nothing too fancy :) If the Supplied dir argument is a mounted DVD (cannot be written to), then the $PWD will be used as our
30 working directory, otherwise the vob dir will be used as our working directory.
31
32 Added : Added some xvidenc options to set quantization type as H.263 and to make sure that qpel and gmc are not used as these
33 can cause problems on standalone players.
34
35 26/12/2006
36 Added : Title and Output Filename options are now mandatory and the script will now detect if they are missing.
37
38 Fixed : Listing .vob files now working.
39
40 25/12/2006
41 Added : Different range of possible resolutions for the output video, depending on whether we have a WS or FS source.
42 </verbatim>
43
44 --------------------------------------------------------------------------------------------------------------------
45
46 !!Tools Needed:
47
48 !1) Mplayer & Mencoder
49 !2) Transcode Package
50 !3) lsdvd
51 !4) lame v3.97
52 !5) XviD codec (libxvidcore4)
53 !6) mp3gain (Sorry I forgot all about this!)
54
55 !7) Midentify (Put this script inside /usr/local/bin/ or somewhere else in $PATH)
56 <verbatim>
57 #!/bin/sh
58 #
59 #This is is a wrapper around the -identify functionality.
60 # It is supposed to escape the output properly, so it can be easily
61 # used in shellscripts by 'eval'ing the output of this script.
62 #
63 # Written by Tobias Diedrich <ranma+mplayer@tdiedrich.de>
64 # Licensed under GNU GPL.
65
66 if [ -z "$1" ]; then
67 echo "Usage: midentify <file> [<file> ...]"
68 exit 1
69 fi
70
71 mplayer -vo null -ao null -frames 0 -identify "$@" 2>/dev/null |
72 sed -ne '/^ID_/ {
73 s/[]()|&;<>`'"'"'\\!$" []/\\&/g;p
74 }'
75 </verbatim>
76
77 !8) ~~/.mplayer/cropping.conf (Create This File)
78 <verbatim>
79 RIGHT change_rectangle 2 +2
80 LEFT change_rectangle 2 -2
81 DOWN change_rectangle 3 +2
82 UP change_rectangle 3 -2
83 KP6 change_rectangle 0 +2
84 KP4 change_rectangle 0 -2
85 KP2 change_rectangle 1 +2
86 KP8 change_rectangle 1 -2
87 PGUP seek +60
88 PGDWN seek -60
89 q quit
90 ESC quit
91 ENTER pt_step 1 1
92 p pause
93 SPACE pause
94 f vo_fullscreen
95 </verbatim>
96
31 BenStaz 97 !Stazenc Script
98 http://source.meta.net.nz/svn/staz/stazenc/trunk/stazenc
25 BenStaz 99
100 !!Example of Usage
101
102 *stazenc Armageddon/ -mar 2 -t 1 -o armageddon.avi
103
104 Soon after typing this command mplayer will popup and start playing your chosen title from the DVD. You will notice the outline of a white rectangle that overlays the video. Basically what you want to do is to manipulate the rectangle so that it surrounds the video and crops out any black area around the video. Use the main arrow keys to move the entire rectangle and the numpad arrow keys to increase/decrease the width and height. What I recommend is.
105
106 *1) Use the main arrow keys to move the rectangle so the top right of the rectangle exactly matches the top right of the video that is being played.
107
108 *2) Now use the numpad arrow keys to resize the rectangle to perfectly surround the video.
109
110 *3) Press The Page-Up a key a few times to skip through the video and make sure your cropping values are still appropriate. My philosophy is to apply the MAX amount of cropping possible without overcropping any frames elsewhere in the video.
111
112 *4) Good now press escape (closes mplayer) and there is no more effort required by you! Sit back and relax.

PHP Warning

lib/blame.php:177: Warning: Invalid argument supplied for foreach() (...repeated 2 times)