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

查看:62
本文介绍了使用 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天全站免登陆