bloc97 / Anime4K

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

How to use it in SMPlayer? #64

Closed wdw89 closed 4 years ago

wdw89 commented 4 years ago

SMPlayer is a GUI of Mplayer and mpv, I can add option of mpv in advanced preference, but has no effect with Anime4K. Is there any one know how to use?

Jasperabez commented 4 years ago

Edit the mpv.conf file to include the line to enable the shaders, then in SMPlayer Options>Preferences>MPlayer/mpv there's a blank field for "Options:"

In the field enter

--config=yes

this should allow the shader to work there, as the config file is disable by default in SMPlayer

Edit:

a cleaner option would be just to pass the glsl-shader directly in the "Options:" field

--glsl-shader=~/.config/mpv/shaders/Anime4K_Hybrid_v2.1a.glsl

replace the glsl file name accordingly

orehkt commented 4 years ago

For the current version of Anime4K shaders and SMPlayer 20.6

I put shaders here on windows

Expand to see the image ![image](https://user-images.githubusercontent.com/67135495/85095441-66d00480-b1bf-11ea-95c6-079d9afedc85.png)

And pass one of the 6 readme configs in theOptions: field (with the -- and the correct route), for example the last setting for 1080p on the readme, you can see any error with right click on the video=> view => MPlayer/mpv log

See the other configs For 480/720p videos: - Remain as faithful to the original while enhancing details: `--glsl-shaders="~~/mpv/shaders/Anime4K_Upscale_CNN_L_x2_Denoise.glsl;~~/mpv/shaders/Anime4K_Auto_Downscale_Pre_x4.glsl;~~/mpv/shaders/Anime4K_Upscale_CNN_M_x2_Deblur.glsl"` - Improve perceptual quality: `--glsl-shaders="~~/mpv/shaders/Anime4K_Upscale_CNN_L_x2_Denoise.glsl;~~/mpv/shaders/Anime4K_Auto_Downscale_Pre_x4.glsl;~~/mpv/shaders/Anime4K_DarkLines_HQ.glsl;~~/mpv/shaders/Anime4K_ThinLines_HQ.glsl;~~/mpv/shaders/Anime4K_Upscale_CNN_M_x2_Deblur.glsl"` - Improve perceptual quality + deblur: `--glsl-shaders="~~/mpv/shaders/Anime4K_Upscale_CNN_L_x2_Denoise.glsl;~~/mpv/shaders/Anime4K_Auto_Downscale_Pre_x4.glsl;~~/mpv/shaders/Anime4K_Deblur_DoG.glsl;~~/mpv/shaders/Anime4K_DarkLines_HQ.glsl;~~/mpv/shaders/Anime4K_ThinLines_HQ.glsl;~~/mpv/shaders/Anime4K_Upscale_CNN_M_x2_Deblur.glsl"` For 1080p videos: - Remain as faithful to the original while enhancing details: `--glsl-shaders="~~/mpv/shaders/Anime4K_Denoise_Bilateral_Mode.glsl;~~/mpv/shaders/Anime4K_Upscale_CNN_M_x2_Deblur.glsl"` - Improve perceptual quality: `--glsl-shaders="~~/mpv/shaders/Anime4K_Denoise_Bilateral_Mode.glsl;~~/mpv/shaders/Anime4K_DarkLines_HQ.glsl;~~/mpv/shaders/Anime4K_ThinLines_HQ.glsl;~~/mpv/shaders/Anime4K_Upscale_CNN_M_x2_Deblur.glsl"`
Expand to see the image ![image](https://user-images.githubusercontent.com/67135495/85095663-13aa8180-b1c0-11ea-9fc4-1d53ff492ed8.png)

If you want to use the keyboard shortcuts of the readme, the only option is check the Run MPlayer/mpv on its own windows, and edit the config files in mpv folder.

wdw89 commented 4 years ago

Thank you, after some test, I need to add --vo=gpu first