<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I have added the following lines into "afterGettingFrame" method.</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "><span style="color: #be299d">unsigned</span> numSPropRecords;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "><span style="color: #733ea4">SPropRecord</span>* sPropRecords = <span style="color: #401f7d">parseSPropParameterSets</span>(<span style="color: #4d8186">fSubsession</span>.<span style="color: #401f7d">fmtp_spropparametersets</span>(), numSPropRecords);</div></div><div><br></div><div>numSPropRecords is always 0</div><div>and sPropsRecords is always NULL</div><div><br></div><div>For information, my class inherit from MediaSink</div><div><br></div><div>David.</div><br><div><div>Le 2 mars 2012 à 18:08, Ross Finlayson a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div>What about using parseSPropParameterSets ?<br></div></blockquote><div><br></div><div>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).</div><div><br></div><div>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.</div></div><br><br><div apple-content-edited="true">
Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a>
</div>
<br></div>_______________________________________________<br>live-devel mailing list<br><a href="mailto:live-devel@lists.live555.com">live-devel@lists.live555.com</a><br>http://lists.live555.com/mailman/listinfo/live-devel<br></blockquote></div><br></body></html>