[Libav-user] Detecting broken frame

Andrew Krupiczka andrewk at vbrick.com
Thu Oct 11 22:57:10 CEST 2012

Assuming you're successful with your approach have you thought about what you're going to display to user until you get back all requested data.
That's not how things are normally working - very likely you have less or more significant data buffering going at your video decoder.
Instead, you should be rather thinking about improving a decoding resiliency e.g. just by repeating non-corrupted/missing data or by using some more advanced tools present in H.264 - if that is your format.
Best regards,


From: libav-user-bounces at ffmpeg.org [mailto:libav-user-bounces at ffmpeg.org] On Behalf Of Marco Anastasi
Sent: Thursday, October 11, 2012 4:43 PM
To: libav-user at ffmpeg.org
Subject: [Libav-user] Detecting broken frame

Hi all,
I'm using avcodec to decode an RTSP video stream for a custom streaming application that I'm working on, and I noticed that sometimes a frame gets corrupted and the video breaks completely, until it goes back to normal after a while, I guess when a key frame is received. I believe the breakage to happen when a keyframe goes missing, or when a packet is corrupted or missing. I would like to detect when this happens, in order to send an out-of-band message to the streaming server and force it to send another keyframe when one is lost. Could anyone give me any hint about how / where I could retrieve this information?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20121011/29a83bb9/attachment.html>

More information about the Libav-user mailing list