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

Record any video stream to disk using VLC Apps
It's now possible to save to disk any video stream VLC 8.0 can handle. For the first time with a Mac (as far as I know), it's like having a Save option in my Windows Media Player! You can save your videos in two ways: using the command line with VLC, or by using the VLC Aqua interface.

In the first case, you simply enter Terminal and type the appropriate CL command. So, assuming VLC is in the Apps folder, and you want to record a MMS video stream to an AVI file, you can type the following:
/Applications/VLC.app/Contents/MacOS/VLC mms://anything_ending_in.wmv \
 --sout file/avi:movie.avi
That should be one long line; it's shown on two with a Unix continuation backslash for a narrower display.

The WMP stream uses the MMS protocol and usually ends in .wmv. But remenber: in most cases, you must go for the link inside the site's source code. An example is a news video stream which uses the WMP plug-in: you should view the page source, copy the MMS link, and paste it in Terminal. Anyway, with the above command, you should get a file called movie.avi in your home folder.

The second way is new to VLC version 8.0 (I think), and is very user-friendly (no Terminal required). Use the Open Network menu option from the File menu. What is new (and really works) is that you can now handle any type of video stream (including Real). I discovered the best solution is to save the stream as 'raw' uncompressed data. So in VLC, choose Open Network, and paste your MMS (RSTP with Real) link in the appropriate field. Next, check Advanced Output and click Settings. From there, choose File (use Browse to create a new file) and check the "Dump raw input" button. You must also choose Raw in the Incapsulation Method option (not sure here). Click OK, and you're back to the Open Network dialog window. When you click OK again, VLC will start downloading the stream and recording it to you file.

Acording to the stream format, you must, once downloaded, add the right extension to the raw file in order to open it in the right player. So, if you recorded a WMP stream, give the file a .wmv extension, and view it with Windows Media Player.

With these instructions, you should be able to record any video stream. I already did it for several TV news (I wanted to record some political statements from two candidates), and the resulting .wmv files open beautifully with Windows Media Player.

Beautifully? wait a minute! WMP is WMP, right? So, believe it or not, these .wmv files I recorded on my Mac are not compatible with Windows Media Player for PC. Well, it looks like in my PC, with the same exact file, I only get the sound track; the video track is gone! But again, not in my Mac. Up to now, this is the only complaint I have. VLC is an incredible piece of free software, and we must thank the French guys who have been coding it.
    •    
  • Currently 3.10 / 5
  You rated: 5 / 5 (10 votes cast)
 
[258,448 views]  

Record any video stream to disk using VLC | 20 comments | Create New Account
Click here to return to the 'Record any video stream to disk using VLC' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Record any video stream to disk using VLC
Authored by: jonwiley on Nov 05, '04 10:16:16AM
That would be VLC 0.8.0. It's a little ways from 8.0.

[ Reply to This | # ]
Record any video stream to disk using VLC
Authored by: metiure on Nov 05, '04 02:56:42PM

you're right,of course! But it's a great piece of code, anyway!



[ Reply to This | # ]
Record any video stream to disk using VLC
Authored by: lewsmind on Nov 05, '04 11:23:30AM

This works great, but every time I try to record a stream it hangs after 2 minutes and then just stops.



[ Reply to This | # ]
Record any video stream to disk using VLC
Authored by: metiure on Nov 05, '04 02:47:02PM

This night (EU time) i recorded a 22 minutes stream from the French channel France 2 (www.france2.fr). The file is about 30 Mb big. No probs so far.



[ Reply to This | # ]
Record any video stream to disk using VLC
Authored by: metiure on Nov 05, '04 02:54:17PM

Regarding the Mac/PC problem i related in my post, can anyone reproduce it and may be give me a hint on how to solve it? I suspect some codec problem here.
I really need to play my .wmv streams in my PC as it's a laptop and i'd like to use these videos at work (french culture teaching)

Any hint welcome.



[ Reply to This | # ]
Record any video stream to disk using VLC
Authored by: hierro4 on Nov 05, '04 05:49:47PM

Your hint claims that VLC can capture Real streams. I've been trying to capture the following stream:

rtsp://rmv8.bbc.net.uk/cult/doctorwho/realtime/broad1one/wrapper.smi

which came from the website:

http://www.bbc.co.uk/cult/doctorwho/webcasts/realtime/1/realmedia/broadone.ram

and VLC won't let me. I then doubled checked VLC's site and they claim to not support Real Media.

So have you captured a Real stream? If so, how?



[ Reply to This | # ]
Record any video stream to disk using VLC
Authored by: victory on Nov 06, '04 04:40:00AM
Hi, I'm not the original poster, but I thought I'd chime in with a few comments about playing RealMedia files. I should add that I'm about to give the worst kind of advice -- the kind that involves passing along info that I've read about but never actually tried (yet).

  • First off, looking through the docs of VLC 0.8.0, I don't see any indication that it is yet able to play RealVideo-encoded files (of course the videolan site states that the current documentation is out of date for the 0.8.0 release. However, I don't even find a reference to this capability in the CHANGES file included with VLC). I suspect VLC can't play RealVideo files for the usual reasons: The RealVideo codecs are proprietary and either legal and/or technical issues make reverse-engineering it difficult or impossible.
  • If VLC does play certain *.rm files, might this possibly be due to the fact that the file being viewed is 1) not actually a RealMedia-encoded file, despite being named with an .rm extension? or 2) it contains data encoded with some other codec (i.e. not actually encoded with the RealVideo codecs)? In otherwords, is the RealMedia format also a 'container format' that can use other (non-Real) codecs, much the way Quicktime and .AVI does? If so, then perhaps the *.rm file in question is playable under VLC because it isn't actually using RealVideo-encoded data but something such as MPEG-1 video, that VLC knows how to decode. (I realize usually isn't the case)
  • It happens that there is another app, MPlayer that will play RealVideo (v1/v2/v3/v4) files -- except that you have to borrow the decoder component from the actual RealOne Player app. See here for more info. NOTE: This is a similar techique to the hint posted by Durandal that allows Safari to play RealVideo streams.

    I don't know if MPlayer will allow transcoding to a different format the way VLC does.

Anyhow, I hope that these pointers at least give others a headstart in figuring things out. It would be great if there were an simple and solid method to transcode RealVideo files to something a bit more friendly. (I've seen such tools on the Windows-side but nothing under OSX as of yet)

[ Reply to This | # ]
...a correction about Realvideo files
Authored by: victory on Nov 06, '04 05:13:27AM
...and I'm replying to my own comment. A correction:

The previously mentioned MPlayer app is a cmd-line utility. While this may be what some folks want, I imagine the rest will be interested in the GUI-based MPlayerOSX instead. You will still need to d/l and install the RealVideo codecs from the Real/Helix site separately. (Instructions are in the *.txt files that come with the MPlayerOSX app)

[ Reply to This | # ]

...and yet ANOTHER followup. RealVideo conversion found!
Authored by: victory on Nov 06, '04 06:16:09AM
...*sigh*. Hopefully in the future there will be a way for guests to edit their own posted comments. Either that or I really need stop and think before I post comments.

Anyhow, it turns out that there *is* a simple way to convert *.rm files to AVI-DIVX/MPEG/etc. that I had completely forgotten about: ffmpegX. While it's a nice GUI-based app, the installation is a bit involved since there are 4 files (including the Realvideo libs) that the user must d/l and install themselves, due to license issues.

NOTE:There is an ongoing discussion as to whether or not the use of the Real/Helix libraries are allowed for transcoding purposes. Consult the Real's click-thru EULA prior to d/l-ing if this concerns you]

[ Reply to This | # ]

Record any video stream to disk using VLC
Authored by: volltubel on Mar 02, '06 01:39:26PM

Thanks for the hint about MPlayer and rm-files. I did exactly what you suggested , only MPlayer doesn't play RealVideo streams - at least not with me.



[ Reply to This | # ]
Do more: Transcode/Convert
Authored by: lucite on Nov 07, '04 09:55:42AM

Hi,

Using the same --sout syntax you can actually take an existing file (vs. a stream) and convert it to an .avi file. You can probably transcode/convert into other formats - the vlc doc supports this - but I haven't properly tried thus far.

The one I really want to try is taking a DVD and converting it into an .avi/divx/etc. - if you've tried this, please post your results.

P.S. be sure to let vlc finish it's work before trying to open the apparently finished new movie when converting - the file size is deceptive: vlc just claims that amount of space at the beginning of the conversion.



[ Reply to This | # ]
Record any video stream to disk using VLC
Authored by: longbeard on Nov 07, '04 05:42:37PM

I tried using the /Applications/VLC.app/Contents/MacOS/VLC <URL> --sout <filename> and it didn't work.. here's the exact command that I issued in Terminal /Applications/VLC.app/Contents/MacOS/VLC http://www.dagupan.com/radio/playfromdigitel.asp?vref=11072004-gmasfiles1.wmv --sout /Users/benedict/gma1.avi. I was testing on how to download the news from www.inq7.net.



[ Reply to This | # ]
Record any video stream to disk using VLC
Authored by: den5769 on Nov 08, '04 04:39:09PM

Longbeard: you must not have read the post all the way through. You can't do this with a http link, you have to view the source code of the page in question and look for a mms link <mms://anything_ending_in.wmv>



[ Reply to This | # ]
Record any video stream to disk using VLC
Authored by: rfm22 on Mar 10, '05 03:03:05PM

Hi all,

I tried to record an RSTP live stream using the latest VLC I downloaded on 10 Mar. The errors I received were:

[00000001] main vlc error: option rt-offset does not exist
[00000001] main vlc error: option rt-offset does not exist
[00000222] main input error: no suitable access module for `rstp://avs2.senate.gov/banking'
[00000237] main input error: no suitable access module for `rstp://avs2.senate.gov/banking'


Any help would be helpful.

thanks,
Rob



[ Reply to This | # ]
Record ALMOST any video stream to disk using VLC
Authored by: wayne t on Jan 18, '06 09:20:13AM

Rob, you'd need to post the full URL .. - we'd need to see the messages window for the errors/probs etc.. - see also http://forum.videolan.org/viewtopic.php?p=49877#49877
and do a few searches in those forums - including on 'keynote'.

ATB,

Wayne T
obfuscatedAT0ptusnetD0Tc0m.au



[ Reply to This | # ]
Record any video stream to disk using VLC
Authored by: Jonster on Jan 28, '06 04:30:57PM

I've done this about a million times with VLC 0.8.a and no prevail. I always get this:

2006-01-28 19:28:56.364 VLC[874] CFLog (0): CFMessagePort: bootstrap_register(): failed 1103 (0x44f), port = 0x5503, name = 'org.videolan.vlc.ServiceProvider'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2006-01-28 19:28:56.384 VLC[874] CFLog (99): CFMessagePortCreateLocal(): failed to name Mach port (org.videolan.vlc.ServiceProvider)
[00000255] livedotcom demuxer error: describeURL failed (connect() failed: Connection refused)
[00000254] main input error: no suitable access module for `rtsp://www.sound-tv.net:554/channel/visual/wizard/01_s.mov'
[00000262] main input error: no suitable access module for `file/mov:movie.avi'
[00000249] main playlist: nothing to play

The file does exist because I've played it many times. I'm so lost.



[ Reply to This | # ]
Record any video stream to disk using VLC
Authored by: volltubel on Feb 27, '06 01:57:24PM

I followed the instructions given by metiure a hundred times but all I get is this message:

main: no suitable access module for `rtsp://62.2.180.194:554/sfdrs/chak/2006/chak_02272006-450k.rm?'



[ Reply to This | # ]
Record any video stream to disk using VLC
Authored by: ovrdrvn on Apr 07, '06 08:55:57PM

Ditto: no luck here...try this prOn out:

[porn link removed by moderator]



[ Reply to This | # ]
Record any video stream to disk using VLC
Authored by: domifa2000 on Jan 30, '09 12:26:39PM

hello
somebody can help me i have this error message when i try to do what you have explain :-/
[00000390] access_mms access error: error while asking for file -1
[00000390] access_mms access error: cannot connect to server
[00000390] access_mms access error: cannot read data 2
[00000390] access_mms access error: error: HTTP/1.0 401 Unauthorized
[00000390] access_mms access error: cannot start stream
[00000388] main input error: open of `mms://206.132.216.178/TV9/Drama/BANGRAK/BR176-240109.wmv?UID=' failed: could not create access



[ Reply to This | # ]
Record any video stream to disk using VLC
Authored by: irha on Aug 24, '09 07:29:24PM

I used these options to record an rtsp stream on windows using the 1.0.1 version and after about 3 minutes, closed vlc to check how it did. I was happy to see the video show up, but there was no audio. Do I need to use additional options to include audio?



[ Reply to This | # ]