Log in

View Full Version : green color rips?


fulker
15th December 2003, 03:33
I sincerely apologise if this is the wrong forum for this sort of thing, but I just ripped a DVD and the resulting .avi files are only green. Kind of a grass-green color, with occasional flecks of white. Any idea what I did wrong?

Tuning
15th December 2003, 05:15
Hello fulker, and welcome to Doom9 forums.

What version of GK was used ?
What version DVD2AVI & mpegdec.dll was used ?
avisynth ?

And if possible post your log file.

fulker
15th December 2003, 20:41
Auto GK v 0.5
Avisynth v 2.5
not using DVD2AVI, as far as I can tell, but
DVD Decrypter v 3.1.7.0
VobSub 2.23
Can't find any file on my hard drives called mpegdec.dll
I'm too much of a n00b here to be allowed to post attachments, or I'd happily tack on my log file at this point.

Any idea how to proceed?

len0x
15th December 2003, 20:46
First, I'd suggest using avisynth 2.5.3 which comes with AutoGK installer (if you're not using it already).

Log file can be posted as it is in the post (remove those ugly SetCompData though please).

fulker
16th December 2003, 05:43
My bad, I am indeed using the AviSynth version that came with AutoGK.

The text of the log file follows. I know its quite long, so apologies again, but I'm sure you were expecting it to be long if you asked for it this way.
Thanks again for help.

---

[12/1/2003 10:30:50 PM] Input dir: D:\Documents and Settings\fulker\My Documents\My Pictures\naughty\dvd rips\raging river
[12/1/2003 10:30:50 PM] Output file: D:\Documents and Settings\fulker\My Documents\My Pictures\naughty\dvd rips\raging river\ragingriver.avi
[12/1/2003 10:30:50 PM] Audio: English
[12/1/2003 10:30:50 PM] Subtitles: none
[12/1/2003 10:30:50 PM] Target size: 1400Mb
[12/1/2003 10:30:50 PM] Started encoding.
[12/1/2003 10:30:50 PM] Demuxing and indexing.
[12/1/2003 10:33:09 PM] Analyzing source.
[12/1/2003 10:33:09 PM] Writing the following script to D:\Documents and Settings\fulker\My Documents\My Pictures\naughty\dvd rips\raging river\tmp\lastjob.vcf
===========================================================
VirtualDub.Open("D:\\Documents and Settings\\fulker\\My Documents\\My Pictures\\naughty\\dvd rips\\raging river\\tmp\\_.avs",0,0);
VirtualDub.RemoveInputStreams();
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(0);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetCompression();
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("D:\\Documents and Settings\\fulker\\My Documents\\My Pictures\\naughty\\dvd rips\\raging river\\tmp\\_.avi");
===========================================================
[12/1/2003 10:40:13 PM] Source has percentage of interlacing in motion areas: 72.55
[12/1/2003 10:40:13 PM] Source has percentage of telecined patterns: 7.05
[12/1/2003 10:40:13 PM] Source has percentage of progressive patterns: 14.75
[12/1/2003 10:40:13 PM] Source has percentage of interlaced patterns: 78.19
[12/1/2003 10:40:13 PM] Source is considered to be hybrid (mostly NTSC).
[12/1/2003 10:40:13 PM] Found 121980 frames
[12/1/2003 10:40:13 PM] Audio size: 97677312
[12/1/2003 10:40:13 PM] Overhead: 1448576
[12/1/2003 10:40:13 PM] Video Size: 1368880512
[12/1/2003 10:40:13 PM] Running compressibility test.
[12/1/2003 10:40:13 PM] Writing the following script to D:\Documents and Settings\fulker\My Documents\My Pictures\naughty\dvd rips\raging river\tmp\ragingriver_comptest.avs
===========================================================
LoadPlugin("D:\PROGRA~1\AutoGK\filters\mpeg2dec3dg.dll")
LoadPlugin("D:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("D:\PROGRA~1\AutoGK\filters\decomb.dll")
LoadPlugin("D:\PROGRA~1\AutoGK\filters\undot.dll")

function getOrder(clip c) {
order = GetParity(c) ? 1 : 0
return order }

movie = mpeg2source("D:\Documents and Settings\fulker\My Documents\My Pictures\naughty\dvd rips\raging river\tmp\ragingriver.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=40)
c_width = width(cropclip)
c_height = round(height(cropclip) / 0.911392405063291)
input_par = float(c_width)/float(c_height)
fixed_aspect = input_par > 1.4 ? 0.911392405063291 : 0.888888888888889
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
out_width = 704
out_height = round(float(out_width) / input_par)
hmod = out_height - (floor(out_height / 16 ) * 16)
out_height = (hmod > 8) ? (out_height + (16 - hmod)) : (out_height - hmod)
new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=40)
Telecide(order=getOrder(movie),guide=1,post=2).Decimate(mode=1,threshold=1.0)
Undot()
LanczosResize(out_width,out_height)
SelectRangeEvery(300,15)
===========================================================
[12/1/2003 10:40:14 PM] Writing the following script to D:\Documents and Settings\fulker\My Documents\My Pictures\naughty\dvd rips\raging river\tmp\lastjob.vcf
===========================================================
VirtualDub.Open("D:\\Documents and Settings\\fulker\\My Documents\\My Pictures\\naughty\\dvd rips\\raging river\\tmp\\ragingriver_comptest.avs",0,0);
VirtualDub.video.SetMode(1);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetRange(0,0);
VirtualDub.video.SetCompression(0x64697678,0,10000,0);
VirtualDub.video.SetCompData=(1208,"[text deleted]=");
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("D:\\Documents and Settings\\fulker\\My Documents\\My Pictures\\naughty\\dvd rips\\raging river\\tmp\\ragingriver_comptest.avi");
===========================================================
[12/1/2003 11:08:03 PM] Duration was: 27 minutes 49 seconds
[12/1/2003 11:08:03 PM] Speed was: 3.65 fps.
[12/1/2003 11:08:04 PM] Compressibility percentage is: 40.02
[12/1/2003 11:08:04 PM] Chosen width is: 512
[12/1/2003 11:08:04 PM] Predicted comptest value is: 75.66
[12/1/2003 11:08:04 PM] Running first pass.
[12/1/2003 11:08:04 PM] Writing the following script to D:\Documents and Settings\fulker\My Documents\My Pictures\naughty\dvd rips\raging river\tmp\ragingriver_movie.avs
===========================================================
LoadPlugin("D:\PROGRA~1\AutoGK\filters\mpeg2dec3dg.dll")
LoadPlugin("D:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("D:\PROGRA~1\AutoGK\filters\decomb.dll")
LoadPlugin("D:\PROGRA~1\AutoGK\filters\undot.dll")

function getOrder(clip c) {
order = GetParity(c) ? 1 : 0
return order }

movie = mpeg2source("D:\Documents and Settings\fulker\My Documents\My Pictures\naughty\dvd rips\raging river\tmp\ragingriver.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=40)
c_width = width(cropclip)
c_height = round(height(cropclip) / 0.911392405063291)
input_par = float(c_width)/float(c_height)
fixed_aspect = input_par > 1.4 ? 0.911392405063291 : 0.888888888888889
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
out_width = 512
out_height = round(float(out_width) / input_par)
hmod = out_height - (floor(out_height / 16 ) * 16)
out_height = (hmod > 8) ? (out_height + (16 - hmod)) : (out_height - hmod)
new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=40)
Telecide(order=getOrder(movie),guide=1,post=2).Decimate(mode=1,threshold=1.0)
Undot()
LanczosResize(out_width,out_height)
===========================================================
[12/1/2003 11:08:04 PM] Writing the following script to D:\Documents and Settings\fulker\My Documents\My Pictures\naughty\dvd rips\raging river\tmp\lastjob.vcf
===========================================================
VirtualDub.Open("D:\\Documents and Settings\\fulker\\My Documents\\My Pictures\\naughty\\dvd rips\\raging river\\tmp\\ragingriver_movie.avs",0,0);
VirtualDub.video.SetMode(1);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetRange(0,0);
VirtualDub.video.SetCompression(0x64697678,0,10000,0);
VirtualDub.video.SetCompData(1208,"[text deleted]=");
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("D:\\Documents and Settings\\fulker\\My Documents\\My Pictures\\naughty\\dvd rips\\raging river\\ragingriver.avi");
===========================================================
[12/2/2003 2:04:18 AM] Duration was: 2 hours 56 minutes 13 seconds
[12/2/2003 2:04:18 AM] Speed was: 11.54 fps.
[12/2/2003 2:04:18 AM] Expected quality of first pass size: 79.77
[12/2/2003 2:04:18 AM] Running second pass.
[12/2/2003 2:04:18 AM] Writing the following script to D:\Documents and Settings\fulker\My Documents\My Pictures\naughty\dvd rips\raging river\tmp\lastjob.vcf
===========================================================
VirtualDub.Open("D:\\Documents and Settings\\fulker\\My Documents\\My Pictures\\naughty\\dvd rips\\raging river\\tmp\\ragingriver_movie.avs",0,0);
VirtualDub.video.SetMode(1);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetRange(0,0);
VirtualDub.video.SetCompression(0x64697678,0,10000,0);
VirtualDub.video.SetCompData(1208,"[text deleted]=");
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.RemoveInputStreams();
VirtualDub.stream[0].SetSource("D:\\Documents and Settings\\fulker\\My Documents\\My Pictures\\naughty\\dvd rips\\raging river\\tmp\\RAGINGRIVER AC3 T01 2_0ch 192Kbps DELAY 0ms.ac3",0x00000203,0);
VirtualDub.stream[0].SetMode(0);
VirtualDub.stream[0].SetInterleave(1,500,2,0,0);
VirtualDub.stream[0].SetClipMode(1,1);
VirtualDub.stream[0].SetConversion(0,0,0,0,0);
VirtualDub.stream[0].SetVolume();
VirtualDub.stream[0].SetCompression();
VirtualDub.SaveAVI("D:\\Documents and Settings\\fulker\\My Documents\\My Pictures\\naughty\\dvd rips\\raging river\\ragingriver.avi");
===========================================================
[12/2/2003 4:59:21 AM] Duration was: 2 hours 55 minutes 2 seconds
[12/2/2003 4:59:21 AM] Speed was: 11.61 fps.
[12/2/2003 4:59:21 AM] Writing the following script to D:\Documents and Settings\fulker\My Documents\My Pictures\naughty\dvd rips\raging river\tmp\lastjob.vcf
===========================================================
VirtualDub.Open("D:\\Documents and Settings\\fulker\\My Documents\\My Pictures\\naughty\\dvd rips\\raging river\\ragingriver.avi",0,0);
VirtualDub.RemoveInputStreams();
VirtualDub.stream[0].SetSource(0x73647561,0,0);
VirtualDub.stream[0].SetMode(0);
VirtualDub.stream[0].SetInterleave(1,500,2,0,0);
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(0);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetCompression();
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.subset.AddRange(0,59618);
VirtualDub.SaveAVI("D:\\Documents and Settings\\fulker\\My Documents\\My Pictures\\naughty\\dvd rips\\raging river\\ragingriver.CD1.avi");
===========================================================
[12/2/2003 4:59:21 AM] Splitting video into: D:\Documents and Settings\fulker\My Documents\My Pictures\naughty\dvd rips\raging river\ragingriver.CD1.avi
[12/2/2003 5:00:56 AM] Writing the following script to D:\Documents and Settings\fulker\My Documents\My Pictures\naughty\dvd rips\raging river\tmp\lastjob.vcf
===========================================================
VirtualDub.Open("D:\\Documents and Settings\\fulker\\My Documents\\My Pictures\\naughty\\dvd rips\\raging river\\ragingriver.avi",0,0);
VirtualDub.RemoveInputStreams();
VirtualDub.stream[0].SetSource(0x73647561,0,0);
VirtualDub.stream[0].SetMode(0);
VirtualDub.stream[0].SetInterleave(1,500,2,0,0);
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(0);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetCompression();
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.subset.AddRange(59618,61906);
VirtualDub.SaveAVI("D:\\Documents and Settings\\fulker\\My Documents\\My Pictures\\naughty\\dvd rips\\raging river\\ragingriver.CD2.avi");
===========================================================
[12/2/2003 5:00:56 AM] Splitting video into: D:\Documents and Settings\fulker\My Documents\My Pictures\naughty\dvd rips\raging river\ragingriver.CD2.avi
[12/2/2003 5:02:28 AM] Finished encoding.

Tuning
16th December 2003, 07:30
Just a suggestion.........
What happened after a re-install of AutoGK ? (After re-starting) :)

Jukke
20th December 2003, 13:09
Originally posted by fulker
I sincerely apologise if this is the wrong forum for this sort of thing, but I just ripped a DVD and the resulting .avi files are only green. Kind of a grass-green color, with occasional flecks of white. Any idea what I did wrong?
Hi,
I ran into something similar this morning when previewing an encode in the "Save .AVS"-window, a green semi-transparent layer on top of the image. I used Lanczos resize and Field Deinterlace (no blend) on GK 0.28.7.2 with AviSynth 2.5.3.

But, when I changed Field Operation from Field Deinterlace (no blend) to anything else in the Field Operation-list, the green layer disappeared and the image became nice and clear again.

So, something is odd with Field Deinterlace (no blend)...

Perhaps this might guide you away from the green encodes you experienced.

Script as follows:
LoadPlugin("C:\Program\AV\GordianKnot\mpeg2dec3.dll")
LoadPlugin("C:\Program\AV\GordianKnot\undot.dll")
LoadPlugin("C:\Program\AV\GordianKnot\decomb.dll")
mpeg2source("C:\Parlamentet\Parlamentet 20031214.d2v")
crop(4,2,716,568)
FieldDeinterlace(blend=false)
LanczosResize(544,432)
Undot()

The source was an MPEG2 Interlaced PAL TV-capture to be encoded with XviD.

len0x
20th December 2003, 13:22
I see both cases are using decomb... might be its bug... while in GK you can try replacing decomb 5.1 with 5.0 just to check, in AutoGK you can't do anything if it's indeed decomb problem...

manono
21st December 2003, 05:57
Hi Jukke-

Try this to see if the problem goes away-switch the Crop and FieldDeinterlace lines like so:

LoadPlugin("C:\Program\AV\GordianKnot\mpeg2dec3.dll")
LoadPlugin("C:\Program\AV\GordianKnot\undot.dll")
LoadPlugin("C:\Program\AV\GordianKnot\decomb.dll")
mpeg2source("C:\Parlamentet\Parlamentet 20031214.d2v")
FieldDeinterlace(blend=false)
crop(4,2,716,568)
LanczosResize(544,432)
Undot()

Then either open it directly in VDubMod and scroll around, or run it in the Preview. The reason I make this suggestion (assuming it works), is that Interlaced sources need the Height to be cropped in multiples of 4. So in the future, when dealing with Interlaced sources, either put the Deinterlacer before the Crop, or make sure you crop in Mod 4. Please read this for more information (you want the YV12 Info):

http://www.avisynth.org/index.php?page=Crop

And for even more detail:

http://www.avisynth.org/index.php?page=DataStorageInAviSynth

Jukke
21st December 2003, 18:18
@manono and len0x
Originally posted by len0x
I see both cases are using decomb... might be its bug... while in GK you can try replacing decomb 5.1 with 5.0 just to check, in AutoGK you can't do anything if it's indeed decomb problem...
Guys,
It seems you are both right, I first tried manonos suggestion on switching the order on crop/deinterlace but with no success. Then I tried manonos suggestion on mod-4 on height for interlaced sources (as stated in the AviSynth docs) and things began to clear up, but not all the way. Finally tried len0x suggestion and replaced Decomb51 with Decomb50b16 (the only Decomb50 I could find) and everything was fine. Se table below:

Crop() Decomb51 Decomb50 b16 H mod-4
4,4,716,564 Fail OK Yes
4,2,716,568 Fail OK Yes
4,4,716,568 Fail OK Yes
2,2,718,570 Fail OK No
4,4,716,572 OK OK Yes
4,2,716,572 OK OK Yes
4,0,716,576 OK OK Yes

Decomb51 worked fine on some of the H mod-4 and failed on H mod-2, but why didn't it work on all H mod-4 (564 and 568)?
Decomb50b16 did on the other hand work on all resolutions including the H mod-2 item. OK, it was a beta and maybe that was something fixed in the final Decomb50.

However, now I have ways to handle Deinterlacing with no blend, and for that I thank you two.

len0x
21st December 2003, 19:06
ALL versions of decomb (releases and betas) can be found here:
http://neuron2.net/decomb/

it'd be nice to know when this particular problem was introduced...

P.S. if final 5.0 is ok, then it's safe to report this bug at avisynth forum as sh0dan did most of the modifications for 5.1 and help of neuron2 may not be required.

manono
22nd December 2003, 00:02
Hi-

Interesting. Thanks for the detailed report. I've been working with some interlaced material recently (but not captures), but haven't seen the problem unless I forget to crop Mod 4 (I also like to deinterlace after the crop, for that little extra boost in speed). I'm using Decomb 510b1.

And you might try out the KernelDeInt (http://neuron2.net/kerneldeint/kerneldeint.html) deinterlacer to see if you like it any better. It'll leave static areas alone, and only deinterlace the moving portions of the frame. The only thing you really have to do is to tweak the Threshold a bit, as the default is a bit low in most cases. Put on Map=True to see what's getting deinterlaced.

Jukke
22nd December 2003, 20:13
Originally posted by len0x

it'd be nice to know when this particular problem was introduced...

P.S. if final 5.0 is ok, then it's safe to report this bug at avisynth forum as sh0dan did most of the modifications for 5.1 and help of neuron2 may not be required. [/B]
You're right, this issue seems more related to AviSynth than GK, I'll post in the AviSynth forum from now on.

But just a final note on the subject, I checked some more versions of Decomb and chose a more structured set of crop()-samples and finally checked the corresponding AR-error values.

The tests indicate that:

It is the sign of the AR-error value that trig the green image.
The H mod-4 criterion doesn't affect the greenish behavior at all.
The phenomenon is introduced between decomb500 and decomb510b1.

Se table below:

Crop() H mod-4 50b16 50 51b1 51 AR-error
4,2,716,534 No OK OK OK OK -1.4
4,2,716,536 Yes OK OK OK OK -1.8
4,2,716,538 No OK OK Fail Fail 1.8
4,2,716,540 Yes OK OK Fail Fail 1.4
4,2,716,542 No OK OK Fail Fail 1
4,2,716,544 Yes OK OK Fail Fail 0.6
4,2,716,546 No OK OK Fail Fail 0.3
4,2,716,548 Yes OK OK OK OK -0.1
4,2,716,550 No OK OK OK OK -0.4
4,2,716,552 Yes OK OK OK OK -0.8
4,2,716,554 No OK OK OK OK -1.2
4,2,716,556 Yes OK OK OK OK -1.5
4,2,716,558 No OK OK OK OK -1.9
4,2,716,560 Yes OK OK Fail Fail 1.5
4,2,716,562 No OK OK Fail Fail 1.2
4,2,716,564 Yes OK OK Fail Fail 0.8
4,2,716,566 No OK OK Fail Fail 0.5
4,2,716,568 Yes OK OK Fail Fail 0.1
4,2,716,570 No OK OK OK OK -0.2
4,2,716,572 Yes OK OK OK OK -0.6
4,2,716,574 No OK OK OK OK -0.9

@manono
Thanks for the tip on KernelDeInt, I've just briefly checked it out, the map=true feature is nice, definitely worth looking in to. Just for me to get an initial value to begin with, what threshold value do you regularly use?

manono
22nd December 2003, 22:46
Hi-

I don't think it'll make any difference, because your earlier tests seem to indicate it doesn't, but when I said to crop Mod 4, I meant that both the top and bottom crops should be multiples of 4, and not just the remaining height. Is that confusing? For example, none of the examples in your second set of tests would qualify, because the top number is always 2. I believe that's what the links meant when they said Interlaced material in YV12 should be cropped Mod 4. But based on your tests, something does seem broken with the Decomb 5.1x versions. And I'm not asking that you rerun the tests, as you've done quite enough work already trying to track down the problem.

As for KernelDeInt, the default Threshold is 10, but I always start with 50, and tweak from there. I have found that I sometimes can go as high as 90 or so to make sure that the static areas are left untouched.

I offered you KernelDeInt because I later realized that my suggestion was completely useless in your case, and that len0x was much closer to the mark, and I wanted to make it up to you. :)

Wilbert
23rd December 2003, 12:17
1) What processor do you have?

2) Just curious. Does the following script work:

LoadPlugin("C:\Program\AV\GordianKnot\mpeg2dec3.dll")
LoadPlugin("C:\Program\AV\GordianKnot\undot.dll")
LoadPlugin("C:\Program\AV\GordianKnot\decomb.dll")
mpeg2source("C:\Parlamentet\Parlamentet 20031214.d2v")
crop(4,4,716,568,align=true)
FieldDeinterlace(blend=false)
LanczosResize(544,432)
Undot()

sh0dan
23rd December 2003, 17:49
Wilbert - you beat me to it with align = true. If it helps, there is a bug somewhere. I'll look at the source to see if there is any strange stuff in there.

Edit 1: Weird stuff - chroma interpolation hasn't been touched from 5.0 -> 5.1

Edit 2: I cannot reproduce. What is your input size?

Edit 3: (ok - got a bit of an idea) Which AviSynth version (exactly) are you using? Try using the latest 2.5.4 alpha which can be downloaded from the second link in my sig. A blitter function for MMX only (non-ISSE) machines which had slight problems has been removed. It could be the cause.

manono
24th December 2003, 17:24
Hi-

I just got the exact same problem myself, from an NTSC DVD rip. I was IVTC'ing, but the credits weren't being deinterlaced properly, so I decided to put on FieldDeinterlace(Blend=False) just for the credits. The credits themselves were OK (they're scrolling white on black), but there was a colored animated logo near the very end, and as soon as it got to that, the whole screen turned green, with the logo visible behind the green "film", even though that logo took up only a small part of the screen. So, I reverted to Blend=True, and it was OK again. Here's part of the script:

LoadPlugin("F:\DivX Stuff\GKnot\2.5Plugins\Decomb.dll")
mpeg2source("D:\LooneyTunes4\Doc\Doc.d2v")
Telecide(Order=1,Guide=1,Post=2,Hints=True,Dthresh=4).Decimate(5)
Trim1=Trim(0,71585).Crop(8,0,-8,-0).LanczosResize(512,384)
Trim2=Trim(71586,0).Crop(8,0,-8,-0).FieldDeinterlace(Dthreshold=4).BilinearResize(512,384)
Trim1+Trim2

I'm using Decomb 510b1. I commented out the other filters I was using. I tried Align=True with no luck. I installed AviSynth 2.5.4 Alpha per your suggestion (and made a Version.avs to confirm it was being used), but still no luck. I switched to FieldDeinterlace(Blend=True), and it was OK again. I'm using a P4 processor, if that makes any difference. Let me know if there's anything else you'd like me to try, but it looks to me like there's something in Decomb's FieldDeinterlace that's causing it.

sh0dan
25th December 2003, 01:18
Bingo - it's only voodoo ;)

I finally reproduced the problem.

ok - it's the famous "MMX is missing EMMS statement". Or at least that's a qualified guess. Try inserting Limiter(0,255,0,255) after fielddeinterlace. (it will not touch your material at all) It removes the issue here.

Reminds I that I should make AviSynth eliminate this problem between all filters, but resetting it between each filter. (And furthermore that I should make limiter check if it actually has to do anything ;) )

ps. Anyone with a compiler out there, or can you wait a few days for a fixed/recompiled filter?

manono
25th December 2003, 02:04
Hi sh0dan-

Yes, adding Limiter(0,255,0,255) after FieldDeinterlace(Blend=False) fixed the problem here also.

I don't know anything about compiling, so I can't help there. No hurry on the fix. I hope I can find it when you finish it either on this thread, or in the AviSynth Forum. Maybe you can leave a note here when the fixed version is available. I'm sure that Jukke and len0x will also want to know where it can be found.

I'm sure you've heard this before, but the work you do with AviSynth is greatly appreciated by all of us.

len0x
25th December 2003, 09:12
Glad the problem's been found.
Thanks sh0dan!

merry Xmas everyone :)

Jukke
26th December 2003, 20:58
@sh0dan
Yep, adding Limiter(0,255,0,255) after FieldDeinterlace(blend=false) fix the problem for me too. Great work tracking down the problem! I'm using AviSynth 2.53 Build: Nov 11 2003 [19:24:33]

@manono
Sorry, didn't know that both the top and bottom crops should be multiples of 4, not just the remaining height. Now I know better, thank you:)

@Wilbert
Like manono I use a P4 processor. Also tried Align=True with no luck.

@all
You guys are great, putting in all this effort during Christmas while others (like me) spend the time gaining weight and relaxing on the couch:)

flipdon
8th January 2004, 20:40
@sh0dan
Thank you for figuring out the solution to this annoying problem!!


Can someone update the thread once the proper fixes have been implemented in AviSynth? Just so i know when I can stop using Limiter(0,255,0,255) in my scripts...

len0x
8th January 2004, 20:44
there is new alpha of 2.5.4 from 30 Dec (link in sh0dan's signature). I think it should be fixed there. Can somebody try it ?

fulker
23rd January 2004, 23:59
Wow. Thanks for doing all the work, guys, but as I said a long time ago, I'm a n00b. Can anyone direct me as to how to fix this error from square one, assuming I'll need detailed instructions? Or is it better to wait for an update of one of these pieces of software to come out? I did try uninstalling GK and reinstalling the non-beta v 0.8, but it sounds like the problem wasn't with GK to begin with.

Cheers

len0x
24th January 2004, 00:57
if you installed all of the components of 0.89 update then you should have everything updated ready. Just test it...

flipdon
24th January 2004, 01:26
I'm using the AVS 2.5.4 from 30 Dec and I continue to get the error when i don't use Limiter(0,255,0,255) after using fielddeinterlace. Once again, it's no big deal... just would like to know when it's not necessary anymore.

len0x
25th January 2004, 15:57
what about 2.5.4 RC 2 ?

flipdon
25th January 2004, 21:04
nope... using the new 2.5.4 RC2 and it's still green without Limiter. btw, i don't use GK. just using AviSynth by itself, just to let you know.

edit: the official AviSynth 2.54 also having this problem... Limiter is still necessary.

len0x
30th January 2004, 19:32
Those using AutoGK can try version 0.90 beta to see if the problem went away (as I put delimiter after decomb's filters)

apjorz
1st April 2004, 00:45
FYI if it helps, I'm having the same problem (all video turning green after field deinterlace(no blend)), adding Limiter(0,255,0,255) does the job. That may be related to my cropping (maybe not mod4), I didn't test that yet.

I'm using:

- GK 0.28.7
- MPEG2Dec3 for Avisynth 2.5 1.0.1.0
- Latest Avisynth alpha available
- DVD2AVI 1.77.3dg1.0.0RC2

The AVS:

LoadPlugin("C:\PROGRA~1\GORDIA~1\mpeg2dec3.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\undot.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\decomb.dll")
mpeg2source("drive:\path\filename.d2v")
crop(18,0,684,476)
FieldDeinterlace(blend=false)
LanczosResize(608,464)
Undot()

The source is an interlaced NTSC dvd of an old tv show (ripped with DVDdecrypter). Field Deinterlace (without blend=false) works fine without Limiter. SmartBob gives another error, but this is not the topic here.

Please tell me if I can be of any help finding the cause of this or if I'm doing something wrong! :]

manono
1st April 2004, 03:51
Hi-

This isn't a GKnot/AutoGK issue, but an AviSynth issue.

You can try and put the FieldDeinterlace line before the Crop line and see if that helps. Otherwise, stick with adding Limiter to the script, or use a different Deinterlacer.

But I am curious as to what the error was when using SmartBob.

apjorz
1st April 2004, 09:45
Hi!

I did not quote the error, because I was afraid I could find the solution elsewhere in the forum and didn't want to be off-topic :). But since you ask: the media player window turns very slim (628x56), and the video that plays is actually an error message in red: "Script error: DGBob does not have a named argument "mode" (C:\progra~1\gordia~1\Preview.avs, line 41)"

My line 41 is: "DGBob(order=1,mode=0)".

The error message is mentioned here (http://forum.doom9.org/showthread.php?s=&threadid=70587).

By the way, I don't really intend to use Smar Bob (or is that good? ;)), I just wanted to do a test file with all the deinterlacers available from the GUI and thought I'd ask.

len0x
1st April 2004, 10:54
FYI decomb 5.1.1 compiled by sh0dan doesn't have this problem...

manono
1st April 2004, 11:52
Right. I forgot about that, len0x. Thanks. Maybe it was a GKnot problem, because from the Change Log (http://forum.doom9.org/showthread.php?s=&threadid=63271), it doesn't seem like Decomb 5.1.1 is included yet. Maybe next version, or maybe it snuck in there, without being listed.

apjorz-

Are you sure you have everything up to date, AviSynth (2.5.4) and GKnot (0.28.7.2)? Because DGBob does have a Mode now. The earlier versions used Single=True/False for the same thing. If you don't feel like upgrading, you can use Single=True instead of Mode=0.

And the new versions of GKnot also have KernelDeinterlace included, and it's quite a good Smart Bob deinterlacer, and better than DGBob.

apjorz
1st April 2004, 20:08
My mistake, I must admit :). I didn't look on the project page, just the homepage, so I didn't have the .2 update. I've got it now. Sorry for wasting your time. My Avisynth is the latest alpha I could find yesterday on the sourceforge page. With Gk updated, SmartBob works OK. Field deinterlace (no blend) is still green.

OFF: is it worth playing with the threshold parameter in kerneldeinterlace? Do you think I can get better results than with FD? I know there is no universal answer and no "best" filter, but what do you think of these two compared?

Thanks!

manono
1st April 2004, 22:25
Hi-

Get Decomb 5.1.1 (http://cultact-server.novi.dk/kpo/avisynth/decomb511.zip) and see if your green screen problems go away.

Yes, it's always a good idea to mess with the KernelDeinterlace threshold to make sure that no more of a frame gets deinterlaced than necessary, and that what has to be deinterlaced actually gets deinterlaced. The default usually deinterlaces more than necessary. You can add Map=True to see what's being deinterlaced.

And as long as you're testing out deinterlacers, you might want to check out AlignFields (http://forum.doom9.org/showthread.php?s=&threadid=72621&highlight=alignfields). It's not included in GKnot, so you'd have to throw the .dll in your GKnot folder, and edit the .avs to use it (load the plugin and add the AlignFields line). Be sure to read the doc. Even if you decide not to use it, it's full of good information.

apjorz
2nd April 2004, 00:17
Thank you, I'll read these things. The AlignFields info page looks very interesting.

apjorz
2nd April 2004, 19:21
Originally posted by manono
Get Decomb 5.1.1 (http://cultact-server.novi.dk/kpo/avisynth/decomb511.zip) and see if your green screen problems go away.


All the previews are correct with the new decomb! Thanks! :)