On Monday 05 Jan 2004 9:11 pm, John Richard Smith wrote:
> Richard Urwin wrote:
> >On Monday 05 Jan 2004 10:29 am, John Richard Smith wrote:
> >>High quality encoding selected (non real time)!
> >>get_buffer() failed (0 -115967 0 0x40d5df30)
> >
> >Oh look at that.
> >Can you run it again, but before starting the application (run -v ...) set
> > a breakpoint on the line:
> >         av_log(s->avctx, AV_LOG_ERROR, "get_buffer() failed (%d %d %d %p)\n",
> > r, pic->age, pic->type, pic->data[0]);
> >in libavcodec/mpegvideo.c

Sorry I was a little unclear. See below.

>
> You can see it's broken up a bit in transit, please confirm the line
> begins and ends
>
> av_log  to  mpegvideo.c    all one line.
>
> >My source code says that's line 285, but yours may well be different. (I'm
> > looking at 1.0pre3) The gdb command is "break mpegvideo.c:285" Remember
> > to check and change the line number.
>
> How ?
>
> >Start it like before with run -v ... and when it stops at the breakpoint
> > get a backtrace. Don't bother with the registers or disassembly.
>
> OK, so if I unsestand this correctly, from
> [EMAIL PROTECTED] MPlayer-20030901]# gdb ./mencoder
> GNU gdb 5.3-22mdk (Mandrake Linux)
> Copyright 2002 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you
> are welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "i586-mandrake-linux-gnu"...
> (gdb)
>
> set the breakpoint like this,
>
> av_log(s->avctx, AV_LOG_ERROR, "get_buffer() failed (%d %d %d %p)\n",
> r,pic->age, pic->type, pic->data[0]);in libavcodec/mpegvideo.c
>
> note : all one line,

No.
Search the source code file libavcodec/mpegvideo.c for the line:

        av_log(s->avctx, AV_LOG_ERROR, "get_buffer() failed (%d %d %d %p)\n", r, 
pic->age, pic->type, pic->data[0]);

Make a note of it's line number.

(kwrite displays line numbers in the bottom left of the status bar.)

Give gdb the command:
        break mpegvideo.c:285
Replacing 285 with whatever the line number was that you found.

>
> then run,
> run -v dvd://1 -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=1024 -oac
> mp3lame -lameopts br=96:cbr -alang en -idx -o toystory1.avi
>
> and when it gets to the breakpoint,
>
> type,
> backtrace
>
> is that it ?

Apart from my modifications, yes.

-- 
Richard Urwin

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to