在 2016年3月1日,下午6:42,Sergey Safarov <s.safarov@gmail.com> 写道:Please look FS-8851. Are is related to your case?_________________________________________________________________________On Tue, Mar 1, 2016 at 12:11 PM, 郭秋平 <guoqiuping81112@163.com> wrote:Hi All:My box is CentOS6.5, and FS is 1.6.4When I use H264 as the video codec.FS report encoding fail as below.[ERR] avcodec.c:1117 Encoding Error -1and x264 reportlookahead thread is already stoppedI checked the source code, I found thatwhen switch_h264_encode encode is invoked first time, it results that context->got_encoded_output is set to 1.and after that, if switch_h264_encode is invoked again, it will check context->got_encoded_output , and then pass null frame to avcodec_encode_video2 which will stop the lookahead thread because of the null frame.switch_h264_encode:if (*got_output) { // Could be more delayed framesret = avcodec_encode_video2(avctx, pkt, NULL, got_output);Is it a bug of mod_av or how can i solve the problem?Thanks a lot
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org