Command line parameter format to play multiple videos (or playlist file incl. start-time)

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.
Robben
New Cone
New Cone
Posts: 4
Joined: 14 Dec 2013 19:43

Command line parameter format to play multiple videos (or playlist file incl. start-time)

Postby Robben » 31 Jan 2022 23:15

I've long been wanting to run excerpts from audio or scenes inside videos... driven by a database.

I will use --start-time and --run-time for each request.

What I have working is the command for a single video...

Code: Select all

"c:\Program Files\VideoLAN\VLC\vlc.exe" --fullscreen --playlist-enqueue --start-time=300 --run-time=30 c:\movie.mp4

(1) Can I do multiple videos, including start- and run-time for each, in the one command line?

What would be the format, please?

I've read somewhere to use a pipe? How would it look?

Code: Select all

"c:\Program Files\VideoLAN\VLC\vlc.exe" --start-time=300 --run-time=30 c:\vid_1.mp4|--start-time=500 --run-time=60 c:\vid_2.mp4| ...?

(2) If that's not possible, can I have the PC write a playlist to disk that includes start-time and run-time xml tags for each video?

(3) Is there a command line parameter to ensure I won't see subtitles?
--sub-file="" ?

Thanks for any hints! :)

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 parameter format to play multiple videos (or playlist file incl. start-time)

Postby mederi » 01 Feb 2022 13:06

https://forum.videolan.org/viewtopic.php?f=14&t=157358
Media>Save Playlist to File... .xspf
--no-spu

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

Re: Command line parameter format to play multiple videos (or playlist file incl. start-time)

Postby unidan » 01 Feb 2022 18:49

Hi,

(1) Can I do multiple videos, including start- and run-time for each, in the one command line?

Code: Select all

vlc scheme://firstfilepath :start-time=100 :run-time=300 \ scheme://secondfilepath :start-time=200 :run-time=400
:option basically applies to the input MRL preceding on the command line

(3) Is there a command line parameter to ensure I won't see subtitles?

--no-spu will disable subtitles, --no-osd will also disable the title, play/pause marker and the progress on screen.

Robben
New Cone
New Cone
Posts: 4
Joined: 14 Dec 2013 19:43

Re: Command line parameter format to play multiple videos (or playlist file incl. start-time)

Postby Robben » 01 Feb 2022 19:50

That all works GREAT. Thank you all :D

Last question...

If I want to show different scenes in the same video, do I have to reload it (so it feels), or is there an option / intelligence to just jump?

This works but feels like the movie has to reload (not sure it is) ...

Code: Select all

"vlc.exe" t:\sameMovie.mp4 :start-time=10 :run-time=5 t:\sameMovie.mp4 :start-time=20 :run-time=10
Or does some option exist to replace the same title with :SAME-FILE (for example), so it just skips?

Maybe it's already doing so with the previous line, which *does* work — I just wanna skip reloading the file if it doesn't need to.

Code: Select all

"vlc.exe" t:\sameMovie.mp4 :start-time=10 :run-time=5 :SAME-FILE :start-time=20 :run-time=10


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 29 guests