Log in

View Full Version : ApplyRange and FieldDeinterlace Problem


DoW
28th May 2003, 05:52
Background:
I am attempting an encode of ZoE: Idolo and tried to use decomb at first, but it would never catch all the frames that were interlaced unless I used very strong settings, and then it would end up deinterlacing too much, ZoE being a very wierd source.

I ended up deciding to do a manual IVTC using TMPEG and TPRIVTC. Even with this, some frames I could not fix using different field selections, so I decided that I would apply FieldDeinterlace() post TPRIVTC to decomb the frames (and only the frames, because as I said, the settings that I had to use were very strong ie, threshold=2)that still possessed combing (There are quite a few). I was going to use trim, but that would make the AVS inordinantly huge and also trim has the +1 frame bug. So I wanted to use Applyrange().

Problem:
When I try calling applyrange() in the following manner:
ApplyRange(0, 252, "FieldDeinterlace", full=false, show=true, threshold=4, dthreshold=4)
I get an error stating "Script Error: Invalid Arguements to function ApplyRange()"
I was wondering if I was doing something wrong or if apply range cant take arguements in the form of xxxxxx=y?
Any suggestions as to how I can improve my IVTC of ZoE is much appreciated.

Notes: Yes, I am very new to encoding, this being my first encode and all. Make any suggestions that you feel I should know, as Im still very much in the learning phase.

Guest
28th May 2003, 12:35
Don't know about ApplyRange().

But it sounds to me like you are using FieldDeinterlace() wrongly. Are you fully aware of the significance of the distinction between threshold and dthreshold?

Defiler
28th May 2003, 14:27
Remember that you always have to specify a clip name in ApplyRange (even if it's just "last")
That being said, I just tried to make this work, and totally failed. I couldn't even make ApplyRange call FieldDeinterlace in default mode, with no parameters.
Sadly, there are no usage examples in the documentation. Just examples for Animate.

Wilbert
28th May 2003, 14:38
The problem could be that FieldDeinterlace isn't an internal filter. I guess, the right answer is below :) Try:

ApplyRange(0, 252, "FieldDeinterlace", false, 4, 4, true, false, false, "", true, false)

(I hope I put them in the correct order.)

sh0dan
28th May 2003, 15:03
It should be solved by not using named parameters.

Defiler
28th May 2003, 15:09
No "nameless" parameters are documented for FieldDeinterlace, so I guess you're out of luck, DoW.

sh0dan
28th May 2003, 15:35
You just have to specify them in the correct order:

full,threshold,dthreshold,blend,chroma,ovr,show,debug

Defiler
28th May 2003, 15:40
Hey.. Cool. Learn something new in every thread here.

DoW
28th May 2003, 18:26
@neuron2
As far as I know, threshold is the detection limit for interlacing, and dthreshold is the strength at which that which is detected as combed is deinterlaced (feel free to correct), ie, threshold lets you detect, dthreshold is how big the bat is that you smack it with when you find it. The settings which I used are the bare minimum which will remove the combing from the intro credits (found after much MUCH trial and error). I really am waiting with bated breath for the next gen decomb to see if it will help clear up these problems (cause lets face it, manual IVTC is a pain:D)
The reason I am using FieldDI afterwards is because sometimes there are ~2-3 bad frames in a row (5-6 bad fields usually) and i have to make a field selection somewhere, so I pick the least messed up field (which usually has a little bid of combing or bleed from another field) and then I make note of said frame and use FieldDI on it later. Id post a pic, but I have no means to host it.
If Im doing this wrong, please correct me.

@sh0dan
Thanks, was always wondering what the default parameter order was in FieldDI, thanks