<html><head><meta http-equiv="Content-Type" content="text/html charset=gb2312"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">sorry, my mistake. &nbsp; my operation system is CentOS&nbsp;7.1.1503</div><br class=""><div><blockquote type="cite" class=""><div class="">在 2016年3月2日,上午12:13,Brian West &lt;<a href="mailto:brian@freeswitch.org" class="">brian@freeswitch.org</a>&gt; 写道:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">You've lost me at "<span style="font-size:12.8px" class="">My box is CentOS6.5"</span></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Tue, Mar 1, 2016 at 3:11 AM, 郭秋平 <span dir="ltr" class="">&lt;<a href="mailto:guoqiuping81112@163.com" target="_blank" class="">guoqiuping81112@163.com</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class="">Hi All:</div><div class=""><br class=""></div>My box is CentOS6.5, and FS is 1.6.4<div class=""><br class=""></div><div class="">When I use H264 as the video codec.</div><div class="">FS report encoding fail as below.</div><div class="">&nbsp; &nbsp; &nbsp;[ERR] avcodec.c:1117 Encoding Error -1</div><div class="">and x264 report</div><div class="">&nbsp; &nbsp; &nbsp;lookahead thread is already stopped</div><div class=""><br class=""></div><div class="">I checked the source code, I found that</div><div class="">when&nbsp;switch_h264_encode encode is invoked first time, it results that&nbsp;context-&gt;got_encoded_output is set to 1.</div><div class="">and after that, if switch_h264_encode is invoked again, it will check context-&gt;got_encoded_output , and then pass null frame to&nbsp;avcodec_encode_video2 which will stop the lookahead thread because of the null frame.</div><div class=""><div class="">switch_h264_encode:</div><div class=""><span style="white-space:pre-wrap" class="">        </span>if (*got_output) { // Could be more delayed frames</div><div class=""><span style="white-space:pre-wrap" class="">                </span>ret = avcodec_encode_video2(avctx, pkt, <b class="">NULL</b>, got_output);</div></div><div class=""><br class=""></div><div class="">Is it a bug of mod_av or how can i solve the problem?</div><div class=""><br class=""></div><div class="">Thanks a lot</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div></div><br class="">_________________________________________________________________________<br class="">
Professional FreeSWITCH Consulting Services:<br class="">
<a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class="">
<a href="http://www.freeswitchsolutions.com/" rel="noreferrer" target="_blank" class="">http://www.freeswitchsolutions.com</a><br class="">
<br class="">
Official FreeSWITCH Sites<br class="">
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class="">
<a href="http://confluence.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://confluence.freeswitch.org</a><br class="">
<a href="http://www.cluecon.com/" rel="noreferrer" target="_blank" class="">http://www.cluecon.com</a><br class="">
<br class="">
FreeSWITCH-users mailing list<br class="">
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" class="">FreeSWITCH-users@lists.freeswitch.org</a><br class="">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="">
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank" class="">http://www.freeswitch.org</a><br class=""></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div class="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><p class=""><font face="courier new, monospace" class=""><b class=""><i class=""><font size="4" class="">Brian West</font></i></b><br class=""><span style="font-size:x-small" class=""><a href="mailto:brian@freeswitch.org" target="_blank" class="">brian@freeswitch.org</a></span></font></p><p class=""><font size="1" face="courier new, monospace" class=""><img src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png" class=""><br class=""></font></p><p class=""><font size="2" face="monospace, monospace" class=""><b class=""><i class="">Twitter: @FreeSWITCH , @briankwest</i></b><br class=""><a href="http://www.freeswitchbook.com/" target="_blank" class="">http://www.freeswitchbook.com</a><br class=""><a href="http://www.freeswitchcookbook.com/" target="_blank" class="">http://www.freeswitchcookbook.com</a></font></p><p class=""><font face="monospace, monospace" class="">Got Bugs? Report them <a href="https://freeswitch.org/jira" target="_blank" class="">here</a>! | Reddit:&nbsp;<a href="https://www.reddit.com/r/freeswitch" target="_blank" class="">/r/freeswitch</a></font></p><p class=""><font size="2" face="monospace, monospace" class=""><b class="">T:</b>+19184209001 | <b class="">F:</b>+19184209002 | <b class="">M:</b>+1918424WEST (9378)<br class=""><b class="">iNUM:</b>+883 5100 1420 9001 |&nbsp;<b class="">ISN:</b>410*543 |&nbsp;<b class="">Skype:</b>briankwest</font></p></div></div></div></div></div></div></div></div></div></div>
</div>
_________________________________________________________________________<br class="">Professional FreeSWITCH Consulting Services: <br class=""><a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class="">http://www.freeswitchsolutions.com<br class=""><br class="">Official FreeSWITCH Sites<br class="">http://www.freeswitch.org<br class="">http://confluence.freeswitch.org<br class="">http://www.cluecon.com<br class=""><br class="">FreeSWITCH-users mailing list<br class="">FreeSWITCH-users@lists.freeswitch.org<br class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br class="">UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br class="">http://www.freeswitch.org</div></blockquote></div><br class=""></body></html>