Spicetify-Canvas icon indicating copy to clipboard operation
Spicetify-Canvas copied to clipboard

Decoding h.264 in pure JS?

Open bpartridge opened this issue 1 year ago • 2 comments

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!

bpartridge avatar Oct 13 '23 13:10 bpartridge

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.

itsmeow avatar Oct 23 '23 06:10 itsmeow

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.

itsmeow avatar Oct 23 '23 06:10 itsmeow