[Libav-user] Detecting broken frame

Tony Glover T.Glover at nottingham.ac.uk
Thu Oct 11 23:10:47 CEST 2012

                You can always detect when packets are lost or out of order via checking the sequence numbers that are contained within each packet, these are just sequential numbers contained in the packet header. The header will also typically tell you whether this packet is the start or end of a frame.

However, usually you would not want to get the missed frames re-sent if you have already processed more recent frames, these would be of no use to you. You could wait for the missing data to be re-sent if it's been missed, but typically applications such as this would use TCP to ensure reliable data delivery. As the other reply to this mail also stated, what would you show the user while the video was stalling? Packet loss is an inevitable part of transmitting data over networks using UDP and some applications handle the loss better than others.


This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20121011/abc0b4ef/attachment.html>

More information about the Libav-user mailing list