View Full Version : Weird image corruption with avisynth 2.05


AlphaDivxMovies
3rd January 2003, 15:10
Hello everyone, hope you all had a pleasant new years eve.
I am new to posting and i only dug up my password cause of some problems i am having and have not seen posted here. Not a newbie to either doom9 or avisynth, but i never posted before all my doubts were always answered.
This is how it is:
If you take this script (i always use this or some variation) using the latest version (27/12/02 and 17/12/02) i noticed a very apparent image corruption at the top of the image, it is a small strip of what i can call image corruption, wavy and broken lines, i have tracked this down to either avisynth or Mpeg2dec3 but it seems to be avisynth related. Using any codec does it, reverting to good old 2.0.6 fixes it. But this is dumb cause i love yv12! Using no filters and just the basics also gives this screen corruption. Used ffdshow (stable and alpha) and several xvid/divx decoder builds (have them all).
I have also noticed a possible problem with colour bleeding and weird effects. eg. In dark areas of the image like a man`s face, the edges of the face get a purple haze! It`s present also in small dark areas like small objects and dark drawings edges. In bright areas this is unnoticed but the top image corruption is always there.
This is my usual script:

PluginPath = "C:\MAINUS~1\MULTIM~1\Video\GKnot\"
LoadPlugin("C:\MAINUS~1\MULTIM~1\Video\GKnot\avsmon25a.dll")
LoadPlugin("C:\MAINUS~1\MULTIM~1\Video\GKnot\MPEG2Dec3.dll")
LoadPlugin("C:\MAINUS~1\MULTIM~1\Video\GKnot\Undot.dll")
LoadPlugin("C:\MAINUS~1\MULTIM~1\Video\GKnot\Convolution3D.dll")
LoadPlugin("C:\MAINUS~1\MULTIM~1\Video\GKnot\unfilter.dll")
#LoadPlugin("C:\MAINUS~1\MULTIM~1\Video\GKnot\dup.dll")
mpeg2source("D:\DVD Ripping Layouts\Asterix e Obelix_Missão Cleopatra\DVDVOLUME\Asterix_Obelix_2.d2v",cpu=0,iDCT=4)
crop(2,71,716,433)
#Dup(threshold=3)
Undot()
Convolution3D(0,4,4,4,4,10,0)
Unfilter(5,5)
LanczosResize(640,272)
Undot()
MonitorFilter()

Keep up the good work, i have a few movies sitting on my HD, so if Rui is unnavailable and you need beta/alpha testing i am here for you, i have free time since i had a work accident and am getting used to typing with one hand.

-Asterix and Obelix 2
-Mulholland Drive
-E tu madre tambiem
- Monster`s Ball
- Gosford Park
- From hell and a few more are available.

My machine is:
XP 1800
256 mb ram
140 gb harddisk
Toshiba DVD + HP CD-rw
ASUS a7v8x motherboard
Nvidia Gforce 4 4200
Windows XP

I always use the latest versions of all programs beta or not. But i can say after testing that this seems Avisynth related.

sh0dan
3rd January 2003, 15:46
First possible cause:

crop(2,71,716,433)

- Always crop mod 4, when dealing with YV12 material - all the numbers in your crop should be divideable with 4.

If that doesn't help - try making the simplest possible script where the problem occurs.

(I'm beginning to become more and more annoyed by how crop appear to don't care - throwing and error would avoid so many problems).

AlphaDivxMovies
3rd January 2003, 17:23
Damn it! My first post and it is a stupid one!
You were right, it was the crop settings, using this other script corrected the problem to 70%, i still get that strange purple haze but it is much more subtle and you`ve got to compare source>encode to notice it but maybe it is not avisynth. Cool.
I knew about the problem but after a few weeks without doing yv12 i tottaly forgot and i used Gknot 0.27 to do the math for me, doing it manualy solved it.
I am sorry for this dumb post, maybe making avisynth spit out an error when non mod4 crop is used (until fixed) would stop some stupid mistakes. ;-)
I greatly appreciate your help Shodan, hope i will make more positive inputs as time and development goes by.
Ever since i tried avisynth and xvid i tottally discarded divx3.11 SBC
(lost that sharp detailed video i love and went head on to la creme de la creme!

(changes made)
crop(4,72,712,432)
LanczosResize(672,272)

MaTTeR
5th January 2003, 04:50
Originally posted by sh0dan
(I'm beginning to become more and more annoyed by how crop appear to don't care - throwing and error would avoid so many problems). You have a point, I'll be the first to vote that it throws an error:)