Page 1 of 1

Command line control

Posted: 01 Apr 2010 06:18
by renaud
Hi,
Is there a way to run VLC, with the commande line, by starting and ending the sequence at a defined time.
Something like:
--startAt hh:mm:ss:fff --stopAt hh:mm:ss:fff

Thank you in advance,
Renaud

Re: Command line control

Posted: 01 Apr 2010 21:59
by RĂ©mi Denis-Courmont
--start-time and --stop-time, but you need to specify the time in seconds (not hh:mm:ss).

Re: Command line control

Posted: 03 Apr 2010 00:46
by renaud
Great, thanks a lot!
One more question: I've installed wamp on my laptop and would like to run VLC from a php script.
I've tried with shell_exec or system without success :(
system("C\\VideoLan\\VLC\\VLC\\vlc.exe");
This make the browser keeping loading his page without stopping...

I would like to control VLC on a server with php and perform this kind of call:
system("C:\\VideoLan\\VLC\\VLC\\vlc.exe --start-time=120 --stop-time=600 C:\\VideoLan\\myfile.avi");

Thanks and have a good weekend!
Renaud

Re: Command line control

Posted: 30 Jul 2010 11:42
by teerapol
I got same problem :(