[vlc] Re: acessing rtsp and saving to file (openRTSP)

Ricardo Kleemann ricardo at americasnet.com
Thu Dec 16 04:58:40 CET 2004


Thanks.

I tried the -t option also... I do see 2 files created, one for video and 
one for audio, but they're both empty. The test I'm running is inside the 
local network, so there should be no firewall issues.

Is there a way to get only one .mp4 or .mov file output, rather than the 
separate audio/video files?

I've attached the debug output below (which also contains the connection 
close after I killed -HUP the process some 5 minutes later):

# testProgs/openRTSP -VH4tn rtsp://192.168.1.245:554/test.sdp
Sending request: OPTIONS rtsp://192.168.1.245:554/test.sdp RTSP/1.0
CSeq: 1
User-Agent: testProgs/openRTSP (LIVE.COM Streaming Media v2004.12.15)


Received OPTIONS response: RTSP/1.0 200 OK
Server: DSS/5.0.1.1 (Build/464.1.1; Platform/Linux; Release/5; )
Cseq: 1
Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, ANNOUNCE, SET_PARAMETER, 
RECORD


Sending request: DESCRIBE rtsp://192.168.1.245:554/test.sdp RTSP/1.0
CSeq: 2
Accept: application/sdp
User-Agent: testProgs/openRTSP (LIVE.COM Streaming Media v2004.12.15)


Received DESCRIBE response: RTSP/1.0 200 OK
Server: DSS/5.0.1.1 (Build/464.1.1; Platform/Linux; Release/5; )
Cseq: 2
Cache-Control: no-cache
Content-length: 225
Date: Thu, 16 Dec 2004 03:55:55 GMT
Expires: Thu, 16 Dec 2004 03:55:55 GMT
Content-Type: application/sdp
x-Accept-Retransmit: our-retransmit
x-Accept-Dynamic-Rate: 1
Content-Base: rtsp://192.168.1.245:554/test.sdp/


Need to read 225 extra bytes
Read 225 extra bytes: v=0
o=broadcast_sdp 1106486128 3312156729 IN IP4 192.168.1.245:554
s=SDPTest
c=IN IP4 0.0.0.0
t=0
a=control:*
m=audio 0 RTP/AVP 0
a=control:trackID=1
m=video 0 RTP/AVP 96
a=rtpmap:96 H263-1998
a=control:trackID=2

Opened URL "rtsp://192.168.1.245:554/test.sdp", returning a SDP description:
v=0
o=broadcast_sdp 1106486128 3312156729 IN IP4 192.168.1.245:554
s=SDPTest
c=IN IP4 0.0.0.0
t=0
a=control:*
m=audio 0 RTP/AVP 0
a=control:trackID=1
m=video 0 RTP/AVP 96
a=rtpmap:96 H263-1998
a=control:trackID=2

Created receiver for "audio/PCMU" subsession (client ports 38638-38639)
Created receiver for "video/H263-1998" subsession (client ports 38640-38641)
Sending request: SETUP rtsp://192.168.1.245:554/test.sdp/trackID=1 RTSP/1.0
CSeq: 3
Transport: RTP/AVP;unicast;client_port=38638-38639
User-Agent: testProgs/openRTSP (LIVE.COM Streaming Media v2004.12.15)


Received SETUP response: RTSP/1.0 200 OK
Server: DSS/5.0.1.1 (Build/464.1.1; Platform/Linux; Release/5; )
Cseq: 3
Cache-Control: no-cache
Session: 5417544055527807407
Date: Thu, 16 Dec 2004 03:55:55 GMT
Expires: Thu, 16 Dec 2004 03:55:55 GMT
Transport: 
RTP/AVP;unicast;client_port=38638-38639;source=192.168.1.245;server_port=6970-6971;ssrc=40C37E16


Setup "audio/PCMU" subsession (client ports 38638-38639)
Sending request: SETUP rtsp://192.168.1.245:554/test.sdp/trackID=2 RTSP/1.0
CSeq: 4
Transport: RTP/AVP;unicast;client_port=38640-38641
Session: 5417544055527807407
User-Agent: testProgs/openRTSP (LIVE.COM Streaming Media v2004.12.15)


Received SETUP response: RTSP/1.0 200 OK
Server: DSS/5.0.1.1 (Build/464.1.1; Platform/Linux; Release/5; )
Cseq: 4
Session: 5417544055527807407
Cache-Control: no-cache
Date: Thu, 16 Dec 2004 03:55:55 GMT
Expires: Thu, 16 Dec 2004 03:55:55 GMT
Transport: 
RTP/AVP;unicast;client_port=38640-38641;source=192.168.1.245;server_port=6970-6971;ssrc=0D4E95D1


Setup "video/H263-1998" subsession (client ports 38640-38641)
Created output file: "audio-PCMU-1"
Created output file: "video-H263-1998-2"
Sending request: PLAY rtsp://192.168.1.245:554/test.sdp RTSP/1.0
CSeq: 5
Session: 5417544055527807407
Range: npt=0.000-
User-Agent: testProgs/openRTSP (LIVE.COM Streaming Media v2004.12.15)


Received PLAY response: RTSP/1.0 200 OK
Server: DSS/5.0.1.1 (Build/464.1.1; Platform/Linux; Release/5; )
Cseq: 5
Session: 5417544055527807407
RTP-Info: url=trackID=1,url=trackID=2


Started playing session
Receiving streamed data (signal with "kill -HUP 11473" or "kill -USR1 11473" 
to terminate)...
Got shutdown signal
Sending request: TEARDOWN rtsp://192.168.1.245:554/test.sdp RTSP/1.0
CSeq: 6
Session: 5417544055527807407
User-Agent: testProgs/openRTSP (LIVE.COM Streaming Media v2004.12.15)


Received TEARDOWN response: RTSP/1.0 200 OK
Server: DSS/5.0.1.1 (Build/464.1.1; Platform/Linux; Release/5; )
Cseq: 6
Session: 5417544055527807407
Connection: Close


----- Original Message ----- 
From: "Ross Finlayson" <finlayson at live.com>
To: <vlc at videolan.org>
Sent: Wednesday, December 15, 2004 7:31 PM
Subject: [vlc] Re: acessing rtsp and saving to file


>
>>>Instead of using VLC, you use another (open source) RTSP client - 
>>>"openRTSP" <http://www.live.com/openRTSP/> - to save the output from a 
>>>RTSP stream to a file.
>>I tried openRTSP, without much luck, however...
>>
>>The only options to output to file say that it outputs to stdout, do you 
>>know if I can output it to an actual file?
>
> Yes, if you don't ask specifically to output audio (-a) or video (-v) to 
> stdout, it will create and write to a file (one file for audio; one for 
> video).
>
>>Also for some reason it didn't seem to work. I could access the rtsp 
>>stream through a player, but when I ran openRTSP, I see it connecting, but 
>>I don't see any data being output.
>
> Try re-running "openRTSP" with the "-V" (verbose) flag.  Also try "-n" 
> (which will beep when data starts arriving).  If you're behind a firewall, 
> you may also need to add the "-t" option (stream over the RTSP 
> connection).
>
>
> Ross Finlayson
> LIVE.COM
> <http://www.live.com/>
>
> -- 
> This is the vlc mailing-list, see http://www.videolan.org/vlc/
> To unsubscribe, please read http://www.videolan.org/support/lists.html
>
> 

-- 
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html



More information about the vlc mailing list