<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Lucida Calligraphy";
        panose-1:3 1 1 1 1 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
/* Page Definitions */
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=ZH-CN link=blue vlink=purple style='text-justify-trim:punctuation'>
<div class=Section1>
<p class=MsoNormal><span lang=EN-US>Hi all,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> 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 “<span style='color:red'>broken ffmpeg default
setting detected</span>”. I found the error message in the file “encoder.c
“ of x264.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:red'><o:p> </o:p></span></p>
<p class=MsoNormal><i><u><span lang=EN-US style='color:red'> </span><span
lang=EN-US style='color:#1F497D'> /* Detect default ffmpeg settings
and terminate with an error. */<o:p></o:p></span></u></i></p>
<p class=MsoNormal><i><u><span lang=EN-US style='color:#1F497D'>
{<o:p></o:p></span></u></i></p>
<p class=MsoNormal><i><u><span lang=EN-US style='color:#1F497D'>
int score = 0;<o:p></o:p></span></u></i></p>
<p class=MsoNormal><i><u><span lang=EN-US style='color:#1F497D'>
score += h->param.analyse.i_me_range == 0;<o:p></o:p></span></u></i></p>
<p class=MsoNormal><i><u><span lang=EN-US style='color:#1F497D'>
score += h->param.rc.i_qp_step == 3;<o:p></o:p></span></u></i></p>
<p class=MsoNormal><i><u><span lang=EN-US style='color:#1F497D'>
score += h->param.i_keyint_max == 12;<o:p></o:p></span></u></i></p>
<p class=MsoNormal><i><u><span lang=EN-US style='color:#1F497D'>
score += h->param.rc.i_qp_min == 2;<o:p></o:p></span></u></i></p>
<p class=MsoNormal><i><u><span lang=EN-US style='color:#1F497D'>
score += h->param.rc.i_qp_max == 31;<o:p></o:p></span></u></i></p>
<p class=MsoNormal><i><u><span lang=EN-US style='color:#1F497D'>
score += h->param.rc.f_qcompress == 0.5;<o:p></o:p></span></u></i></p>
<p class=MsoNormal><i><u><span lang=EN-US style='color:#1F497D'>
score += fabs(h->param.rc.f_ip_factor - 1.25) < 0.01;<o:p></o:p></span></u></i></p>
<p class=MsoNormal><i><u><span lang=EN-US style='color:#1F497D'>
score += fabs(h->param.rc.f_pb_factor - 1.25) < 0.01;<o:p></o:p></span></u></i></p>
<p class=MsoNormal><i><u><span lang=EN-US style='color:#1F497D'>
score += h->param.analyse.inter == 0 &&
h->param.analyse.i_subpel_refine == 8;<o:p></o:p></span></u></i></p>
<p class=MsoNormal><i><u><span lang=EN-US style='color:#1F497D'>
if( score >= 5 )<o:p></o:p></span></u></i></p>
<p class=MsoNormal><i><u><span lang=EN-US style='color:#1F497D'>
{<o:p></o:p></span></u></i></p>
<p class=MsoNormal><i><u><span lang=EN-US style='color:#1F497D'>
x264_log( h, X264_LOG_ERROR, "broken ffmpeg default settings detected\n"
);<o:p></o:p></span></u></i></p>
<p class=MsoNormal><i><u><span lang=EN-US style='color:#1F497D'>
x264_log( h, X264_LOG_ERROR, "use an encoding preset (vpre)\n" );<o:p></o:p></span></u></i></p>
<p class=MsoNormal><i><u><span lang=EN-US style='color:#1F497D'>
return -1;<o:p></o:p></span></u></i></p>
<p class=MsoNormal><i><u><span lang=EN-US style='color:#1F497D'>
}<o:p></o:p></span></u></i></p>
<p class=MsoNormal style='text-indent:21.0pt'><i><u><span lang=EN-US
style='color:#1F497D'>}</span><span lang=EN-US style='color:red'> <o:p></o:p></span></u></i></p>
<p class=MsoNormal style='text-indent:21.0pt'><i><u><span lang=EN-US
style='color:red'><o:p><span style='text-decoration:none'> </span></o:p></span></u></i></p>
<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
style='color:black'>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:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'> <u>
<i> <o:p></o:p></i></u></span></p>
<p class=MsoNormal style='text-indent:42.0pt'><i><u><span lang=EN-US
style='color:#1F497D'>h->param.analyse.i_me_range == 16;<o:p></o:p></span></u></i></p>
<p class=MsoNormal><i><u><span lang=EN-US style='color:#1F497D'>
h->param.rc.i_qp_step == 4;<o:p></o:p></span></u></i></p>
<p class=MsoNormal><i><u><span lang=EN-US style='color:#1F497D'>
h->param.i_keyint_max == 10;<o:p></o:p></span></u></i></p>
<p class=MsoNormal><i><u><span lang=EN-US style='color:#1F497D'>
h->param.rc.i_qp_min == 10;<o:p></o:p></span></u></i></p>
<p class=MsoNormal><i><u><span lang=EN-US style='color:#1F497D'>
h->param.rc.i_qp_max == 51;<o:p></o:p></span></u></i></p>
<p class=MsoNormal><i><u><span lang=EN-US style='color:#1F497D'>
h->param.rc.f_qcompress == 0.6;<o:p></o:p></span></u></i></p>
<p class=MsoNormal><i><u><span lang=EN-US style='color:#1F497D'>
h->param.rc.f_ip_factor=1/0.71;<o:p></o:p></span></u></i></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:red'> </span><span
lang=EN-US> and the error has gone ,but another error came out
“<span style='color:red'>mv cost test failed; x264 has been miscompiled</span>”.
The error is also in function ‘ x264_encoder_open ‘ the file “encoder.c”
<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'> <o:p></o:p></span></p>
<p class=MsoNormal align=left style='text-align:left'><i><u><span lang=EN-US
style='color:#1F497D'> if( h->cost_mv[1][2013] != 24 )<o:p></o:p></span></u></i></p>
<p class=MsoNormal align=left style='text-align:left'><i><u><span lang=EN-US
style='color:#1F497D'> {<o:p></o:p></span></u></i></p>
<p class=MsoNormal align=left style='text-align:left'><i><u><span lang=EN-US
style='color:#1F497D'> x264_log( h,
X264_LOG_ERROR, "MV cost test failed: x264 has been miscompiled!\n"
);<o:p></o:p></span></u></i></p>
<p class=MsoNormal align=left style='text-align:left'><i><u><span lang=EN-US
style='color:#1F497D'> goto fail;<o:p></o:p></span></u></i></p>
<p class=MsoNormal align=left style='text-align:left'><i><u><span lang=EN-US
style='color:#1F497D'> }<o:p></o:p></span></u></i></p>
<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
style='color:black'>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
?<o:p></o:p></span></p>
<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
style='color:black'>Please help me to out the question ,thanks in advance.<o:p></o:p></span></p>
<p class=MsoNormal style='text-indent:21.0pt'><span lang=EN-US
style='color:black'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Best regards,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-family:"Lucida Calligraphy"'>Kevin
Liu<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
</div>
</body>
</html>