View Single Post
Old 17th August 2010, 07:59   #2  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,406
There are a couple of ways to do this in a single pass. One is to remove the bottom however many pixels only for the purposes of the field matching. From the TFM readme:
Quote:
y0/y1 -

These define an exclusion band which excludes the lines between y0 and y1 from
being included in the field matching decision. An exclusion band can be used
to ignore subtitles, a logo, or other things that may interfer with the matching.
y0 sets the starting scan line and y1 sets the ending line, all lines in between
y0 and y1 (including y0 and y1) will be ignored. Set y0 equal to y1 to disable.
The entire original resolution will be outputted. The other is by using a clip2. From the TDecimate readme:
Quote:
clip2 -

Allows specification of a second clip from which to take frames. Metric calculation
and decimation are still done on the input clip, but the frames that tdecimate
returns are from clip2. Clip2 must have the same number of frames are the input clip
and be in YUY2 or YV12 colorspace (it does not have to have the same colorspace as
the input clip).
So, something like this works:
Code:
Clip2=AVISource("E:\Path\To\Video.avi")
PClip=Clip2.Crop(0,0,0,-60)#Adjust for the height of the subs
TFM(PClip)
TDecimate(Clip2)
You crop for the purposes of the field matching, but output uncropped frames.
manono is offline   Reply With Quote