bloc97 / Anime4K

A High-Quality Real Time Upscaler for Anime Video
https://bloc97.github.io/Anime4K/
MIT License
18.3k stars 1.35k forks source link

Exporting videos out of mpv? #151

Open banjaminicc opened 2 years ago

banjaminicc commented 2 years ago

I'm not sure if anyone has tried this but I've been testing with the vs.placebo plugin in vapoursynth and applying Anime4K filters seem to have no impact on the clip? I do notice that the dynamic range of the video becomes compressed which is likely a side effect from the clamp highlights shader not working.

I'm not aware of any other alternatives that could parse mpv glsl shaders and directly output a video, maybe someone who has already went on this path can guide me through it?

bloc97 commented 2 years ago

This might be similar to https://github.com/bloc97/Anime4K/issues/144#issuecomment-991957519 . You just have to remove //!SAVE MAIN lines in the shaders for them to work with libplacebo. (If this behaviour is intended they will be removed in the next release.)

The clamp highlights shaders don't currently work with libplacebo, they can be removed without negative effect in most cases.

maheshn22 commented 2 years ago

Hey @banjaminicc, were you successful in outputting the video? Can you please share the script to do it?

banjaminicc commented 2 years ago

Hey @banjaminicc, were you successful in outputting the video? Can you please share the script to do it?

Unfortunately, no. I was still met with other VS errors, I used the template from the GUI hybrid so maybe you could look into that

banjaminicc commented 2 years ago

Hey @banjaminicc, were you successful in outputting the video? Can you please share the script to do it?

I figured it out now As mentioned by bloc, simply use the fix in the quoted issue and then place the shaders in the order recommended and they work perfectly.

hadrizi commented 1 year ago

@banjaminicc can you please share your scripts, have been trying to achieve the same thing as u but was unsuccessful