Page 1 of 1

Command line problems

Posted: 23 May 2021 18:26
by SusanFlamingo
Hi friends!

I am running VLC player from an Accees DB. I am using the syntax :

C:\Program Files\VideoLAN\VLC\vlc --start-time= 33 MyFile. mp3.

(Start-time gets a value from a field in the DB)

Everything is fine.

However, if run the above script and then leave VLC player open and then **run another script with a different value for Start-time** - it starts playing at the start time I used when I opened the player. I have to close and reopen it with the new start-time value, which is very annoying.

Any ideas on how to get it running (same file) but at a different start-time?

Thank You

Re: Command line problems

Posted: 24 May 2021 13:38
by mederi
Options-styles:
--option A global option that is set for the duration of the program.
-option A single letter version of a global --option.
:option An option that only applies to the stream directly before it
and that overrides previous settings.

Re: Command line problems

Posted: 24 May 2021 14:27
by SusanFlamingo
Thank you for your reply, but please excuse my ignorance.
Could you plz give me a working example of the argument I require **not** to keep it playing from the original star-time

Re: Command line problems

Posted: 24 May 2021 16:52
by mederi
C:\Program Files\VideoLAN\VLC\vlc.exe :start-time=33 MyFile.mp3

Re: Command line problems

Posted: 24 May 2021 17:26
by SusanFlamingo
I copied and pasted your text into the command line and it just starts the file from the beginning.....sigh...

Re: Command line problems

Posted: 24 May 2021 17:59
by mederi
Try to change the order:
"C:\Program Files\VideoLAN\VLC\vlc.exe" "MyFile.mp3" :start-time=33

Re: Command line problems

Posted: 24 May 2021 19:31
by SusanFlamingo
Works perfectly. Thank You so very much!

Re: Command line problems

Posted: 25 May 2021 18:09
by mederi
So it works properly as instructed in vlc-help. Example:
vlc.exe --start-time=11 file1 file2 file3 :start-time=33 file4
=> file1 will start from 11, file2 from 11, file 3 from 33, file4 from 11