[MPlayer-users] Segfault when using Trellis quantization

Corey Hickey bugfood-ml at fatooh.org
Thu Oct 2 02:16:23 CEST 2003


Jose FC wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> 
>>>>>but when I enable Trellis quantization, Mencoder segfault's at the
>>>>>very beginning of the encoding process.
>>
>>Try compiling Mplayer without optimization and with debug info
>>(use something like CFLAGS="-O0 -g" ./configure; make except
>>that I'm not sure how easy it's to compile mplayer with custom flags).
>>The crash may likely go away when not using optimization... in
>>that case compile with normal optimization but still with debug
>>info (CFLAGS="-O3 -g").
>>
>>Then load mencoder with gdb:
>># gdb mencoder
>>
>>
>>>set args <put your mencoder options here>
>>>run
>>
>>[gdb should now display that it segfaulted, and the line.
>>copy them and send on this list]
>>
>>
>>>bt
>>
>>[copy the backtrace info too]
>>
>>If you're able to do this, it'll help greatly debugging.
>>
>>Btw, recently mplayer has given me too also often segfaults. Seems to be
>>related to Xvideo (with -vo x11 seems to go away). Strange, I should
>>investigate more I guess (1.0preXX).
> 
> 
> I did what you said, and this was the result:
> 
> (gdb) run
> Starting program: /usr/local/bin/mencoder -nosound -ovc lavc -fps 25 -ofps 25 
> -lavcopts 
> vcodec=mpeg2video:vbitrate=1200:vqmin=1:vrc_buf_size=230:vrc_minrate=500:vrc_maxrate=2000:mbd=2:keyint=25:vmax_b_frames=2:autoaspect:vlelim=-4:vcelim=7:vstrict=1:vpsize=1000:lumi_mask=0.05:dark_mask=0.01:tcplx_mask=0.2:scplx_mask=0.2:trell 
> -sws 2 -vf hqdn3d,scale=480:576 -of mpeg -o test_out.mpg test.mpg
> Warning:
> Cannot insert breakpoint -2.
> Error accessing memory address 0x4000bb50: Error de entrada/salida (I/O error)
> The same program may be running in another process.

Mmm... Did you check to see if you had another mplayer running at the
time?

$ ps aux | grep mplayer

(there's another way to do that, but my memory evades me)

-Corey

> (gdb) bt
> #0  0x40000a80 in ?? ()
> Cannot access memory at address 0x0
> 
> 	- Jose




More information about the MPlayer-users mailing list