top | item 38900211

(no title)

hmsimha | 2 years 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/ 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/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

discuss

order

jimlikeslimes|2 years ago

Yep 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.

chedoku|2 years ago

I suggest you to host it somewhere? I assume github pages is not suitable because of CORS.

hmsimha|2 years ago

I 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)