1 (edited by Blackfyre 02-04-2019 07:31:50)

Topic: Is there a way to set conditions for 1080p & 4K using MPV?

Just trying to figure this out. See the bold section below in my MPV Configuration, I want it enabled on every video below 1090 frame height and disabled for anything above. So when I play 4K content on my 4K TV, I don't want it running this shader; as the performance hit is too much for my system to handle unless I overclock to an extent which makes the fans very noisy, and I prefer if all my fans (System, GPU, CPU) are running slow and quiet in the background. Can I use an IF statement? Any help would be appreciated, thank you.

If not, it would be nice if in SVP under Miscellaneous Settings we can choose different MPV Config files for different setups. I use different settings for 4K and 1080, it would be nice if I can choose which MPV Config file to run for each one.

----------------------------------------------

profile=gpu-hq
fbo-format=rgba16hf
gpu-api=vulkan
gpu-context=winvk
hwdec=nvdec
vo=gpu
spirv-compiler=shaderc

priority=high

scale=ewa_lanczossharp
cscale=ewa_lanczossharp
dscale=ewa_lanczossharp
dither-depth=auto
correct-downscaling=yes
sigmoid-upscaling=yes
deband=yes
deband-iterations=4
deband-threshold=50
deband-range=16
deband-grain=0

vd-lavc-dr=yes
vd-lavc-threads=16

no-embeddedfonts
sub-ass-shaper=complex
sub-font-size=35
sub-scale-by-window=yes
sub-pos=100
sub-align-x=center
sub-align-y=bottom
sub-margin-y=3

hdr-compute-peak=yes

glsl-shader="C:\Users\musta\AppData\Roaming\mpv\Shaders\FSRCNNX_x2_8-0-4-1.glsl"
glsl-shader="C:\Users\musta\AppData\Roaming\mpv\Shaders\KrigBilateral.glsl"

Re: Is there a way to set conditions for 1080p & 4K using MPV?

https://github.com/wiiaboo/mpv-scripts/ … ofiles.lua

[cool-shader]
profile-desc=cond:get('height', 0) < 1090
glsl-shader="C:\Users\musta\AppData\Roaming\mpv\Shaders\FSRCNNX_x2_8-0-4-1.glsl"

Re: Is there a way to set conditions for 1080p & 4K using MPV?

Chainik wrote:

https://github.com/wiiaboo/mpv-scripts/ … ofiles.lua

[cool-shader]
profile-desc=cond:get('height', 0) < 1090
glsl-shader="C:\Users\musta\AppData\Roaming\mpv\Shaders\FSRCNNX_x2_8-0-4-1.glsl"

You legend, thank you. smile