<div dir="ltr"><div>Hello,</div><div><br></div><div>I'm getting a segfault after x seconds (whatever is in -P) when running openRTSP. This seem to only happen when I pass the -P parameter together with -4 (or -i or -q). </div>
<div><br></div><div>Ive build the openRTSP from the live555-latest.tar.gz from 17 of march on Ubuntu 12.04.3 64bit connecting to a Foscam FI9805W camera. </div><div><br></div><div>Any idea what goes wrong? Let me know how I can provide more debug information. </div>
<div><br></div><div><br></div><div><div>(gdb) run -P 10 -4 -v -b 1000000 -w 1280 -h 960 -f 10 rtsp://<a href="http://cam:cam@192.168.16.31:88/videoMain">cam:cam@192.168.16.31:88/videoMain</a></div><div>The program being debugged has been started already.</div>
<div>Start it from the beginning? (y or n) y</div><div><br></div><div>Starting program: /mnt/stuff/home/martijn/src/live/testProgs/openRTSP -P 10 -4 -v -b 1000000 -w 1280 -h 960 -f 10 rtsp://<a href="http://cam:cam@192.168.16.31:88/videoMain">cam:cam@192.168.16.31:88/videoMain</a></div>
<div>Opening connection to 192.168.16.31, port 88...</div><div>...remote connection opened</div><div>Sending request: OPTIONS rtsp://<a href="http://cam:cam@192.168.16.31:88/videoMain">cam:cam@192.168.16.31:88/videoMain</a> RTSP/1.0</div>
<div>CSeq: 2</div><div>User-Agent: /mnt/stuff/home/martijn/src/live/testProgs/openRTSP (LIVE555 Streaming Media v2014.03.18)</div><div><br></div><div><br></div><div>Received 152 new bytes of response data.</div><div>Received a complete OPTIONS response:</div>
<div>RTSP/1.0 200 OK</div><div>CSeq: 2</div><div>Date: Mon, Mar 24 2014 09:26:45 GMT</div><div>Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER</div><div><br></div><div><br></div><div>
Sending request: DESCRIBE rtsp://<a href="http://cam:cam@192.168.16.31:88/videoMain">cam:cam@192.168.16.31:88/videoMain</a> RTSP/1.0</div><div>CSeq: 3</div><div>User-Agent: /mnt/stuff/home/martijn/src/live/testProgs/openRTSP (LIVE555 Streaming Media v2014.03.18)</div>
<div>Accept: application/sdp</div><div><br></div><div><br></div><div>Received 175 new bytes of response data.</div><div>Received a complete DESCRIBE response:</div><div>RTSP/1.0 401 Unauthorized</div><div>CSeq: 3</div><div>
Date: Mon, Mar 24 2014 09:26:45 GMT</div><div>WWW-Authenticate: Digest realm="LIVE555 Streaming Media", nonce="a620b479ced20fa51d971cca1c6702f8"</div><div><br></div><div><br></div><div>Resending...</div>
<div>Sending request: DESCRIBE rtsp://<a href="http://cam:cam@192.168.16.31:88/videoMain">cam:cam@192.168.16.31:88/videoMain</a> RTSP/1.0</div><div>CSeq: 4</div><div>Authorization: Digest username="cam", realm="LIVE555 Streaming Media", nonce="a620b479ced20fa51d971cca1c6702f8", uri="rtsp://<a href="http://cam:cam@192.168.16.31:88/videoMain">cam:cam@192.168.16.31:88/videoMain</a>", response="b6c53b448696f7a2f8a1adccb7a80490"</div>
<div>User-Agent: /mnt/stuff/home/martijn/src/live/testProgs/openRTSP (LIVE555 Streaming Media v2014.03.18)</div><div>Accept: application/sdp</div><div><br></div><div><br></div><div>Received 670 new bytes of response data.</div>
<div>Received a complete DESCRIBE response:</div><div>RTSP/1.0 200 OK</div><div>CSeq: 4</div><div>Date: Mon, Mar 24 2014 09:26:45 GMT</div><div>Content-Base: rtsp://<a href="http://192.168.16.31:65534/videoMain/">192.168.16.31:65534/videoMain/</a></div>
<div>Content-Type: application/sdp</div><div>Content-Length: 500</div><div><br></div><div>v=0</div><div>o=- 1395574381238165 1 IN IP4 192.168.1.233</div><div>s=IP Camera Video</div><div>i=videoMain</div><div>t=0 0</div><div>
a=tool:LIVE555 Streaming Media v2013.01.25</div><div>a=type:broadcast</div><div>a=control:*</div><div>a=range:npt=0-</div><div>a=x-qt-text-nam:IP Camera Video</div><div>a=x-qt-text-inf:videoMain</div><div>m=video 0 RTP/AVP 96</div>
<div>c=IN IP4 0.0.0.0</div><div>b=AS:96</div><div>a=rtpmap:96 H264/90000</div><div>a=fmtp:96 packetization-mode=1;profile-level-id=42001F;sprop-parameter-sets=Z0IAH5WoFAFuQA==,aM48gA==</div><div>a=control:track1</div><div>
m=audio 0 RTP/AVP 0</div><div>c=IN IP4 0.0.0.0</div><div>b=AS:64</div><div>a=control:track2</div><div><br></div><div>Opened URL "rtsp://<a href="http://cam:cam@192.168.16.31:88/videoMain">cam:cam@192.168.16.31:88/videoMain</a>", returning a SDP description:</div>
<div>v=0</div><div>o=- 1395574381238165 1 IN IP4 192.168.1.233</div><div>s=IP Camera Video</div><div>i=videoMain</div><div>t=0 0</div><div>a=tool:LIVE555 Streaming Media v2013.01.25</div><div>a=type:broadcast</div><div>a=control:*</div>
<div>a=range:npt=0-</div><div>a=x-qt-text-nam:IP Camera Video</div><div>a=x-qt-text-inf:videoMain</div><div>m=video 0 RTP/AVP 96</div><div>c=IN IP4 0.0.0.0</div><div>b=AS:96</div><div>a=rtpmap:96 H264/90000</div><div>a=fmtp:96 packetization-mode=1;profile-level-id=42001F;sprop-parameter-sets=Z0IAH5WoFAFuQA==,aM48gA==</div>
<div>a=control:track1</div><div>m=audio 0 RTP/AVP 0</div><div>c=IN IP4 0.0.0.0</div><div>b=AS:64</div><div>a=control:track2</div><div><br></div><div>Created receiver for "video/H264" subsession (client ports 43534-43535)</div>
<div>Ignoring "audio/PCMU" subsession, because we've asked to receive a single video session only</div><div>Sending request: SETUP rtsp://<a href="http://192.168.16.31:65534/videoMain/track1">192.168.16.31:65534/videoMain/track1</a> RTSP/1.0</div>
<div>CSeq: 5</div><div>Authorization: Digest username="cam", realm="LIVE555 Streaming Media", nonce="a620b479ced20fa51d971cca1c6702f8", uri="rtsp://<a href="http://192.168.16.31:65534/videoMain/">192.168.16.31:65534/videoMain/</a>", response="95bdf51c465616b26ff93b1bde08a5e4"</div>
<div>User-Agent: /mnt/stuff/home/martijn/src/live/testProgs/openRTSP (LIVE555 Streaming Media v2014.03.18)</div><div>Transport: RTP/AVP;unicast;client_port=43534-43535</div><div><br></div><div><br></div><div>Received 205 new bytes of response data.</div>
<div>Received a complete SETUP response:</div><div>RTSP/1.0 200 OK</div><div>CSeq: 5</div><div>Date: Mon, Mar 24 2014 09:26:45 GMT</div><div>Transport: RTP/AVP;unicast;destination=192.168.16.22;source=192.168.16.31;client_port=43534-43535;server_port=6970-6971</div>
<div>Session: 1017CD45</div><div><br></div><div><br></div><div>Setup "video/H264" subsession (client ports 43534-43535)</div><div>Outputting to the file: "output-00000-00010.mp4"</div><div>Sending request: PLAY rtsp://<a href="http://192.168.16.31:65534/videoMain/">192.168.16.31:65534/videoMain/</a> RTSP/1.0</div>
<div>CSeq: 6</div><div>Authorization: Digest username="cam", realm="LIVE555 Streaming Media", nonce="a620b479ced20fa51d971cca1c6702f8", uri="rtsp://<a href="http://192.168.16.31:65534/videoMain/">192.168.16.31:65534/videoMain/</a>", response="8e2bfca1c423739d325c08057d511fc4"</div>
<div>User-Agent: /mnt/stuff/home/martijn/src/live/testProgs/openRTSP (LIVE555 Streaming Media v2014.03.18)</div><div>Session: 1017CD45</div><div>Range: npt=0.000-</div><div><br></div><div><br></div><div>Received 253 new bytes of response data.</div>
<div>Received a complete PLAY response:</div><div>RTSP/1.0 200 OK</div><div>CSeq: 6</div><div>Date: Mon, Mar 24 2014 09:26:45 GMT</div><div>Range: npt=0.000-</div><div>Session: 1017CD45</div><div>RTP-Info: url=rtsp://<a href="http://192.168.16.31:65534/videoMain/track1;seq=4855;rtptime=710532019,url=rtsp://192.168.16.31:65534/videoMain/track2;seq=0;rtptime=0">192.168.16.31:65534/videoMain/track1;seq=4855;rtptime=710532019,url=rtsp://192.168.16.31:65534/videoMain/track2;seq=0;rtptime=0</a></div>
<div><br></div><div><br></div><div>Started playing session</div><div>Receiving streamed data (signal with "kill -HUP 24716" or "kill -USR1 24716" to terminate)...</div><div><br></div><div>Program received signal SIGSEGV, Segmentation fault.</div>
<div>0x0000000000428f60 in FramedSource::stopGettingFrames() ()</div><div>(gdb) bt</div><div>#0 0x0000000000428f60 in FramedSource::stopGettingFrames() ()</div><div>#1 0x0000000000425024 in QuickTimeFileSink::~QuickTimeFileSink() ()</div>
<div>#2 0x00000000004250a9 in QuickTimeFileSink::~QuickTimeFileSink() ()</div><div>#3 0x0000000000403141 in closeMediaSinks() ()</div><div>#4 0x0000000000404a55 in periodicFileOutputTimerHandler(void*) ()</div><div>#5 0x0000000000449d2b in AlarmHandler::handleTimeout() ()</div>
<div>#6 0x0000000000447ec9 in BasicTaskScheduler::SingleStep(unsigned int) ()</div><div>#7 0x000000000044961c in BasicTaskScheduler0::doEventLoop(char*) ()</div><div>#8 0x0000000000402391 in main ()</div><div>(gdb) </div>
</div><div><br></div><div><br></div>-- <br>Martijn van den Broek
</div>