View Full Version : Media Player .NET (MPDN) - D3D HQ GPU Video Renderer [v2.49.0/v1.31.0 27 Dec 2018]
The Dark Lord
30th January 2016, 18:22
I'm having problem with playing some MKVs mostly those downloaded from Youtube.
MPDN is rendering the video at average of 15 frames, which of course translates to massive stuttering.
https://i.imgur.com/3aJzfke.jpg
as you can see there are no dropped or delayed frames.
MPC-HC and other players like VLC have no problem rendering these files at 23 frames.
My specs:
win 10 64bit
i7- 4770K
Geforce 970 (Driver 361.43)
Latest MPDN 32-bit
Anima123
30th January 2016, 20:26
The new downscaler should be available in the next release of the MPDN extensions.
Right on this weekend?
Shiandow
31st January 2016, 01:20
Right on this weekend?
With any luck, yes. At any rate it'll be soon.
The code's already on Github, you could also copy that to the Extensions folder and use it that way. At least, I think that should work.
Zachs
31st January 2016, 02:53
I'm away on holiday at the moment though. Buy I have my laptop with be so hopefully I'll find some time to do a release later today.
louiebh
31st January 2016, 03:06
I'm away on holiday at the moment though. Buy I have my laptop with be so hopefully I'll find some time to do a release later today.
did the livestreamer issue i had work for you?
Zachs
31st January 2016, 03:44
Haven't had time to try it yet. But have your tried YouTube-dl? Does that work?
louiebh
31st January 2016, 21:50
Haven't had time to try it yet. But have your tried YouTube-dl? Does that work?
i saw it mentioned earlier in the thread when i good livestreamer and mpdn but I had literally no idea how to install it or get it working and it seemed from what i could see, be a way to download videos then watch them later rather than stream them directly through the browser?
but no im somwhat savvy but this was beyond me could you point me the github/mainpage didnt make any sense on how to install/work.
huhn
31st January 2016, 22:10
this is how it works: http://forum.doom9.org/showthread.php?p=1739563&highlight=youtube#post1739563
livestreamer a easier way to start livestreams but check youtube-dl first.
ryrynz
31st January 2016, 23:26
I was kinda expecting something amazing from the new SSIM downscaler but there wasn't that much difference when compared to lanczos 12AR IMO. It looks nice and all and I'd probably use it but it's no night and day difference.
Shiandow
1st February 2016, 01:30
I was kinda expecting something amazing from the new SSIM downscaler but there wasn't that much difference when compared to lanczos 12AR IMO. It looks nice and all and I'd probably use it but it's no night and day difference.
Thanks for the feedback, shame it wasn't as good as you thought it was going to be. Is there anything in particular that you think could be better?
FWIW something like 12 taps Lanczos is already pretty sharp to begin with, so in most case you shouldn't really need much additional sharpness (except if you downscale a lot). That said, in theory SSIM should be somewhat more intelligent, it adds exactly* the right amount of sharpness instead of just a lot of sharpness all the time. It could be sharper when downscaling very fine details, or for higher scaling factors. The SSIM downscaler will also be a bit smoother on less detailed regions, but that might not be particularly useful (although it does suppress source artefacts)*.
*Your mileage may vary.
Anima123
1st February 2016, 02:12
SSIM has it's own character for sure, you need to check several times to find the optimized settings working together with e.g., image doublers.
That is why I am more curious than ever, what it can produce with SuperRes or whatever you might call.
Edit: Right now I am using the following render chain, which seems to benefit from SSIM quite a lot, at least from 576p -> 1080p:
<ListOfPresetOfIFilterIRenderScript xmlns:yaxlib="http://www.sinairv.com/yaxlib/">
<PresetOfIFilterIRenderScript Name="SuperChromaRes" Guid="17c2c194-4a30-4355-bbcb-1dec7093d383">
<Script yaxlib:realtype="Mpdn.Extensions.RenderScripts.Shiandow.SuperRes.SuperChromaResUi">
<Settings>
<Passes>2</Passes>
<Strength>1</Strength>
<Softness>0.25</Softness>
<Prescaler>True</Prescaler>
</Settings>
</Script>
</PresetOfIFilterIRenderScript>
<PresetOfIFilterIRenderScript Name="SuperRes" Guid="1a020bec-87ad-4f83-b0dd-545e0ffdc9b6">
<Script yaxlib:realtype="Mpdn.Extensions.RenderScripts.Shiandow.SuperRes.SuperResUi">
<Settings>
<PrescalerGroup>
<SelectedIndex>0</SelectedIndex>
<Hotkey />
<Options>
<PresetOfIFilterIRenderScript Name="Super-xBR" Guid="418b3ba0-af29-4724-9267-16461ed01a39">
<Script yaxlib:realtype="Mpdn.Extensions.RenderScripts.Hylian.SuperXbr.SuperXbrUi">
<Settings>
<EdgeStrength>1</EdgeStrength>
<Sharpness>1</Sharpness>
<FastMethod>False</FastMethod>
<ThirdPass>True</ThirdPass>
</Settings>
</Script>
</PresetOfIFilterIRenderScript>
<PresetOfIFilterIRenderScript Name="NEDI" Guid="91aa2996-b2fe-42d1-be0d-1a3479851567">
<Script yaxlib:realtype="Mpdn.Extensions.RenderScripts.Shiandow.Nedi.NediScaler">
<Settings>
<AlwaysDoubleImage>False</AlwaysDoubleImage>
<ForceCentered>False</ForceCentered>
</Settings>
</Script>
</PresetOfIFilterIRenderScript>
<PresetOfIFilterIRenderScript Name="NNEDI3" Guid="316bb7d2-3886-4db3-b0b7-512615fdd76c">
<Script yaxlib:realtype="Mpdn.Extensions.RenderScripts.Shiandow.NNedi3.NNedi3Scaler">
<Settings>
<Neurons1>Neurons16</Neurons1>
<Neurons2>Neurons16</Neurons2>
<CodePath>ScalarMad</CodePath>
<Structured>False</Structured>
<ChromaScalers />
<ChromaScalerGuid>00000000-0000-0000-0000-000000000000</ChromaScalerGuid>
</Settings>
</Script>
</PresetOfIFilterIRenderScript>
<PresetOfIFilterIRenderScript Name="OpenCL NNEDI3" Guid="c92fad62-253a-4bfd-830f-a230111af648">
<Script yaxlib:realtype="Mpdn.Extensions.RenderScripts.Mpdn.OclNNedi3.OclNNedi3Scaler">
<Settings>
<Neurons1>Neurons16</Neurons1>
<Neurons2>Neurons16</Neurons2>
<ChromaScalers />
<ChromaScalerGuid>00000000-0000-0000-0000-000000000000</ChromaScalerGuid>
</Settings>
</Script>
</PresetOfIFilterIRenderScript>
</Options>
</PrescalerGroup>
<Passes>2</Passes>
<Strength>1</Strength>
<Softness>0.05</Softness>
<HQdownscaling>True</HQdownscaling>
</Settings>
</Script>
</PresetOfIFilterIRenderScript>
<PresetOfIFilterIRenderScript Name="Resizer" Guid="06a38b00-8f92-4b6a-961e-12061ca127f0">
<Script yaxlib:realtype="Mpdn.Extensions.RenderScripts.Mpdn.Resizer.ResizerScript">
<Settings>
<ResizerOption>TargetSize150Percent</ResizerOption>
</Settings>
</Script>
</PresetOfIFilterIRenderScript>
<PresetOfIFilterIRenderScript Name="SSIM downscaler" Guid="d447143f-8eaa-41fb-bacd-5cd022bb132a">
<Script yaxlib:realtype="Mpdn.Extensions.RenderScripts.Shiandow.SSimDownscaling.SSimDownscalerUi">
<Settings />
</Script>
</PresetOfIFilterIRenderScript>
</ListOfPresetOfIFilterIRenderScript>
ryrynz
1st February 2016, 13:26
Thanks for the feedback, shame it wasn't as good as you thought it was going to be. Is there anything in particular that you think could be better?
It just the content I was using. SSIM's strength is in the details, patterns and white areas. If you don't have this sort of content playing someone might instead prefer to run something else for a sharper picture. The content I was playing was computer generated so what I saw looked similar overall in sharpness to lanczos.
FWIW something like 12 taps Lanczos is already pretty sharp to begin with, so in most case you shouldn't really need much additional sharpness (except if you downscale a lot). That said, in theory SSIM should be somewhat more intelligent, it adds exactly* the right amount of sharpness instead of just a lot of sharpness all the time. It could be sharper when downscaling very fine details, or for higher scaling factors. The SSIM downscaler will also be a bit smoother on less detailed regions, but that might not be particularly useful (although it does suppress source artefacts)*.
Exactly right. Some might prefer other downscalers with less detailed content. I don't feel it's probably the one downscaler to rule them all but I have no doubt it'll be popular with general content, it's magic is in the finer details.
SSIM (https://mega.nz/#!jZhGnYRS!4UB4DneBZmje7i-f5C87C_Zs78p-F0UAkKGP_cVo2js)
Lanczos 16AR (https://mega.nz/#!SJIFSYyY!36OZd1GSndK2W1bT8FDhbaiFOIqCIzhzSQ14e4uk04g)
The broccoli, the quilt patterns and the shreds inside the crayfish are nice areas of improvement over Lanczos 16AR.
madshi
1st February 2016, 13:35
SSIM (https://mega.nz/#!jZhGnYRS!4UB4DneBZmje7i-f5C87C_Zs78p-F0UAkKGP_cVo2js)
Lanczos 16AR (https://mega.nz/#!SJIFSYyY!36OZd1GSndK2W1bT8FDhbaiFOIqCIzhzSQ14e4uk04g)
It's always helpful to include the original size image.
Thunderbolt8
1st February 2016, 19:11
It would also preferable to use an imagehost for the two pics instead of having to go through a download process.
ryrynz
1st February 2016, 23:13
It would also preferable to use an imagehost for the two pics instead of having to go through a download process.
I tried for over an hr last night.. Every image provider either resized them wouldn't accept them or changed the brightness.. Any recommendations?
It's always helpful to include the original size image.
I'll link the source later. I don't have a 4k screen.
http://4ksamples.com/
Screenshot was taken from the Chimei inn sample.
Thunderbolt8
2nd February 2016, 11:52
did you try imagebam or someimage?
ryrynz
2nd February 2016, 12:29
did you try imagebam or someimage?
For some reason I just cannot explain the Lanzcos image gets brighter when uploaded to various image uploading sites.
If someone could tell me why this happens I'd really appreciate it.
Imagebam link (http://113.imagebam.com/download/TwgwX69VRZAoY9ArAchQtA/46291/462902090/lanc16ar60.png)
Mega (https://mega.nz/#!SJIFSYyY!36OZd1GSndK2W1bT8FDhbaiFOIqCIzhzSQ14e4uk04g)
eX``
2nd February 2016, 12:40
Hi,
I wanted to have a look / test SSIM but I got trouble using it for a simple reason: it's not showing in MPDN. When I go to Program Files / MPDN, the folder is in RenderScripts. Though it's not present in App data.
Thank you very much.
Shiandow
2nd February 2016, 13:24
So you copied the "SSIMdownscaler" folder? Did you also copy the "SSimDownscaler.cs" file? That one should be in the RenderScripts folder as well.
Zachs
2nd February 2016, 13:26
I've released the binary version yesterday. If you updated the extensions you should automatically have SSIM.
Thunderbolt8
2nd February 2016, 13:50
For some reason I just cannot explain the Lanzcos image gets brighter when uploaded to various image uploading sites.did you take these images yourself? perhaps they get darker during the process for some reason.
edit: well guess that does not make much sense if they still get brighter afterwards when uploading. still, better check to rule anything out.
eX``
2nd February 2016, 17:07
Nah I just updated. And for this was not working, I downloaded the .exe and reinstalled it, but same issue. Should I wipe it all and reinstall?
edit: I reread your message and checked, I don't have "SSimDownscaler.cs".
edit2: Dled both standalone and couldn't find the "SSimDownscaler.cs" I think I'm missing something here =)
Shiandow
2nd February 2016, 17:30
Probably best to remove everything and reinstall both MPDN and the MPDN extensions.
Thunderbolt8
2nd February 2016, 19:07
For some reason I just cannot explain the Lanzcos image gets brighter when uploaded to various image uploading sites.Ive heard that there could be brightness changes with some programs when resizing. try to use another program.
ryrynz
2nd February 2016, 23:01
did you take these images yourself? perhaps they get darker during the process for some reason.
edit: well guess that does not make much sense if they still get brighter afterwards when uploading. still, better check to rule anything out.
Ive heard that there could be brightness changes with some programs when resizing. try to use another program.
No resizing was done, this is a straight Printscreen to paint and a save in PNG, both images are the same size.
And I've found it's Chrome that's causing the image to brighten.. Edge doesn't do it. Guess I got a bug to file.
*Edit* Bug confirmed, got the Chromium guys on to it.
Shiandow
7th February 2016, 21:29
Has anyone else tried EWA Sinc-Jinc (6 taps, anti-ringing set to 1.0) as a prescaler for SuperRes? I have yet to notice any obvious downsides, so I'm thinking of making it the new default prescaler.
Anima123
7th February 2016, 21:37
Has anyone else tried EWA Sinc-Jinc (6taps, nti-ringing set to 1.0) as a prescaler for SuperRes? I have yet to notice any obvious downsides, so I'm thinking of making it the new default prescaler.
I have tried it quite some time ago, it's good. Will do some more tests on it if needed.
Shiandow
7th February 2016, 21:58
Well, I was just wondering if there were any obvious downside to Sinc-Jinc. You might want to wait a bit before you do any rigorous testing, I've got some other small improvements for SuperRes that might change things.
Anima123
7th February 2016, 22:27
Well, I was just wondering if there were any obvious downside to Sinc-Jinc. You might want to wait a bit before you do any rigorous testing, I've got some other small improvements for SuperRes that might change things.
Just let me know once the improved SuperRes is ready for testing.
aufkrawall
8th February 2016, 20:41
Has anyone else tried EWA Sinc-Jinc (6 taps, anti-ringing set to 1.0) as a prescaler for SuperRes? I have yet to notice any obvious downsides, so I'm thinking of making it the new default prescaler.
I was already using Sinc-Hann as a prescaler for SuperRes for some time and didn't notice any drawback with low scaling factors towards super-xbr.
With madVR, I use its Jinc algorithm before SuperRes it looks fine to me as well.
Anima123
9th February 2016, 07:16
I was already using Sinc-Hann as a prescaler for SuperRes for some time and didn't notice any drawback with low scaling factors towards super-xbr.
With madVR, I use its Jinc algorithm before SuperRes it looks fine to me as well.
Sinc-Hann is the most sharpest upscaling algorithm in EWA scalers, sometimes it's too sharp for my preference.
Shiandow
12th February 2016, 17:50
Anyone else having trouble getting links to work with drag/drop? With Firefox 44 they don't seem to play automatically anymore. Weirdly enough they still work on chrome, and the problem seems to have started just after the last firefox update.
So, I'd like to know if it's just me, or if anyone else is seeing the same thing, and if I'm correct in assuming that the problem started with the update from Firefox v43 to v44.
scott1256ca
15th February 2016, 08:16
Just installed this as a possible replacement for mpc-hc. Is there an equivalent to 4x3 in mpc-hc? searching for 4x3 in this thread had no hits. stretch had a few but nothing relevent to me. I have an anamorphic lens so I need to stretch the image vertically to remove the black bars. I tried 4x3 under options, but that doesn't remove the top and bottom black bars.
Thx
l0rdraiden
15th February 2016, 16:40
Is there any guide explaning how to configure MPDN with SVP
and on how to configure MPDN itself? in particular the render script and upscaler sections.
Are the extensions / renders used in MPDN the same than in mpv? https://mpv.io/
What is the advantage of MPDN over Madvr?
Is MPDN close source? why?
scott1256ca
16th February 2016, 02:38
ok, I think I figured out the 4x3 thing. Too bad you have to stop and restart for it to take effect. Another thing, in full screen, there is a slider at the bottom, but the mouse pointer doesn't show up, which makes it hard to know where to click. Is there anything I can do to change that?
Thunderbolt8
16th February 2016, 21:36
Shiandow, will it be possible to use SSIM algorithm as standalone filter e.g. for downscaling/rezising encodes when doing x264 encoding? (avisynth usage?)
Anima123
16th February 2016, 22:13
Any progress on the SuperRes lately, Shiandow?
Shiandow
16th February 2016, 22:42
Shiandow, will it be possible to use SSIM algorithm as standalone filter e.g. for downscaling/rezising encodes when doing x264 encoding? (avisynth usage?)
Not unless someone ports the algorithm to avisynth, or if someone manages to write an avisynth wrapper for MPDN extensions.
Any progress on the SuperRes lately, Shiandow?
I managed to improve performance a bit while also improving the image quality slightly (I think). Combined with switching to Sinc-Jinc for the default prescaler this should give a decent increase in performance.
Zachs
16th February 2016, 23:38
Not unless someone ports the algorithm to avisynth, or if someone manages to write an avisynth wrapper for MPDN extensions.
The latter has been on my radar for some time. It would be quite easy to make an Avisynth wrapper - I just need some free time to work on it.
Thunderbolt8
17th February 2016, 02:10
The latter has been on my radar for some time. It would be quite easy to make an Avisynth wrapper - I just need some free time to work on it.would be great, thanks!
XRyche
18th February 2016, 08:47
I have a question that has probably been asked quite a few times before but..................................................................................has there been a script made for user configurable keyboard shortcuts? So MCE remotes can be used to control MPDN.
trandoanhung1991
19th February 2016, 14:47
Any idea how I can debug decoder stalls?
Just as I said that I got a Runtime Error while running MPDN.
cascardian
20th February 2016, 01:51
I have another bug to report, though it is extremely minor. Watching a video against the background of a running Twitch stream (Flash video with HTML5 controls) in Chrome will lead to occasional frame hitching/stuttering in MPDN. This is on DX11, using the new windowed mode rendering path. Switching that option off fixes the problem. Also happens in fullscreen, though not in exclusive.
I just checked: The problem does not occur with Youtube's HTML5 video in the background. In case it helps, here is Chrome's GPU log:
Graphics Feature Status
Canvas: Hardware accelerated
Flash: Hardware accelerated
Flash Stage3D: Hardware accelerated
Flash Stage3D Baseline profile: Hardware accelerated
Compositing: Hardware accelerated
Multiple Raster Threads: Enabled
Native GpuMemoryBuffers: Software only. Hardware acceleration disabled
Rasterization: Software only. Hardware acceleration disabled
Video Decode: Hardware accelerated
Video Encode: Hardware accelerated
WebGL: Hardware accelerated
Driver Bug Workarounds
clear_uniforms_before_first_program_use
disable_discard_framebuffer
exit_on_context_lost
force_cube_complete
scalarize_vec_and_mat_constructor_args
texsubimage_faster_than_teximage
use_current_program_after_successful_link
Problems Detected
Always call glUseProgram after a successful link to avoid a driver bug: 349137
Applied Workarounds: use_current_program_after_successful_link
Some drivers are unable to reset the D3D device in the GPU process sandbox
Applied Workarounds: exit_on_context_lost
TexSubImage is faster for full uploads on ANGLE
Applied Workarounds: texsubimage_faster_than_teximage
Clear uniforms before first program use on all platforms: 124764, 349137
Applied Workarounds: clear_uniforms_before_first_program_use
Always rewrite vec/mat constructors to be consistent: 398694
Applied Workarounds: scalarize_vec_and_mat_constructor_args
ANGLE crash on glReadPixels from incomplete cube map texture: 518889
Applied Workarounds: force_cube_complete
Framebuffer discarding can hurt performance on non-tilers: 570897
Applied Workarounds: disable_discard_framebuffer
Accelerated rasterization has been disabled, either via about:flags or command line.
Disabled Features: rasterization
Native GpuMemoryBuffers have been disabled, either via about:flags or command line.
Disabled Features: native_gpu_memory_buffers
l0rdraiden
21st February 2016, 13:04
Is there any guide explaning how to configure MPDN with SVP
and on how to configure MPDN itself? in particular the render script and upscaler sections.
Are the extensions / renders used in MPDN the same than in mpv? https://mpv.io/
What is the advantage of MPDN over Madvr?
Is MPDN close source? why?
Some help please?
XRyche
22nd February 2016, 06:57
I have a question that has probably been asked quite a few times before but..................................................................................has there been a script made for user configurable keyboard shortcuts? So MCE remotes can be used to control MPDN.
shrugs
Zachs
23rd February 2016, 02:18
I have a question that has probably been asked quite a few times before but..................................................................................has there been a script made for user configurable keyboard shortcuts? So MCE remotes can be used to control MPDN.
No not yet.
Any idea how I can debug decoder stalls?
Just as I said that I got a Runtime Error while running MPDN.
This usually means your CPU isn't fast enough (usually in the case of high bitrake 4K HEVC) or the data isn't being supplied fast enough to the decoder - e.g. If you're streaming high bitrate footage over wifi or via the internet, you could get stalls.
Runtime Error tends to happen when the unmanaged part of MPDN (i.e. DirectShow filters) have corrupted the heap - there's really not much that could be done.
I have another bug to report, though it is extremely minor. Watching a video against the background of a running Twitch stream (Flash video with HTML5 controls) in Chrome will lead to occasional frame hitching/stuttering in MPDN. This is on DX11, using the new windowed mode rendering path. Switching that option off fixes the problem. Also happens in fullscreen, though not in exclusive.
In windowed mode, the GPU has to be shared with every other app that requires it - and if one demands max priority and steals too much time from MPDN, you'll get a problem as it won't be able to present when it needs to.
Is there any guide explaning how to configure MPDN with SVP
and on how to configure MPDN itself? in particular the render script and upscaler sections.
Are the extensions / renders used in MPDN the same than in mpv? https://mpv.io/
What is the advantage of MPDN over Madvr?
Is MPDN close source? why?
Guide to use SVP with MPDN - :search:
Render script and upscaler configuration - :search:
I don't know much about MPV other than they took code from our GitHub repository, removed the LGPL license and then calling it their own. The issue was sorted after reminding them about the licensing issue.
AFAIK, madVR and mpv use much of the code from MPDN Extensions.
MPDN is closed source but the extensions where all the high-end scalers and filters are implemented, are LGPL v3. Why is MPDN closed source - as answered before multiple times - it's just is because I have to.
foozoor
25th February 2016, 00:45
Could you if possible fix this really annoying bug?
https://mpdn.zachsaw.com/bug/view.php?id=6
Braum
25th February 2016, 17:22
Hi ! I need some advice concerning the render script configuration.
I only play Bluray in 1920x1080
My screen resolution is 1680x1050
My gpu is an AMD 7980
Here is my downscaling configuration:
SuperChromaRes - 3 passes, strength 1, softness 0
SSIM downscaler
Deband - power 0,3
Image Processor - FineSharp tuned to my liking.
Am I doing it right ?
Zachs
26th February 2016, 04:22
Could you if possible fix this really annoying bug?
https://mpdn.zachsaw.com/bug/view.php?id=6
If you are using the playlist and have it set to repeat playback it will show two sets of filters in the system tray. Why would you assume it is " cause double performance consumption"? The other one, while loaded, will remain idle.
Disable "Preload next file" in the playlist if you don't want this feature.
foozoor
26th February 2016, 13:53
If you are using the playlist and have it set to repeat playback it will show two sets of filters in the system tray. Why would you assume it is " cause double performance consumption"? The other one, while loaded, will remain idle.
Disable "Preload next file" in the playlist if you don't want this feature.
I am not the one who reported the "bug" but I am using lavfilters megamix setup from the imouto.my blog.
However I had performance issues but it was maybe because of xysubfilter, I need to test it again.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.