View Full Version : Problems with presumably crop
Petzku
14th March 2004, 15:31
I'm not entirely sure where the problem lies, but it seems to have something to do with crop function of avisynth.
Every time i try to crop a source (2 different ripped dvds) the colors of video get somehow corrupted. Only external plugin i used in the scripts was decomb. But in further testing it seems it did not matter whether it was there or not.
I've tried AVS 2.5.2, 2.5.4 and 2.0.8. I'll post the scripts used when i get home.
I'm sorry if this thread is in a wrong forum.
Manao
14th March 2004, 15:35
Without an example of a problematic script, we can only make guesses.
I would bet that your issue is not in avisynth, but with XviD. Until XviD 1.0 RC3, there was a bug which made color offsets when the resolution of a clip was dividable by 4, but not by 8. Can you check if your issue is due to that ?
Petzku
14th March 2004, 18:46
I don't think the problem is XviD because I hadn't even compressed the video yet. Source was in both cases a ripped dvd processed to a dv2 file with 1.77 and 1.76 dvd2avi and then decoded with mpeg2dec3.dll for avisynth.
Manao
14th March 2004, 18:56
XviD is used to output the picture inside Virtual Dub, and it is at this point that the problem occurs ( not while encoding ).
Petzku
14th March 2004, 21:45
I still can't quite understand how XviD could have anything to do with this.
http://koti.mbnet.fi/petzku/friends.JPG
This how it looks with cropping
script used is following:
#ASYNTHER MPEG2Source (mpeg2dec3.dll)
MPEG2Source("C:\friends\friends.d2v")
telecide(order=1,guide=2,post=4,blend=true)
crop(8,8,-4,-4)
commenting out telecide makes no difference.
Without the crop colors are fine.
so how could this problem have anything to do with xvid?
Manao
14th March 2004, 22:14
When avisynth provides the data to Virtual Dub, it sent in uncompressed YV12. However, Virtual Dub doesn't understand that format by itself, it needs a decoder. XviD provides such a decoder, included with the XviD codec. When you install XviD, that decoder for YV12 data is installed and used by Virtual Dub to output on the screen ( and to any codec you would use ) the video.
Till the latest release of XviD, the YV12 was bugged with non mod 8 resolution ( as it is in your case ). It is corrected in RC3, so install it.
To convince you, try also a crop(8,8,-8,-8), you'll see it's working.
Edit : I saw your picture, I'm now absolutely sure that it is your problem
Petzku
15th March 2004, 14:32
Ok that's definedly the problem. But another funny thing is that the XviD used is already RC3. Koepi's 29022004 to be exact. We'll for now I'll just crop it to MOD8 then.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.