[MPlayer-users] SIGSEGV: mencoder + mpeg2video + psnr opion

byavl byavl at papillon.ru
Thu Nov 18 08:32:28 CET 2004


Hi All

Here is command that passed ok:
$ mencoder a1.mjpg -o a1.mjpg.mpeg -vf hqdn3d=2:1:2 -of mpeg -ovc lavc
   -lavcopts vcodec=mpeg2video:v4mv:mbd=2:vqmax=10:vbitrate=5000
   -oac copy

Below is not. Only ":psnr:" option was added.

Here is a trouble:

(gdb) run mencoder a1.mjpg -o a1.mjpg.mpeg -vf hqdn3d=2:1:2 -of mpeg
-ovc lavc -lavcopts vcodec=mpeg2video:psnr:v4mv:mbd=2:
vqmax=10:vbitrate=5000 -oac copy

MEncoder dev-CVS-041115-10:00-3.2.2 (C) 2000-2004 MPlayer Team
[...]
Writing AVI index...
Fixing AVI header...

Video stream: 0,000 kbit/s (0 bps)  size:0 bytes 1,520 secs  40 frames
Audio stream: 1411,200 kbit/s (176400 bps) size:352800 bytes 2,000 secs

[Switching to Thread 16384 (LWP 12255)]

Breakpoint 1, uninit (vf=0x863e4c8) at ve_lavc.c:880
disp 1: lavc_param_psnr = 32768
(gdb) p lavc_venc_context->coded_frame
$16 = (AVFrame *) 0x0
(gdb) n

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 12263)]
0x0809e71f in uninit (vf=0x863e4c8) at ve_lavc.c:882

#if LIBAVCODEC_BUILD >= 4643
     if(lavc_param_psnr){
         double f=lavc_venc_context->width*lavc_venc_context->height*
                  255.0*255.0;
line 882: f*= lavc_venc_context->coded_frame->coded_picture_number;

         printf("PSNR: Y:%2.2f, Cb:%2.2f, Cr:%2.2f, All:%2.2f\n",
             psnr(lavc_venc_context->error[0]/f),
             psnr(lavc_venc_context->error[1]*4/f),
             psnr(lavc_venc_context->error[2]*4/f),
 
psnr((lavc_venc_context->error[0]+lavc_venc_context->error[1]+lavc_venc_context->error[2])/(f*1.5))
             );
     }
#endif

===
Aleksey Lekhtin
byavl at papillon.ru   ICQ: 15146863, AIM: byavl




More information about the MPlayer-users mailing list