Page 1 of 1

DGMPGDec Artefacts [Vapoursynth]

Posted: Wed Jan 18, 2023 11:45 am
by banana
Hello!

Thanks for your hard work. I hope you are doing well. I have updated to the latest version https://www.rationalqm.us/dgmpgdec/dgmpgdec2008.zip and encountered a bug in VS. I've made an image comparison and provided a sample for testing.

Kind Regards

Image Comparison:
https://slow.pics/c/EXKo2BnS
Frame #190

AVS:
MPEG2Source("drs.d2v")

VS:
import vapoursynth as vs
core = vs.core

src = core.dgdecode.MPEG2Source(r"drs.d2v")
src.set_output()

Sample:
https://www.dropbox.com/s/65wkqiwl4dh29oj/drs.rar?dl=0

DGMPGDec Artefacts [Vapoursynth]

Posted: Wed Jan 18, 2023 1:58 pm
by Rocky
Please state in words what the bug is. Those circles don't tell me anything. I don't see any difference.

DGMPGDec Artefacts [Vapoursynth]

Posted: Wed Jan 18, 2023 2:18 pm
by banana
The red color is being displaced, lines are being aliased (look at the kid's trousers), and sharpened blocks (look at the red color under the star) [Frame #190].

Here's another example from frame #130.

AVS:
Image

VS:
Image
Look at the kid's shoes.

DGMPGDec Artefacts [Vapoursynth]

Posted: Wed Jan 18, 2023 3:01 pm
by Rocky
#130

Those can't be the same as one of them has a faint logo saying "rectangular snip" and the other doesn't.

I'll download and investigate but honestly I don't see anything you mention.

Are you using 32-bit or 64-bit DGDecode? I can't start until you answer that.

DGMPGDec Artefacts [Vapoursynth]

Posted: Wed Jan 18, 2023 3:14 pm
by Rocky
Please note the question at the end of the previous post.

DGMPGDec Artefacts [Vapoursynth]

Posted: Wed Jan 18, 2023 3:42 pm
by Rocky
Using 64-bit...

AVS:

loadplugin("D:\Don\Programming\C++\DGMPGDec_VS2019\DGDecode64\x64\Release\DGDecode.dll")
mpeg2source("D:\tmp\banana\drs.d2v")

VS:

import vapoursynth as vs
core = vs.get_core()
core.std.LoadPlugin("D:/Don/Programming/C++/DGMPGDec_VS2019/DGDecode64/x64/Release/DGDecode.dll")
src = core.dgdecode.MPEG2Source(r"drs.d2v")
src.set_output()

For each one, I open the script in VirtualDub2, go to frame 130, and copy source frame to clipboard. Then paste into irfanview64 and save as PNG. When I compare the two PNGs they are binary identical.

Whatever you are doing with the "rectangular snip" thing must be the cause.

DGMPGDec Artefacts [Vapoursynth]

Posted: Wed Jan 18, 2023 10:52 pm
by banana
I just had an old version of the script editor. There is no problem now.

DGMPGDec Artefacts [Vapoursynth]

Posted: Thu Jan 19, 2023 6:35 am
by Rocky
Thank you for the update. Marking resolved.