It is not working. Its crashing. The gdb stacktrace is given below. <div><br></div><div>The onDemandRTSP Server will initialize the source and sink when it receives a DESCRIBE from the client. </div><div>Now when it starts to form the SDP for which it starts looking for bitstream, if there is no data received at the input will it be rescheduled ?</div>
<div><br></div><div>Does direct replace of ByteStreamFileSource to H264VideoRTPSource work ?</div><div>Am I missing something due to which its crashing ?</div><div><br></div><div><div>Program received signal EXC_BAD_ACCESS, Could not access memory.</div>
<div>Reason: KERN_INVALID_ADDRESS at address: 0x000000010c180938</div><div>0x000000010003cd41 in BasicTaskScheduler::setBackgroundHandling (this=0x1002008c0, socketNum=1606414464, conditionSet=2, handlerProc=0xfffffffe, clientData=0x100204320) at BasicTaskScheduler.cpp:191</div>
<div><br></div><div><div>#0  BasicTaskScheduler::setBackgroundHandling (this=0x1002008c0, socketNum=1606414464, conditionSet=2, handlerProc=0x10001d534 <MultiFramedRTPSource::networkReadHandler(MultiFramedRTPSource*, int)>, clientData=0x100204320) at BasicTaskScheduler.cpp:191</div>
<div>#1  0x0000000100020056 in RTPInterface::startNetworkReading (this=0x1002043b0, handlerProc=0x10001d534 <MultiFramedRTPSource::networkReadHandler(MultiFramedRTPSource*, int)>) at UsageEnvironment.hh:156</div><div>
#2  0x000000010001d570 in MultiFramedRTPSource::doGetNextFrame (this=0x1002008c0) at MultiFramedRTPSource.cpp:119</div><div>#3  0x0000000100034d49 in StreamParser::ensureValidBytes1 (this=0x1002046b0, numBytesNeeded=490640) at StreamParser.cpp:159</div>
<div>#4  0x000000010000aeeb in StreamParser::ensureValidBytes () at /Users/sam/Documents/Development/OpenSource/Protocols/Live555/live/liveMedia/StreamParser.hh:556</div><div>#5  0x000000010000aeeb in StreamParser::test4Bytes () at /Users/sam/Documents/Development/OpenSource/Protocols/Live555/live/liveMedia/StreamParser.hh:54</div>
<div>#6  0x000000010000aeeb in H264VideoStreamParser::parse (this=0x1002008c0) at H264VideoStreamFramer.cpp:556</div><div>#7  0x0000000100005ff3 in MPEGVideoStreamFramer::continueReadProcessing (this=0x100204550) at MPEGVideoStreamFramer.cpp:154</div>
<div>#8  0x00000001000184fd in H264FUAFragmenter::doGetNextFrame (this=0x1002008c0) at H264VideoRTPSink.cpp:167</div><div>#9  0x000000010001ecc3 in MultiFramedRTPSink::packFrame (this=0x1002008c0) at MultiFramedRTPSink.cpp:216</div>
<div>#10 0x000000010001f13e in MultiFramedRTPSink::continuePlaying (this=0x1002008c0) at MultiFramedRTPSink.cpp:152</div><div>#11 0x00000001000296ab in H264VideoFileServerMediaSubsession::getAuxSDPLine (this=0x1002008c0, rtpSink=0x5fbff080, inputSource=0x2) at H264VideoFileServerMediaSubsession.cpp:94</div>
<div>#12 0x00000001000286ce in OnDemandServerMediaSubsession::setSDPLinesFromRTPSink (this=0x100201320, rtpSink=0x5fbff080, inputSource=0x2, estBitrate=1606414464) at OnDemandServerMediaSubsession.cpp:308</div><div>#13 0x0000000100028d6a in OnDemandServerMediaSubsession::sdpLines (this=0x1002008c0) at OnDemandServerMediaSubsession.cpp:67</div>
<div>#14 0x0000000100027b67 in ServerMediaSession::generateSDPDescription (this=0x7fff5fbff270) at ServerMediaSession.cpp:214</div><div>#15 0x00000001000258b7 in RTSPServer::RTSPClientSession::handleCmd_DESCRIBE (this=0x100800600, cseq=0x7fff5fbff570 "3", urlPreSuffix=0x7fff5fbff700 "", urlSuffix=0x100201260 "?X\a", fullRequestStr=0x7fff5fbff390 "??_?") at RTSPServer.cpp:624</div>
<div>#16 0x0000000100024f1d in RTSPServer::RTSPClientSession::handleRequestBytes (this=0x100800600, newBytesRead=8390375) at RTSPServer.cpp:469</div><div>#17 0x00000001000253c7 in RTSPServer::RTSPClientSession::incomingRequestHandler (instance=0x100800600, unnamed_arg=1606414464) at RTSPServer.cpp:360</div>
<div>#18 0x000000010003d10c in BasicTaskScheduler::SingleStep (this=0x1002008c0, maxDelayTime=0) at BasicTaskScheduler.cpp:146</div><div>#19 0x000000010003c24b in BasicTaskScheduler0::doEventLoop (this=0x1002008c0, watchVariable=0x0) at BasicTaskScheduler0.cpp:80</div>
<div>#20 0x0000000100002072 in main (argc=2099392, argv=0x5fbff080) at testOnDemandRTSPServer.cpp:340</div><div><br></div><div><br><br><div class="gmail_quote">On Tue, Jan 31, 2012 at 1:58 PM, Ross Finlayson <span dir="ltr"><<a href="mailto:finlayson@live555.com">finlayson@live555.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div class="im"><blockquote type="cite"><div>In H264VideoFileServerMediaSubsession::createNewStreamSource instead of ByteStreamFileSource can H264VideoRTPSource be used so that I can get live input ?</div>
</blockquote><div><br></div></div>I think that will work.</div><div class="im"><br><br><div>
<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;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><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;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">Ross Finlayson<br>
Live Networks, Inc.<br><a href="http://www.live555.com/" target="_blank">http://www.live555.com/</a></span></span>
</div>
<br></div></div><br>_______________________________________________<br>
live-devel mailing list<br>
<a href="mailto:live-devel@lists.live555.com">live-devel@lists.live555.com</a><br>
<a href="http://lists.live555.com/mailman/listinfo/live-devel" target="_blank">http://lists.live555.com/mailman/listinfo/live-devel</a><br>
<br></blockquote></div><br></div></div></div>