7 ms·
For people who like to watch with subtitles, VLC currently doesn't support streaming to chromecast with SRT subtitles.. there are several issues for it and I be
by hmsimha 3y ago
For people who like to watch with subtitles, VLC currently doesn't support streaming to chromecast with SRT subtitles.. there are several issues for it and I believe support is slated for the next major version of VLC, but not sure when that will be.
The typical "workaround" is to reencode the video file to include the subtitles directly, but that sounded like too much work, so I hacked together a static page using https://videojs.com/ https://videojs.com/ to embed a player and load the video and subtitles in a browser window.
Here it is in gist form if anyone has a similar issue: https://gist.github.com/HartS/9bb2721fa73b6798efcdbf5c463e875f https://gist.github.com/HartS/9bb2721fa73b6798efcdbf5c463e87...
This was hacked together as quickly as possible for my own needs, so definitely not intended to be an example of clean code. You need to run the python server separately to serve the SRT because video-js can't load it from a file URL IIRC
- chedoku 3y agoI suggest you to host it somewhere? I assume github pages is not suitable because of CORS.
- hmsimha 3y agoI don't think it will work hosted with local video files. It works locally reading the video file from the file:// url (though strangely needs http for the subtitle track)
- jimlikeslimes 3y agoYep I've been bitten by this. Very frustrating. I went back to a usb stick containing the video and subtitle file stuck in the back of the projector.
- Foxboron 3y agoThere has been patches floating around to support this for quite a while. One example here: https://github.com/sandsmark/vlc-chromecast-subtitles https://github.com/sandsmark/vlc-chromecast-subtitles