Adding multiple subtitles through commandline

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.
odynob
New Cone
New Cone
Posts: 2
Joined: 02 Nov 2022 03:16

Adding multiple subtitles through commandline

Postby odynob » 02 Nov 2022 03:26

I'm looking for a way to load a video with multiple subtitle-files through the commandline/cmd. The following command works if I have one subtitle only:

Code: Select all

"vlcPath\vlc.exe" "videoFilePath\video.mkv" --sub-file="subtitleFilePath\subtitle.srt"
However I haven't found a way to add multiple subtitles using this method, are there some way of specifying multiple subtitle-paths to load?

I know that if the subtitles are named similar to the filename of the video, it's possible to do this using --sub-autodetect-path (example below), but it doesn't work if they're named differently than the video-title.

Code: Select all

"vlcPath\vlc.exe" "videoFilePath\video.mkv" --sub-autodetect-path="subtitleFilePath\"
Is this possible to do through commandline-arguments?

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: Adding multiple subtitles through commandline

Postby mederi » 05 Nov 2022 15:50

--input-slave=<string> Input slave (experimental)
This allows you to play from several inputs at the same time. This
feature is experimental, not all formats are supported. Use a '#'
separated list of inputs.
--input-slave=file/subtitle:///subtitleFilePath\subtitle1.srt#file/subtitle:///subtitleFilePath\subtitle2.srt
Actually URL, so subtitleFilePath should be URL-encoded (spaces, non-English characters, ...).

odynob
New Cone
New Cone
Posts: 2
Joined: 02 Nov 2022 03:16

Re: Adding multiple subtitles through commandline

Postby odynob » 12 Nov 2022 03:48

Wow thank you! :D


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Bing [Bot] and 48 guests