Command line control

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
renaud
New Cone
New Cone
Posts: 4
Joined: 01 Apr 2010 06:10

Command line control

Postby renaud » 01 Apr 2010 06:18

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15327
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Command line control

Postby Rémi Denis-Courmont » 01 Apr 2010 21:59

--start-time and --stop-time, but you need to specify the time in seconds (not hh:mm:ss).
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

renaud
New Cone
New Cone
Posts: 4
Joined: 01 Apr 2010 06:10

Re: Command line control

Postby renaud » 03 Apr 2010 00:46

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

teerapol
New Cone
New Cone
Posts: 3
Joined: 29 Jul 2010 11:16

Re: Command line control

Postby teerapol » 30 Jul 2010 11:42

I got same problem :(


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 32 guests