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. |
|
|
Thread Tools | Search this Thread | Display Modes |
31st October 2014, 12:04 | #321 | Link |
Suptitle, MediaPlayer.NET
Join Date: Nov 2001
Posts: 1,721
|
How to use render scripts (v2.11.0 and above)
With MPDN v2.11.0, scripts can now call other scripts, and have them in a chain either via GUI or via your own script.
Pre-/Post processing with NEDI Create a render script chain such as the above (You can get to this screen via Options | Render Script | Select Script Chain | Press the Configure button). The first "Image Processor" render script is your pre-processing filter. Click configure and you can add as many MPC-HC style pixel shader files as you wish. The second "NEDI" render script doubles the image. The third "Resizer" render script scales the image to target size. There's a plethora of options in the "Resizer" config menu. Target size is simply "target rectangle" as seen in the Ctrl+J stats screen (i.e. display resolution). Video size means the luma size (MPDN implicitly scales chroma to luma size). Feel free to experiment. The last render script, also an "Image Processor", is essentially your post-processing filter. It is exactly the same filter as the first, except it is a post-processing filter this time around because it processes the post-scaled image. If you choose to use MPDN's built in scalers, all you have to change from the above setup is remove "NEDI" from the list. Pre-/Post processing with SuperResChroma + SuperRes with NEDI Choose Script Chain: Configure your chain to look like this (Note: the pre-/post-processing filters are represented by ImageProcessor scripts): Enable NEDI in SuperRes: * You can fine tune SuperRes via its various parameters * Note: The following is my personal preference and yours may be different: Chain Scripting The GUI based script chain creator tool is meant for simple script chaining. If you find yourself limited by what the GUI tool offers, you should use a chain script to let MPDN know when and how you want to use certain script chain. Let's start with a simple example. You can say to MPDN, Code:
Preprocess with Bloom.hlsl, LiftGammaGain.hlsl etc. Next, use NEDI to double the image if we need to upscale Then, Resize to target size with Softcubic (softness 90) Lastly, if Video is below 1080p, Sharpen luma. Code:
if Video is 720p, preprocess with FineSharp shaders, then upscale using NEDI. if Video is 1080p or higher, don't do anything. if Video is less than 720p, do the following: Upscale with ChromaScaler (Preset=Catrom) Preprocess with Bloom.hlsl, LiftGammaGain.hlsl etc. Next, keep using NEDI to double the image until we get past target size Then, Resize (downscale) to target size with Bicubic (sharpness 50) with linear light scaling Lastly, if Video is below 1080p, Sharpen luma. Last edited by Zachs; 7th January 2015 at 02:24. |
31st October 2014, 13:47 | #323 | Link |
Troubleshooter
Join Date: Feb 2014
Posts: 339
|
Anyone else seeing the following error after installing MPDN 2.8.4 and then copying the contents of MPDN renderscript pack into the RenderScripts folder in 2.8.4?
Code:
TITLE: CSScriptLibrary Error ------------------------------ An unexpected error 'System.ApplicationException' has occurred. ------------------------------ ADDITIONAL INFORMATION: Cannot parse "//css_import..." (CSScriptLibrary) ------------------------------ BUTTONS: &Ignore &Abort ------------------------------ Edit: It only seems to happen with the 32-bit version. The 64-bit version appear to work fine.
__________________
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; 31st October 2014 at 14:00. |
31st October 2014, 13:58 | #324 | Link |
Suptitle, MediaPlayer.NET
Join Date: Nov 2001
Posts: 1,721
|
Hmm. That's odd. Can you click the details button when you get the error and give me the detailed errors including stack trace please?
EDIT: You might want to delete your config files and start from fresh since it only happens on 32-bit. You can find the location of MPDN's config files in the OP (make a backup first). Just tested all 3 versions on my PC and I can't reproduce the error. On second thought, what is your MPDN path for x86 and x64? i.e. where did you extract them? Might be related to how scripts are being handled in C# script library (long path names with spaces etc.). EDIT2: OK. Problem found. Your path has a comma, which is a delimiter for C# script and that was the thing causing a conflict. Last edited by Zachs; 31st October 2014 at 14:12. |
31st October 2014, 14:15 | #325 | Link |
Registered User
Join Date: May 2010
Posts: 9
|
It crashes when I put xy-vsfilter or xysubfilter in the filter chain.
TITLE: Mpdn.VideoPlayer Error ------------------------------ An unexpected error 'Mpdn.VideoPlayer.DsGraphException' has occurred. ------------------------------ ADDITIONAL INFORMATION: Failed to render file '****.mkv' (Mpdn.VideoPlayer) ------------------------------ Failed to connect filter to graph (Mpdn.VideoPlayer) ------------------------------ Error HRESULT E_FAIL has been returned from a call to a COM component. (mscorlib) ------------------------------ BUTTONS: &Ignore &Abort ------------------------------ |
31st October 2014, 14:21 | #326 | Link | |
Suptitle, MediaPlayer.NET
Join Date: Nov 2001
Posts: 1,721
|
Quote:
Xy-vsfilter is supported implicitly so you shouldn't add it to the graph. XySubFilter is *not* supported yet (in the works). |
|
31st October 2014, 20:35 | #330 | Link | |
Registered User
Join Date: Oct 2012
Location: Akron, OH
Posts: 491
|
Quote:
|
|
31st October 2014, 20:57 | #331 | Link | |
Troubleshooter
Join Date: Feb 2014
Posts: 339
|
32-bit Error Message = Cannot parse "//css_import..."
Quote:
x86 version installed to: E:\Program Files (x86)\MediaPlayerDotNet(x86) x64 version installed to: E:\Program Files\MediaPlayerDotNet A comma in my path?!? I don't see that... There are a couple of ()'s but those are the only characters. I'll try extracting a copy to other locations and see if I get different results. Here is a longer log from the All Messages section of the Advanced information area: Code:
=================================== An unexpected error 'System.ApplicationException' has occurred. ------------------------------ Error Type = System.ApplicationException Error Message = Cannot parse "//css_import..." Error Source = CSScriptLibrary Error Site = Void .ctor(System.String, System.String) Error occurred = at csscript.CSharpParser.ImportInfo..ctor(String statement, String parentScript) at csscript.CSharpParser.Init(String code, String file, String[] directivesToSearch) at csscript.CSharpParser..ctor(String script, Boolean isFile) at CSScriptLibrary.FileParser.ProcessFile() at CSScriptLibrary.FileParser..ctor(String fileName, ParsingParams prams, Boolean process, Boolean imported, String[] searchDirs, Boolean throwOnError) at CSScriptLibrary.ScriptParser.Init(String fileName, String[] searchDirs) at CSScriptLibrary.ScriptParser..ctor(String fileName, String[] searchDirs) at csscript.CSExecutor.Compile(String scriptFileName) at csscript.CSExecutor.Compile(String scriptFile, String assemblyFile, Boolean debugBuild) at CSScriptLibrary.CSScript.LoadWithConfig(String scriptFile, String assemblyFile, Boolean debugBuild, Settings scriptSettings, String compilerOptions, String[] refAssemblies) at CSScriptLibrary.CSScript.Load(String scriptFile) at MediaPlayerDotNet.MainForm.††† †††‰(Object ) at MediaPlayerDotNet.MainForm.††† ††††˜(Object ) at MediaPlayerDotNet.MainForm.††† ††††˜() at MediaPlayerDotNet.MainForm.††† ††††œŽ() at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme) at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme) at System.Windows.Forms.Control.InvokeMarshaledCallbacks() OS Version = Microsoft Windows NT 6.3.9600.0 Total Physical Memory = 15.9 GB Available Physical Memory = 12.7 GB Date Time = 10/31/2014 12:54:20 PM User Name = SAGER-NP9150\Tom Application Startup Path = E:\Program Files (x86)\MediaPlayerDotNet(x86) Application Executable Path = E:\Program Files (x86)\MediaPlayerDotNet(x86)\MediaPlayerDotNet.exe CurrentDirectory = E:\Program Files (x86)\MediaPlayerDotNet(x86) SystemDirectory = C:\Windows\system32 Ran As Admin = False HasShutdownStarted = False MachineName = SAGER-NP9150 ProcessorCount = 8 LogicalDrives = C:\, E:\, F:\, G:\, Z:\ EnvironmentVariables = Path = C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\AuthenTec TrueSuite\; C:\Program Files\AuthenTec TrueSuite\x86; C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows; C:\Windows\System32\Wbem; C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL; C:\Program Files\Intel\Intel(R) Management Engine Components\IPT; C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL; C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\AuthenTec TrueSuite\x86\; C:\Program Files\Intel\WiFi\bin\; C:\Program Files\Common Files\Intel\WirelessCommon\;; SESSIONNAME = Console; PATHEXT = .COM;. EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC; USERDOMAIN = SAGER-NP9150; PROCESSOR_ARCHITECTURE = x86; ProgramW6432 = C:\Program Files; PUBLIC = C:\Users\Public; APPDATA = C:\Users\AV\AppData\Roaming; windir = C:\Windows; LOCALAPPDATA = C:\Users\AV\AppData\Local; CommonProgramW6432 = C:\Program Files\Common Files; USERNAME = AV; TMP = C:\Users\AV\AppData\Local\Temp; USERPROFILE = C:\Users\AV; ProgramFiles = C:\Program Files (x86); PROCESSOR_LEVEL = 6; FP_NO_HOST_CHECK = NO; HOMEPATH = \Users\AV; COMPUTERNAME = SAGER-NP9150; PROCESSOR_ARCHITEW6432 = AMD64; NVIDIAWHITELISTED = 0x01; NUMBER_OF_PROCESSORS = 8; PROCESSOR_IDENTIFIER = Intel64 Family 6 Model 58 Stepping 9, GenuineIntel; SystemRoot = C:\Windows; ComSpec = C:\Windows\system32\cmd.exe; LOGONSERVER = \\MicrosoftAccount; TEMP = C:\Users\AV\AppData\Local\Temp; ProgramFiles(x86) = C:\Program Files (x86); SystemDrive = C:; CommonProgramFiles = C:\Program Files (x86)\Common Files; USERDOMAIN_ROAMINGPROFILE = SAGER-NP9150; PROCESSOR_REVISION = 3a09; CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files; ALLUSERSPROFILE = C:\ProgramData; SHIM_MCCOMPAT = 0x810000001; PSModulePath = C:\Windows\system32\WindowsPowerShell\v1.0\Modules\; OS = Windows_NT; ProgramData = C:\ProgramData; HOMEDRIVE = C: RuntimeVersion = 4.0.30319.34014 Thread Count = 16 Handle Count = 360 VM Size = 370.1 MB Peak VM Size = 370.1 MB Working Set Size = 56.9 MB Max Working Set Size = 1.3 MB Min Working Set Size = 200 KB Modules = MediaPlayerDotNet.exe, ntdll.dll, MSCOREE.DLL, KERNEL32.dll, KERNELBASE.dll, ADVAPI32.dll, msvcrt.dll, sechost.dll, RPCRT4.dll, SspiCli.dll, CRYPTBASE.dll, bcryptPrimitives.dll, mscoreei.dll, SHLWAPI.dll, combase.dll, USER32.dll, GDI32.dll, IMM32.DLL, MSCTF.dll, nvinit.dll, detoured.dll, nvd3d9wrap.dll, SETUPAPI.dll, CFGMGR32.dll, nvdxgiwrap.dll, clr.dll, MSVCR120_CLR0400.dll, mscorlib.ni.dll, ole32.dll, kernel.appcore.dll, uxtheme.dll, tiptsf.dll, OLEAUT32.dll, clrjit.dll, System.ni.dll, System.Drawing.ni.dll, System.Windows.Forms.ni.dll, bcrypt.dll, CRYPTSP.dll, rsaenh.dll, comctl32.dll, dwmapi.dll, gdiplus.dll, DWrite.dll, WindowsCodecs.dll, System.Core.ni.dll, shell32.dll, SHCORE.dll, System.Xml.Linq.ni.dll, System.Xml.ni.dll, VideoFrameServicesNative.dll, d3d9.dll, VERSION.dll, nvumdshim.dll, igdumdim32.dll, igdusc32.dll, nvd3dum.dll, PSAPI.DLL, DEVOBJ.dll, WINTRUST.dll, CRYPT32.dll, MSASN1.dll, nvspcap.dll, oleacc.dll, Accessibility.ni.dll, clbcatq.dll, msiltcfg.dll, msi.dll, D3D9NativeServices.dll, WINMM.dll, WTSAPI32.dll, WINMMBASE.dll, powrprof.dll, WINSTA.dll, dxgi.dll, d3d10_1.dll, d3d10_1core.dll, d3d11.dll, nvwgf2um.dll, igd10iumd32.dll, ncrypt.dll, NTASN1.dll, d3dx10_43.dll, usp10.dll, Microsoft.VisualBasic.ni.dll, System.Management.ni.dll, diasymreader.dll =================================== Cannot parse "//css_import..." (CSScriptLibrary) ------------------------------ Program Location: at csscript.CSharpParser.ImportInfo..ctor(String statement, String parentScript) at csscript.CSharpParser.Init(String code, String file, String[] directivesToSearch) at csscript.CSharpParser..ctor(String script, Boolean isFile) at CSScriptLibrary.FileParser.ProcessFile() at CSScriptLibrary.FileParser..ctor(String fileName, ParsingParams prams, Boolean process, Boolean imported, String[] searchDirs, Boolean throwOnError) at CSScriptLibrary.ScriptParser.Init(String fileName, String[] searchDirs) at CSScriptLibrary.ScriptParser..ctor(String fileName, String[] searchDirs) at csscript.CSExecutor.Compile(String scriptFileName) at csscript.CSExecutor.Compile(String scriptFile, String assemblyFile, Boolean debugBuild) at CSScriptLibrary.CSScript.LoadWithConfig(String scriptFile, String assemblyFile, Boolean debugBuild, Settings scriptSettings, String compilerOptions, String[] refAssemblies) at CSScriptLibrary.CSScript.Load(String scriptFile) at MediaPlayerDotNet.MainForm.††† †††‰(Object ) at MediaPlayerDotNet.MainForm.††† ††††˜(Object ) at MediaPlayerDotNet.MainForm.††† ††††˜() at MediaPlayerDotNet.MainForm.††† ††††œŽ() at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme) at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme) at System.Windows.Forms.Control.InvokeMarshaledCallbacks() jkauff, Did you also extract it to your "Program Files (x86)" directory, or have you included a "(" and or ")" in your file name? If so try moving the folder and/or renaming the directory.
__________________
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; 31st October 2014 at 21:20. Reason: split envornment variable and module lines to shrink length of post |
|
31st October 2014, 21:45 | #332 | Link | |
Registered User
Join Date: Oct 2012
Location: Akron, OH
Posts: 491
|
Quote:
Also, when I tried playing a movie in the 64-bit version, I got an error that MPDN couldn't find SharpDX, which is sitting in the same folder as the other .dll program files. I opened Application.64.config in a text editor and didn't see any path info in there that might be causing a problem. Last edited by jkauff; 31st October 2014 at 21:48. |
|
1st November 2014, 00:49 | #334 | Link |
Registered User
Join Date: Jun 2005
Posts: 507
|
With MPDN 2.8.4, NEDI enabled only, while playing a 1080p file (no need to upscale at all), open another SD file, NEDI seems not working anymore, the result was like nearest neighbor been used which is horrible, and lots of dropped frames.
I guess there may be a bug that's worth digging into. |
1st November 2014, 00:56 | #335 | Link | |
Suptitle, MediaPlayer.NET
Join Date: Nov 2001
Posts: 1,721
|
Quote:
|
|
1st November 2014, 01:09 | #336 | Link | |
Registered User
Join Date: Dec 2013
Posts: 753
|
Quote:
I think I have found a way to fix it but it requires changes to Filter.cs, and may have other issues. I'll put some more details in a PM. |
|
1st November 2014, 01:40 | #337 | Link | |||
Suptitle, MediaPlayer.NET
Join Date: Nov 2001
Posts: 1,721
|
Quote:
Automatic refresh changing isn't on my todo list at the moment. Quote:
Quote:
Not yet. Will look into player enhancements after I sort out render scripts. |
|||
1st November 2014, 01:57 | #338 | Link |
Troubleshooter
Join Date: Feb 2014
Posts: 339
|
I'm not sure that the NEDI (or any script for that matter) is taking effect on my videos (aka working on my system). Here is screen shots I took with the scripts set, and with no scripts set. I don't see any difference. Anyone care to upload before and after screen shots to show what it should look like with scripts taking effect?
Screen shot comparison
__________________
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. |
1st November 2014, 02:00 | #339 | Link | |
Suptitle, MediaPlayer.NET
Join Date: Nov 2001
Posts: 1,721
|
Quote:
EDIT: NEDI with bicubic50 http://i.imgur.com/mcSjm6e.jpg Jinc8 http://i.imgur.com/YnfiXws.jpg Both without pre-/post-processing. Try with just NEDI as the sole render script first. Otherwise you'll run into the MPDN bug as described. Last edited by Zachs; 1st November 2014 at 02:27. |
|
1st November 2014, 02:51 | #340 | Link | |
Troubleshooter
Join Date: Feb 2014
Posts: 339
|
Quote:
http://i.imgur.com/jmyAuH0.jpg One other thing I noticed this morning, and again now. Is if I click the configure button while a video is paused I get trapped with no way to exit (like I reported a few months ago that happened when new render mode and DX10 were selected together). The only way out of it is to log out of windows, or restart the computer. If no video is running or paused when going into the configuration screen there is no problem changing settings. Edit: Here is with only NEDI in the scripts: http://i.imgur.com/WN4UW12.jpg
__________________
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; 1st November 2014 at 02:55. Reason: added NEDI only screen shot |
|
Tags |
direct3d, mpdn, nnedi3, opencl, reclock |
Thread Tools | Search this Thread |
Display Modes | |
|
|