> 1. What is the exact nature of the data in the receive buffer at the time 
> that the afterGettingFrame() method of the MediaSink subclass is called, when 
> an H.264 stream from RTSP is in play? 

It's a H.264 NAL unit.


> 2. When an H.264 stream from RTSP is in play, is there any massaging of data 
> in the receive buffer that needs to take place prior to decoding an H.264 
> frame in ffmpeg? Does it need a start code

Yes, you will need to prepend 0x00 0x00 0x00 0x01 to each NAL unit before 
passing it to "ffmpeg" for decoding.

You should also take the SDP 'configuration' string (from 
"MediaSubsession::fmtp_spropparametersets()"), and parse this string into a set 
of SPS and PPS NAL units, using the function "parseSPropParameterSets()".  You 
should then insert these NAL units (with start codes) into your decoder (before 
the NAL units that come from the RTP stream).


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

_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to