hello Sir,<br><br> I am desperately in need of your help.<br><br><br>I am using openRTSP source code. If I call the main function again then I get the following error "Segmentation fault (core dumped)"<br><br>
My aim for calling the main ( ) function again is that after RTSP server reset, openRTSP must keep trying to connect with RTSP server again.<br><br>In sessionAfterPlaying ( ) function, instead of calling exit ( ) function, I call main ( ) again.<br>
To call main ( ), I just copied the main ( ) into a new function named RTSP_main () and I am just calling RTSP_main ( ) in place of exit ( ).<br><br><br><u><b>Log file is as follows</b></u><br><br>[arang@arang testProgs]$ ./openRTSP -d 2 -t rtsp://<a href="http://211.214.160.198/liverepeater/camera.stream">211.214.160.198/liverepeater/camera.stream</a><br>
Opening connection to 211.214.160.198, port 554...<br>...remote connection opened<br>Sending request: OPTIONS rtsp://<a href="http://211.214.160.198/liverepeater/camera.stream">211.214.160.198/liverepeater/camera.stream</a> RTSP/1.0<br>
CSeq: 2<br>User-Agent: ./openRTSP (LIVE555 Streaming Media v2010.08.31)<br><br><br>Received 202 new bytes of response data.<br>Received a complete OPTIONS response:<br>RTSP/1.0 200 OK<br>Supported: play.basic, con.persistent<br>
Cseq: 2<br>Server: Wowza Media Server 2.1.2 build24878<br>Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, OPTIONS, ANNOUNCE, RECORD, GET_PARAMETER<br><br><br>Sending request: DESCRIBE rtsp://<a href="http://211.214.160.198/liverepeater/camera.stream">211.214.160.198/liverepeater/camera.stream</a> RTSP/1.0<br>
CSeq: 3<br>User-Agent: ./openRTSP (LIVE555 Streaming Media v2010.08.31)<br>Accept: application/sdp<br><br><br>Received 510 new bytes of response data.<br>Received a complete DESCRIBE response:<br>RTSP/1.0 200 OK<br>Content-Base: rtsp://<a href="http://211.214.160.198/liverepeater/camera.stream/">211.214.160.198/liverepeater/camera.stream/</a><br>
Date: ¿ù, 6 9¿ù 2010 17:20:47 KST<br>Content-Length: 211<br>Session: 582904228;timeout=60<br>Expires: ¿ù, 6 9¿ù 2010 17:20:47 KST<br>Cseq: 3<br>Content-Type: application/sdp<br>Server: Wowza Media Server 2.1.2 build24878<br><br>
v=0<br>o=- 582904228 582904228 IN IP4 127.0.0.1<br>s=WowzaMediaServer<br>c=IN IP4 0.0.0.0<br>t=0 0<br>a=sdplang:en<br>a=range:npt=now-<br>a=control:*<br>m=video 0 RTP/AVP 98<br>a=rtpmap:98 MP2T/90000<br>a=control:mpegts-transport<br>
<br>Opened URL "rtsp://<a href="http://211.214.160.198/liverepeater/camera.stream">211.214.160.198/liverepeater/camera.stream</a>", returning a SDP description:<br>v=0<br>o=- 582904228 582904228 IN IP4 127.0.0.1<br>
s=WowzaMediaServer<br>c=IN IP4 0.0.0.0<br>t=0 0<br>a=sdplang:en<br>a=range:npt=now-<br>a=control:*<br>m=video 0 RTP/AVP 98<br>a=rtpmap:98 MP2T/90000<br>a=control:mpegts-transport<br><br>Created receiver for "video/MP2T" subsession (client ports 55154-55155)<br>
Sending request: SETUP rtsp://<a href="http://211.214.160.198/liverepeater/camera.stream/mpegts-transport">211.214.160.198/liverepeater/camera.stream/mpegts-transport</a> RTSP/1.0<br>CSeq: 4<br>User-Agent: ./openRTSP (LIVE555 Streaming Media v2010.08.31)<br>
Transport: RTP/AVP/TCP;unicast;interleaved=0-1<br><br><br>Received 229 new bytes of response data.<br>Received a complete SETUP response:<br>RTSP/1.0 200 OK<br>Date: ¿ù, 6 9¿ù 2010 17:20:47 KST<br>Transport: RTP/AVP/TCP;unicast;interleaved=0-1<br>
Session: 582904228;timeout=60<br>Expires: ¿ù, 6 9¿ù 2010 17:20:47 KST<br>Cseq: 4<br>Server: Wowza Media Server 2.1.2 build24878<br><br><br>Setup "video/MP2T" subsession (client ports 55154-55155)<br>Created output file: "video-MP2T-1"<br>
Sending request: PLAY rtsp://<a href="http://211.214.160.198/liverepeater/camera.stream/">211.214.160.198/liverepeater/camera.stream/</a> RTSP/1.0<br>CSeq: 5<br>User-Agent: ./openRTSP (LIVE555 Streaming Media v2010.08.31)<br>
Session: 582904228<br>Range: npt=0.000-2.000<br><br><br>Received a complete PLAY response:<br>RTSP/1.0 200 OK<br>Range: npt=now-<br>Session: 582904228;timeout=60<br>Cseq: 5<br>Server: Wowza Media Server 2.1.2 build24878<br>
<br><br>Started playing session<br>Receiving streamed data (for up to 2.000000 seconds)...<br>Sending request: TEARDOWN rtsp://<a href="http://211.214.160.198/liverepeater/camera.stream/">211.214.160.198/liverepeater/camera.stream/</a> RTSP/1.0<br>
CSeq: 6<br>User-Agent: ./openRTSP (LIVE555 Streaming Media v2010.08.31)<br>Session: 582904228<br><br><br><br><br>Opening connection to 211.214.160.198, port 554...<br>...remote connection opened<br>Sending request: OPTIONS rtsp://<a href="http://211.214.160.198/liverepeater/camera.stream">211.214.160.198/liverepeater/camera.stream</a> RTSP/1.0<br>
CSeq: 2<br>User-Agent: ./openRTSP (LIVE555 Streaming Media v2010.08.31)<br><br><br>Received 202 new bytes of response data.<br>Received a complete OPTIONS response:<br>RTSP/1.0 200 OK<br>Supported: play.basic, con.persistent<br>
Cseq: 2<br>Server: Wowza Media Server 2.1.2 build24878<br>Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, OPTIONS, ANNOUNCE, RECORD, GET_PARAMETER<br><br><br>Sending request: DESCRIBE rtsp://<a href="http://211.214.160.198/liverepeater/camera.stream">211.214.160.198/liverepeater/camera.stream</a> RTSP/1.0<br>
CSeq: 3<br>User-Agent: ./openRTSP (LIVE555 Streaming Media v2010.08.31)<br>Accept: application/sdp<br><br><br>Received 513 new bytes of response data.<br>Received a complete DESCRIBE response:<br>RTSP/1.0 200 OK<br>Content-Base: rtsp://<a href="http://211.214.160.198/liverepeater/camera.stream/">211.214.160.198/liverepeater/camera.stream/</a><br>
Date: ¿ù, 6 9¿ù 2010 17:20:49 KST<br>Content-Length: 213<br>Session: 1483665234;timeout=60<br>Expires: ¿ù, 6 9¿ù 2010 17:20:49 KST<br>Cseq: 3<br>Content-Type: application/sdp<br>Server: Wowza Media Server 2.1.2 build24878<br>
<br>v=0<br>o=- 1483665234 1483665234 IN IP4 127.0.0.1<br>s=WowzaMediaServer<br>c=IN IP4 0.0.0.0<br>t=0 0<br>a=sdplang:en<br>a=range:npt=now-<br>a=control:*<br>m=video 0 RTP/AVP 98<br>a=rtpmap:98 MP2T/90000<br>a=control:mpegts-transport<br>
<br>Opened URL "rtsp://<a href="http://211.214.160.198/liverepeater/camera.stream">211.214.160.198/liverepeater/camera.stream</a>", returning a SDP description:<br>v=0<br>o=- 1483665234 1483665234 IN IP4 127.0.0.1<br>
s=WowzaMediaServer<br>c=IN IP4 0.0.0.0<br>t=0 0<br>a=sdplang:en<br>a=range:npt=now-<br>a=control:*<br>m=video 0 RTP/AVP 98<br>a=rtpmap:98 MP2T/90000<br>a=control:mpegts-transport<br><br>Created receiver for "video/MP2T" subsession (client ports 39568-39569)<br>
Segmentation fault (core dumped)<br>[arang@arang testProgs]$ <br><br><br><br>Regards,<br>Arang.<br><br><br>