Page 1 of 1

command line stop recording

Posted: 04 Mar 2010 11:12
by erore
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?

Re: command line stop recording

Posted: 04 Mar 2010 11:37
by michaeldjcox
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

Re: command line stop recording

Posted: 04 Mar 2010 23:19
by VLC_help
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).