Page 1 of 1

[RESOLVED] DGDecodeNV 2053 fails with Vapoursynth

Posted: Fri Mar 03, 2017 9:13 am
by admin
Apparently Vapoursynth does not call CoInitialize() so my WMI calls fail. Avisynth does call CoInitialize() so there is no problem there. I could ask the Vapoursynth author to properly emulate Avisynth if Avisynth plugins are to be supported, but the chances of such cooperation, sadly, are pretty low. There are some complications in calling CoInitialize() from a DLL but it can be done. I will experiment with it today and slipstream it if it is successful.

Re: DGDecodeNV 2053 fails with Vapoursynth

Posted: Fri Mar 03, 2017 10:11 am
by admin
@Selur

I have a fix ready for you to test with Vapoursynth. Please tell me if you need 32-bit or 64-bit.

Re: DGDecodeNV 2053 fails with Vapoursynth

Posted: Fri Mar 03, 2017 11:06 am
by Selur
Using 64bit here. :)
Apparently Vapoursynth does not call CoInitialize() so my WMI calls fail.
And those were added with 2053, since 2052 does work fine.

Re: DGDecodeNV 2053 fails with Vapoursynth

Posted: Fri Mar 03, 2017 12:21 pm
by admin
Yes, WMI calls were added in 2053.

As soon as I hop out of the tub I'll give you a DLL to test.

Re: DGDecodeNV 2053 fails with Vapoursynth

Posted: Fri Mar 03, 2017 12:33 pm
by Selur
No problem and no rush.
I'm happy your on it and the problem was easy traceable. :)

Thanks for looking into it. :)

Cu Selur

Re: DGDecodeNV 2053 fails with Vapoursynth

Posted: Fri Mar 03, 2017 1:23 pm
by admin
Check PM, please.

Re: DGDecodeNV 2053 fails with Vapoursynth

Posted: Fri Mar 03, 2017 1:31 pm
by Selur
The test dll version works fine. :)

Cu Selur

Re: DGDecodeNV 2053 fails with Vapoursynth

Posted: Fri Mar 03, 2017 1:50 pm
by admin
I figured it would. ;)

Thank you for your test result, Selur. I will slipstream it later today.

Strictly speaking it's not a "bug". It's usual for DLLs to expect the caller to initialize COM.

Re: DGDecodeNV 2053 fails with Vapoursynth

Posted: Fri Mar 03, 2017 1:57 pm
by Selur
I will slipstream it later today.
Thanks! :D

Cu Selur

Re: [RESOLVED] DGDecodeNV 2053 fails with Vapoursynth

Posted: Sat Mar 04, 2017 4:59 am
by Selur
Just restarted my pc, redownloaded the slipstreamed version, replaced my existing dlls and now I get:

Code: Select all

Failed to evaluate the script:
Python exception: Unexpected behavior. Contact author.
Traceback (most recent call last):
  File "src\cython\vapoursynth.pyx", line 1712, in vapoursynth.vpy_evaluateScript (src\cython\vapoursynth.c:34991)
  File "H:\Temp\tempPreviewVapoursynthFile11_48_03_154.vpy", line 27, in <module>
    clip = core.avs.DGSource("H:/Temp/m2ts_60de36791a002a6525ee66fedb5fe913_32391.dgi",fieldop=2)
  File "src\cython\vapoursynth.pyx", line 1604, in vapoursynth.Function.__call__ (src\cython\vapoursynth.c:33131)
vapoursynth.Error: Unexpected behavior. Contact author.
in both vsedit and vspipe.

Also when I drop that dll inside Dependcy Walker (http://www.dependencywalker.com/) 64bit, it freezes (Not Responding).
-> seems like there went something wrong with the upload of the new version.

Cu Selur

Re: [RESOLVED] DGDecodeNV 2053 fails with Vapoursynth

Posted: Sat Mar 04, 2017 7:14 am
by admin
Please re-download 2053, update DGDecodeNV.dll, and report your result.

Re: [RESOLVED] DGDecodeNV 2053 fails with Vapoursynth

Posted: Sat Mar 04, 2017 7:36 am
by Selur
Redownloaded, working now. :)

Cu Selur

Re: [RESOLVED] DGDecodeNV 2053 fails with Vapoursynth

Posted: Sat Mar 04, 2017 7:59 am
by admin
Sweet, sorry about that. I made a final little optimization before uploading. Sometimes, you think, no way this could break anything. :facepalm:

Strange, though, I thought I tested it, but this morning it wasn't working. :x

All's well that ends well.

Re: [RESOLVED] DGDecodeNV 2053 fails with Vapoursynth

Posted: Sat Mar 04, 2017 8:06 am
by Selur
Sometimes, you think, no way this could break anything.
He, he, THAT I know too. :D