[MEncoder-users] dv file crashes mencoder consistently

Bram bram at mencoder.as.avontuur.org
Wed Feb 6 14:40:32 CET 2008


Hey,

I have uploaded the first 5MB of a dv file, which consistently crashes
mencoder. Here it is:

http://bram.name/~brama/test_dv_crasher.dv 

I have compiled mencoder (latest svn rev) with --enable-debug and ran it
inside gdb, and it always crashes at the same location in the source.
It's too obscure for me to trace the actual fault though. VLC plays the
file, ffmpeg converts it.

A command to demonstrate the bug:

mencoder test_dv_crasher.dv -o /tmp/bla.avi -oac mp3lame -ovc xvid

Command output:

MEncoder dev-SVN-r25958-4.1.2 (C) 2000-2008 MPlayer Team
CPU: AMD Athlon(tm)64 X2 Dual Core Processor  3800+ (Family: 15, Model: 43, Stepping: 1)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2

success: format: 0  data: 0x0 - 0x500000
MPEG-PS file format detected.
VIDEO:  MPEG1  2763x172  (aspect 10)  60.000 fps  28048.8 kbps (3506.1 kbyte/s)
[V] filefmt:2  fourcc:0x10000001  size:2763x172  fps:60.00  ftime:=0.0167
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 224.0 kbit/14.58% (ratio: 28000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
xvid: using library version 1.1.2 (build xvid-1.1.2)
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 2763 x 172 (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 appending the scale filter to your filter list,
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))
==========================================================================
MP3 audio selected.
Pos:   0.0s      1f (100%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]^M
1 duplicate frame(s)!
(repeat previous 2 lines * often)
..
Flushing video frames.
Filters have not been configured! Empty file?
Writing index...
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.

Video stream:    0.000 kbit/s  (0 B/s)  size: 0 bytes  9.033 secs  603 frames

Audio stream:      nan kbit/s  (-2147483648 B/s)  size: 0 bytes  0.000 secs
zsh: segmentation fault  mencoder test_dv_crasher.dv -o /tmp/bla.avi -oac mp3lame -ovc xvid >  2>&1



GDB traceback:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1216022832 (LWP 27572)]
0x081d7fc6 in av_write_header (s=0x88b9d10) at utils.c:2239
2239            switch (st->codec->codec_type) {
(gdb) bt
#0  0x081d7fc6 in av_write_header (s=0x88b9d10) at utils.c:2239
#1  0x080b9dfb in write_header (muxer=0x88bf918) at muxer_lavf.c:303
#2  0x08085d2d in main (argc=31, argv=0xbfb928e4) at mencoder.c:1537

(gdb) list
2234    
2235        // some sanity checks
2236        for(i=0;i<s->nb_streams;i++) {
2237            st = s->streams[i];
2238    
2239            switch (st->codec->codec_type) {
2240            case CODEC_TYPE_AUDIO:
2241                if(st->codec->sample_rate<=0){
2242                    av_log(s, AV_LOG_ERROR, "sample rate not set\n");
2243                    return -1;

On line 2237, it assigns st. After assignment, st equals NULL.

Please CC: to my email address as well, I only read the digest of this list.

Best regards,
Bram



More information about the MEncoder-users mailing list