leonid_makarovsky
16th December 2004, 17:45
Hi,
I'm a bit confused at what point ComplementParity should be used.
I have PAL AVI (Huffyuv codec - top field first).
A0top/A0bot A1top/A1bot A2top/2Abot
What I want to do is I want to throw away A1bot and A2top and join the rest so it becomes A0top/A0bot A1top/A2bot
So would this code work?
clip =....
joint = Trim(clip, 1, 2)
joint = ComplementParity(joint) # do I need it?
joint = SeparateFields(joint)
joint = Trim(joint, 0, 0) ++ Trim(joint, 3, 3)
joint = Weave(joint)
joint = ComplementParity(joint) # do I need it at this point
return joint
Thanks.
--Leonid
I'm a bit confused at what point ComplementParity should be used.
I have PAL AVI (Huffyuv codec - top field first).
A0top/A0bot A1top/A1bot A2top/2Abot
What I want to do is I want to throw away A1bot and A2top and join the rest so it becomes A0top/A0bot A1top/A2bot
So would this code work?
clip =....
joint = Trim(clip, 1, 2)
joint = ComplementParity(joint) # do I need it?
joint = SeparateFields(joint)
joint = Trim(joint, 0, 0) ++ Trim(joint, 3, 3)
joint = Weave(joint)
joint = ComplementParity(joint) # do I need it at this point
return joint
Thanks.
--Leonid