Gentoo Archives: gentoo-user

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