howto record stream by command line option?

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
seahawk1986
New Cone
New Cone
Posts: 2
Joined: 15 Jul 2009 12:15

howto record stream by command line option?

Postby seahawk1986 » 15 Jul 2009 12:42

Hi everybody,
VLC 1.0 has a new nice "record" button, which enables you to save all kinds of (streaming) media "as it is" to disk.
Is there any way to do this by vlc command line options?
At the moment I have to customize these options for each type of stream, eg.:

Code: Select all

vlc rtsp://xxx.xxx.xxx.xxx/mydirectory/mystream.mov --sout=#duplicate{dst=std{access=file,mux=mov,dst="myfile.mov"}

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: howto record stream by command line option?

Postby Jean-Baptiste Kempf » 15 Jul 2009 13:01

from command-line, you can use :demux=dump
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

seahawk1986
New Cone
New Cone
Posts: 2
Joined: 15 Jul 2009 12:15

Re: howto record stream by command line option?

Postby seahawk1986 » 15 Jul 2009 13:51

I tried :demux=dump, it works for local files but unfortunately not for rtsp streaming videos, no file is created and I still have to specify the filename manually. My command looks like this:

Code: Select all

C:\Program Files\VideoLAN\VLC\vlc -vvv rtsp://xxx.xxx.xxx.xxx/mydirectory/mystream.mov :demux=dump :demuxdump-file="C:\Users\MyUsername\Videos\myvid.mov"
Did I forgot something? Is there an other way to use the record button by command-line?


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 81 guests