<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --></style><title>Re: [Live-devel] About the openRTSP source
code</title></head><body>
<blockquote type="cite" cite>&gt;&gt;<i>I start looking at the source
code of openRTSP, and try to modify<br>
</i>&gt;&gt;<i>the code to add SPS an PPS NAL units of H264 into saved
file.<br>
</i><br>
&gt;To do this, you would modify (or extend) the
&quot;H264VideoFileSink&quot; class.</blockquote>
<blockquote type="cite" cite>&nbsp;</blockquote>
<blockquote type="cite" cite>May I ask the reason why the openRTSP
program doesn't save received SPS and PPS NAL units of H.264 into a
local video file?</blockquote>
<div><br></div>
<div>Because the code wasn't written to do this.</div>
<div><br></div>
<div>Note that these NAL units aren't part of the RTP stream, but are
instead sent as an encoded string in the stream's SDP description.&nbsp;
However, there exists a function (&quot;MediaSubsession::
fmtp_spropparametersets()()&quot;) to access this string, and another
function (&quot;parseSPropParameterSets()&quot;) to decode this string
into binary data - which you could, if you wished, write to a
file.</div>
<div><br></div>
<div>Sometime in the future, I might update the
&quot;H264VideoFileSink&quot; class to do this itself....</div>
<x-sigsep><pre>-- 
</pre></x-sigsep>
<div><br>
Ross Finlayson<br>
Live Networks, Inc.<br>
http://www.live555.com/</div>
</body>
</html>