[RESOLVED] DGDecodeNV 2053 fails with Vapoursynth

Support forum for DGDecNV
Post Reply
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

[RESOLVED] DGDecodeNV 2053 fails with Vapoursynth

Post 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.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: DGDecodeNV 2053 fails with Vapoursynth

Post 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.
User avatar
Selur
Posts: 134
Joined: Mon Nov 05, 2012 3:49 pm
Location: Germany
Contact:

Re: DGDecodeNV 2053 fails with Vapoursynth

Post 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.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: DGDecodeNV 2053 fails with Vapoursynth

Post 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.
User avatar
Selur
Posts: 134
Joined: Mon Nov 05, 2012 3:49 pm
Location: Germany
Contact:

Re: DGDecodeNV 2053 fails with Vapoursynth

Post 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
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: DGDecodeNV 2053 fails with Vapoursynth

Post by admin »

Check PM, please.
User avatar
Selur
Posts: 134
Joined: Mon Nov 05, 2012 3:49 pm
Location: Germany
Contact:

Re: DGDecodeNV 2053 fails with Vapoursynth

Post by Selur »

The test dll version works fine. :)

Cu Selur
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: DGDecodeNV 2053 fails with Vapoursynth

Post 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.
User avatar
Selur
Posts: 134
Joined: Mon Nov 05, 2012 3:49 pm
Location: Germany
Contact:

Re: DGDecodeNV 2053 fails with Vapoursynth

Post by Selur »

I will slipstream it later today.
Thanks! :D

Cu Selur
User avatar
Selur
Posts: 134
Joined: Mon Nov 05, 2012 3:49 pm
Location: Germany
Contact:

Re: [RESOLVED] DGDecodeNV 2053 fails with Vapoursynth

Post 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
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: [RESOLVED] DGDecodeNV 2053 fails with Vapoursynth

Post by admin »

Please re-download 2053, update DGDecodeNV.dll, and report your result.
User avatar
Selur
Posts: 134
Joined: Mon Nov 05, 2012 3:49 pm
Location: Germany
Contact:

Re: [RESOLVED] DGDecodeNV 2053 fails with Vapoursynth

Post by Selur »

Redownloaded, working now. :)

Cu Selur
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: [RESOLVED] DGDecodeNV 2053 fails with Vapoursynth

Post 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.
User avatar
Selur
Posts: 134
Joined: Mon Nov 05, 2012 3:49 pm
Location: Germany
Contact:

Re: [RESOLVED] DGDecodeNV 2053 fails with Vapoursynth

Post by Selur »

Sometimes, you think, no way this could break anything.
He, he, THAT I know too. :D
Post Reply