[MEncoder-users] [bug] Encoding with lavc (crash).

Matt Sicker boards at gmail.com
Tue Oct 10 19:55:22 CEST 2006


Alright, I had this bug occur in the same way a couple weeks back, but 
it's still apparent (in a completely different video), so I'm reporting 
here to see what's up.

In this case, I was transcoding an MPEG-2 VOB ripped 
via "mplayer -dumpstream dvd://" to an lavc-encoded MPEG-4 video (-oac 
copy), 2-pass.

The actual crash is a segfault, and that's all mencoder tells me (can't 
build a debug build at the moment because the trunk is broken at the 
moment; I'll get back to you on that when that gets fixed (cabac.h if 
you're wondering where the compile error is)).

Commands used:
mplayer -dumpstream -dumpfile faftd.vob dvd://
mencoder -ofps 24000/1001 -oac copy -aid 128 -vf crop=720:352:0:64 -ovc 
lavc -lavcopts 
vcodec=mpeg4:mbd=2:trell:v4mv:vmax_b_frames=2:vb_strategy=1:dia=4:precmp=0:cmp=3:subcmp=3:last_pred=3:vqmin=2:autoaspect:qpel:vbitrate=16000:vpass=1:turbo -o /dev/null 
faftd.vob
mencoder -ofps 24000/1001 -oac copy -aid 128 -vf crop=720:352:0:64 -ovc 
lavc -lavcopts 
vcodec=mpeg4:mbd=2:trell:v4mv:vmax_b_frames=2:dia=4:precmp=0:cmp=3:subcmp=3:last_pred=3:vqmin=2:autoaspect:qpel:vbitrate=16000:vpass=2 -o 
faftd.avi faftd.vob

This particular movie is _The Fast and the Furious: Tokyo Drift_, but I 
had this exact problem when trying to transcode _The Matrix_ via the 
same exact way.  In fact, the only difference between these two times I 
tried this is the source material; the commands are exactly the same 
(same aspect ratio even).

Output from MEncoder:

MEncoder dev-SVN-r20145-4.0.3 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 2.80GHz (Family: 15, Model: 2, Stepping: 
9)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

success: format: 0  data: 0x0 - 0x447f7000
MPEG-PS file format detected.
VIDEO:  MPEG2  720x480  (aspect 3)  29.970 fps  8000.0 kbps (1000.0 
kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x480  fps:29.97  ftime:=0.0334
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 448.0 kbit/29.17% (ratio: 56000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [crop w=720 h=352 x=0 y=64]
Crop: 720 x 352, 0 ; 64
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 480 (preferred colorspace: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try adding the scale filter, e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder 
libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
audiocodec: framecopy (format=2000 chans=2 rate=48000 bits=16 B/s=56000 
sample-1)
VDec: vo config request - 720 x 480 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
videocodec: libavcodec (720x352 fourcc=34504d46 [FMP4])
[VE_LAVC] High quality encoding selected (non-realtime)!
[mpeg4 @ 0x86de898][lavc rc] Using all of requested bitrate is not 
necessary for this video with these parameters.
Pos:   0.0s      2f ( 0%)  0.17fps Trem:   0min   0mb  A-V:0.003 [0:0]
1 duplicate frame(s)!
Writing header...
ODML: vprp aspect is 16384:6753.
Setting audio delay to 0.042s.
Writing header...
ODML: vprp aspect is 16384:6753.
Setting audio delay to 0.042s.
Writing header...4f ( 0%)  0.34fps Trem:   0min   0mb  A-V:0.010 [0:0]
ODML: vprp aspect is 16384:6753.
Setting audio delay to 0.042s.
Segmentation faultf ( 0%)  0.42fps Trem:   0min   0mb  A-V:0.013 [0:0]

If you need a video file to check this out, let me know.

I do recall trying this from an AVI generated via "mencoder -oac 
copy -ovc copy -ofps 24000/1001 -o foo.avi foo.vob", and that came up 
with the same segfault.
-- 
Matt Sicker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mencoder-users/attachments/20061010/98ad35a3/attachment.pgp>


More information about the MEncoder-users mailing list