<!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>>><i>I start looking at the source
code of openRTSP, and try to modify<br>
</i>>><i>the code to add SPS an PPS NAL units of H264 into saved
file.<br>
</i><br>
>To do this, you would modify (or extend) the
"H264VideoFileSink" class.</blockquote>
<blockquote type="cite" cite> </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.
However, there exists a function ("MediaSubsession::
fmtp_spropparametersets()()") to access this string, and another
function ("parseSPropParameterSets()") 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
"H264VideoFileSink" 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>