[Freeswitch-users] H264 Encoding Error

郭秋平 guoqiuping81112 at 163.com
Thu Mar 3 05:28:29 MSK 2016


 This issue is because the client does not send keyframe to FS




> 在 2016年3月2日,下午10:06,郭秋平 <guoqiuping81112 at 163.com> 写道:
> 
> I found the issue is because of the incorrect version of x264.
> 
> I use x264-snapshot-20150625-0011-stable , then the issue disappears.
> but now libav report another log:
> non-existing PPS 0 referenced
> decode_slice_header error
> non-existing PPS 0 referenced
> decode_slice_header error
> non-existing PPS 0 referenced
> decode_slice_header error
> no frame!
> 
> How can I know the exact version of x264 and libav for FreeSWITH 1.6.4
> 
> 
>> 在 2016年3月2日,上午12:23,郭秋平 <guoqiuping81112 at 163.com <mailto:guoqiuping81112 at 163.com>> 写道:
>> 
>> sorry, my mistake.   my operation system is CentOS 7.1.1503
>> 
>>> 在 2016年3月2日,上午12:13,Brian West <brian at freeswitch.org <mailto:brian at freeswitch.org>> 写道:
>>> 
>>> You've lost me at "My box is CentOS6.5"
>>> 
>>> On Tue, Mar 1, 2016 at 3:11 AM, 郭秋平 <guoqiuping81112 at 163.com <mailto:guoqiuping81112 at 163.com>> wrote:
>>> Hi All:
>>> 
>>> My box is CentOS6.5, and FS is 1.6.4
>>> 
>>> When I use H264 as the video codec.
>>> FS report encoding fail as below.
>>>      [ERR] avcodec.c:1117 Encoding Error -1
>>> and x264 report
>>>      lookahead thread is already stopped
>>> 
>>> I checked the source code, I found that
>>> when 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 frames
>>> 		ret = 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 at freeswitch.org <mailto:consulting at freeswitch.org>
>>> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
>>> 
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org <http://www.freeswitch.org/>
>>> http://confluence.freeswitch.org <http://confluence.freeswitch.org/>
>>> http://www.cluecon.com <http://www.cluecon.com/>
>>> 
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org>
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users>
>>> http://www.freeswitch.org <http://www.freeswitch.org/>
>>> 
>>> 
>>> 
>>> -- 
>>> Brian West
>>> brian at freeswitch.org <mailto:brian at freeswitch.org>
>>> 
>>> Twitter: @FreeSWITCH , @briankwest
>>> http://www.freeswitchbook.com <http://www.freeswitchbook.com/>
>>> http://www.freeswitchcookbook.com <http://www.freeswitchcookbook.com/>
>>> Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
>>> T:+19184209001 | F:+19184209002 | M:+1918424WEST (9378)
>>> iNUM:+883 5100 1420 9001 | ISN:410*543 | Skype:briankwest
>>> 
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services: 
>>> consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>>> http://www.freeswitchsolutions.com <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 at 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 at freeswitch.org <mailto:consulting at 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 at 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 at 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160303/a8cdbcf8/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list