<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle">P {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
</head>
<body style="WORD-WRAP: break-word" fPStyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<p> </p>
<div>
<p><font color="#000000" size="2" face="Tahoma"><b>From:</b> live-devel [live-devel-bounces@ns.live555.com] on behalf of Ross Finlayson [finlayson@live555.com]<br>
<b>Sent:</b> Wednesday, October 01, 2014 11:42 AM<br>
<b>To:</b> LIVE555 Streaming Media - development & use<br>
<b>Subject:</b> Re: [Live-devel] Writing RTSP server<br>
</font><span style="FONT-SIZE: 10pt"></span></p>
<p><span style="FONT-SIZE: 10pt"></span> </p>
<p><span style="FONT-SIZE: 10pt">Our requirement is to using Live555 libraries to stream real time data ( data generated by our software) , using RTSP.</span></p>
</div>
<div style="FONT-FAMILY: Times New Roman; COLOR: #000000; FONT-SIZE: 16px">
<div>
<blockquote type="cite">
<div style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: 14px Helvetica; WHITE-SPACE: normal; WORD-SPACING: 0px">
<div style="FONT-FAMILY: Tahoma; DIRECTION: ltr; FONT-SIZE: 10pt">
<div> </div>
<div>Is it possible using Live555 libraries</div>
</div>
</div>
</blockquote>
<div><br>
</div>
</div>
<div>Yes, of course. See </div>
<div><span style="WHITE-SPACE: pre" class="Apple-tab-span"></span><a href="http://www.live555.com/liveMedia/faq.html#liveInput-unicast" target="_blank">http://www.live555.com/liveMedia/faq.html#liveInput-unicast</a></div>
<div><br>
<br>
</div>
<div><span style="LINE-HEIGHT: normal; WIDOWS: 2; TEXT-TRANSFORM: none; FONT-VARIANT: normal; FONT-STYLE: normal; TEXT-INDENT: 0px; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; FONT-FAMILY: Helvetica; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); FONT-WEIGHT: normal; WORD-SPACING: 0px" class="Apple-style-span"><span style="LINE-HEIGHT: normal; WIDOWS: 2; TEXT-TRANSFORM: none; FONT-VARIANT: normal; FONT-STYLE: normal; TEXT-INDENT: 0px; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; FONT-FAMILY: Helvetica; WHITE-SPACE: normal; ORPHANS: 2; COLOR: rgb(0,0,0); FONT-WEIGHT: normal; WORD-SPACING: 0px" class="Apple-style-span">Ross
Finlayson<br>
Live Networks, Inc.<br>
<a href="http://www.live555.com/" target="_blank">http://www.live555.com/</a></span></span>
</div>
</div>
<div style="FONT-FAMILY: Times New Roman; COLOR: #000000; FONT-SIZE: 16px"> </div>
<div style="FONT-FAMILY: Times New Roman; COLOR: #000000; FONT-SIZE: 16px"> </div>
<div style="FONT-FAMILY: Times New Roman; COLOR: #000000; FONT-SIZE: 16px"> </div>
<div style="FONT-FAMILY: Times New Roman; COLOR: #000000; FONT-SIZE: 16px">Hi Ross Finlayson</div>
<div style="FONT-FAMILY: Times New Roman; COLOR: #000000; FONT-SIZE: 16px"> </div>
<div style="FONT-FAMILY: Times New Roman; COLOR: #000000; FONT-SIZE: 16px">As suggested in FAQs,
</div>
<div style="FONT-FAMILY: Times New Roman; COLOR: #000000; FONT-SIZE: 16px"> </div>
<div style="FONT-FAMILY: Times New Roman; COLOR: #000000; FONT-SIZE: 16px">I have made a class derived from
<strong>OnDemandServerMediaSubsession</strong> and overridden "<strong>createNewStreamSource</strong>" and "<strong>createNewRTPSink</strong>" methods.</div>
<div style="FONT-FAMILY: Times New Roman; COLOR: #000000; FONT-SIZE: 16px">Made another class (Source) derived from
<strong>FramedSource</strong>.</div>
<div style="FONT-FAMILY: Times New Roman; COLOR: #000000; FONT-SIZE: 16px"> </div>
<div style="FONT-FAMILY: Times New Roman; COLOR: #000000; FONT-SIZE: 16px">In the OnDemandServerMediaSubsession derived class , in the "createNewStreamSource" , created the instance of my custom source class.</div>
<div style="FONT-FAMILY: Times New Roman; COLOR: #000000; FONT-SIZE: 16px">In the OnDemandServerMediaSubsession derived class , in the "createNewRTPSink" , created the instance of SimpleRTPSink.</div>
<div style="FONT-FAMILY: Times New Roman; COLOR: #000000; FONT-SIZE: 16px"> </div>
<div style="FONT-FAMILY: Times New Roman; COLOR: #000000; FONT-SIZE: 16px">In the
<strong>testOnDemandRTSPServer.cpp </strong>file I added the following code on the pattern of others.</div>
<div style="FONT-FAMILY: Times New Roman; COLOR: #000000; FONT-SIZE: 16px"><font size="2" face="Consolas"><font size="2" face="Consolas">
<p></font></font><font color="#008000" size="2" face="Consolas"><font color="#008000" size="2" face="Consolas"><font color="#008000" size="2" face="Consolas">// A WASP stream:</p>
</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">
<p>{</p>
<p></font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">char</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">
</font></font><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas"><font color="#0000ff" size="2" face="Consolas">const</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">* streamName =
</font></font><font color="#a31515" size="2" face="Consolas"><font color="#a31515" size="2" face="Consolas"><font color="#a31515" size="2" face="Consolas">"WaspTest"</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">;</p>
<p></font></font><font color="#008000" size="2" face="Consolas"><font color="#008000" size="2" face="Consolas"><font color="#008000" size="2" face="Consolas">//char const* inputFileName = "test.wav";</p>
</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">
<p>ServerMediaSession* sms</p>
<p>= ServerMediaSession::createNew(*env, streamName, streamName,</p>
<p>descriptionString);</p>
<p></p>
<p>Boolean convertToULaw = False;</p>
<p>sms->addSubsession(WaspVideoFileServerMediaSubsession::createNew(*env, reuseFirstSource));</p>
<p>rtspServer->addServerMediaSession(sms);</p>
<p>announceStream(rtspServer, sms, streamName, </font></font><font color="#a31515" size="2" face="Consolas"><font color="#a31515" size="2" face="Consolas"><font color="#a31515" size="2" face="Consolas">""</font></font></font><font size="2" face="Consolas"><font size="2" face="Consolas">);</p>
<p>}</p>
<p> </p>
<p><font size="3" face="Times New Roman">wherein <strong>WaspVideoFileServerMediaSubsession</strong> is our custom OnDemandServerMediaSubsession derived class.</font></p>
<p><font size="3" face="Times New Roman"></font> </p>
<p><font size="3" face="Times New Roman"></font> </p>
<p><font size="3" face="Times New Roman"></font> </p>
<p><font size="3" face="Times New Roman">Now my questions are :</font></p>
<p><font size="3" face="Times New Roman">1) When will <strong>createNewStreamSource
</strong>and <strong>createNewRTPSink </strong>be called <strong>, </strong>and when will the streaming begin?</font></p>
<p><font size="3" face="Times New Roman">2) Do I have to write a custom Sink class also?</font></p>
<p><font size="3" face="Times New Roman">3) Our data is uncompressed ARGB data, I wish to compress it and then stream it using RTSP, what changes will I have to make ?
</font></p>
<p><font size="3" face="Times New Roman"></font> </p>
<p><font size="3" face="Times New Roman"></font> </p>
<p><font size="3" face="Times New Roman">Best Regards</font></p>
<p><font size="3" face="Times New Roman">Jasleen</font></p>
<p><font size="3" face="Times New Roman"></font> </p>
</font></font></div>
</div>
</body>
</html>