PDA

View Full Version : Tswitch Usage


larkin
28th December 2008, 11:36
Hello,

I am using Tdeint and reviewing the readme for V1.1. It mentions the use of Tswitch at the bottom of the readme.

It is listed here:

mpeg2source()
tdeint(tshints=true)
tswitch(c1=last,c2=last.sharpen())


Could someone explain the syntax and useage for Tswitch to me?

Gavino
28th December 2008, 13:26
TSwitch is described in the same file (tdeint.htm), just before the examples.
TSwitch is able to read hints from TDeint indicating which frames were deinterlaced or not deinterlaced. Based on these hints, TSwitch then delivers frames from one of two clips (c1 or c2). If the input frame was not deinterlaced, then the corresponding frame from clip c1 is returned. If the input frame was deinterlaced, then the corresponding frame from clip c2 is returned.

To use TSwitch, you must set tshints=true in TDeint and place TSwitch immediately after TDeint in your Avisynth script.

larkin
29th December 2008, 05:21
Awesome thanks for your help. I only had a printed version and I was missing a page. :) I cant wait to try it out.