1 |
Having given up on dvdrip for ripping dvd's, i've since moved on to a howto I |
2 |
was pointed at: |
3 |
|
4 |
http://gentoo-wiki.com/HOWTO_Rip_DVD_mencoder |
5 |
|
6 |
I opt to go for the supposedly higher quality x264, so I do two passes: |
7 |
|
8 |
1: |
9 |
|
10 |
mencoder -v ../vob/title1.vob -alang en -vf |
11 |
crop=720:352:0:62,scale=752:320 -ovc x264 -x264encopts |
12 |
subq=4:bframes=4:b_pyramid:weight_b:pass=1:psnr:bitrate=4452:threads=2:turbo=1 -oac |
13 |
copy -ofps 24000/1001 -vobsubout subtitles -vobsuboutindex 0 -slang en -o |
14 |
pass1.avi |
15 |
|
16 |
2 (which whines about not finding the log file, so I have to rename |
17 |
divx2pass.log.temp to divx2pass.log manually -- donchya love having to figure |
18 |
things out): |
19 |
|
20 |
mencoder -v ../vob/title1.vob -alang en -vf |
21 |
crop=720:352:0:62,spp,scale,hqdn3d=2:1:2 -ovc x264 -x264encopts |
22 |
subq=5:4x4mv:8x8dct:frameref=3:me=2:bframes=4:b_pyramid:pass=2:psnr:bitrate=4450:threads=3 -oac |
23 |
faac -faacopts object=0:tns:quality=100 -ofps 24000/1001 -o pass2.avi |
24 |
|
25 |
However there is a problem with pass 2. I have tried this on two seperate |
26 |
systems, and the exact same thing happens: |
27 |
|
28 |
MEncoder 1.0pre8-3.4.6 (C) 2000-2006 MPlayer Team |
29 |
CPU: Intel(R) Pentium(R) M processor 1.86GHz (Family: 6, Model: 13, |
30 |
Stepping: 8) |
31 |
MMX2 supported but disabled |
32 |
CPUflags: Type: 6 MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 |
33 |
Compiled with runtime CPU detection. |
34 |
93 audio & 211 video codecs |
35 |
init_freetype |
36 |
get_path('font/font.desc') -> '/home/sgtphou/.mplayer/font/font.desc' |
37 |
font: can't open file: /home/sgtphou/.mplayer/font/font.desc |
38 |
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars) |
39 |
Using MMX Optimized OnScreenDisplay |
40 |
[file] File size is 7733315584 bytes |
41 |
STREAM: |
42 |
[file] /home/sgtphou/fire-eyes/temp/mencoder/xmen-2/title1/vob/title1.vob |
43 |
STREAM: Description: File |
44 |
STREAM: Author: Albeu |
45 |
STREAM: Comment: based on the code from ??? (probably Arpi) |
46 |
success: format: 0 data: 0x0 - 0xccf10800 |
47 |
Checking for YUV4MPEG2 |
48 |
ASF_check: not ASF guid! |
49 |
Checking for NuppelVideo |
50 |
Checking for REAL |
51 |
Checking for SMJPEG |
52 |
Searching demuxer type for |
53 |
filename /home/sgtphou/fire-eyes/temp/mencoder/xmen-2/title1/vob/title1.vob |
54 |
ext: .vob |
55 |
Trying demuxer 2 based on filename extension |
56 |
system stream synced at 0xD (13)! |
57 |
==> Found video stream: 0 |
58 |
==> Found audio stream: 131 |
59 |
==> Found audio stream: 128 |
60 |
==> Found audio stream: 137 |
61 |
==> Found audio stream: 132 |
62 |
==> Found audio stream: 133 |
63 |
==> Found audio stream: 130 |
64 |
MPEG Stream reached EOF |
65 |
ds_fill_buffer: EOF reached (stream: video) |
66 |
MPEG-PS file format detected. |
67 |
==> Found subtitle: 0 |
68 |
==> Found subtitle: 1 |
69 |
==> Found subtitle: 2 |
70 |
==> Found subtitle: 3 |
71 |
==> Found subtitle: 4 |
72 |
==> Found subtitle: 5 |
73 |
==> Found subtitle: 6 |
74 |
==> Found subtitle: 7 |
75 |
Searching for sequence header... OK! |
76 |
VIDEO: MPEG2 720x480 (aspect 3) 29.970 fps 9800.0 kbps (1225.0 kbyte/s) |
77 |
[V] filefmt:2 fourcc:0x10000002 size:720x480 fps:29.97 ftime:=0.0334 |
78 |
========================================================================== |
79 |
Opening audio decoder: [liba52] AC3 decoding with liba52 |
80 |
dec_audio: Allocating 3840 bytes for input buffer. |
81 |
dec_audio: Allocating 6144 + 65536 = 71680 bytes for output buffer. |
82 |
Using SSE optimized IMDCT transform |
83 |
AC3: 2.0 (dolby) 48000 Hz 192.0 kbit/s |
84 |
A52 flags before a52_frame: 0x2A |
85 |
A52 flags after a52_frame: 0xA |
86 |
Using MMX optimized resampler |
87 |
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000) |
88 |
Selected audio codec: [a52] afm: liba52 (AC3-liba52) |
89 |
========================================================================== |
90 |
Opening video filter: [expand osd=1] |
91 |
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1 |
92 |
Opening video filter: [hqdn3d=2:1:2] |
93 |
Opening video filter: [scale] |
94 |
SwScale params: -1 x -1 (-1=no scaling) |
95 |
Opening video filter: [spp] |
96 |
Opening video filter: [crop w=720 h=352 x=0 y=62] |
97 |
Crop: 720 x 352, 0 ; 62 |
98 |
========================================================================== |
99 |
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough |
100 |
VDec: vo config request - 720 x 480 (preferred colorspace: Mpeg PES) |
101 |
[PP] Using external postprocessing filter, max q = 6. |
102 |
Trying filter chain: crop spp scale hqdn3d expand x264 |
103 |
Could not find matching colorspace - retrying with -vf scale... |
104 |
Opening video filter: [scale] |
105 |
SwScale params: -1 x -1 (-1=no scaling) |
106 |
Trying filter chain: scale crop spp scale hqdn3d expand x264 |
107 |
The selected video_out device is incompatible with this codec. |
108 |
Try adding the scale filter, e.g. -vf spp,scale instead of -vf spp. |
109 |
VDecoder init failed :( |
110 |
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b |
111 |
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2)) |
112 |
========================================================================== |
113 |
Building audio filter chain for 48000Hz/2ch/s16le -> 0Hz/0ch/??... |
114 |
[libaf] Adding filter dummy |
115 |
[dummy] Was reinitialized: 48000Hz/2ch/s16le |
116 |
[dummy] Was reinitialized: 48000Hz/2ch/s16le |
117 |
AE_FAAC, sample_input: 2048, max_bytes_output: 1536 |
118 |
Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le... |
119 |
[dummy] Was reinitialized: 48000Hz/2ch/s16le |
120 |
[dummy] Was reinitialized: 48000Hz/2ch/s16le |
121 |
VDec: vo config request - 720 x 480 (preferred colorspace: Planar YV12) |
122 |
[PP] Using external postprocessing filter, max q = 6. |
123 |
Trying filter chain: crop spp scale hqdn3d expand x264 |
124 |
VDec: using Planar YV12 as output csp (no 0) |
125 |
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect. |
126 |
VO Config (720x480->854x480,flags=0,'MPlayer',0x32315659) |
127 |
REQ: flags=0x441 req=0x400 |
128 |
REQ: flags=0x441 req=0x0 |
129 |
SwScaler: using unscaled Planar YV12 -> Planar YV12 special converter |
130 |
REQ: flags=0x403 req=0x0 |
131 |
REQ: flags=0x403 req=0x0 |
132 |
REQ: flags=0x3 req=0x0 |
133 |
x264 [info]: using SAR=427/360 |
134 |
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2 |
135 |
*** [crop] Allocating mp_image_t, 720x480x12bpp YUV planar, 518400 bytes |
136 |
*** [crop] Allocating mp_image_t, 720x480x12bpp YUV planar, 518400 bytesms |
137 |
3/12734 D/B/S 0/1/0 |
138 |
*** [spp] Exporting mp_image_t, 720x352x12bpp YUV planar, 380160 bytes/Vms |
139 |
3/8607 D/B/S 0/2/0 |
140 |
*** [scale] Allocating mp_image_t, 720x352x12bpp YUV planar, 380160 bytes |
141 |
*** [hqdn3d] Allocating mp_image_t, 720x352x12bpp YUV planar, 380160 bytes |
142 |
*** [x264] Allocating mp_image_t, 720x352x12bpp YUV planar, 380160 bytes |
143 |
*** [expand] Direct Rendering mp_image_t, 720x352x12bpp YUV planar, 380160 |
144 |
bytes |
145 |
|
146 |
2 duplicate frame(s)! |
147 |
Muxer frame buffer sending 25 frame(s) to the muxer. |
148 |
Writing header... |
149 |
ODML: vprp aspect is 16384:6753. |
150 |
Setting audio delay to 0.064s. |
151 |
Writing header... |
152 |
ODML: vprp aspect is 16384:6753. |
153 |
Setting audio delay to 0.064s. |
154 |
Writing header... |
155 |
ODML: vprp aspect is 16384:6753. |
156 |
Setting audio delay to 0.064s. |
157 |
*** [scale] Allocating mp_image_t, 720x352x12bpp YUV planar, 380160 bytess |
158 |
3/5171 D/B/S 2/2/0 |
159 |
*** [spp] Direct Rendering mp_image_t, 720x352x12bpp YUV planar, 380160 bytes |
160 |
*** [crop] Allocating (slices) mp_image_t, 720x480x12bpp YUV planar, 518400 |
161 |
bytes |
162 |
*** [scale] Allocating mp_image_t, 720x352x12bpp YUV planar, 380160 bytess |
163 |
3/3695 D/B/S 2/2/0 |
164 |
Segmentation fault |
165 |
|
166 |
|
167 |
Ah, so this is working _real_ well... Any ideas out there? Because I can't get |
168 |
past this point. |
169 |
|
170 |
(Insert my typical whine about video on linux being a pain here) |
171 |
-- |
172 |
"When you walk across the fields with your mind pure and holy, then from |
173 |
all the stones, and all growing things, and all animals, the sparks of |
174 |
their soul come out and cling to you. And then they are purified, and |
175 |
become a holy fire in you." -- Ancient Hasidic Saying |
176 |
-- |
177 |
gentoo-user@g.o mailing list |