[Live-devel] Live H264 RTP source to RTSP Server
Sambhav
isambhav at gmail.com
Tue Jan 31 01:47:46 PST 2012
It is not working. Its crashing. The gdb stacktrace is given below.
The onDemandRTSP Server will initialize the source and sink when it
receives a DESCRIBE from the client.
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
?
Does direct replace of ByteStreamFileSource to H264VideoRTPSource work ?
Am I missing something due to which its crashing ?
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x000000010c180938
0x000000010003cd41 in BasicTaskScheduler::setBackgroundHandling
(this=0x1002008c0, socketNum=1606414464, conditionSet=2,
handlerProc=0xfffffffe, clientData=0x100204320) at
BasicTaskScheduler.cpp:191
#0 BasicTaskScheduler::setBackgroundHandling (this=0x1002008c0,
socketNum=1606414464, conditionSet=2, handlerProc=0x10001d534
<MultiFramedRTPSource::networkReadHandler(MultiFramedRTPSource*, int)>,
clientData=0x100204320) at BasicTaskScheduler.cpp:191
#1 0x0000000100020056 in RTPInterface::startNetworkReading
(this=0x1002043b0, handlerProc=0x10001d534
<MultiFramedRTPSource::networkReadHandler(MultiFramedRTPSource*, int)>) at
UsageEnvironment.hh:156
#2 0x000000010001d570 in MultiFramedRTPSource::doGetNextFrame
(this=0x1002008c0) at MultiFramedRTPSource.cpp:119
#3 0x0000000100034d49 in StreamParser::ensureValidBytes1
(this=0x1002046b0, numBytesNeeded=490640) at StreamParser.cpp:159
#4 0x000000010000aeeb in StreamParser::ensureValidBytes () at
/Users/sam/Documents/Development/OpenSource/Protocols/Live555/live/liveMedia/StreamParser.hh:556
#5 0x000000010000aeeb in StreamParser::test4Bytes () at
/Users/sam/Documents/Development/OpenSource/Protocols/Live555/live/liveMedia/StreamParser.hh:54
#6 0x000000010000aeeb in H264VideoStreamParser::parse (this=0x1002008c0)
at H264VideoStreamFramer.cpp:556
#7 0x0000000100005ff3 in MPEGVideoStreamFramer::continueReadProcessing
(this=0x100204550) at MPEGVideoStreamFramer.cpp:154
#8 0x00000001000184fd in H264FUAFragmenter::doGetNextFrame
(this=0x1002008c0) at H264VideoRTPSink.cpp:167
#9 0x000000010001ecc3 in MultiFramedRTPSink::packFrame (this=0x1002008c0)
at MultiFramedRTPSink.cpp:216
#10 0x000000010001f13e in MultiFramedRTPSink::continuePlaying
(this=0x1002008c0) at MultiFramedRTPSink.cpp:152
#11 0x00000001000296ab in H264VideoFileServerMediaSubsession::getAuxSDPLine
(this=0x1002008c0, rtpSink=0x5fbff080, inputSource=0x2) at
H264VideoFileServerMediaSubsession.cpp:94
#12 0x00000001000286ce in
OnDemandServerMediaSubsession::setSDPLinesFromRTPSink (this=0x100201320,
rtpSink=0x5fbff080, inputSource=0x2, estBitrate=1606414464) at
OnDemandServerMediaSubsession.cpp:308
#13 0x0000000100028d6a in OnDemandServerMediaSubsession::sdpLines
(this=0x1002008c0) at OnDemandServerMediaSubsession.cpp:67
#14 0x0000000100027b67 in ServerMediaSession::generateSDPDescription
(this=0x7fff5fbff270) at ServerMediaSession.cpp:214
#15 0x00000001000258b7 in RTSPServer::RTSPClientSession::handleCmd_DESCRIBE
(this=0x100800600, cseq=0x7fff5fbff570 "3", urlPreSuffix=0x7fff5fbff700 "",
urlSuffix=0x100201260 "?X\a", fullRequestStr=0x7fff5fbff390 "??_?") at
RTSPServer.cpp:624
#16 0x0000000100024f1d in RTSPServer::RTSPClientSession::handleRequestBytes
(this=0x100800600, newBytesRead=8390375) at RTSPServer.cpp:469
#17 0x00000001000253c7 in
RTSPServer::RTSPClientSession::incomingRequestHandler
(instance=0x100800600, unnamed_arg=1606414464) at RTSPServer.cpp:360
#18 0x000000010003d10c in BasicTaskScheduler::SingleStep (this=0x1002008c0,
maxDelayTime=0) at BasicTaskScheduler.cpp:146
#19 0x000000010003c24b in BasicTaskScheduler0::doEventLoop
(this=0x1002008c0, watchVariable=0x0) at BasicTaskScheduler0.cpp:80
#20 0x0000000100002072 in main (argc=2099392, argv=0x5fbff080) at
testOnDemandRTSPServer.cpp:340
On Tue, Jan 31, 2012 at 1:58 PM, Ross Finlayson <finlayson at live555.com>wrote:
> In H264VideoFileServerMediaSubsession::createNewStreamSource instead
> of ByteStreamFileSource can H264VideoRTPSource be used so that I can get
> live input ?
>
>
> I think that will work.
>
>
> Ross Finlayson
> Live Networks, Inc.
> http://www.live555.com/
>
>
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120131/d5b5b0ac/attachment-0001.html>
More information about the live-devel
mailing list