Playlist with subtitles

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.
cuddlyable3
New Cone
New Cone
Posts: 8
Joined: 22 Aug 2011 18:05

Playlist with subtitles

Postby cuddlyable3 » 15 Nov 2015 21:57

Can you help me make a playlist of video clips, each with subtitles? In Windows I can give this command line:

>"C:\Program Files\VideoLAN\VLC\vlc" "F:\songs\Sorry Her Lot.webm" --sub-file="F:texts\SHL.srt"

It correctly plays the video "Sorry Her Lot" with its subtitle file.

Question #1: Is there a way to make VLC exit and return to the command prompt automatically after the video?

My attempts to make a playlist are unsuccessful. There are too many videos to fit in one command line. When I run multiple command lines in a .BAT file, the subtitles do not appear and VLC has to be closed manually after each video. When I list the video files in a .m3u file and ask VLC to open the .m3u file, it doesn't understand.

Question #2: How do I make a playlist of video clips with their subtitle files that works in Windows Vista?
caleb.bradley@getmail.no

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: Playlist with subtitles

Postby mederi » 16 Nov 2015 12:48

Try :sub-file instead of --sub-file in your command line, then save the playlist (Media > Save Playlist to File...) and check the saved playlist file.

cuddlyable3
New Cone
New Cone
Posts: 8
Joined: 22 Aug 2011 18:05

Re: Playlist with subtitles

Postby cuddlyable3 » 16 Nov 2015 23:49

Thank you for the help, I was unaware of the playlist file format .xpsf. Now I just edit an existing .xpsf file by adding content within tags <track>....</track> in Notepad, remembering to tell it that this is NOT a .txt file.

This works for me :) but it is tedious to have to enter the length of each video clip in secondsx1000, and to give each a sequential <vlc-id> number, to be repeated inside the tag <extension>....</extension>. I suggest the window at

Media>Open Multiple Files...>Open Media>File

could be improved these purposes by:
* letting one build a playlist of files with the option offered SEPARATELY for each video to use a different subtitle file
* letting one reload an existing playlist which would then be shown expanded for editing.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 64 guests