<p>This is a workaround which converts the files to another container format. It happens almost as fast as your hard disk can write data because nothing is re-encoded.</p>
<ol>
<li>use MKVToolNix (specifically mkvmerge) to combine the mp4 files and their srt files into mkv files (perhaps you can automate this with a loop). I never use this tool via command line and cannot tell you the exact command, but you'll find more information here <a href="https://mkvtoolnix.download/doc/mkvmerge.html" rel="nofollow noreferrer">https://mkvtoolnix.download/doc/mkvmerge.html</a></li>
<li>use <code>vlc.exe *.mkv</code> afterwards.</li>
</ol>
<p>Maybe this question helps too <a href="https://superuser.com/questions/609113/how-to-add-and-remove-subtitles-in-an-mkv-file">https://superuser.com/questions/609113/how-to-add-and-remove-subtitles-in-an-mkv-file</a> which should also work with an mp4 file as input.</p>

CC BY-SA 4.0
2020-12-16T20:30:19.047Z
While this is a great workaround and did help me out, it is still not a direct answer to my question. So should I mark the question as answered or not? Many thanks BTW.
Anchith Acharya
CC BY-SA 4.0
2020-12-19T21:26:56.683Z
Glad that works for you. But you can leave it as not answered, sometimes people answer after many weeks or months.
Matt
CC BY-SA 4.0
2020-12-15T23:39:03.643Z
2020-12-15T23:39:03.643Z
Matt
<p>Usually, you can use this command to open a video with a subtitle in VLC, if it isn't detected automatically:<br />
<code>vlc.exe path_to_video.mp4 --sub-file path_to_sub.srt</code></p>
<p>But I want to open multiple videos, each with their own subtitle file. How do I do that?<br />
Neither <code>vlc.exe video1.mp4 video2.mp4 --sub-file sub1.srt sub2.srt</code><br />
nor <code>vlc.exe video1.mp4 --sub-file sub1.srt video2.mp4 --sub-file sub2.srt</code> seem to work.</p>

<subtitles><vlc><command-line>
How do you open multiple videos with multiple subtitles in VLC from command-line?
Anchith Acharya
# How do you open multiple videos with multiple subtitles in VLC from command-line?

(Asked by: username_0 on 2020-12-15)

Usually, you can use this command to open a video with a subtitle in VLC, if it isn't detected automatically:  
`vlc.exe path_to_video.mp4 --sub-file path_to_sub.srt`

But I want to open multiple videos, each with their own subtitle file. How do I do that?  
Neither `vlc.exe video1.mp4 video2.mp4 --sub-file sub1.srt sub2.srt`  
nor `vlc.exe video1.mp4 --sub-file sub1.srt video2.mp4 --sub-file sub2.srt` seem to work.

**Tags:** subtitles, vlc, command-line


---

## 1 answers

### Answer by username_1 on 2020-12-15. Score: 1

This is a workaround which converts the files to another container format. It happens almost as fast as your hard disk can write data because nothing is re-encoded.

1. use MKVToolNix (specifically mkvmerge) to combine the mp4 files and their srt files into mkv files (perhaps you can automate this with a loop). I never use this tool via command line and cannot tell you the exact command, but you'll find more information here <https://mkvtoolnix.download/doc/mkvmerge.html>
2. use `vlc.exe *.mkv` afterwards.

Maybe this question helps too <https://superuser.com/questions/609113/how-to-add-and-remove-subtitles-in-an-mkv-file> which should also work with an mp4 file as input.

> **Comments:**
> **username_0**: While this is a great workaround and did help me out, it is still not a direct answer to my question. So should I mark the question as answered or not? Many thanks BTW.  
> **username_1**: Glad that works for you. But you can leave it as not answered, sometimes people answer after many weeks or months.  

---

