<div dir="ltr">Please look <a href="https://freeswitch.org/jira/browse/FS-8851" target="_blank">FS-8851</a>. Are is related to your case?</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 1, 2016 at 12:11 PM, 郭秋平 <span dir="ltr">&lt;<a href="mailto:guoqiuping81112@163.com" target="_blank">guoqiuping81112@163.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Hi All:</div><div><br></div>My box is CentOS6.5, and FS is 1.6.4<div><br></div><div>When I use H264 as the video codec.</div><div>FS report encoding fail as below.</div><div>     [ERR] avcodec.c:1117 Encoding Error -1</div><div>and x264 report</div><div>     lookahead thread is already stopped</div><div><br></div><div>I checked the source code, I found that</div><div>when switch_h264_encode encode is invoked first time, it results that context-&gt;got_encoded_output is set to 1.</div><div>and after that, if switch_h264_encode is invoked again, it will check context-&gt;got_encoded_output , and then pass null frame to avcodec_encode_video2 which will stop the lookahead thread because of the null frame.</div><div><div>switch_h264_encode:</div><div><span style="white-space:pre-wrap">        </span>if (*got_output) { // Could be more delayed frames</div><div><span style="white-space:pre-wrap">                </span>ret = avcodec_encode_video2(avctx, pkt, <b>NULL</b>, got_output);</div></div><div><br></div><div>Is it a bug of mod_av or how can i solve the problem?</div><div><br></div><div>Thanks a lot</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>