[Live-devel] frame alignment

Ross Finlayson finlayson at live555.com
Mon Aug 21 17:50:32 PDT 2006


>  However I am having problems now with mpeg2 streams.
>I was under the impression from what little live code
>I read that the getNextFrame call returns a complete
>video frame which I can queue up in a buffer to pass
>to the decoder. This seems true for MPEG4 however I
>seem to be getting much smaller packets than the frame
>size for MPEG2.

For MPEG-1 or 2 video, each chunk of data that is delivered to a 
downstream reader is not actually a complete video 'frame'.  Instead, 
it is a video 'slice'.  (This makes it possible for a smart decoder 
to handle/display incomplete frames.)

>
>My question is do I have to clobber these together
>myself till I make a complete frame

Yes - if your decoder doesn't handle slices.
-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/


More information about the live-devel mailing list