[MEncoder-users] [BUG?] ]get_buffer() failed (stride changed) and Seg. Faults

El Farto elfarto at gmail.com
Fri Mar 18 16:09:55 CET 2005


Hi, i'm trying to convert to avi a serie of jpg files coming out of a
couple of network cameras, i've been fighting this problem since last
december and i can't seem to find the solution.
This is the command line i'm using:
mencoder mf://$CAMDIR/$CAM/$CAM\_$HOUR*.jpg -mf
w=320:h=240:type=jpg:fps=10 -nosound -ovc lavc -lavcopts
vcodec=msmpeg4v2 -o $WWWDIR/$CAM/$CAM\_$HOUR\00.avi

At random frames i get get_buffer() failed (stride changed) followed
by a Segmentation Fault and encoding stops.
Note that this box is a gentoo linux box where everything was compiled
from source and i never had a segfault before (gentoo is very
sensitive to hardware problems when compiling), for a try i reduced my
CFLAGS to "-march=i686 -O2" but it didn't make a difference.
I've also tried with every codec in -ovc list, and the only ones that
didn't fail were raw and copy (no fun!)
Further research indicates that there is something wrong with the jpeg files
If anyone can help me, i'll gladly post the offending jpgs to help
squash this bug, (note that
Anyone can shred light over that does that error means ?
Here is an excerpt of mencoder output:

Reading /root/.mplayer/codecs.conf: Can't open
'/root/.mplayer/codecs.conf': No such file or directory
Reading /usr/share/mplayer/codecs.conf: 73 audio & 180 video codecs
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file /root/.mplayer/mencoder: No such file or directory
font: can't open file: /root/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
success: format: 16  data: 0x0 - 0x0
[demuxer] mf support.
[mf] search expr: /home/cam6/cam6_2005031810*.jpg
[mf] number of files: 903 (3612)
[V] filefmt:16  fourcc:0x47504A49  size:320x240  fps:10.00  ftime:=0.1000
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmjpeg] vfm:ffmpeg (FFmpeg MJPEG decoder)
==========================================================================
Writing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not
writing vprp header.
VDec: vo config request - 320 x 240 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 3)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
videocodec: libavcodec (320x240 fourcc=3234504d [MP42])
[msmpeg4v2 @ 0x83a36a8]warning, cliping 1 dct coefficents to -127..127
[msmpeg4v2 @ 0x83a36a8]warning, cliping 1 dct coefficents to -127..127
[msmpeg4v2 @ 0x83a36a8]warning, cliping 1 dct coefficents to -127..127
[msmpeg4v2 @ 0x83a36a8]warning, cliping 1 dct coefficents to -127..127
[msmpeg4v2 @ 0x83a36a8]warning, cliping 1 dct coefficents to -127..127
[msmpeg4v2 @ 0x83a36a8]warning, cliping 1 dct coefficents to -127..127
[msmpeg4v2 @ 0x83a36a8]warning, cliping 1 dct coefficents to -127..127
[msmpeg4v2 @ 0x83a36a8]warning, cliping 1 dct coefficents to -127..127
[msmpeg4v2 @ 0x83a36a8]warning, cliping 1 dct coefficents to -127..127
[msmpeg4v2 @ 0x83a36a8]warning, cliping 1 dct coefficents to -127..127
[msmpeg4v2 @ 0x83a36a8]warning, cliping 1 dct coefficents to -127..127
[msmpeg4v2 @ 0x83a36a8]warning, cliping 1 dct coefficents to -127..127
[msmpeg4v2 @ 0x83a36a8]warning, cliping 1 dct coefficents to -127..127
[msmpeg4v2 @ 0x83a36a8]warning, cliping 1 dct coefficents to -127..127
[msmpeg4v2 @ 0x83a36a8]warning, cliping 1 dct coefficents to -127..127
[msmpeg4v2 @ 0x83a36a8]warning, cliping 1 dct coefficents to -127..127
[msmpeg4v2 @ 0x83a36a8]warning, cliping 1 dct coefficents to -127..127
[msmpeg4v2 @ 0x83a36a8]warning, cliping 1 dct coefficents to -127..127
[msmpeg4v2 @ 0x83a36a8]warning, cliping 1 dct coefficents to -127..127
[msmpeg4v2 @ 0x83a36a8]warning, cliping 1 dct coefficents to -127..127
[msmpeg4v2 @ 0x83a36a8]warning, cliping 1 dct coefficents to -127..127
[msmpeg4v2 @ 0x83a36a8]warning, cliping 1 dct coefficents to -127..127
[msmpeg4v2 @ 0x83a36a8]warning, cliping 1 dct coefficents to -127..127
[msmpeg4v2 @ 0x83a36a8]warning, cliping 1 dct coefficents to -127..127
[msmpeg4v2 @ 0x83a36a8]warning, cliping 1 dct coefficents to -127..127
[msmpeg4v2 @ 0x83a36a8]get_buffer() failed (stride changed)000 [789:0]
Segmentation fault




More information about the MEncoder-users mailing list