Log in

View Full Version : Field Editing Question


erydian
17th July 2004, 19:45
I am currently working on IVTC'ing a troublesome anime source. While I am not new to manual IVTC (most of the IVTC I have done has actually been manual) I am fairly new to Avisynth scripting.

I have a segment following a scene change in the episode I am working on that I believe suffers from a misplaced field. Analysis of the fields comprising the first six frames revealed the following, where "X" represents the field I believe is misplaced:

Even--X A A B C D
----------------------------------
Odd---A B C C D E

Following this is a very recognizable and constant pattern of match failures that I find resolve themselves if I drop the "X" field. However, any attempt to remove the "X" field seems to halve the vertical resolution of every even field. This results in jagged edges throughout the entire episode when the fields are recombined later.

Is it possible to edit individual fields in this manner without affecting their vertical resolution? I've done some forum searching, and I've looked over the Avisynth manual, but I think I must be missing something. Knowing me, it's probably obvious, but I'm afraid I'm nearing my wit's end. :)

This is the Avisynth code I've been using (I am running Avisynth 2.5):
a= assumetff().separatefields().selecteven()
DeleteFrame(a, 30703)
DoubleWeave
Telecide(order=1, guide=0, post=1)

I have also tried this, but it produces similarly unsatisfactory results:

a= assumetff().separatefields().selecteven()
x = trim(a, 0, 30702)
y = trim(a, 30704, 0)
x + y
DoubleWeave
Telecide(order=1, guide=0, post=1)

Any advice on this subject would be greatly appreciated. :)

stickboy
17th July 2004, 23:23
You halved the vertical resolution because after you did SeparateFields, you selected only the even fields and threw away the odd ones. Try this:AssumeTFF()
SeparateFields()
evens = SelectEven().DeleteFrame(30703)
odds = SelectOdd()
Interleave(evens, odds)
AssumeFieldBased()
AssumeTFF()
Weave()

erydian
18th July 2004, 08:06
Thank you very much, that worked! :)