<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I am trying to get live RTP data as input to the RTSP Server.</div><div><br></div><div>Modified H264VideoFileServerMediaSubsession::createNewStreamSource to  create a RTPSource instead of ByteStreamFileSource. </div></div></blockquote><div><br></div>As explained in the FAQ:</div><div><span class="Apple-tab-span" style="white-space:pre">    <a href="http://www.live555.com/liveMedia/faq.html#modifying-and-extending">http://www.live555.com/liveMedia/faq.html#modifying-and-extending</a></span></div><div>you should not be modifying the exiting code 'in place'.  Instead, you should be defining and implementing your own class (a subclass of "OnDemandServerMediaSubsession") - using the exiting code as a model, where appropriate.</div><div><br></div><div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="font-family: Courier; ">  Groupsock inputGroupsock(envir(), inputAddress, inputPort, inputTTL);</span></div></div></blockquote><div><br></div>I suspect that this is the problem: You are declaring "inputGroupsock" on the stack, which means that it will automatically get destroyed when the function exits.  You don't want this.  Instead, do:</div><div><span class="Apple-tab-span" style="white-space:pre">     Groupsock</span>*<span class="Apple-tab-span" style="white-space:pre"> inputGroupsock</span> = new Groupsock<span class="Apple-tab-span" style="white-space:pre">(envir(), inputAddress, inputPort, inputTTL);</span></div><div>and then</div><div><span class="Apple-tab-span" style="white-space:pre">   H264VideoRTPSource *rtpSource = H264VideoRTPSource::createNew(envir(), inputGroupsock,96,90000);</span></div><br><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br></body></html>