我使用来自OpenCV的VideoCapture(使用ffmpeg支持编译)从IP摄像头传输H264内容。如何处理cv :: VideoCapture解码错误?
到目前为止事情好的工作,但每过一段时间,我得到的解码错误(从ffmpeg的我相信):
[h264 @ 0x103006400] mb_type 137 in I slice too large at 26 10
[h264 @ 0x103006400] error while decoding MB 26 10
[h264 @ 0x103006400] negative number of zero coeffs at 25 5
[h264 @ 0x103006400] error while decoding MB 25 5
[h264 @ 0x103006400] cbp too large (421) at 35 13
[h264 @ 0x103006400] error while decoding MB 35 13
[h264 @ 0x103006400] mb_type 121 in P slice too large at 20 3
[h264 @ 0x103006400] error decoding MB 20 3
这些消息在控制台中显示出来。有没有干净的方法来听这些?我想跳过处理错误的帧。
任何提示/提示?
面临同样的问题....任何解决方案??? – tod 2015-10-26 17:48:29