Log in

View Full Version : Bug in mpeg2dec3dg?


Malcolm
5th May 2004, 15:43
Hi,
if i do something like this
cpu_0 = mpeg2source("3nach9.d2v", cpu=0)
cpu_6 = mpeg2source("3nach9.d2v", cpu=6)
subtract(cpu_0, cpu_6)

to check what's the difference between unprocessed und deblocked/deringed video,
the result is plain gray. This means there is no difference where there should be. I already encountered this behaviour some time ago with older versions of mpeg2dec3. Can it be that using mpeg2dec3dg multiple times in the same script with different settings isn't possible because they override eachother (only the last one is used)?

when i produce huffyuv-avis via separate scripts, one with cpu=0, one with cpu=6 and compare them in another script, then i can see the expected difference.

Greetings,
Malcolm

Cyberia
5th May 2004, 16:15
I can apparently recreate this. I am sure the deblocking/deringing worked before, but now I can't get it to produce any noticeable results. I tried this on DVD2AVIdg 1.2RC2 and 1.0.

I'm using this script:

cpu_6 = mpeg2source("C:\Movies\LOTR MTV.d2v", idct=3, moderate_h=20, moderate_v=40, cpu2="XXXXXX")
cpu_0 = mpeg2source("C:\Movies\LOTR MTV.d2v", idct=3, moderate_h=20, moderate_v=40, cpu2="OOOOOO")
subtract(cpu_0, cpu_6).Levels(127,1,129,0,255)


I used 'cpu2' in this case because it gives finer control, but 'cpu' gives the same results.

Guest
6th May 2004, 15:48
I didn't touch that stuff. Probably MarcFD used a global variable for the cpu setting so that the last one is the effective one for all instances in a given script. I'll have a look at it.

@Cyberia

Try it with different scripts if you want to see that it still works.

EDIT: I just checked and, yes, globals are used. I'll add it to the bug list. Thanks for pointing it out.

Guest
7th May 2004, 01:59
I have fixed this in RC4. Please see the main thread.

Cyberia
7th May 2004, 04:01
The exact script I posted still does not generate anything but a grey screen, using RC4.

Guest
7th May 2004, 04:39
Originally posted by Cyberia
The exact script I posted still does not generate anything but a grey screen, using RC4. That's because the X's need to be x's. I will change it to accept either upper or lower case.

Malcolm
7th May 2004, 08:08
Thank you!
it's working fine now!

Greetings,
Malcolm