Opened 16 years ago

Last modified 13 years ago

#1086 new defect

indeo4 binary codec crashes if frames are dropped

Reported by: rectalogic@… Owned by: reimar
Priority: normal Component: ve
Version: HEAD Severity: normal
Keywords: Cc: compn
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

The first 5M of the sample video is available at the URL above.

mencoder command line is:
DYLD_BIND_AT_LAUNCH=1 mencoder ~/Desktop/IV41-MP3.avi -ovc raw -vf format=i420 -oac pcm -v -o ~/Desktop/IV41-MP3-raw.avi

mencoder encodes some of the file and then exits with a Bus error.

mplayer is able to successfully play the original video (it does crash with the 5M sample chunk, but can play the 156M original video - mencoder crashes on the 156M original)

Attachments (1)

mencoder.log (8.8 KB ) - added by rectalogic@… 16 years ago.
mencoder output

Download all attachments as: .zip

Change History (9)

by rectalogic@…, 16 years ago

Attachment: mencoder.log added

mencoder output

comment:1 by rectalogic@…, 16 years ago

comment:2 by rectalogic@…, 16 years ago

Here is a backtrace from gdb right before the crash, this is with svn r27340

(gdb) backtrace
#0 SendDriverMessage (hDriver=22234384, message=16397, lParam1=-1073746108, lParam2=24) at loader/drv.c:109
#1 0x00198b05 in ICSendMessage (hic=22237600, msg=16397, lParam1=-1073746108, lParam2=24) at loader/vfl.c:209
#2 0x001989a0 in ICDecompress (hic=22237600, dwFlags=134217728, lpbiFormat=0x1533d50, lpData=0x2559000, lpbi=0x1814e00, lpBits=0x0) at loader/vfl.c:143
#3 0x00194aee in decode (sh=0x1533c00, data=0x2559000, len=19086, flags=1) at libmpcodecs/vd_vfw.c:320
#4 0x00067e1b in decode_video (sh_video=0x1533c00, start=0x2559000 "????J", in_size=19086, drop_frame=1, pts=-9.2233720368547758e+18) at libmpcodecs/dec_video.c:369
#5 0x00006d6d in main (argc=10, argv=0xbffff688) at mencoder.c:1348
(gdb) step

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00033000
0x100087af in ?? ()

comment:3 by compn, 13 years ago

Cc: patriotact@… added

hmm, does it crash in binary codec?

this bug still happen in svn?

comment:4 by rectalogic@…, 13 years ago

(In reply to comment #3)

hmm, does it crash in binary codec?

I'm not sure, the crash is corrupting the stack.

this bug still happen in svn?

Still happens in r32667 - it makes it up to frame 22 then crashes.

comment:5 by compn, 13 years ago

can you upload the sample to mphq? i cant connect to your site anymore.

the bt says something about drop_frame, can you try with mencoder -mc 0 ?

and of course if you are just converting to raw, then mplayer -vo yuv4mpeg might work.

comment:6 by rectalogic@…, 13 years ago

(In reply to comment #5)

can you upload the sample to mphq? i cant connect to your site anymore.

I put it in incoming/bug1086/iv41.avi


the bt says something about drop_frame, can you try with mencoder -mc 0 ?

Hey, -mc 0 fixes it, it encodes all 10057 frames properly! Thanks.

comment:7 by compn, 13 years ago

Summary: mencoder gets bus error encoding from indeo4 AVIindeo4 binary codec crashes if frames are dropped

i wonder if indeo4 binary codec can handle dropped frames ?

also, feel free to ping me about any bugs you started here on bugzilla, i'm trying to review all of them.

comment:8 by compn, 13 years ago

Owner: changed from r_togni@… to reimar
Note: See TracTickets for help on using tickets.