DeJitter


Author V. C. Mohan
Date 15 Aug 2014
EMail: mohanvc

Some vhs tapes have time sync problems, and the rows exhibit severe jitter. This plugin examines the specified window of each of the rows and tries to find the amount by which the pixels are out of alignment, adds the sync signal width and shifts, to put them in correct alignment. Dark scenes with luma less than 50 or so may give erroneous results. The resulting voids at the right ends of the rows are greyed out or end color extended.

RGB32, RGB24, YUY2 and YV12 (other Planar formats with 2.6 version) formats are supported. In case of RGB the minimum shift value determined for red green and blue colors is used and for YUY2 and Planar formats the Y value is used to determine shift required. The last determined shift value can be used in case determination fails


Details of parameters
Description Name Type Limits Default
Input clip clip none
maximum jitter in pixels jmax integer within clip, >3 32
threshold value for detection th integer 1 to 255 80
sync signal width wsyn integer 0 to frame width-jmax 10
color to be extended or greyed out into blank area extend boolean true for extend last pixel value false
use last determined value if failed on this scan line uselast boolean true for use last value false

#Usage examples:-
DeJitter(last,jmax=40,th=80, wsyn=8, extend=true)

Below is an example of output On left input:

To my index page down load plugin To Avisynth