Spicetify-Canvas
Spicetify-Canvas copied to clipboard
Decoding h.264 in pure JS?
First off, this is incredible work. Patching CEF is not for the faint of heart - kudos!
I wonder if you could try using something like https://github.com/mbebenita/Broadway or https://github.com/gliese1337/h264decoder to decode the h.264 streams in pure JS, and display frame by frame? Though I'm not sure whether certain features of their encoded videos are supported. Could be a way to work around the need for a CEF build!
Most likely possible, although I would prefer something like transcoding to VP9/WEBM, since then the browser could display it natively.
In my initial design for this project, I looked into it briefly, but I found that the CEF thing was easier in the moment.
I really want to keep this project light and maintainable, so I'm not sure about embedding any dependencies. Maybe if there was some type of live transcoding service that could accept a URL and then host a small VP9 it would work as an alternative, but it's also not sustainable bandwidth wise.