Log in

View Full Version : Strange lines, like interference, happening on a interlaced source.


pablobhz
12th January 2008, 00:01
Hello.
I'm working on a source here, and i got a strange thing when i zoom the image 200% in order to check for halos.

Take a look:

[img=http://img85.imageshack.us/img85/8986/samplepo3.th.png] (http://img85.imageshack.us/my.php?image=samplepo3.png)

On normal image showing (no zoom), i don't see any problems.
Also, i'm gonna post the script i'm currently using.

MPEG2Source("D:\MOETAN2\VIDEO_TS\Moetan 03.d2v",cpu=4,info=3)
ColorMatrix()
tfm(d2v="D:\MOETAN2\VIDEO_TS\Moetan 03.d2v").tdecimate(mode=1)
Crop(2, 0, -2, -0)


As its possible to see on this printscreen i took from AVSP, there are strange lines on its arm. The source is anime, yeah. =)

Also, using this post, i would like to know, an method, or if someone could give me a hint about when to choose the best deinterlacing method. Or maybe a thread here, at doom's9 that teach those things. I know i need to code more on avisynth in order to know those details, but i'm sure that some type of sources have their deinterlacing method "pre-defined".

Thanks a lot for the help, if anyone needs a sample just tell me.
Pablo

Additional details:
d2v is with "honor pulldown flags". Also, best results came when i use:

interp = separatefields().selecteven().EEDI2(field=1)
deinted = tdeint(edeint=interp,order=1,field=1)
tfm(clip2 = deinted,order=1)

But i keep having this problem.

Guest
12th January 2008, 00:02
Fix your title ASAP or you risk a rule 9 strike. Thank you.

foxyshadis
12th January 2008, 22:45
That just means the chroma isn't getting perfectly deinterlaced, could be a telecine issue, or a bit of post-telecine editing. Try Vinverse.

Unearthly
13th January 2008, 00:19
Try putting ColorMatrix after TFM.

pablobhz
13th January 2008, 15:25
Fixed.
Thank you all.
I'm using only TDeint() + Decimate()

It worked fine, the chroma problem foxyshadis mentioned, isn't happening anymore, its okay.

Unearthly:
What you said had no effect dude,i was still having problems.

Now what happens is that i have...hmm , how can i say this... random sharpening.
Doesn't happen in all frames, only some.
Actually, i changed the AVS. The strong filter i'm using is vmtoon . Maybe sharpening is coming from deinterlacing method i'm using, since FieldDeinterlace(blend=false), gives you a lot of sharpening.

Well, there the code goes.

LoadPlugin("D:\AVSPlugins\ws\warpsharp.dll")
LoadPlugin("D:\AVSPlugins\TIVTC\TIVTC.dll")
LoadPlugin("D:\AVSPlugins\TDeint\tdeint.dll")
LoadPlugin("D:\AVSPlugins\DGIndex\DGDecode.dll")
LoadPlugin("D:\AVSPlugins\ColorMatrix2\ColorMatrix\ColorMatrix.dll")
LoadPlugin("D:\AVSPlugins\FFT3DFilter\FFT3DFilter.dll")
#MaskTools 1.5.8
LoadPlugin("D:\AVSPlugins\MaskTools\mt_masktools.dll")
#MaskTools 2.0
LoadPlugin("D:\AVSPlugins\MaskTools2\mt_Masktools.dll")
LoadPlugin("D:\AVSPlugins\RemoveGrain\RemoveGrain.dll")
LoadPlugin("D:\AVSPlugins\nnedi\nnedi.dll")
Import("D:\AVSPlugins\LimitedSharpenFaster\LimitedSharpenFaster.avs")
Import("D:\AVSPlugins\VMToon\vmToon-v0.74.avsi")
Import("D:\AVSPlugins\DehaloAlpha\DeHalo_alpha.avsi")
Import("D:\AVSPlugins\HybridFuPP\HybridFuPP.avsi")
LoadPlugin("D:\AVSPlugins\Deen\Deen.dll")
LoadPlugin("D:\AVSPlugins\HybridFuPP\unfilter_25_dll_20030116\UnFilter_Avisynth_2.5_Alpha\UnFilter.dll")
LoadPlugin("D:\AVSPlugins\RemoveGrain\Repair.dll")
LoadPlugin("D:\AVSPlugins\HybridFuPP\AddGrain\AddGrain.dll")
LoadPlugin("D:\AVSPlugins\HybridFuPP\mvtools-v1.8.5.1\mvtools.dll")
LoadPlugin("D:\AVSPlugins\aWarpSharp\aWarpSharp.dll")
Import("D:\AVSPlugins\FastLineDarkenMOD\FastLineDarkenMOD.avsi")
MPEG2Source("D:\MOETAN2\VIDEO_TS\Moetan 03.d2v",cpu=4,info=3)
TDeint()
Decimate()
######################Working best. TDeint + Decimate
#interp = separatefields().selecteven().EEDI2(field=1)
#deinted = tdeint(edeint=interp,order=1,field=1)
#tfm(clip2 = deinted,order=1)
#Above method didn't worked very well. Gave me the chroma problem.
ColorMatrix()
vmtoon(sharpen=false,thinning=0,strength=50,luma_cap=203,threshold=8)
Crop(2, 0, -2, -2)
#dehalo_alpha(rx=1.5,ry=1.5)
#LimitedSharpenFaster()

Guest
13th January 2008, 15:43
since FieldDeinterlace(blend=false), gives you a lot of sharpening That makes no sense at all. The only image manipulation in FieldDeinterlace(blend=false) is an interpolation, which is an averaging operation. There is no way that any sharpening could be produced by that filter.

pablobhz
13th January 2008, 20:55
That makes no sense at all. The only image manipulation in FieldDeinterlace(blend=false) is an interpolation, which is an averaging operation. There is no way that any sharpening could be produced by that filter.

Ok neuron2.
I'm just sayng what always happen with me.
Anw, i'm also posting a screenshot about what i am talking about. :)

[img=http://img142.imageshack.us/img142/1625/9293hi4.th.png] (http://img142.imageshack.us/my.php?image=9293hi4.png)
Frame 9293

[img=http://img142.imageshack.us/img142/2081/9294kk2.th.png] (http://img142.imageshack.us/my.php?image=9294kk2.png)
Frame 9294

You can see the difference. On frame 9293, the image is with some great sharpening. At frame 9294, image is with some normal sharpening.
With normal, i mean not something that its hard to be fixed, just something normal that you can fix with some sharpening filter. btw i'm using vmToon, with the parameters:

vmtoon(sharpen=false,thinning=0,strength=50,luma_cap=203,threshold=8)

vmToon makes my image better. Also i'm not using now any denoiser, something like it, just vmtoon .

THanks
PAblo

Note: I tried to change "sharpen=true" on vmtoon, but i'm still with the same variation.


MPEG2Source("D:\MOETAN2\VIDEO_TS\Moetan 03.d2v",cpu=4,info=3)
TDeint()
Decimate()
vmtoon(sharpen=true,thinning=0,strength=50,luma_cap=203,threshold=8)
ColorMatrix()
Crop(2, 0, -2, -2)

Guest
14th January 2008, 00:39
FieldDeinterlace() does not sharpen. Period. You must be confused.

pablobhz
14th January 2008, 00:59
Okay, okay.
I won't insist on it, since i don't have sufficient knowledge to talk about ^^

anw
Any ideas about the problem i am having ?
And l8r i will test fielddeinterlace again, and if i see something strange i will post a screenshot =)

Thanks
Pablo.

Leak
14th January 2008, 01:34
Gah... that first image of yours doesn't contain sharpening, it contains aliasing ("stairstepping") because the deinterlacer interpolated every second line.

In essence, it threw out every other line and made up new lines in their spot, but that simply makes the lines somewhat blockier since it's far from perfect. Sure, you could perceive that as "sharpening", but it looks ugly and has nothing to do with contrast-enhancing (i.e. real "sharpening") per se.

pablobhz
15th January 2008, 22:08
Gah... that first image of yours doesn't contain sharpening, it contains aliasing ("stairstepping") because the deinterlacer interpolated every second line.

In essence, it threw out every other line and made up new lines in their spot, but that simply makes the lines somewhat blockier since it's far from perfect. Sure, you could perceive that as "sharpening", but it looks ugly and has nothing to do with contrast-enhancing (i.e. real "sharpening") per se.

Okay thanks.
Well, always learning ^^
Anything you would suggest please ?
I think this is being caused due to the de-interlacing method i'm using.