[x264-devel] Re: Error Concealment

Ryan Dalzell x264 at tullyroan.com
Wed Jan 17 13:27:48 CET 2007


On Wednesday 17 January 2007 09:53, Awadh Bihari wrote:
> Please let me know how to detect the slice loss at the decoder side.
> It can only be detected if active sps/pps is not equal to sps/pps ?

Due to arbitrary slice order and the fact that slice headers do not tell you 
how many macroblocks are in the slice (and assuming you are receiving the 
video data over a network), I believe that the only way is to actually 
decode each slice and count the number of macroblocks that it contributes 
to a picture. Then, after a suitable period of time to allow late packets 
to arrive, if you still haven't decoded all the macroblocks of a picture 
then you have lost some slices.

It's not particularly pretty and in fact it is probably better to get the 
network protocol (e.g. RTP) to tell you about missing packets rather than 
waiting to discover them in the decoding.

Cheers,
-Ryan

-- 
This is the x264-devel mailing-list
To unsubscribe, go to: http://developers.videolan.org/lists.html



More information about the x264-devel mailing list