[Live-devel] Questions about project to dump Images frames from H264 stream using live555 and ffmpeg

David Scravaglieri ds at viddiga.com
Fri Mar 2 10:08:37 PST 2012


I have added the following lines into "afterGettingFrame" method.

unsigned numSPropRecords;
SPropRecord* sPropRecords = parseSPropParameterSets(fSubsession.fmtp_spropparametersets(), numSPropRecords);

numSPropRecords is always 0
and sPropsRecords is always NULL

For information, my class inherit from MediaSink

David.

Le 2 mars 2012 à 18:08, Ross Finlayson a écrit :

>> What about using parseSPropParameterSets ?
> 
> Yes.  You should 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 into your decoder (before the NAL units that come from the RTP stream).
> 
> I'll let other people answer with specific tips about "ffmpeg" (because I don't use this, and it's not our software).  However, I've heard that you need to prepend each NAL unit (*including* the SPS and PPS NAL units that you get from calling "parseSPropParameterSets()") with 0x00 0x00 0x00 0x01, before feeding them to the "ffmpeg" H.264 decoding function.
> 
> 
> Ross Finlayson
> Live Networks, Inc.
> http://www.live555.com/
> 
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120302/ad8ff23f/attachment.html>


More information about the live-devel mailing list