Zabooby / mpv-config

Personal mpv config files aiming to get the best quality and viewing experience
https://mpv.io
229 stars 12 forks source link

Questions about profiles. #27

Closed ghost closed 6 months ago

ghost commented 6 months ago

Hello, thank you for sharing so many worked on configs publicly. My system, Ryzen 5 5500 8x2 DDR4 3200mhz RTX3050 8GB OC, Windows 10 Pro 22H2, 1080p Monitor, I usually watch Anime which is 1080p (native res. ) sometimes 720p content in 1080p or 360-480p content in 1080p resolution if it is an older series, I am looking for a profile suitable for this system, but I am confused by the extra letters in the profiles, such as Upscale-Q Upscale-M, I tried to use FSR Cas and KrigBilateral together, but FSR and Cas did not work at the same time in my system strangely. In short, what do the letters in these profiles mean, which one should I use when, and can you please suggest something according to my system and my intended use?

Zabooby commented 6 months ago

The full names of the profiles can be found in input.conf/the right-click menu. The names describe how taxing they are on your system. But since you've got good hardware you'll be able to run any of the shaders comfortably.

As you usually watch anime use either one of the LA (lineart) profiles to upscale. UpscaleLA-Q provides the best upscaling but I'd recommend using it for 720p videos and UpscaleLA-M for 360-480p content. But you might have better luck using the ravu shaders for the really low quality videos as it scales directly to your native res. Just try different configurations and see which ones look best for you.

Have you made any changes to my config? If not you should change this line to AMD. How did you try to load FSR and CAS?

ghost commented 6 months ago

@Zabooby I was browsing the repos to get more information about mpv and its configuration, before that I tried to do some experiments on my own, finally I reached your repo, now I will try your settings. The settings I tried FSR + Cas were as follows.

glslshaders="~~/shaders/FSR.glsl;~~/shaders/KrigBilateral.glsl;~~/shaders/CAS-scaled.glsl;~~/shaders/noise_static_chroma.hook;~~/shaders/noise_static_luma.hook"
profile=high-quality
fullscreen=yes
keep-open=yes
save-position-on-quit=yes
force-seekable=yes
cursor-autohide=100
osc=no
target-colorspace-hint=yes
target-contrast=auto
osd-bar=no
border=no
osd-level=1
screenshot-format=png
screenshot-high-bit-depth=yes
screenshot-png-compression=1
screenshot-jpeg-quality=95
screenshot-template="%f-%wH.%wM.%wS.%wT-#%#00n"
alang=ja,jp,jpn,en,eng
slang=en,eng
vo=gpu-next
gpu-api=vulkan
#hwdec=nvdec
hwdec=vulkan
video-crop=0x0+0+0
dither-depth=auto
dither=ordered
scale=ewa_lanczos
scale-blur=0.981251
dscale=hermite
dscale-param1=0
dscale-param2=0
scale-antiring=0.5
dscale-antiring=0.5
cscale=ewa_lanczossharp
cscale-antiring=0.5
video-sync=display-resample

I also did what you did, firstly I selected amd fsr and cas after then it, but when I select one other one is disappear image image

Zabooby commented 6 months ago

Ok so the shader bug occurred when you were not using my config.

From the settings you've listed there is a lot of redundant stuff that you should remove. Also you are using the wrong CAS shader, the one you're using is also an upscaler just like fsr which might have caused conflicts. The one you should be using is the sharpening shader only without any scaling.

You should just try using my config instead, with the changes I mentioned above.

ghost commented 6 months ago

@Zabooby I did, that's why I updated my comment, still no bueno :( btw I changed gpu-api vulkan and hwdec vulkan, it is way smoother, maybe I will give try to nvdec as hwdec

ghost commented 6 months ago

Also UpscaleLA-M weirdly zooms the 480p video original mpv-shot0003 CTRL+5 image

Zabooby commented 6 months ago

Ok just to be clear, you still experienced the bug when using my config not just with the settings above?

Vulkan might be causing the issue, although it is the best hwdec there are still a lot of bugs they are ironing out. nvdec won't work for you as it is specifically for nvidia cards. Try using my settings to see if it helps, remember to change this line to AMD.

Also UpscaleLA-M weirdly zooms the 480p video

My, bad I think Anime4k shaders are only doublers so they would work only on 720p for your case. I think your best bet would be to stick with FSRCNNX and ravu.

Also CAS in my experience is better for live action content rather than anime. For sharpening anime I use these three shaders.

ghost commented 6 months ago

Ok just to be clear, you still experienced the bug when using my config not just with the settings above?

yes

nvdec won't work for you as it is specifically for nvidia cards

I have RTX3050 though?

remember to change this line to AMD.

I already did but I have nvidia gpu though 😄

FSRCNNX and ravu

at the same time?

Zabooby commented 6 months ago

I already did but I have nvidia gpu though 😄

Sorry, I'm reading from a phone and mixed up your cpu for you gpu.

at the same time?

No they have their own profiles.

I'll try and replicate the issue when I'm at my pc, until then could you try loading the Upscale-P profile and then CAS (Video > Shaders > Sharpen > SharpenCAS) from the menu? Try using my mpv.conf without any changes first, then try nvdec.

ghost commented 6 months ago

image It works(CAS) when I watch it window mode(720p then it does not scale weird, nvm i wont use it(fsr)) in 1080p videos, FSR(as expected is not working) but CAS does image

ghost commented 6 months ago

As a personal recommend is use cfl with 4tap enabled instead of krig https://github.com/Artoriuz/glsl-chroma-from-luma-prediction/blob/main/CfL_Prediction.glsl