Log in

View Full Version : Slit scan (fotofinish)


doggyjumper
2nd December 2012, 14:20
Based on http://forum.doom9.org/showthread.php?t=140622 I played with making a kind of photofinishshot. Works great.

wanted to add some timemarkers (lines) every x frames in the end result, tried various way (like cropping and adding border on individual frames etc) but got lost (not able to ) . Any suggestions ?

Video=AviSource("C:\file.avi")

Video=SeparateFields(Video)
Video=Bob(Video)

Video=ConvertToYV12(Video).MSU_FRC(20, "fast")
Video=ConvertToRGB(Video) # avoid cropping restrictions

DeMorse(Video,1,1)
Subtitle("FotoFinish",align=7)
ImageWriter("C:\finishtest\finishx", 0, 0, "jpg")

function DeMorse(clip c, int p, int f)
{
DeMorse2(Crop(c, 0, 0, p, 0), c.Trim(f, 0), p, f)
}

function DeMorse2(clip left, clip right, int p, int f)
{
left = StackHorizontal(left,right.Crop(250, 0, p, 0))
right.Framecount <=10 ? left : DeMorse2(left, right.Trim(f, 0), p, f)
}

Gavino
2nd December 2012, 15:41
wanted to add some timemarkers (lines) every x frames in the end result, tried various way (like cropping and adding border on individual frames etc) but got lost (not able to ) . Any suggestions ?
Perhaps just adding a grid of vertical lines to the final result would suffice:
http://avisynth.org/vcmohan/Grid/Grid.html