[Live-devel] Number of frames

Ross Finlayson finlayson at live555.com
Wed Dec 27 06:03:43 PST 2006


>We are using RTP server and client test programs to stream MPEG II files. We
>need to find out which packet belongs to which frame. In the LIVE555 code
>base, the frame refers to picture header/GOP header/slice. However, we are
>looking for the complete video frame (picture). Since one complete frame
>goes in different packets, we need to find which packet belongs to which
>frame.

It wasn't clear from your message whether you are talking about the 
server end or the client end.  I presume you're talking about the 
client (i.e., receiving) end.

In most video RTP payload formats - including MPEG-2 - the RTP "M" 
(marker) bit is used to mark the last RTP packet  for each complete 
video frame.  You can test this bit (at the client end) by calling 
"RTPSource:: curPacketMarkerBit()".  (Note, for example, how the VLC 
code does this - in its "live555.cpp" code.)
-- 

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


More information about the live-devel mailing list