Comments (10)
@stefnotch sound great. I or someone on my team may take a look in the coming weeks.
from anime4k.
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.
Can anyone verify this code? 😃
from anime4k.
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.
@mdale If you're interested in implementing this, I'd be willing to help out.
from anime4k.
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.
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.
Of course that would be possible.
Although, it might run into issues on the various websites that use a custom video player.
from anime4k.
@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.
Anime4k already has a web implementation https://github.com/bloc97/Anime4K/blob/master/web
In the onLoad function, the important setup stuff happens
Line 662 in 333aca5
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.
@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)
- How-to train custom models: Explanations and notes HOT 10
- Small lags when activated, both with low-end and high-end template. HOT 1
- MPV always opens with Anime4K enabled. HOT 1
- Cant figure out setup on android HOT 3
- Setting up on Android MPV player?
- GAN models vs Shaders? HOT 1
- How to train the model on custom dataset? HOT 1
- S and M size for 4x upscalers? HOT 1
- Best chain of shaders for highest quality and upscaling HOT 9
- Requesting Deleted Shader (GAN X2 UL) HOT 2
- How to use Anime4K GLSL for Bitmap HOT 1
- Black and white shaders HOT 5
- How to train/load S/M/L CNN models in tensorflow? HOT 33
- Load the shaders in Android media3 (Exoplayer) HOT 2
- Can be install on a Plex server ? HOT 3
- Anime4k CNN input type HOT 1
- How do I use this outside of realtime video playback? HOT 7
- Anime4k training HOT 1
- Complete tutorial how to train Anime4K on my own dataset? HOT 1
- Upscale filter no longer working - unsure why HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anime4k.