Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Save RTSP video streams to a file Internet
You can now view and save RTSP streams (e.g. Apple's Kenotes) to your hard disk with the latest release of VLC (currently 0.7.0-test2). But there is still a terrible sync problem.

Choose File -> Open Network and fill in an rtsp:// URL. If you want to save the stream to a file, check Advanced Output, click on Settings, choose a file and set the encapsulation method to MPEG-4 or QuickTime.

Here is how you get the RTSP URL of Apple's keynotes using QuickTime Pro. Go to the page with the Apple events streams listed. Open one of the streams, and in QuickTime, choose File -> Save As and save it somewhere. Open the file in TextEdit, and the URL is somewhere in that file; it starts with rtsp:// and ends with .mov. Alterantively you can just use curl to open the .mov file embedded in the "Watch Now" page.

Note: People with bad routers or firewalls might have to launch VLC in the Terminal with the --rtsp-tcp option.

Example: [The command must be entered as one long command with no line breaks or extra spaces in the URL; it's been broken up here for narrower display width.]
/Applications/VLC.app/Contents/MacOS/VLC --rtsp-tcp \
rtsp://a1215.v14111.c1411.g.vq.akamaistream.net/\
5/1215/1411/3f8f1f38/1a1a1af156c5f364d84e7cdd4dbd298ebc\
1f8efb2a9d0265da4cb1e04fb22655be32a7157aed/windows_ref_300.mov \
--sout '#standard{access=file,mux=mp4,url=/Users/\
Shared/VLCoutput.mp4}'
[robg adds: I haven't tested this one, but I've been asked about capturing streams a number of times. So in spite of the sync problem (maybe it could be fixed with iMovie to separate and adjust the soundtrack?), this may be of interest to a few folks.]
    •    
  • Currently 1.75 / 5
  You rated: 4 / 5 (8 votes cast)
 
[123,509 views]  

Save RTSP video streams to a file | 21 comments | Create New Account
Click here to return to the 'Save RTSP video streams to a file' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Doesn't work for me...
Authored by: daveschroeder on Jan 07, '04 02:15:56PM

FYI, this hint doesn't seem to work. I just tried it with vlc 0.7.0 (both within the app and in Terminal) final on the MWSF 2004 keynote stream, and it fails (I'm not behind any firewalls or personal routers):

[sparky:~] das% /Applications/VLC.app/Contents/MacOS/VLC --rtsp-tcp rtsp://a1757.v11408.c1140.g.vq.akamaistream.net/5/1757/1140/3ff9e9e8/1a1a1ae247b6e455c93f6dce3eae1a7fad107fec1b8ef356cb3da2d13b9c0a39a61d90f6265a/mwsf_keynote_250.mov --sout '#standard{access=file,mux=mp4,url=/Users/das/Desktop/VLCoutput.mp4}'
VideoLAN Client 0.7.0 Bond
[00000179] main input: playlist item `rtsp://a1757.v11408.c1140.g.vq.akamaistream.net/5/1757/1140/3ff9e9e8/1a1a1ae247b6e455c93f6dce3eae1a7fad107fec1b8ef356cb3da2d13b9c0a39a61d90f6265a/mwsf_keynote_250.mov'
[00000182] access_output_file private: Open: name:`/Users/das/Desktop/VLCoutput.mp4'
[00000184] mux_mp4 private: Open
Sending request: DESCRIBE rtsp://a1757.v11408.c1140.g.vq.akamaistream.net/5/1757/1140/3ff9e9e8/1a1a1ae247b6e455c93f6dce3eae1a7fad107fec1b8ef356cb3da2d13b9c0a39a61d90f6265a/mwsf_keynote_250.mov RTSP/1.0
CSeq: 1
Accept: application/sdp
User-Agent: VLC Media Player (LIVE.COM Streaming Media v2003.11.05)


Received DESCRIBE response: RTSP/1.0 200 OK
Server: QTSS-Akamai/4.1 (Build/412.16; Platform/Linux)
Cseq: 1
Last-Modified: Thu, 03 Nov 2022 06:36:36 GMT
Cache-Control: must-revalidate
Content-length: 1492
Date: Wed, 07 Jan 2004 19:09:03 GMT
Expires: Wed, 07 Jan 2004 19:09:03 GMT
Content-Type: application/sdp
x-Accept-Retransmit: our-retransmit
x-Accept-Dynamic-Rate: 1
Content-Base: rtsp://a1757.v11408.c1140.g.vq.akamaistream.net/5/1757/1140/3ff9e9e8/1a1a1ae247b6e455c93f6dce3eae1a7fad107fec1b8ef356cb3da2d13b9c0a39a61d90f6265a/mwsf_keynote_250.mov/


Need to read 1492 extra bytes
Read 1492 extra bytes: v=0
o=StreamingServer 3282491342 1667457396000 IN IP4 204.221.192.143
s=/5/1757/1140/3ff9e9e8/1a1a1ae247b6e455c93f6dce3eae1a7fad107fec1b8ef356cb3da2d13b9c0a39a61d90f6265a/mwsf_keynote_250.mov
u=http://www.akamai.com/
e=quicktime@akamai.com
c=IN IP4 0.0.0.0
b=AS:327
t=0 0
a=control:*
a=x-qt-text-nam:Macworld Keynote 300k
sdp=v=0
o=StreamingServer 3282491342 1667457396000 IN IP4 204.221.192.143
s=/5/1757/1140/3ff9e9e8/1a1a1ae247b6e455c93f6dce3eae1a7fad107fec1b8ef356cb3da2d13b9c0a39a61d90f6265a/mwsf_keynote_250.mov
u=http://www.akamai.com/
e=quicktime@akamai.com
c=IN IP4 0.0.0.0
b=AS:327
t=0 0
a=control:*
a=x-qt-text-nam:Macworld Keynote 300k
Sending request: OPTIONS * RTSP/1.0
CSeq: 1
User-Agent: VLC Media Player (LIVE.COM Streaming Media v2003.11.05)


Received OPTIONS response: RTSP/1.0 200 OK
Server: QTSS-Akamai/4.1 (Build/412.16; Platform/Linux)
Cseq: 1
Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, ANNOUNCE, SET_PARAMETER, RECORD


[00000179] livedotcom input error: PLAY failed No RTSP session is currently in progress

[00000179] avi input error: cannot peek()
[00000179] ts_dvbpsi input error: cannot peek()
[00000179] ts input error: cannot peek()
[00000179] dtssys input error: cannot peek()
[00000179] flac input error: cannot peek()
[00000179] id3tag input error: cannot peek()
[00000179] id3 input error: cannot peek()
[00000179] a52sys input error: cannot peek
[00000179] id3tag input error: cannot peek()
[00000179] id3 input error: cannot peek()
[00000179] mpga input error: cannot peek
[00000179] mpgv input error: cannot peek
[00000179] ps input error: cannot peek()
[00000179] main input error: no suitable demux module for `rtsp/live://a1757.v11408.c1140.g.vq.akamaistream.net/5/1757/1140/3ff9e9e8/1a1a1ae247b6e455c93f6dce3eae1a7fad107fec1b8ef356cb3da2d13b9c0a39a61d90f6265a/mwsf_keynote_250.mov'
[00000184] mux_mp4 private: Close
[00000182] access_output_file private: Close



[ Reply to This | # ]
Works for the Paris keynote...
Authored by: gatorparrots on Jan 07, '04 08:07:42PM
/Applications/VLC.app/Contents/MacOS/VLC --rtsp-tcp rtsp://a396.v18873.c1887.g.vq.akamaistream.net/5/396/1887/3f67956e/1a1a1acd32a1cf40b42a58b92999056a98fb6ad70679de41b6288dbc2f940433a30476df52/expo_300.mov --sout '#standard{access=file,mux=mp4,url=/Users/Shared/Paris-Keynote.mp4}'

[ Reply to This | # ]
Works for the Paris keynote...
Authored by: pilbery on Jan 08, '04 08:04:37AM

This almost works for me...for some reason the MPEG4_audio packetizer runs. but not the video.
Do I need to change some preferences?



[ Reply to This | # ]
same here
Authored by: benison on Jan 08, '04 07:12:05PM

same here



[ Reply to This | # ]
Perfect solution found!
Authored by: mfritze on Jan 11, '04 04:07:54AM

Hi!

I found the perfect solution: find out the rtsp://.../ url and replace the server with http://a772.g.akamai.net/ - via this server you can simply download the movie via HTTP in Safari, etc. No need for rtsp tricks :-) BTW: works fine for other keynotes, too (like WWDC 2003, etc)


Markus



[ Reply to This | # ]
nearly ... Perfect solution found!
Authored by: kerni on Jan 11, '04 11:18:43AM

Well, most current streams works with that, but using that for the Paris keynote I get a "Access Denied" error :-(
Too bad, would like to have a collection with all those keynotes around. Sadly the older ones seem to be completely removed from the server



[ Reply to This | # ]
nearly ... Perfect solution found!
Authored by: mfritze on Jan 11, '04 02:01:48PM

I downloaded at least the MWSF2004 keynote and the WWDC2003 keynote without a problem.



[ Reply to This | # ]
nearly ... Perfect solution found!
Authored by: kerni on Jan 11, '04 03:23:34PM

Yep, the same did I :-) But sadly the Paris keynote doesn't work, and VLC is also only with audio and no video... too bad :-/



[ Reply to This | # ]
nearly ... Perfect solution found!
Authored by: ProfGumby on Jul 20, '04 11:46:35PM

Do you still have a url for the wwdc2003 presentation ? I managed to get to http://www.apple.com/hotnews/articles/2003/06/wwdc and that has a link to the keynote on the page, but that link is dead.
thx

managed to get some of the other ones archived; in part for myself, but my brother and sister both live out in the boondocks, ie < 56k modem xfer, and they have probs pulling it;



[ Reply to This | # ]
nearly ... Perfect solution found!
Authored by: ProfGumby on Jul 21, '04 12:08:46AM

HA! Tried just changing the wwdc_2004 in the url to wwdc_2003 and BINGO!!!



[ Reply to This | # ]
Perfect solution found!
Authored by: norz on Feb 05, '09 12:28:45AM
I found the perfect solution: find out the rtsp://.../ url and replace the server with http://a772.g.akamai.net/ - via this server you can simply download the movie via HTTP in Safari, etc. No need for rtsp tricks :-) BTW: works fine for other keynotes, too (like WWDC 2003, etc)
Thanks, worked very well for me (for an mms stream)! :)
This way I can use curl or safari, who both support to resume the download. (For curl, use: curl http://source.wmv -o output.wmv --continue-at -)

[ Reply to This | # ]
Save RTSP video streams to a file
Authored by: lukeah on Jan 07, '04 05:06:53PM

The final version of VLC 0.70 is out.

http://videolan.org/vlc/download-macosx.html

It works a lot better then the tests.



[ Reply to This | # ]
Save RTSP video streams to a file
Authored by: hekal on Jan 07, '04 06:16:51PM

I am almost certain mplayer will do the same thing if the codecs are configured correctly.



[ Reply to This | # ]
Save RTSP video streams to a file
Authored by: M2 on Sep 23, '04 02:17:56PM
Save RTSP video streams to a file
Authored by: hekal on Jan 07, '04 07:06:11PM

mplayer does this:
http://www.mplayerhq.hu/DOCS/HTML/en/formats.html#realmedia



[ Reply to This | # ]
What on on earth has THAT got to do with it ??
Authored by: wayne t on Jan 15, '06 06:51:02PM

hekal :-
What on on earth have mplayer and realmedia got to do with "using VLC to Save RTSP video streams to a file" - particularly when the keynotes are normally
1. Quicktime and
2. H242 and MP4 Audio ???



[ Reply to This | # ]
Save RTSP video streams to a file
Authored by: eno on Jan 09, '04 06:54:57AM

I've had no luck with MPlayer, nor with this hint. Here's the result trying to do it from the VLC GUI:

livedotcom: PLAY failed No RTSP session is currently in progress

avi: cannot peek()
ts_dvbpsi: cannot peek()
ts: cannot peek()
dtssys: cannot peek()
id3tag: cannot peek()
id3: cannot peek()
a52sys: cannot peek
id3tag: cannot peek()
id3: cannot peek()
mpga: cannot peek
mpgv: cannot peek
ps: cannot peek()
main: no suitable demux module for `rtsp/live://a1757.v11408.c1140.g.vq.akamaistream.net/5/1757/1140/3ff9e9e8/1a1a1ae247b6e455c93f6dce3eae1a7fad107fec1b8ef356cb3da2d13b9c0a39a61d90f6265a/mwsf_keynote_250.mov'

And the result from the command line (using the --rtsp-tcp option)

$ /Applications/VLC.app/Contents/MacOS/VLC --rtsp-tcp rtsp://a1757.v11408.c1140.g.vq.akamaistream.net/5/1757/1140/3ff9e9e8/1a1a1ae247b6e455c93f6dce3eae1a7fad107fec1b8ef356cb3da2d13b9c0a39a61d90f6265a/mwsf_keynote_250.mov --sout '#standard{access=file,mux=mp4,url=/Users/eno/Desktop/vlc.mp4}'
VideoLAN Client 0.7.0 Bond
[00000175] main input: playlist item `rtsp://a1757.v11408.c1140.g.vq.akamaistream.net/5/1757/1140/3ff9e9e8/1a1a1ae247b6e455c93f6dce3eae1a7fad107fec1b8ef356cb3da2d13b9c0a39a61d90f6265a/mwsf_keynote_250.mov'
[00000179] access_output_file private: Open: name:`/Users/eno/Desktop/vlc.mp4'
[00000180] mux_mp4 private: Open
Sending request: DESCRIBE rtsp://a1757.v11408.c1140.g.vq.akamaistream.net/5/1757/1140/3ff9e9e8/1a1a1ae247b6e455c93f6dce3eae1a7fad107fec1b8ef356cb3da2d13b9c0a39a61d90f6265a/mwsf_keynote_250.mov RTSP/1.0
CSeq: 1
Accept: application/sdp
User-Agent: VLC Media Player (LIVE.COM Streaming Media v2003.11.05)


Received DESCRIBE response: RTSP/1.0 200 OK
Server: QTSS-Akamai/4.1 (Build/412.16; Platform/Linux)
Cseq: 1
Last-Modified: Fri, 09 Jan 2004 11:36:36 GMT
Cache-Control: must-revalidate
Content-length: 1478
Date: Fri, 09 Jan 2004 11:36:37 GMT
Expires: Fri, 09 Jan 2004 11:36:37 GMT
Content-Type: application/sdp
x-Accept-Retransmit: our-retransmit
x-Accept-Dynamic-Rate: 1
Content-Base: rtsp://a1757.v11408.c1140.g.vq.akamaistream.net/5/1757/1140/3ff9e9e8/1a1a1ae247b6e455c93f6dce3eae1a7fad107fec1b8ef356cb3da2d13b9c0a39a61d90f6265a/mwsf_keynote_250.mov/


Need to read 1478 extra bytes
Read 1478 extra bytes: v=0
o=StreamingServer 3282636996 0 IN IP4 150.101.98.22
s=/5/1757/1140/3ff9e9e8/1a1a1ae247b6e455c93f6dce3eae1a7fad107fec1b8ef356cb3da2d13b9c0a39a61d90f6265a/mwsf_keynote_250.mov
u=http://www.akamai.com/
e=quicktime@akamai.com
c=IN IP4 0.0.0.0
b=AS:327
t=0 0
a=control:*
a=x-qt-text-nam:Macworld Keynote 300k 
sdp=v=0
o=StreamingServer 3282636996 0 IN IP4 150.101.98.22
s=/5/1757/1140/3ff9e9e8/1a1a1ae247b6e455c93f6dce3eae1a7fad107fec1b8ef356cb3da2d13b9c0a39a61d90f6265a/mwsf_keynote_250.mov
u=http://www.akamai.com/
e=quicktime@akamai.com
c=IN IP4 0.0.0.0
b=AS:327
t=0 0
a=control:*
a=x-qt-text-nam:Macworld Keynote 300k 
[00000175] livedotcom input error: PLAY failed No RTSP session is currently in progress

[00000175] avi input error: cannot peek()
[00000175] ts_dvbpsi input error: cannot peek()
[00000175] ts input error: cannot peek()
[00000175] dtssys input error: cannot peek()
[00000175] id3tag input error: cannot peek()
[00000175] id3 input error: cannot peek()
[00000175] a52sys input error: cannot peek
[00000175] id3tag input error: cannot peek()
[00000175] id3 input error: cannot peek()
[00000175] mpga input error: cannot peek
[00000175] mpgv input error: cannot peek
[00000175] ps input error: cannot peek()
[00000175] main input error: no suitable demux module for `rtsp/live://a1757.v11408.c1140.g.vq.akamaistream.net/5/1757/1140/3ff9e9e8/1a1a1ae247b6e455c93f6dce3eae1a7fad107fec1b8ef356cb3da2d13b9c0a39a61d90f6265a/mwsf_keynote_250.mov'
[00000180] mux_mp4 private: Close
[00000179] access_output_file private: Close

And the result from the command line (this time without the --rtsp-tcp option)

$ /Applications/VLC.app/Contents/MacOS/VLC rtsp://a1757.v11408.c1140.g.vq.akamaistream.net/5/1757/1140/3ff9e9e8/1a1a1ae247b6e455c93f6dce3eae1a7fad107fec1b8ef356cb3da2d13b9c0a39a61d90f6265a/mwsf_keynote_250.mov --sout '#standard{access=file,mux=mp4,url=/Users/eno/Desktop/vlc.mp4}'
VideoLAN Client 0.7.0 Bond
[00000175] main input: playlist item `rtsp://a1757.v11408.c1140.g.vq.akamaistream.net/5/1757/1140/3ff9e9e8/1a1a1ae247b6e455c93f6dce3eae1a7fad107fec1b8ef356cb3da2d13b9c0a39a61d90f6265a/mwsf_keynote_250.mov'
[00000179] access_output_file private: Open: name:`/Users/eno/Desktop/vlc.mp4'
[00000180] mux_mp4 private: Open
Sending request: DESCRIBE rtsp://a1757.v11408.c1140.g.vq.akamaistream.net/5/1757/1140/3ff9e9e8/1a1a1ae247b6e455c93f6dce3eae1a7fad107fec1b8ef356cb3da2d13b9c0a39a61d90f6265a/mwsf_keynote_250.mov RTSP/1.0
CSeq: 1
Accept: application/sdp
User-Agent: VLC Media Player (LIVE.COM Streaming Media v2003.11.05)


Received DESCRIBE response: RTSP/1.0 200 OK
Server: QTSS-Akamai/4.1 (Build/412.16; Platform/Linux)
Cseq: 1
Last-Modified: Wed, 12 Apr 2023 08:05:07 GMT
Cache-Control: must-revalidate
Content-length: 1490
Date: Fri, 09 Jan 2004 11:41:19 GMT
Expires: Fri, 09 Jan 2004 11:41:19 GMT
Content-Type: application/sdp
x-Accept-Retransmit: our-retransmit
x-Accept-Dynamic-Rate: 1
Content-Base: rtsp://a1757.v11408.c1140.g.vq.akamaistream.net/5/1757/1140/3ff9e9e8/1a1a1ae247b6e455c93f6dce3eae1a7fad107fec1b8ef356cb3da2d13b9c0a39a61d90f6265a/mwsf_keynote_250.mov/


Need to read 1490 extra bytes
Read 1490 extra bytes: v=0
o=StreamingServer 3282637278 1681286707000 IN IP4 150.101.98.25
s=/5/1757/1140/3ff9e9e8/1a1a1ae247b6e455c93f6dce3eae1a7fad107fec1b8ef356cb3da2d13b9c0a39a61d90f6265a/mwsf_keynote_250.mov
u=http://www.akamai.com/
e=quicktime@akamai.com
c=IN IP4 0.0.0.0
b=AS:327
t=0 0
a=control:*
a=x-qt-text-nam:Macworld Keynote 300k 
sdp=
Sending request: OPTIONS * RTSP/1.0
CSeq: 1
User-Agent: VLC Media Player (LIVE.COM Streaming Media v2003.11.05)


Received OPTIONS response: RTSP/1.0 200 OK
Server: QTSS-Akamai/4.1 (Build/412.16; Platform/Linux)
Cseq: 1
Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, ANNOUNCE, SET_PARAMETER, RECORD


[00000175] livedotcom input error: MediaSession::createNew failed
Bus error

I for one would love to hear a report from someone who has actually done this with the MWSF 2004 keynote. Until proven otherwise, looks like it's impossible...



[ Reply to This | # ]
Save RTSP video streams to a file
Authored by: bluehz on Jan 10, '04 10:26:24AM

Doen't work for me either.



[ Reply to This | # ]
Success
Authored by: lullabud on Jan 11, '05 07:46:07PM

For the record, I did get this working with VLC .8 and the Macworld SF 2005 keynote. I pretty much copied and pasted the original text, removed the -vvv and replaced the URL with the 300k string within the .mov file that was embedded on Apple's site. It downloaded in real time (streamed, duh) but it did work.



[ Reply to This | # ]
Success
Authored by: babrent on Jan 15, '05 07:10:10AM

I tried VLC .8 to save the MW 05 Stream but no luck can you explain more? thanks brent



[ Reply to This | # ]
Dont try it with 2006 jan keynote
Authored by: wayne t on Jan 16, '06 11:42:41PM

it is H264 .. and, in the words of the VLC Mac developer - it doesn't DO this very well, if at all ...


see http://forum.videolan.org/viewtopic.php?t=16006
Saving Apple Keynote to movie file

best of luck...


anyone who knows how to do the 2006 with mplayer or other, please post or be kind enough to let me know ..

Thanks.

Wayne T
obfuscatedAT0ptusnetD0TC0mDøtAU



[ Reply to This | # ]