Skip to main content
Topic: mpv configs (Read 1770 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

mpv configs

I've messed around with shaders and various settings in mpv and pretty much came to a simple, solid configuration, with only a handful of autoprofiles, letting mpv figure out the rest :)
It's perks are on lower resolution video scaling, i've tuned the profile to produce a result pretty close to those "ai upscalers", but in real time.

Makes use of the new nlmeans glsl shaders, the well known FSRCNNX and adaptive-sharpen.

This config is designed for a 4k display but it doesn't require one, maybe reduce the upscale shaders if on 1080p. My video card is an RX5500XT which is on par with an RX580.

Enjoy!
@Dudemanguy you might like this one

https://gitlab.com/Hitman_47/mpv_config

Re: mpv configs

Reply #1
If you're interested in using the new gpu-next output I've created a config file for it, mpv_next.conf.

It allows usage of temporal nlmeans, which does an incredible job on deblocking, and the improved performance and quality in some cases, which I've noticed especially on old sources and hdr color processing.

Bugs are minimal, at least on amdgpu. Krigbilateral does not work properly, for some reason chroma scaling still kicks in, so i've ommited it entirely, if it ever gets fixed i will add it back.

Re: mpv configs

Reply #2
Many things happened in the meantime with nlmeans, a lot of changes, proper buildsystem I started to use and also notably LGC which basically replaces KrigBilateral, it's a bit dirty now but should be way better than before.

With this occasion I have made the config gpu-next only now, as the bugs in mpv were worked around so it should work more universally. And of course refined my discrete scripts.

In the next few days I hope to make my own extra parameter tuning apart from what the dev did today, but you can give it a try right now!

Re: mpv configs

Reply #3
What kind of CPU/GPU is required to use these settings? A 4th-gen mobile i7 with a 8870Μ can only do 2 fps of a 720p clip.

Re: mpv configs

Reply #4
odd, is 8870M like a hd7870? That should be roughly half the performance of what i have here ok, it's weaker than that, sorry.
Could be that FSRCNNX triggers with the 720 source? (press i;2) That can explain why it's that slow, remove it from the shader lists. And maybe replace temporal_mid for temporal_low cause it'll need less bandwidth.

Or, since git revisions are wonderful, you can try the previous one without gpu-next, maybe that VO likes new gpus (about this Dudemanguy has to know better  :)  ) https://gitlab.com/Hitman_47/mpv_config/-/tree/680b877961260ed562b378b65aab72a22966cc3b/mpv

Re: mpv configs

Reply #5
I get a 503 from that link for some reason. But anyways, it seems like he's using several glsl shaders so there's basically a 0% chance that GPU can run it. Those are pretty hefty settings.

Re: mpv configs

Reply #6
Oh, gitlab puts the historical stuff as private by default, i'll need to figure out how to change it.

Those nlmeans shaders work on the mobile phone with freedreno gpu, no frames dropped up to 480p :D FSRCNNX is a bit more demanding.

 

Re: mpv configs

Reply #8
Hi!

My mpv.conf is simply this:

Code: [Select]
hwdec
scale=spline36
interpolation
video-sync=display-resample
tscale=oversample
osd-duration=2000
idle=once
autofit-larger=90%x90%
audio-channels=auto

Use Hardwaredecoding, spline36 ist good as lanczos, but faster (tested with time mpv, when cpu=powsersafe) and tscale ist good for different Framerates (i. e. 25 fps Videos on 60 Hz Displays).

Re: mpv configs

Reply #9
I demand to see screenshots with/without these advanced filters and shaders, please!
Yes sir!
Keep in mind the tuning is still a bit off, the guy who made the nlmeans shaders has his own calibration script now and I'm yet to use that :-) It can look even better than this.