Log in

View Full Version : gradfun2db broken under Windows 7? It's causing strange artifacts...


Fr4nz
5th November 2009, 10:20
Hi all!

After passing from Windows XP to Windows Seven, I met a strange bug when encoding
videos with the function "gradfun2db()" in Avisynth;

The script I use is this:

DirectShowSource("J:\Film bluray\TRANSFORMERS_2_D1_EU\BDMV\STREAM\00003.m2ts"
, fps=23.976, audio=false, convertfps=true)
Spline36Resize(1280,720) # Spline36 (Neutral)
gradfun2db()

Here's the artifact I have in the video outputted by the script:

http://img688.imageshack.us/img688/5271/img1yz.th.jpg (http://img688.imageshack.us/i/img1yz.jpg/)

http://img687.imageshack.us/img687/910/img2c.th.jpg (http://img687.imageshack.us/i/img2c.jpg/)

As you can see, we have a sort of grey bar approximately in the middle of the screen; moreover, the
bar isn't immutable but moves vertically in time. If needed, I could upload the sample somewhere.

How's that I know "gradfun2db()" is the culprit? Because if I remove it from the script,
the problem disappears!

Anyone is able to give an help here?

My specs are:
CPU: Intel E6750
RAM: DDR2 800Mhz
OS: Win7 (x64)

Thanks!

Leak
5th November 2009, 11:34
Hi all!

After passing from Windows XP to Windows Seven, I met a strange bug when encoding
videos with the function "gradfun2db()" in Avisynth;
Are you using the same version of AviSynth in both XP and 7?

Because if you've been using 2.5.8 in XP and have now installed 2.6.0 in 7 I'm pretty sure that's where your problem comes from, as the plane alignment for frames (http://forum.doom9.org/showthread.php?p=1337605&highlight=alignment#post1337605) has changed (now 16 bytes for all planes), which might cause problems with some filters.

(Temporary) solution for that: use SetPlanarLegacyAlignment (http://avisynth.org/mediawiki/Non-clip_functions#Control_Functions).

Fr4nz
5th November 2009, 11:42
Are you using the same version of AviSynth in both XP and 7?

Because if you've been using 2.5.8 in XP and have now installed 2.6.0 in 7 I'm pretty sure that's where your problem comes from, as the plane alignment for frames (http://forum.doom9.org/showthread.php?p=1337605&highlight=alignment#post1337605) has changed (now 16 bytes for all planes), which might cause problems with some filters.

(Temporary) solution for that: use SetPlanarLegacyAlignment (http://avisynth.org/mediawiki/Non-clip_functions#Control_Functions).

I'm using Avisynth 2.5.8, so I think that is not the culprit.
Anyway, I've other interesting findings:

1) If I don't resize to 1280x720, the problem disappears;
2) If I use "ConvertToYV12()" before gradfun2db, the problem disappears;

Any idea?

scharfis_brain
5th November 2009, 12:07
If I use "ConvertToYV12()" before gradfun2db, the problem disappears;
gradfun2db only works with YV12.
It does NOT complain about a wrong colourspace.

Fr4nz
5th November 2009, 17:13
gradfun2db only works with YV12.
It does NOT complain about a wrong colourspace.

Ok, thank you for the help :)