Log in

View Full Version : line jitter only in a small area, can I "manually" fix it?


Infrid
25th March 2012, 11:05
Hi, I've just captured a dozen of old VHS with poor VCR and capture card. I'm not too picky about video quality but this line jitter is the same in every frame in all videos. So it should be easly fixable.

I've checked around for some plugin/script but they are too overkill, I need only to repair that area. I'd like to give a fixed offset for that lines, Is there a command/plugin for avisynth for doing this?

http://69.imagebam.com/download/TC6gIBQZZ5DEieO838k5QA/18149/181487632/before.png

thanks

jmac698
26th March 2012, 02:08
Sure,

ImageReader("C:\project001a\before.png")
blockshift(171,6,-.5)

function blockshift(clip v, int starty, int height, float xshift) {
v
top=crop(0, 0, 0, starty-1)
mid=crop(0,starty,0,height).ShiftVideo(xshift, 0)
bot=crop(0,starty+height-1,0,0)
stackvertical(top,mid,bot)

}

function ShiftVideo(clip v, float hshift, float vshift) {#Shift a video in any direction, hshift>0 shifts right, vshift>0 shifts down, use multiples of 2
v
bilinearresize(width, height, hshift, vshift, width, height)
}

Infrid
26th March 2012, 11:45
perfect! many thanks jmac698 :D