【发布时间】:2015-09-05 13:19:12
【问题描述】:
我收到以下 H264 错误日志。此日志是在 FFMPEG 的帮助下解码 RTSP 视频流时出现的。显示的图像在 5/6 秒后变得模糊。图片会不时恢复它。然而,大部分时间它仍然是模糊的。
编辑:一些 FFMPEG 讨论论坛建议升级 FFMPEG 版本以避免这些日志。我已经更新了 2015 年 6 月 19 日的最新 FFMPEG 版本。日志仍然在那里,图片仍然模糊。
编辑 2:RTSP 流来自 GANZ 摄像机。此相机通过 LAN 连接。
[h264 @ 0abb2aa0] Cannot use next picture in error concealment
[h264 @ 0abb2aa0] concealing 1933 DC, 1933 AC, 1933 MV errors in P frame
[h264 @ 098e5c80] RTP: missed 131 packets
[h264 @ 0abb3300] error while decoding MB 66 25, bytestream (-9)
[h264 @ 0abb3300] Cannot use next picture in error concealment
[h264 @ 0abb3300] concealing 1583 DC, 1583 AC, 1583 MV errors in P frame
[h264 @ 098e5c80] RTP: missed 8 packets
[h264 @ 0b113e40] error while decoding MB 54 30, bytestream (-11)
[h264 @ 0b113e40] Cannot use next picture in error concealment
[h264 @ 0b113e40] concealing 1195 DC, 1195 AC, 1195 MV errors in P frame
[h264 @ 098e5c80] RTP: missed 118 packets
[h264 @ 0ac79960] error while decoding MB 13 20, bytestream (-13)
[h264 @ 0ac79960] Cannot use next picture in error concealment
[h264 @ 0ac79960] concealing 2036 DC, 2036 AC, 2036 MV errors in P frame
[h264 @ 098e5c80] RTP: missed 198 packets
[h264 @ 0ad4f500] error while decoding MB 21 9, bytestream (-5)
[h264 @ 0ad4f500] Cannot use next picture in error concealment
[h264 @ 0ad4f500] concealing 2908 DC, 2908 AC, 2908 MV errors in P frame
[h264 @ 098e5c80] RTP: missed 108 packets
[h264 @ 0abb3300] error while decoding MB 1 14, bytestream (-5)
[h264 @ 0abb3300] Cannot use next picture in error concealment
[h264 @ 0abb3300] concealing 2528 DC, 2528 AC, 2528 MV errors in P frame
[h264 @ 098e5c80] RTP: missed 106 packets
[h264 @ 0b1149c0] error while decoding MB 12 5, bytestream (-7)
[h264 @ 0b1149c0] Cannot use next picture in error concealment
[h264 @ 0b1149c0] concealing 3237 DC, 3237 AC, 3237 MV errors in P frame
[h264 @ 098e5c80] RTP: missed -65402 packets
[h264 @ 0b1155a0] error while decoding MB 50 38, bytestream (-7)
[h264 @ 0b1155a0] Cannot use next picture in error concealment
[h264 @ 0b1155a0] concealing 559 DC, 559 AC, 559 MV errors in P frame
[h264 @ 098e5c80] RTP: missed 150 packets
[h264 @ 0af65740] error while decoding MB 48 31, bytestream (-15)
[h264 @ 0af65740] Cannot use next picture in error concealment
[h264 @ 0af65740] concealing 1121 DC, 1121 AC, 1121 MV errors in P frame
[h264 @ 098e5c80] RTP: missed 4 packets
[h264 @ 0ac79960] error while decoding MB 35 38, bytestream (-41)
[h264 @ 0ac79960] Cannot use next picture in error concealment
[h264 @ 0ac79960] concealing 574 DC, 574 AC, 574 MV errors in P frame
我使用 ffmpeg 将 RTSP 流转储到 avi 文件,并且没有错误。 C:\Users\Matlab>ffmpeg -i rtsp://192.168.1.67/gnz_media/main 123.avi
没有 H.264 解码错误。任何人都可以使用 ffmpeg api 帮助解决上述解码错误。
【问题讨论】:
-
请不要在多个 Stack Exchange 网站上询问 same question。
-
@tariq:你能做到以下几点:
ffplay << RTSP STREAM >>并在此处发布输出吗?ffplay是 ffmpeg 工具包的一部分,但不确定它在 Windows 上的工作原理... -
您只是对流进行解码或重新编码吗?它只是看起来像 ffmpeg 太忙编码,所以它只是跳过传入的数据包,这会导致错误。尝试使用较小的分辨率。
-
我没有对视频流进行编码。我收到一个 RTSP 流,对其进行解码,然后使用 OpenCV 显示。
-
我使用 ffmpeg 将 RTSP 流转储到 avi 文件,并且没有错误。 C:\Users\Matlab>ffmpeg -i rtsp://192.168.1.67/gnz_media/main 123.avi;谁能帮我理解为什么它会显示这种行为(在 c 程序中给出日志错误,并且在使用 ffmpeg.exe 命令将 RTSP 流转储到 avi 文件时完全没有错误)?