The easiest way to control VLC streaming is from the command line. While you could learn the syntax needed to control VLC in this manner, you can make the GUI do most of the work for you.
- Open the Media menu and select Streaming...
- Select any file or network stream, it doesn't matter which one. You'll still have to specify the exact stream you want to record later.
- Choose Stream.
- The Source window will appear, with the location of your stream pre-filled. Click Next.
- The Destination screen appears now. Under Destinations, File should be selected by default. Click Add to the right of that drop-down box.
- Choose the filename and location where you want to save the stream. You can select the right place now, or change it in the actual command to VLC.
- Choose the desired output format in the Transcoding section.
- Click Next to advance to the Miscellaneous Options screen.
- At the bottom there is a box labeled Generated stream output string. That is the command string you need to pass to VLC to replicate the output operation you just described. An example is highlighted in blue below:
Go ahead and copy that string. At the simplest, you can create a shortcut somewhere like your desktop that will run VLC and start recording the stream. Just copy the existing VLC shortcut by right-clicking on the VLC icon on your desktop, selecting Send to, and choosing Desktop (as shortcut), then right-click on the new shortcut and click Properties. In the Target box, add a space after the closing quote at the end, and then enter the address of the stream you want to record. Then, add another space and paste in the stream output string you copied earlier. If you need to change the save location, its located right after {dst=
and before the closing }
in the string. The whole thing should look something like this:
"C:\Program Files\VideoLAN\VLC\vlc.exe" http://www.superuser.com/unicorns.mpg :sout=#transcode{vcodec=theo,vb=800,scale=1,acodec=vorb,ab=128,channels=2,samplerate=44100}:file{dst=C:\\Users\\Patches\\Videos\\unicorns.ogg} :no-sout-rtp-sap :no-sout-standard-sap :sout-keep
Now you can just double-click that icon (or launch it with a hotkey) to record the stream.
I don't know for sure if you're using all your mouse keys, but I wasn't. You can use AltMove to sign just 1 mouse key and not use a keyboard key at all. I've never used my back key before, just assigned dragging to it and can now freely move the VLC undecorated window around. Just read this 2min ago and already am in love with this. Thank you both so much and hope the key assignement option will work with your wireless mouse as well as it does with mine.
Best Answer
For playing vlc in the command line without launching a ui, it looks like this page has what you need.
Specifically, I think you want this command:
This specifies a dummy interface that never acually launches anything. I can't test this because I am away from my linux box right now, but here's the full command I think you're looking for: