Artix Linux Forum

General Category => General Discussion => Topic started by: Hitman on 14 November 2022, 20:08:28

Title: mpv configs
Post by: Hitman on 14 November 2022, 20:08:28
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 (https://github.com/AN3223/dotfiles/tree/master/.config/mpv/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
Title: Re: mpv configs
Post by: Hitman on 06 January 2023, 01:49:34
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.
Title: Re: mpv configs
Post by: Hitman on 07 July 2023, 01:39:14
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!
Title: Re: mpv configs
Post by: nous on 07 July 2023, 15:13:19
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.
Title: Re: mpv configs
Post by: Hitman on 07 July 2023, 16:00:16
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
Title: Re: mpv configs
Post by: Dudemanguy on 07 July 2023, 19:13:25
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.
Title: Re: mpv configs
Post by: Hitman on 07 July 2023, 19:49:05
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.
Title: Re: mpv configs
Post by: nous on 08 July 2023, 14:50:04
I demand to see screenshots with/without these advanced filters and shaders, please!
Title: Re: mpv configs
Post by: Caramon2 on 09 July 2023, 09:21:31
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).
Title: Re: mpv configs
Post by: Hitman on 11 July 2023, 00:47:07
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.