1 (edited by dlr5668 04-08-2024 17:48:22)

Topic: mpv + super res

Good progress made recently https://github.com/mpv-player/mpv/pull/14155

Can be used with VS filter like Rife interpolation. Atm it has memory leaks but start is here

https://i.imgur.com/OrXVsXY.png

Re: mpv + super res

How did you get it to work? I've tried following everything I could find on there, but the feature stays disabled no matter what. Not sure what I might be missing

3 (edited by dlr5668 10-08-2024 14:03:46)

Re: mpv + super res

DragonicPrime wrote:

How did you get it to work? I've tried following everything I could find on there, but the feature stays disabled no matter what. Not sure what I might be missing

Download https://github.com/billxc/mpv/releases/ … -Res-0.0.1

add `vf toggle d3d11vpp` to one of mpv hotkeys

its hard coded for 4K

If someone can compile https://github.com/billxc/mpv/tree/merge_upstream_sr this is even better but I dont have enviroment ready

4 (edited by aloola 26-08-2024 12:41:51)

Re: mpv + super res

official build now supported this:
just add the line to mpv.conf
vf=d3d11vpp=scale=2:scaling-mode=nvidia

or bind to a shortcut

ctrl+g vf toggle d3d11vpp=scale=2:scaling-mode=nvidia

Re: mpv + super res

aloola wrote:

official build now supported this:
just add the line to mpv.conf
vf=d3d11vpp=scale=2:scaling-mode=nvidia

or bind to a shortcut

ctrl+g vf toggle d3d11vpp=scale=2:scaling-mode=nvidia

Activating RTX super res gives me errors on SVP for some reason, am I doing something wrong?
I'm using RIFE 4.17_lite
This is my SVP logs:

08:20:31.312 [i]: Playback [8a4539a4]: playing at 120 [60 *2/1] 
08:20:31.390 [E]: Playback [8a4539a4]: VS - Script evaluation failed:
08:20:31.390 [E]: Playback [8a4539a4]: VS - Python exception: vsmlrt.RIFEMerge: tile size must be divisible by 32 (3840, 2168)
08:20:31.390 [E]: Playback [8a4539a4]: VS - Traceback (most recent call last):
08:20:31.390 [E]: Playback [8a4539a4]: VS - File 'src\\cython\\vapoursynth.pyx', line 3121, in vapoursynth._vpy_evaluate
08:20:31.390 [E]: Playback [8a4539a4]: VS - File 'src\\cython\\vapoursynth.pyx', line 3122, in vapoursynth._vpy_evaluate
08:20:31.390 [E]: Playback [8a4539a4]: VS - File 'C:\Users\name\AppData\Roaming\SVP4\scripts\8a4539a4.py', line 84, in <module>
08:20:31.390 [E]: Playback [8a4539a4]: VS - smooth = interpolate(clip)
08:20:31.390 [E]: Playback [8a4539a4]: VS - ^^^^^^^^^^^^^^^^^
08:20:31.390 [E]: Playback [8a4539a4]: VS - File 'C:\Users\name\AppData\Roaming\SVP4\scripts\8a4539a4.py', line 62, in interpolate
08:20:31.390 [E]: Playback [8a4539a4]: VS - smooth = RIFE_imp(input_rife,multi=rife_num,model=rife_mnum,backend=trt_backend)
08:20:31.390 [E]: Playback [8a4539a4]: VS - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
08:20:31.390 [E]: Playback [8a4539a4]: VS - File 'C:\Program Files (x86)\SVP 4\rife\helpers.py', line 23, in RIFE_imp
08:20:31.390 [E]: Playback [8a4539a4]: VS - return RIFE(clip,multi,1.0,None,None,None,model_num,backend,ensemble,implementation)
08:20:31.390 [E]: Playback [8a4539a4]: VS - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
08:20:31.390 [E]: Playback [8a4539a4]: VS - File 'C:\Program Files (x86)\SVP 4\rife\vsmlrt.py', line 1081, in RIFE
08:20:31.390 [E]: Playback [8a4539a4]: VS - output0 = RIFEMerge(
08:20:31.391 [E]: Playback [8a4539a4]: VS - ^^^^^^^^^^
08:20:31.391 [E]: Playback [8a4539a4]: VS - File 'C:\Program Files (x86)\SVP 4\rife\vsmlrt.py', line 922, in RIFEMerge
08:20:31.391 [E]: Playback [8a4539a4]: VS - raise ValueError(
08:20:31.391 [E]: Playback [8a4539a4]: VS - ValueError: vsmlrt.RIFEMerge: tile size must be divisible by 32 (3840, 2168)
08:20:31.391 [E]: Playback [8a4539a4]: VS - could not init VS

Re: mpv + super res

this way you're inserting d3d11vpp filter _before_ vapoursynth

Re: mpv + super res

Chainik wrote:

this way you're inserting d3d11vpp filter _before_ vapoursynth

How do I fix it?

Re: mpv + super res

the only workaround I can see now is don't put vf into mpv.conf, toggle it manually with the keyboard shortcut

Re: mpv + super res

Chainik wrote:

the only workaround I can see now is don't put vf into mpv.conf, toggle it manually with the keyboard shortcut

Fixed the issue, thank you

10

Re: mpv + super res

Any idea when 0.39 will come down via SVP?

Re: mpv + super res

scb wrote:

Any idea when 0.39 will come down via SVP?

You can add it yourself, shinchiro compiled the final release here https://sourceforge.net/projects/mpv-pl … s/release/

Re: mpv + super res

Is RTX HDR supposed to work with this as well? Super Resolution works, but HDR doesn't

Re: mpv + super res

> RTX HDR

https://github.com/mpv-player/mpv/pull/14901

14 (edited by flowreen91 29-09-2024 12:07:34)

Re: mpv + super res

XDark187 wrote:
Chainik wrote:

the only workaround I can see now is don't put vf into mpv.conf, toggle it manually with the keyboard shortcut

Fixed the issue, thank you

Actually, you don't need to manually toggle the filter with a hotkey anymore. You can use a Lua script that automatically applies the d3d11vpp filter with a 3-second delay after video playback starts. This way, the filter will be applied without having to manually press a hotkey.
Save this file in your MPV scripts folder, which is located at C:\Program Files (x86)\SVP 4\mpv64\scripts\ for SVP users.
Now, when you play a video, the Super Resolution will automatically activate after 3 seconds, saving you the hassle of manually toggling it with a hotkey.

Post's attachments

delay-super-resolution.lua 261 b, 45 downloads since 2024-09-28