<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Correct me if I am wrong, but currently testRTSPClient receives RTP packets. Is there a way to receive the individual h264 frames, Ie. parse the incoming packets and provide each individual h264 frame (each i frame and p frames).<br>
<br></blockquote><div><br></div><div>In your MediaSink derived class (called "DummySink" in the testRTSPClient code), the afterGettingFrame() method gets called for each H.264 NAL unit (frame). The Live555 library takes care of removing the RTP headers and reassembling fragmented frames for you.</div>
<div><br></div><div>If you need to know the type of frame, look at the NAL unit type, using something like this:</div><div><br></div><div><font class="Apple-style-span" face="'courier new', monospace">int nal_type = fReceiveBuffer[0] &0x1F;</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">envir() << "afterGettingFrame() received NAL unit type " << nal_type << "\n";</font></div><div><br></div><div>
<br></div></div>