Giter Club home page Giter Club logo

Comments (10)

mdale avatar mdale commented on May 13, 2024 5

@stefnotch sound great. I or someone on my team may take a look in the coming weeks.

from anime4k.

NeuroWhAI avatar NeuroWhAI commented on May 13, 2024 2

Hi, I am also interested in that implementation.
Here is a gist based on GLSL code.
I don't know much about the MPV pipeline and custom shaders so the code is probably wrong.
But it seems to work nonetheless.
1
Can anyone verify this code? 😃

from anime4k.

stefnotch avatar stefnotch commented on May 13, 2024

It should be quite doable to take a video, render it to a canvas and apply WebGL effects. The GLSL shader seems simple enough. It would potentially lag behind 1-3 frames, but that's not an issue since it's a video and not a realtime game.

Ideally, that would be turned into a browser plugin so that it could be used on most websites.

from anime4k.

stefnotch avatar stefnotch commented on May 13, 2024

@mdale If you're interested in implementing this, I'd be willing to help out.

from anime4k.

stefnotch avatar stefnotch commented on May 13, 2024

On a quick inspection, it doesn't seem to have any obvious flaws. It'd be great if you could put it on a GitHub repository. Then, I could take a closer look at it and submit PRs with improvements.

from anime4k.

Tsubajashi avatar Tsubajashi commented on May 13, 2024

Just a quick question:
Would it be also possible to have it inside an userscript, which runs on certain sites/Webplayers? that would be the best way for endusers i think.

from anime4k.

stefnotch avatar stefnotch commented on May 13, 2024

Of course that would be possible.
Although, it might run into issues on the various websites that use a custom video player.

from anime4k.

Tsubajashi avatar Tsubajashi commented on May 13, 2024

@stefnotch that would be nice, i would work on such a thing if someone gives me starting directions.
Custom Video Player are a problem, but i know enough sites i would use which have Standard player

from anime4k.

stefnotch avatar stefnotch commented on May 13, 2024

Anime4k already has a web implementation https://github.com/bloc97/Anime4K/blob/master/web

In the onLoad function, the important setup stuff happens

function onLoad() {

I'm not the author of it, but I think a userscript would approximately do this

  • Find the correct (or first) video tag instead of using a hardcoded one
  • Add a canvas with the correct size and put it over the video
  • Do pretty much whatever the onLoad function does

from anime4k.

Juszoe avatar Juszoe commented on May 13, 2024

@stefnotch hello, this is Anime4K v2.1 WebGL implement, but it can't be work. Would you help me to fix it?

from anime4k.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.