Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

Go Back   Doom9's Forum > Hardware & Software > Software players

Reply
 
Thread Tools Display Modes
Old 27th October 2014, 00:55   #301  |  Link
Zachs
Suptitle, MediaPlayer.NET
 
Join Date: Nov 2001
Posts: 1,721
Quote:
Originally Posted by Anime Viewer View Post
Were you working on getting XySubFilter (auto-load version) working, so that DirectVobSub (auto loading version) wouldn't have to be installed separately for future versions of MPDN?

There might be a way to tie it into the install/setup similar to how KCP did it.

Edit: I see things are tided up with XySubFilter elsewhere, so I guess you're hands are tied on getting it working with MPDN in the near future.
http://forum.doom9.org/showthread.php?t=168282&page=34
http://forum.doom9.org/showthread.ph...44#post1693444
XySubFilter is still a WIP. I just haven't had time to finish implementing it. It's so vastly different to normal DirectShow filter that it requires quite a bit of effort to support.
Zachs is offline   Reply With Quote
Old 28th October 2014, 13:02   #302  |  Link
Zachs
Suptitle, MediaPlayer.NET
 
Join Date: Nov 2001
Posts: 1,721
Quote:
Originally Posted by fairchild View Post
I just get a black screen when trying to use NEDI shader, the other 2 built in ones work fine. (black screen occurs when going full-screen)
Quote:
Originally Posted by patul View Post
Shiandow, thanks for porting your NEDI shader to MPDN, however I found a possible bug, I got blank screen if I resize the window, or go to full screen.

Edit: Ooops, fairchild beats me to it. I wrote the post while retesting the finding.
This problem with AMD GPUs is now fixed in v2.8.3.
Zachs is offline   Reply With Quote
Old 28th October 2014, 13:08   #303  |  Link
Zachs
Suptitle, MediaPlayer.NET
 
Join Date: Nov 2001
Posts: 1,721
Quote:
Originally Posted by toniash View Post
Thanks!
Would it be possible to overscale(over device resolution) + sharpen + downscale(to device resolution) ??
I'm working on render scripts that will enable that.

In the meantime, Chroma Scaler script essentially converts MPDN's rendering pipeline to be similar to madVR's in which chroma is first upscaled to luma size and converted to RGB before Luma Scaler is applied to the entire image in RGB. This is faster for some GPUs in upscale but will most certainly be slower in downscaling 4K materials. madshi said scaling it this way could yield better PQ.
Zachs is offline   Reply With Quote
Old 28th October 2014, 13:41   #304  |  Link
Anime Viewer
Troubleshooter
 
Anime Viewer's Avatar
 
Join Date: Feb 2014
Posts: 339
Quote:
Originally Posted by Zachs View Post
This problem with AMD GPUs is now fixed in v2.8.3.
I installed 2.8.3 on top of the 2.8.2 I had on my system, and on launching MediaPlayerDotNet I get the following renderscript error:

Code:
TITLE: CSScriptLibrary Error
------------------------------

An unexpected error 'csscript.CompilerException' has occurred.

------------------------------
ADDITIONAL INFORMATION:

e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\NEDI.cs(100,36): error CS0246: The type or namespace name 'IScriptRenderer' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\SweetFxSample.LumaMono.cs(20,46): error CS0246: The type or namespace name 'IScriptRenderer' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\SweetFxSample.LumaSharpen.cs(20,49): error CS0246: The type or namespace name 'IScriptRenderer' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\Filter.cs(21,16): error CS0246: The type or namespace name 'IRenderer' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\Filter.cs(25,25): error CS0246: The type or namespace name 'ITexture' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\Filter.cs(37,25): error CS0246: The type or namespace name 'ITexture' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\Filter.cs(50,28): error CS0246: The type or namespace name 'IRenderer' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\Filter.cs(58,16): error CS0246: The type or namespace name 'ITexture' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\Filter.cs(66,25): error CS0246: The type or namespace name 'ITexture' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\Filter.cs(91,17): error CS0246: The type or namespace name 'ITexture' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\Filter.cs(92,16): error CS0246: The type or namespace name 'ITexture' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\Filter.cs(103,32): error CS0246: The type or namespace name 'ITexture' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\Filter.cs(112,37): error CS0246: The type or namespace name 'ITexture' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\Filter.cs(139,16): error CS0246: The type or namespace name 'IShader' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\Filter.cs(149,32): error CS0246: The type or namespace name 'ITexture' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\Filter.cs(149,48): error CS0246: The type or namespace name 'ITexture' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\Filter.cs(163,37): error CS0246: The type or namespace name 'ITexture' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\Filter.cs(170,46): error CS0246: The type or namespace name 'IShader' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\Filter.cs(191,32): error CS0246: The type or namespace name 'ITexture' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\Filter.cs(191,50): error CS0246: The type or namespace name 'ITexture' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\Filter.cs(203,37): error CS0246: The type or namespace name 'ITexture' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\Filter.cs(215,56): error CS0246: The type or namespace name 'IShader' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\Filter.cs(224,37): error CS0246: The type or namespace name 'ITexture' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\NEDI.cs(31,61): error CS0246: The type or namespace name 'IShader' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\NEDI.cs(48,61): error CS0246: The type or namespace name 'IShader' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\NEDI.cs(65,41): error CS0246: The type or namespace name 'ITexture' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\NEDI.cs(102,12): error CS0246: The type or namespace name 'IRenderer' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\NEDI.cs(105,11): error CS0246: The type or namespace name 'ScriptDescriptor' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\NEDI.cs(120,11): error CS0246: The type or namespace name 'ScriptInputDescriptor' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\NEDI.cs(148,22): error CS0246: The type or namespace name 'IRenderer' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\SweetFxSample.LumaMono.cs(22,21): error CS0246: The type or namespace name 'IRenderer' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\SweetFxSample.LumaMono.cs(23,30): error CS0246: The type or namespace name 'IShader' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\SweetFxSample.LumaMono.cs(26,20): error CS0246: The type or namespace name 'ScriptDescriptor' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\SweetFxSample.LumaMono.cs(41,20): error CS0246: The type or namespace name 'ScriptInputDescriptor' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\SweetFxSample.LumaMono.cs(75,31): error CS0246: The type or namespace name 'IRenderer' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\SweetFxSample.LumaMono.cs(109,39): error CS0246: The type or namespace name 'IShader' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\SweetFxSample.LumaSharpen.cs(22,21): error CS0246: The type or namespace name 'IRenderer' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\SweetFxSample.LumaSharpen.cs(23,30): error CS0246: The type or namespace name 'IShader' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\SweetFxSample.LumaSharpen.cs(26,20): error CS0246: The type or namespace name 'ScriptDescriptor' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\SweetFxSample.LumaSharpen.cs(41,20): error CS0246: The type or namespace name 'ScriptInputDescriptor' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\SweetFxSample.LumaSharpen.cs(75,31): error CS0246: The type or namespace name 'IRenderer' could not be found (are you missing a using directive or an assembly reference?)
e:\Program Files (x86)\MediaPlayerDotNet(x86)\RenderScripts\SweetFxSample.LumaSharpen.cs(106,39): error CS0246: The type or namespace name 'IShader' could not be found (are you missing a using directive or an assembly reference?)
 (CSScriptLibrary)

------------------------------
BUTTONS:

&Ignore
&Abort
------------------------------
If I click ignore, and go into the renderscript area of settings, everything is empty (no scripts are listed). I'll try a clean install first (deleteing the contents of the MediaPlayerDotNet directory), and if that doesn't work my next step will be to find Shiandow's link to the NEDI, and reinstall/copy the scripts over on top of the 2.8.3 ones. I'll post to let people know what solves it in case others encounter the issue.

Update: deleting the contents of the directory worked to get rid of the error message on launch, but the renderscript directory is still empty. (Both in program and in the renderscript directory, so I guess Shiandow's scripts aren't being packaged with the MPDN files yet). Next, I'm going to find Shiandow's link to the NEDI render script file (many a post back), and try to copy that into the renderscript directory to see if it shows up properly in the program.

Update 2:
I redownloaded Shiandow's NEDI render script for MPDN, and extracted it to the MPDN render script directory which brought the the render script MPDN error back at launch.

Update 3:
I tried the 2.8.3 x64 version, and encountered the same error(s). I extracted the 2.8.2 files on top of the 2.8.3 x86 files, and everything was back to error free again, so something may be off with the coding/paths in 2.8.3.
__________________
System specs: Sager NP9150 SE with i7-3630QM 2.40GHz, 16 GB RAM, 64-bit Windows 10 Pro, NVidia GTX 680M/Intel 4000 HD optimus dual GPU system. Video viewed on LG notebook screen and LG 3D passive TV.

Last edited by Anime Viewer; 28th October 2014 at 14:01. Reason: added clean install results, and NEDI script reinstall results
Anime Viewer is offline   Reply With Quote
Old 28th October 2014, 14:31   #305  |  Link
toniash
Registered User
 
Join Date: Oct 2010
Posts: 131
Quote:
Originally Posted by Shiandow View Post
Well a few pages back I posted a method to do NEDI -> Scaling -> Sharpen, but I think that method may not work anymore in combination with some of the changes I made.

Anyway If you want to do: NEDI -> Sharpen -> Scaling, then the easiest way to do this is to download the newest script files, and add the line:

PHP Code:
FinalPass   =   new ShaderFilter(FinalPassRenderer.CompileShader(Path.Combine(ShaderPath, @"..\SweetFX\LumaSharpen.hlsl"))); 
to Nedi.cs at line 77, just after:

PHP Code:
FinalPass   =   new NEDIVInterleave(FirstPass,NEDI_II,
                        
Renderer.CompileShader(Path.Combine(ShaderPath, @"NEDI-VInterleave.hlsl")));); 
This adds another step after the NEDI algorithm, where it performs LumaSharpen on the doubled image.

When it becomes possible to chain shaders this should be possible without changing any code, and hopefully it will even become possible to add a sharpening filter which either does: upscaling -> sharpening or sharpening -> downscaling. But this might take a while.
it works.
toniash is offline   Reply With Quote
Old 28th October 2014, 14:35   #306  |  Link
toniash
Registered User
 
Join Date: Oct 2010
Posts: 131
Quote:
Originally Posted by Anime Viewer View Post
I installed 2.8.3 on top of the 2.8.2 I had on my system, and on launching MediaPlayerDotNet I get the following renderscript error:

[code]
TITLE: CSScriptLibrary Error
------------------------------

An unexpected error 'csscript.CompilerException' has occurred.
.
Have you redownloaded the new render scripts in the first page?
(there is a change in API)
toniash is offline   Reply With Quote
Old 28th October 2014, 15:31   #307  |  Link
patul
Registered User
 
Join Date: Sep 2005
Posts: 132
Anime Viewer, you have to delete/overwrite the RenderScripts folder with new one, now separate package, you have to download RenderScripts.zip, link is available in the first page.

Zachs, initial test, the shaders work now, NEDI scaler works, I'll have to test it more.

EDIT1: Frame dropped/delayed when NEDI is selected, however scaling is not needed (video size matches target render size).

Last edited by patul; 28th October 2014 at 15:45.
patul is offline   Reply With Quote
Old 28th October 2014, 17:45   #308  |  Link
Shiandow
Registered User
 
Join Date: Dec 2013
Posts: 753
I haven't had much chance to look at the new API changes yet, but it seems Zachs made a RenderScript pack which contains a modified version of NEDI that works with the new API so you can download that one instead.

When I have time I'll make a version of NEDI that takes full advantage of the new API, until then you should use the one in the "sample render scripts" pack.
Shiandow is offline   Reply With Quote
Old 28th October 2014, 22:57   #309  |  Link
Zachs
Suptitle, MediaPlayer.NET
 
Join Date: Nov 2001
Posts: 1,721
Quote:
Originally Posted by patul View Post
Anime Viewer, you have to delete/overwrite the RenderScripts folder with new one, now separate package, you have to download RenderScripts.zip, link is available in the first page.

Zachs, initial test, the shaders work now, NEDI scaler works, I'll have to test it more.

EDIT1: Frame dropped/delayed when NEDI is selected, however scaling is not needed (video size matches target render size).
I've informed Shiandow about this. There's also a problem when 4K video is used with NEDI - current crops of video cards don't support texture sizes that is beyond 4k x 4k, so for the case you've just mentioned and one that downsizes, NEDI should be bypassed.

@Shiandow I believe this could be done quite easily in the ResizeableFilter class?
Zachs is offline   Reply With Quote
Old 29th October 2014, 03:22   #310  |  Link
Anima123
Registered User
 
Join Date: Jun 2005
Posts: 513
How do we get NEDI work through a correct script chain with the latest version?

In my mind, the pipeline be like this:
MPDN chroma scaling -> NEDI resolution doubling (if needed) -> MPDN image scaling (either upscale or downscale) to the display resolution + dithering to the set bit-depth

Since I don't know exactly how the MPDN script works, but shouldn't the MPDN processing be separated into pre-NEDI and post-NEDI processing?

Last edited by Anima123; 29th October 2014 at 05:29.
Anima123 is offline   Reply With Quote
Old 29th October 2014, 11:17   #311  |  Link
toniash
Registered User
 
Join Date: Oct 2010
Posts: 131
Quote:
Originally Posted by Shiandow View Post
Well a few pages back I posted a method to do NEDI -> Scaling -> Sharpen, but I think that method may not work anymore in combination with some of the changes I made.

Anyway If you want to do: NEDI -> Sharpen -> Scaling, then the easiest way to do this is to download the newest script files, and add the line:

PHP Code:
FinalPass   =   new ShaderFilter(FinalPassRenderer.CompileShader(Path.Combine(ShaderPath, @"..\SweetFX\LumaSharpen.hlsl"))); 
to Nedi.cs at line 77, just after:

PHP Code:
FinalPass   =   new NEDIVInterleave(FirstPass,NEDI_II,
                        
Renderer.CompileShader(Path.Combine(ShaderPath, @"NEDI-VInterleave.hlsl")));); 
This adds another step after the NEDI algorithm, where it performs LumaSharpen on the doubled image.

When it becomes possible to chain shaders this should be possible without changing any code, and hopefully it will even become possible to add a sharpening filter which either does: upscaling -> sharpening or sharpening -> downscaling. But this might take a while.
It's still valid for new version 2.8.3?
toniash is offline   Reply With Quote
Old 29th October 2014, 13:24   #312  |  Link
Zachs
Suptitle, MediaPlayer.NET
 
Join Date: Nov 2001
Posts: 1,721
It should still work.

There are several render scripts that is yet to be done. When these are completed, I'll explain how a full render script chain is used to create pre- / post-processing etc.
Zachs is offline   Reply With Quote
Old 29th October 2014, 17:14   #313  |  Link
jkauff
Registered User
 
Join Date: Oct 2012
Location: Akron, OH
Posts: 491
I know you're very busy, but when you get some time please provide a way to resume a movie. I'm using MPDN as my regular player and it's a real pain to have to seek back to the last position played.

NEDI works great, BTW. Thanks for all the great work (and to Shiandow)!
jkauff is offline   Reply With Quote
Old 30th October 2014, 04:38   #314  |  Link
Zachs
Suptitle, MediaPlayer.NET
 
Join Date: Nov 2001
Posts: 1,721
Quote:
Originally Posted by jkauff View Post
I know you're very busy, but when you get some time please provide a way to resume a movie. I'm using MPDN as my regular player and it's a real pain to have to seek back to the last position played.

NEDI works great, BTW. Thanks for all the great work (and to Shiandow)!
Yeah I'll do that once I'm done with getting Render Script to a somewhat usable state.
Zachs is offline   Reply With Quote
Old 30th October 2014, 06:10   #315  |  Link
Anima123
Registered User
 
Join Date: Jun 2005
Posts: 513
MPDN still cannot playback .wmv files, it gives the following error:

Mpdn.VideoPlayer Error
An unexpected error 'Mpdn.VideoPlayer.DsGraphException' has occurred.
Additional information:
Failed to render file '????.wmv' (Mpdn.VideoPlayer)
Exception from HRESULT: 0x80040217 (Mpdn.VideoPlayer)

Hope this can help you debug. Plus, I have tried to change settings of LAVFilters with no luck though.
Anima123 is offline   Reply With Quote
Old 30th October 2014, 06:39   #316  |  Link
Zachs
Suptitle, MediaPlayer.NET
 
Join Date: Nov 2001
Posts: 1,721
Quote:
Originally Posted by Anima123 View Post
MPDN still cannot playback .wmv files, it gives the following error:

Mpdn.VideoPlayer Error
An unexpected error 'Mpdn.VideoPlayer.DsGraphException' has occurred.
Additional information:
Failed to render file '????.wmv' (Mpdn.VideoPlayer)
Exception from HRESULT: 0x80040217 (Mpdn.VideoPlayer)

Hope this can help you debug. Plus, I have tried to change settings of LAVFilters with no luck though.
Does MPC-HC when configured to use LAV splitter and LAV video + audio decoders play that wmv file? That error message means upstream filters do not know how to decode the file.
Zachs is offline   Reply With Quote
Old 30th October 2014, 07:07   #317  |  Link
Anima123
Registered User
 
Join Date: Jun 2005
Posts: 513
No problem with MPC-HC.
Anima123 is offline   Reply With Quote
Old 30th October 2014, 07:21   #318  |  Link
Zachs
Suptitle, MediaPlayer.NET
 
Join Date: Nov 2001
Posts: 1,721
Quote:
Originally Posted by Anima123 View Post
No problem with MPC-HC.
Check MPC-HC's filters and make sure they are exactly the same as MPDN's. If they are, could you upload the wmv file somewhere so I could take a look?
Zachs is offline   Reply With Quote
Old 30th October 2014, 07:30   #319  |  Link
Anima123
Registered User
 
Join Date: Jun 2005
Posts: 513
I just could not playback any .wmv files with MPDN (64-bit btw).
Anima123 is offline   Reply With Quote
Old 30th October 2014, 07:38   #320  |  Link
Zachs
Suptitle, MediaPlayer.NET
 
Join Date: Nov 2001
Posts: 1,721
Quote:
Originally Posted by Anima123 View Post
I just could not playback any .wmv files with MPDN (64-bit btw).
I have no problems with wmv files with 64-bit MPDN. Have you made sure wmv files decode option is checked in LAV Video Filter too along with the wma audio ones in LAV Audio Filter?
Zachs is offline   Reply With Quote
Reply

Tags
direct3d, mpdn, nnedi3, opencl, reclock

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:40.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.