使用ffmpeg解码H.264帧时出错 [英] errors when decode H.264 frames using ffmpeg

查看:1953
本文介绍了使用ffmpeg解码H.264帧时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当解码从基于H.264的SIP视频呼叫的远端接收到的H.264帧时,出现以下错误.感谢您在理解错误方面的帮助.

I am getting the following errors when decoding H.264 frames received from the remote end of a H.264 based SIP video call. Appreciate any help in understanding there errors.

non-existing PPS 0 referenced
decode_slice_header error
non-existing PPS 0 referenced
decode_slice_header error
no frame!

non-existing PPS 0 referenced
decode_slice_header error
non-existing PPS 0 referenced
decode_slice_header error
no frame!

推荐答案

这只是意味着ffmpeg尚未看到包含SPS和PPS信息的关键帧. SPS和PPS在解码传入的帧/片段中至关重要.关键帧会定期发送(即每5-10秒或更长时间);因此,如果您发现关键帧到达之前就已加入流;您将在每一帧看到此警告,直到关键帧出现为止.

That just means that ffmpeg has not seen a keyframe yet, which carries SPS and PPS information. SPS and PPS are crucial in decoding an incoming frame/slice. Keyframes are sent periodically(i.e. every 5-10 seconds or more); so if turns out that you joined a stream before the keyframe arrived; you will see this warning for every frame until a keyframe shows up.

只要关键帧从电线上显示出来,ffmpeg就会有足够的信息来解码该帧(以及直到下一个关键帧的所有后续帧),因此这些警告将消失.

As soon as the keyframe shows up from the wire, ffmpeg will have enough information to decode that frame(and any subsequent frames until the next keyframe), so those warnings will go away.

这篇关于使用ffmpeg解码H.264帧时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆