Anime4KWebBoost / Anime4K-WebGPU

Implementation of Anime4K in WebGPU
MIT License
45 stars 3 forks source link

Possible Implementation as Browser Extension or Userscript to Upscale Web Videos? #16

Open Tama47 opened 6 months ago

Tama47 commented 6 months ago

I believe that the best use case for Anime4K on the web would be in the form of an extension or a userscript to enhance any web videos. It would be really awesome if I could watch anime videos on YouTube, Crunchyroll, etc., and have them upscaled to 4K using the Anime4K shaders without having to open them in an external player like mpv. Would it be possible to create something like that?

plasmas commented 6 months ago

Thanks for asking! This is an awesome advice and, in fact, has been in our mind for a long time. Right now, the low-level APIs provided by this library limits its usage, so browser extensions are indeed the best ways to use them.

We are thinking about Chrome extensions or maybe TamperMonkey scripts. If websites like youtube aren't too complex to tap into the video stream, it shouldn't be too hard to inject the pipeline...

We intend to start working on it in the near future, and will post new updates in this thread!

Tama47 commented 6 months ago

That’s great to hear! I’ve tried implementing a Tampermonkey userscript with an older version of the Anime4K webgl shader. I’ve already successfully drawn YouTube videos to canvas, so that part should not be hard, but I’ve yet to apply the shaders. Websites like Crunchyroll and Hidive would be more difficult due to DRM, but other projects like Magpie seem to be able to bypass that completely with other screen capture methods.