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

Corey Hickey bugfood-ml at fatooh.org
Fri Mar 18 19:46:15 CET 2005


El Farto wrote:
> 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:

Please don't post partial mencoder output. Post all the output. In this 
case you've cut out the part where mencoder reports its version, so I 
have to ask you: what version of mencoder are you using? If you're not 
using latest CVS, try that first. If you still have a problem, read:

http://www.mplayerhq.hu/DOCS/HTML/en/bugreports.html

...for general guidelines, then fill out a bug report. If you post your 
jpegs (only enough of them to reproduce the problem) on a publicly 
accessible server I'll take a look.

> 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

Are you running mencoder as root? That's not necessary for mencoder, and 
if your files/directories are only readable/writable by root, you might 
want to rethink your permissions scheme.

-Corey




More information about the MEncoder-users mailing list