record from command line

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
gtdixon
New Cone
New Cone
Posts: 2
Joined: 30 Jun 2011 14:26

record from command line

Postby gtdixon » 30 Jun 2011 14:32

Help would be appreciated to use VCL to trigger, capture and record to file a video stream. I am sure it is simple even for a relative beginner like me but I have spent many hours with only limited progress.
I have developed a remote controlled robot which I can control over local WiFi network using C sharp or Microsoft Robotics developer studio. The robot has a video camera which streams across the local network and also has a motion sensor. When the robot is not moving the motion sensor will pick up movement and action a C# event. All of this is working satisfactorily I want to capture on file video for as long as the motion detector sees something moving.
My system details are as follows:
Windows 7 operating system for computer.
Captured video stream M-JPEG in http address on Firefox browser.

Right now I can open vcl and capture and display from local network the video. I can also record the video as necessary. I can also capture and display video from the command prompt. I cannot record from the command prompt. I believe that for my system the ps muxer will not work well that the ts muxer is okay. I have set up an empty file addressable from the command prompt as ./testvideo.mpg to accept the recording. My command is as follows:
vlc -vvv http://phidgetsbc.local:81/?action=stream --sout="#std{access=file,mux=ts, dst=testvideo.mpg}"
I get no result.

Next step will be to send this command from the C#program to the command line. Think I can do this by writing the command as a .bat format for Dos batch programming.

An additional question. I can open the video stream in vlc using:
vlc -vvv http://phidgetsbc.local:81/?action=stream
but I have user name and password protection to add manually before seeing the video. Can I add these details to the command line program so that they do not have to be manually input or do I have to do without password protection?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: record from command line

Postby VLC_help » 30 Jun 2011 15:37

For SOUT, avoid whitespace and use demux-dump if stream itself is enough.

For password and username you can try http://username:password@phidgetsbc.loc ... ion=stream

gtdixon
New Cone
New Cone
Posts: 2
Joined: 30 Jun 2011 14:26

Re: record from command line

Postby gtdixon » 03 Jul 2011 17:38

Thanks. That sortsme out.
Graham


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Bing [Bot] and 13 guests