Command line problems

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.
SusanFlamingo
New Cone
New Cone
Posts: 7
Joined: 12 May 2021 08:32

Command line problems

Postby SusanFlamingo » 23 May 2021 18:26

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

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Command line problems

Postby mederi » 24 May 2021 13:38

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.

SusanFlamingo
New Cone
New Cone
Posts: 7
Joined: 12 May 2021 08:32

Re: Command line problems

Postby SusanFlamingo » 24 May 2021 14:27

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

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Command line problems

Postby mederi » 24 May 2021 16:52

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

SusanFlamingo
New Cone
New Cone
Posts: 7
Joined: 12 May 2021 08:32

Re: Command line problems

Postby SusanFlamingo » 24 May 2021 17:26

I copied and pasted your text into the command line and it just starts the file from the beginning.....sigh...

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Command line problems

Postby mederi » 24 May 2021 17:59

Try to change the order:
"C:\Program Files\VideoLAN\VLC\vlc.exe" "MyFile.mp3" :start-time=33

SusanFlamingo
New Cone
New Cone
Posts: 7
Joined: 12 May 2021 08:32

Re: Command line problems

Postby SusanFlamingo » 24 May 2021 19:31

Works perfectly. Thank You so very much!

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Command line problems

Postby mederi » 25 May 2021 18:09

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


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: VictoorH and 73 guests