Stream to Chromecast with resolved, vlc and bash
linderud.dev
linderud.dev
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
It works locally reading the video file from the file:// url (though strangely needs http for the subtitle track)
I bought one originaly assuming I could stream local videos to it or like read them from a network drive, but Google force SaaS cloud everything on the user.
There is not even a proper way to remote control it.
Just BS workarounds on what should have been core functionality.
It is a very simple protocol with several different clients (including terminal clients) and receivers based on Electron and Android.
Also available on Firestick TV, Playstore, Android TV.
Future support for AppleTV, WebOS, TizenOS is coming.
Regardless, I'm glad this exists. Hopefully in the future it becomes more prevalent.
Chromecast should be more open and hackable -- there are a number of small projects we could do to get interesting use out of these devices
also I wish Picture-in-Picture (PIP) or overlaying text/video stream with alpha transparency/blending over another video stream is more widely supported in consumer devices
I may want to utilize my big screen displays for work but put a small view of scoreboard / live sports from another device somewhere
From a client perspective it's not trivial to say "display another video on top of this one in a region" and I am not sure how you could achieve that while making it "simpler" than it is today.
https://github.com/awesome-selfhosted/awesome-selfhosted#per...
I threw this together as quickly as possible, so it won't be as feature-rich as VLC, but I believe it will still work for many use cases. If you need additional controls, I think video-js (the OSS video player library this uses) supports them, but you'll have to look into their API. You may also be able to get speed controls working with https://chromewebstore.google.com/detail/video-speed-control... , which is honestly one of the biggest QoL improvements I've had from a chrome extension
As the other comment notes though there's no subtitle support, which is a little frustrating, but I guess that depends on the kinda media you watch, and the language(s) involved.
Last year I was looking for a cast stick but couldn't find a one without internet connection requirement.
But then it works on local LAN without internet
I have no idea whether it’s possible to use it without activation