Code Monkey home page Code Monkey logo

Comments (4)

bloc97 avatar bloc97 commented on May 8, 2024

Which version of MPV are you using and what GPU do you have?
Also you could simply take a screenshot of the original video (windowed mode), and then compare it to the upscaled version (full screen). If there's significant improvement, the algorithm is running.

from anime4k.

zluo01 avatar zluo01 commented on May 8, 2024

0.31 and a 2080ti. it seems a little bit sharper, but I am not sure.
With shaders,
Screenshot from 2020-03-02 13-36-32
Without shaders
Screenshot from 2020-03-02 13-37-00

mpv.config

# Muh placebo
vo=gpu
profile=gpu-hq
vd-lavc-dr=yes
opengl-pbo=yes

# year of the vulkan desktop!1
gpu-api=vulkan
vulkan-async-compute=yes
vulkan-async-transfer=yes
vulkan-queue-count=1

scale=ewa_lanczossharp
scale-clamp=0.2
cscale=ewa_lanczossharp

#glsl-shaders="~~/shaders/Anime4K_Hybrid_v2.0RC2.glsl"

icc-profile-auto=yes
icc-cache-dir=/tmp/mpv-icc
gpu-shader-cache-dir=/tmp/mpv-shaders/

# Interpolation
video-sync=display-resample
interpolation=yes
tscale=oversample
blend-subtitles=yes

save-position-on-quit=yes
mpv.conf (END)

Thank you

from anime4k.

bloc97 avatar bloc97 commented on May 8, 2024

It looks like it is working in your screenshot.
If for some reason you find it not sharp enough (some anime are just softer, and you might have a different taste than others), you can decrease the ANTIALIAS_STRENGTH parameter in the shader.
You can find it at line 381:
#define ANTIALIAS_STRENGTH 0.34
Decrease it to 0.3 (very sharp) or even 0.2 (extremely sharp).

from anime4k.

zluo01 avatar zluo01 commented on May 8, 2024

Ok, thank you very much.

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.