Hello Ross, thank you for replying!
I guess that it isn't a server's problem. I tested the connection with an unmodified openRTSP client and got an image(see output below). My question is, are there other places i have to change in source code for using TCP except sendSetupCommand? Thanks! Console input: ./openRTSP -t rtsp://193.158.57.66:8555/mjpeg Console output: Opening connection to 193.158.57.66, port 8555... ...remote connection opened Sending request: OPTIONS rtsp://193.158.57.66:8555/mjpeg RTSP/1.0 CSeq: 2 User-Agent: ./openRTSP (LIVE555 Streaming Media v2011.05.25) Received 122 new bytes of response data. Received a complete OPTIONS response: RTSP/1.0 200 OK CSeq: 2 Date: Wed, Jun 15 2011 08:17:16 GMT Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE Sending request: DESCRIBE rtsp://193.158.57.66:8555/mjpeg RTSP/1.0 CSeq: 3 User-Agent: ./openRTSP (LIVE555 Streaming Media v2011.05.25) Accept: application/sdp Received 538 new bytes of response data. Received a complete DESCRIBE response: RTSP/1.0 200 OK CSeq: 3 Date: Wed, Jun 15 2011 08:17:16 GMT Content-Base: rtsp://192.168.30.41:8555/mjpeg/ Content-Type: application/sdp Content-Length: 373 v=0 o=- 1307089321210096 1 IN IP4 192.168.30.41 s=RTSP/RTP stream from IDS VSE i=mjpeg t=0 0 a=tool:LIVE555 Streaming Media v2008.04.02 a=type:broadcast a=control:* a=range:npt=0- a=x-qt-text-nam:RTSP/RTP stream from IDS VSE a=x-qt-text-inf:mjpeg m=video 0 RTP/AVP 26 c=IN IP4 0.0.0.0 a=control:track1 m=audio 0 RTP/AVP 0 c=IN IP4 0.0.0.0 a=control:track2 Opened URL "rtsp://193.158.57.66:8555/mjpeg", returning a SDP description: v=0 o=- 1307089321210096 1 IN IP4 192.168.30.41 s=RTSP/RTP stream from IDS VSE i=mjpeg t=0 0 a=tool:LIVE555 Streaming Media v2008.04.02 a=type:broadcast a=control:* a=range:npt=0- a=x-qt-text-nam:RTSP/RTP stream from IDS VSE a=x-qt-text-inf:mjpeg m=video 0 RTP/AVP 26 c=IN IP4 0.0.0.0 a=control:track1 m=audio 0 RTP/AVP 0 c=IN IP4 0.0.0.0 a=control:track2 Created receiver for "video/JPEG" subsession (client ports 53608-53609) Created receiver for "audio/PCMU" subsession (client ports 58372-58373) Sending request: SETUP rtsp://192.168.30.41:8555/mjpeg/track1 RTSP/1.0 CSeq: 4 User-Agent: ./openRTSP (LIVE555 Streaming Media v2011.05.25) Transport: RTP/AVP/TCP;unicast;interleaved=0-1 Received 173 new bytes of response data. Received a complete SETUP response: RTSP/1.0 200 OK CSeq: 4 Date: Wed, Jun 15 2011 08:17:17 GMT Transport: RTP/AVP/TCP;unicast;destination=89.199.63.222;source=192.168.30.41;interleaved=0-1 Session: 80 Setup "video/JPEG" subsession (client ports 53608-53609) Sending request: SETUP rtsp://192.168.30.41:8555/mjpeg/track2 RTSP/1.0 CSeq: 5 User-Agent: ./openRTSP (LIVE555 Streaming Media v2011.05.25) Transport: RTP/AVP/TCP;unicast;interleaved=2-3 Session: 80 Received a complete SETUP response: RTSP/1.0 200 OK CSeq: 5 Date: Wed, Jun 15 2011 08:17:17 GMT Transport: RTP/AVP/TCP;unicast;destination=89.199.63.222;source=192.168.30.41;interleaved=2-3 Session: 80 Setup "audio/PCMU" subsession (client ports 58372-58373) Created output file: "video-JPEG-1" Created output file: "audio-PCMU-2" Sending request: PLAY rtsp://192.168.30.41:8555/mjpeg/ RTSP/1.0 CSeq: 6 User-Agent: ./openRTSP (LIVE555 Streaming Media v2011.05.25) Session: 80 Range: npt=0.000- Received a complete PLAY response: RTSP/1.0 200 OK CSeq: 6 Date: Wed, Jun 15 2011 08:17:17 GMT Range: npt=0.000- Session: 80 RTP-Info: url=rtsp://192.168.30.41:8555/mjpeg/track1;seq=42451;rtptime=658530933,url=rtsp://192.168.30.41:8555/mjpeg/track2;seq=9573;rtptime=2871840167 Started playing session Receiving streamed data (signal with "kill -HUP 39105" or "kill -USR1 39105" to terminate)... Am 14.06.2011 um 17:33 schrieb Ross Finlayson: > >i am developing an iPhone/iPad App that receives RTSP-streams. It > >works fine, while the server and client are in the same network. But > >If I try to get a stream from outside(from Internet) i run in > >problems with UDP-ports. On the server side i can open ports, but on > >a client side it is sometimes impossible. So i tried to use RTP > >over TCP: > > > > m_pRtspClient->sendSetupCommand(*pSubsession, > >continueAfterSETUP,False,True); > > > >But it doesn't work, even if i am in the same network. If I set last > >parameter to False than my app works fine(but only in the same > >network). > > > >About my systems: > >My server is "self implemented media server"(January 2011 Version ) > >that runs on windows. I use unicast. > >My client has a latest live555 (Mai 2011) version. > > > >I can't find out where is a problem. > > Perhaps the problem is with your "self implemented media server"? I > suggest that you try testing your client using one of our > (unmodified) RTSP server applications - "testOnDemandRTSPServer" or > "live555MediaServer" first. > > It might also help if you could get our "openRTSP" client running on > your iPhone/iPad, and first use that - rather than your own client > application - for testing. > -- > > Ross Finlayson > Live Networks, Inc. > http://www.live555.com/ > _______________________________________________ > live-devel mailing list > live-devel@lists.live555.com > http://lists.live555.com/mailman/listinfo/live-devel >
_______________________________________________ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/mailman/listinfo/live-devel