[x264-devel] "mv cost test failed; x264 has been miscompiled" problem

Kevin.Liu kevin.liu at innosofts.com
Fri Jan 29 06:57:48 CET 2010


Hi all,

  I have embedded the x264 library (2008-01-26) to ffmpeg (2008-01-28) and
migrated to wince (armv4i),but I can not open the x264 coder with the error
"broken ffmpeg default setting detected". I found the error message in the
file "encoder.c " of x264.

 

    /* Detect default ffmpeg settings and terminate with an error. */

    {

        int score = 0;

        score += h->param.analyse.i_me_range == 0;

        score += h->param.rc.i_qp_step == 3;

        score += h->param.i_keyint_max == 12;

        score += h->param.rc.i_qp_min == 2;

        score += h->param.rc.i_qp_max == 31;

        score += h->param.rc.f_qcompress == 0.5;

        score += fabs(h->param.rc.f_ip_factor - 1.25) < 0.01;

        score += fabs(h->param.rc.f_pb_factor - 1.25) < 0.01;

        score += h->param.analyse.inter == 0 &&
h->param.analyse.i_subpel_refine == 8;

        if( score >= 5 )

        {

            x264_log( h, X264_LOG_ERROR, "broken ffmpeg default settings
detected\n" );

            x264_log( h, X264_LOG_ERROR, "use an encoding preset (vpre)\n"
);

            return -1;

        }

}  

 

it seems that some param were not set correctly with ffmpeg default setting
. So I changed the params to this which is included in the ffmpeg-preset
file:

        

h->param.analyse.i_me_range == 16;

        h->param.rc.i_qp_step == 4;

        h->param.i_keyint_max == 10;

        h->param.rc.i_qp_min == 10;

        h->param.rc.i_qp_max == 51;

        h->param.rc.f_qcompress == 0.6;

        h->param.rc.f_ip_factor=1/0.71;

 

     and the error has gone ,but another error came out "mv cost test
failed; x264 has been miscompiled". The error is also in function '
x264_encoder_open ' the file "encoder.c" 

 

 if( h->cost_mv[1][2013] != 24 )

    {

        x264_log( h, X264_LOG_ERROR, "MV cost test failed: x264 has been
miscompiled!\n" );

        goto fail;

    }

I am not familiar with the h264 encode , so I do not what should I do next.
Is this show that my params are wrong again or something also ?

Please help me to out the question ,thanks in advance.

 

 

Best regards,

Kevin Liu

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20100129/f00da395/attachment.htm>


More information about the x264-devel mailing list