Page 1 of 1

Adding multiple subtitles through commandline

Posted: 02 Nov 2022 03:26
by odynob
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?

Re: Adding multiple subtitles through commandline

Posted: 05 Nov 2022 15:50
by mederi
--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, ...).

Re: Adding multiple subtitles through commandline

Posted: 12 Nov 2022 03:48
by odynob
Wow thank you! :D