command line stop recording

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.
erore
New Cone
New Cone
Posts: 1
Joined: 19 Feb 2010 10:36

command line stop recording

Postby erore » 04 Mar 2010 11:12

I want to use VLC to capture stream from an ip camera and save it to file. The thing is I need to do it from an external application -the application should issue a command to start recording and then to stop it. I thought I could use VLC command line however once I start recording there is no way to end it via command line, I have to kill the process. Is there some solution how to record the stream and properly end recording?

michaeldjcox
Blank Cone
Blank Cone
Posts: 61
Joined: 08 Dec 2008 13:06

Re: command line stop recording

Postby michaeldjcox » 04 Mar 2010 11:37

Hi

You should consider using the rc interface.

-I rc --rc-host=localhost:<portnumberofyourchoice> --rc-quiet

Then you can send commands via a socket <portnumberofyourchoice> to the VLC session e.g.

stop
clear
quit

Michael

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

Re: command line stop recording

Postby VLC_help » 04 Mar 2010 23:19

Or if you know the time limit, you can use

Code: Select all

--run-time=<float> Run time The stream will run this duration (in seconds).


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 34 guests