226

(36 replies, posted in Using SVP)

Chainik wrote:

UPDATE: it turns out that mpv CAN finally render in HDR mode after October 30 commit big_smile
So it's now the best choice for HDR content playback.

Hi @Chainik do I need to do any changes in my config below for 10Bit HDR playback? Or in SVP Settings?

ontop
audio-exclusive=yes

demuxer-thread=yes

video-latency-hacks=yes

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

vd-lavc-dr=yes
vulkan-async-transfer
vulkan-async-compute
vulkan-swap-mode=fifo

volume-max=100

tone-mapping=hable
hdr-compute-peak=yes

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=48

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

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

profile-desc=cond:get('height', 0) < 1440
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\SSimDownscaler.glsl"

EDIT: OLD Post - CHECK 3RD REPLY ON THIS THREAD:

Ever wonder how at certain moments in Films or TV Shows some panning shots aren't perfectly smooth? Even though there are no dropped frames or delayed frames in the diagnostics information section of MPV.

EDIT - Read the Edit Note at the end after reading the full original post first:

For example in the beginning of Episode 1 of Season 8 of Game of Thrones, there is a panning shot from left to right as the kid climbs the tree and looks at the army moving in below him. Sometimes in that scene the smoothness is not 100%, even though there are no dropped frames, or any indicators that there is a CPU or GPU bottleneck. It just looks choppy, replay it by clicking back five seconds and it runs smooth, replay it again, and it feels and looks choppy (no consistency).

Well, after months of messing around with that scene specifically, because it was pissing me off; I researched on how to use Full Screen Exclusive Mode for MPV, to test if it has an impact.

Yes, the impact is very clear, I restarted those 5 seconds over 30 times without it once feeling not smooth. Always ran perfectly smooth after forcing MPV into Full Screen Exclusive Mode.

Here's how to do it:

Edit the MPV Configuration file, and add this line as a single line by itself anywhere in the configuration:

ontop

That's it, if you enter full-screen mode now, it will automatically become Full Screen Exclusive Mode:

Makes the player window stay on top of other windows.

On Windows, if combined with fullscreen mode, this causes mpv to be treated as exclusive fullscreen window that bypasses the Desktop Window Manager.

MPV Configuration File is located (C:\Users\YourUsernameHere\AppData\Roaming\mpv), and should be called mpv.conf. If it's not in this directory, create the mpv folder in the Roaming folder, and create a notepad file which you add your settings to that should be renamed to mpv.conf (with extensions visible) after it is saved.

EDIT Note:

Requires further testing, but on first glance, I can confirm that there is a certain performance increase in using Full Screen Exclusive Mode in MPV. Around 15% to 20% increase in performance actually. While I played 1080p content, and 4K content at 60FPS, before I had to set 4K HDR Content to 2X Movie (48FPS) to not get any dropped and delayed frames. Now I am testing the scene very hard scenes from Blue Planet 2 4K HDR episode 5 after minute 40 (it is a very intense scene that always dropped frames at 60FPS), now it is working smoothly at 60FPS. I will try some more movies and TV shows later, but this is very promising.

Hecadoth wrote:

Followed a thread posted by someone here mentioning to use 120 frame to compensate for the video profile (makes everything look more smoother), I guess I'll have to revert it back to 60 FPS! Although, even then, I still get the same spikes so I'm pretty sure it has to do with the settings on MadVR. Will look into lowering it.

Might be one of my stupid threads from a few years ago? This certainly isn't the case anymore with SVP, and I am not sure if it was ever the case. I think it was just placebo back in the early days of the program.

Check your MadVR Upscaling setting. There's no need to show us a picture of General Settings in MadVR. It's the upscaling that's probably eating all your GPU power. Test out Jinc for upscaling and downscaling, should be good enough.

I spent one hour trying to get things working basically, then I gave up. I found almost no community/help on google for setting MPV and integrating it in kodi on windows OS.


You're bringing back some hurtful memories. Haha, I went through a similar process. Had to teach myself a lot of things, grab ideas from the few rare posts out there. But MPV has come a long way since, and has a decent community.

Not sure if you can get everything setup the way you want. But I'll try and give you some useful information.

Here's the absolute massive list of all the setting and configuration you can do:

https://mpv.io/manual/stable/

Here's the reddit community if you need to ask any questions, there should be people there that can help that know more than I do:

https://www.reddit.com/r/mpv/

There's some helpful people around here too.

Why are you still using MPC and Madvr? And I don't mean this comment in a rude way, sorry if it sounded rude. But SVP + MPV works great with HDR to SDR conversion, and MPV Tone Mapping I would argue is even superior to MadVR.

If you know how to create/edit the configuration for MPV, use the below configuration and give it a try with SVP:

vo=gpu
profile=gpu-hq
fbo-format=rgba16hf
gpu-api=vulkan
vulkan-async-compute
gpu-context=winvk
hwdec=nvdec-copy
spirv-compiler=shaderc
vulkan-queue-count=3

volume-max=100

hdr-compute-peak=yes

video-sync=display

scale=ewa_lanczossharp
cscale=ewa_lanczossharp
dscale=ewa_lanczossharp
dither-depth=auto
correct-downscaling=yes
sigmoid-upscaling=yes

deband=yes
deband-iterations=5
deband-threshold=50
deband-range=16
deband-grain=48

ng4ever wrote:

@Blackfyre are those setting really good for MPV?

I notice hardly no cpu usage or gpu usage!

Well a little but only 6% to maybe up to 18%

What CPU and GPU are you using?

And what monitor/TV are using to watch and at what resolution?

@ng4ever

https://artoriuz.github.io/mpv_upscaling.html

233

(2 replies, posted in Using SVP)

MadVR is generally used to upscale videos.

So for example you give it a picture in 720p and you're playing it on a 1080p screen, instead of just stretching the 720p picture to 1080, it stretches it but it adds detail and sharpness for example and re-calculates colour spaces to give you a better quality picture.

So MadVR improves picture quality.

SVP transforms lower frame rate videos to higher frame rate videos, to remove motion blur basically.

See while a picture or a frame is sharp, moving pictures (like videos, movies, tv shows) are a little blurry because the standard was always to film in 24 frames per second for example.

What SVP does is for example transform those 24 frames into 48 frames in each second video (for example if you're using double the frame rate method). How SVP does this is complicated, but imagine frame 1 and 2 get separated, and a new frame is added in the middle of them. Say in frame one the man is running at the left of the picture, and in frame two he's in the middle of the picture, what SVP does is add an extra frame of the man being in between those two points, so the MOTION becomes smoother and the overall picture becomes less blurry.

Imagine playing a videogame at 30 fps compared to playing a video game at 60 fps, or playing a game at 120 fps. It's the same game. It's the same speed, but it's less blurry and feels and looks smoother the higher the frame rate.

Hope this helps. So SVP makes videos smoother and less blurry, that's the idea behind it. While Madvr improves the picture quality of those videos.

Chainik wrote:

> Can quality improvements be made on the NVOF front?

yeah, theoretically, by post-processing motion vectors received from the NVOF

STOP Chainik, don't make me waste money on an RTX Card. Haha

Mystery wrote:

Blackfyre, how do these MVP shaders compare to madVR's upscaling algorithms, and how do they compare to SuperRes that I implemented as a shader in Avisynth?

but this is a GLSL and not a HLSL file so AvisynthShader won't be able to work with it... not sure what it'd take to use it.


I can't explain the technical differences, but there's a great article linked below (where I got the shaders from originally), which has comparison charts to other shaders.

just scroll past the updates at the top and for the charts you can scroll right and left on them to see more comparisons:
https://artoriuz.github.io/mpv_upscaling.html

Chainik wrote:

madVR's HDR doesn't work with ffdshow in front of it

Exactly this.


Blackfyre, MVP does allow upscaling shaders? However it doesn't look like it will allow for fine-tuned configuration like madVR to adapt to whatever your PC can handle.

This might be true with the basic shaders, but here's an example of a shader with many variables:

https://github.com/igv/FSRCNN-TensorFlow/releases

As you can see from the configuration in my previous post, I use FSRCNNX_x2_8-0-4-1.glsl because that's what my GTX 1070 is capable of using to upscale without it starting to impact on my performance. I would argue it's the best upscaling to performance shader out there, and that includes Madvr's options. Going higher than this shader, even if your GPU is more than capable isn't really necessary though.

Yes I love the picture quality of MPV with 4K HDR content.

Chainik wrote:

still it's slower than MPC-HC x64 ( = "requires more CPU").

Is it? MPC x64 was always stuttering with 4K HDR for me (it was the main reason I switched away), and was extremely demanding even for just 4K it was using a lot of CPU power, but it was working (for non-HDR content).

I have 4790K @ 4.6Ghz right now and 4K HDR requires ~40% CPU usage with MPV (but MPV improved a lot over the last year). This was impossible with MPC x64, because CPU usage was ~90% I think and never worked (stuttering).

Did something change with MPC x64 that I don't know about over the last year. Anyway I am very happy with MPV and its performance, so I doubt I will switch back (I will put my MPV Configuration below).

I watch HDR content at 2x the speed (so 48FPS).

MPV CONFIGURATION: (for anyone interested to test, shaders have to be downloaded separately).

vo=gpu
profile=gpu-hq
fbo-format=rgba16hf
gpu-api=vulkan
vulkan-async-compute
gpu-context=winvk
hwdec=nvdec-copy
spirv-compiler=shaderc
vulkan-queue-count=4

volume-max=100

hdr-compute-peak=yes

video-sync=display

scale=ewa_lanczossharp
cscale=ewa_lanczossharp
dscale=ewa_lanczossharp
dither-depth=auto
correct-downscaling=yes
sigmoid-upscaling=yes

deband=yes
deband-iterations=5
deband-threshold=50
deband-range=16
deband-grain=48

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

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

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

dlr5668 wrote:

use mpv

This right here 100%

Switch to MPV. I made the switch probably over a year ago now and have never looked back. Once you get the settings right and everything runs smoothly. It performs significantly better than MPC (especially with 4K content).

The upscaling shaders available for MPV available also do a brilliant job, the equivalent of or better than Jinc in Madvr, and perform better (at least the one I use).

Chainik wrote:

People don't use Linux to buy a software big_smile

... in fact, people don't use Linux at all

Haha

240

(46 replies, posted in Using SVP)

@Otic

My 4K HDR TV is my monitor. It's connected to the PC.

When watching HDR Content with MPV, I DO NOT enable HDR in Windows. Windows HDR sucks and I will never enable it, I don't know if they fixed it in 1903, I'm still on 1809.

MPV does a very good job of recovering HDR colours on its own.

241

(5 replies, posted in Using SVP)

James D wrote:
Zewia wrote:

There are multiple PCs attached to it, despite me being the only one who should be accessing it.

If PC names are identical then it's possible that you changed hardware before, entered key again when prompt came and forgot about it.

Or even when overclocking sometimes the BIOS resets in the process, and when I go back on Windows, you have to re-enter details (it rarely happened, but it used to when I was overclocking and looking for a stable clock). Edit: just a note here, the BIOS on my MB has two slots, default is F6, and overclocked profile is version F7 of the BIOS, so it's likely that the reset only used to happen when the BIOS switched between the two on-board firmwares.

Or when you do a clean format of Windows 10 upgrades when they come out. In a week or so I will probably be doing a clean install of Windows 10 1903, so I will enter my details again.

So OP, go on your manager and remove all the PC's there, register your current PC. And if after a week or two there are a couple of more re-added, then there's an issue. Otherwise you can remove access to all PC's connected to it, and then just register your current PC.

242

(19 replies, posted in Using SVP)

That's because you're using SVP Shader = Complicated. If you want to reduce artifacts, use standard shader, and change Frames Interpolation Mode to maximum fluidity option which is Uniform, I have these settings for 1080p, test them:

Uniform
Standard
Strong

One Pixel
28px. Large 1
By two with local refinement
Large
Strongest
Large

Blend adjacent frames
Do not remove
Do not change
+6

---

For 4K HDR content I have different settings, if you're interested let me know, but test the above for 1080p content.

243

(3 replies, posted in Using SVP)

If your GPU is running fine while gaming and bench-marking, then it's not the GPU. Your CPU is more than powerful enough too.

I have a GTX 1070 and a 4790K @ 4.6Ghz and I run 4K HDR 10-bit content without issue.

Don't turn on HDR on your monitor/TV though, I just let MPV recover HDR colors and it does it very well.

What settings (configuration) are you using for MPV?

I uninstalled MPC a while ago, because it doesn't perform as well as MPV with the right settings anymore. MPV has become the best player for SVP with recent updates.

244

(0 replies, posted in Using SVP)

I find this issue confusing. With "FSRCNNX_x2_8-0-4-1.glsl" on 1080p content, I have 0 frame drops and 0 delayed frames when watching content. But in panning shots where the camera is moving from left to right or in the opposite direction, the impact on smoothness very clear. It looks choppy, or not smooth at all, but there is no dropped frames. I actually hadn't noticed it much until I watched the latest episode of Game of Thrones, at the start when the boy is looking over the tree and the camera pans from right to left, the scene feels like its skipping, not happening in one smooth motion, but move and chop, move and chop, all the way across. I remove the line below and its smooth, but in both instances there is no dropped or delayed frames. Why does that happen? Of course GPU usage is much higher with the Shader below, but it should be fine, as the GPU is not hitting 100%, it hovers at around 70% to 80% usage with it, and around 25% without it. GTX 1070, upscaling to 4K TV.

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

245

(46 replies, posted in Using SVP)

Haha love it smile Oh well, I'm just glad everything is back in working order smile

246

(46 replies, posted in Using SVP)

dlr5668 wrote:

cant use non copy codecs with svp. Same situation as avisynth players

I've been using hwdec=nvdec for over a month and watched a lot of TV Shows & Movies using it without issues.

247

(46 replies, posted in Using SVP)

FIXED: Check edit at the bottom.

Okay, I decided to check MPV configuration file. Cut all the lines, clicked save, started the video and everything worked. Went back, clicked paste, same issue came back. So something changed in the update that's breaking SVP from working with MPV using these settings below, I'm going to try to narrow it down to what's causing the issue:

vo=gpu
profile=gpu-hq
fbo-format=rgba16hf
gpu-api=vulkan
gpu-context=winvk
hwdec=nvdec
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

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\KrigBilateral.glsl"

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

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

EDIT:

Changed hwdec=nvdec to hwdec=nvdec-copy and now it's working. I always used hwdec=nvdec before without issue though, weird.

248

(46 replies, posted in Using SVP)

Chainik wrote:

works for me too...
not sure it's connected with the update

It only started happening after the update, very weird too, because in SVP Control Panel, when I am not playing anything, at the bottom it says "No Active Playback". But when I play something with MPV, it chooses the correct profile for 1080p and it chooses the correct profile when I play 4K, but SVP is not doing motion interpolation, nothing, frame rate of the video remains the same, and CPU usage doesn't go up at all.

First time I have had this issue, and only started happening after the update. Very strange. Not sure how to fix it. Only with MPV as well, doesn't happen with MPC, but I don't use MPC it's useless to me now.

EDIT:

Chainik, I sent a report using SVP, have a look at it. Included a screenshot too.

249

(46 replies, posted in Using SVP)

Chainik wrote:
Blackfyre wrote:

YAY UPDATE smile

updated!

Thanks smile

Just tested a few videos, but SVP is not kicking in when playing videos anymore with MPV.

Tested MPC and it works, but it's like SVP is not detecting MPV is running. I'm sure the fix is simple.

250

(46 replies, posted in Using SVP)

xerno wrote:

@Blackfyre I tried 4.6ghz but temps got way to high even when using water cooling. I might delidd it someday

No way... with water cooling?! You must have set the voltage too high, try 1.220v for vCore. If it crashes up it to 1.23, then 1.24 if the prior voltage crashes.

Every 4790K I have encountered can push 4.6Ghz with 1.24v or lower, the change becomes more apparent between different chips when they hit 4.7Ghz or higher, some only require 1.25v, others require 1.32v to hit 4.7Ghz, but 4.6Ghz with water cooling should really be attainable. That is very surprising. As for de-lidding I wish I had the balls to delid mine too, difference in temperatures is MASSIVE with our chips.