Log in

View Full Version : Special Field Blending


killerhis
28th August 2008, 21:53
I have a question... :)

I have a source (PAL, interlaced) and shot at a shutterspeed of 1/25 (so basicly it takes 25 frames a second).

Technically I shoud have "progressive" frames, but the problem is, is that the "buttom field" of the prevoius frame should be combined with the "top field" of the current frame.

So basicly I want to write a Avisynth scrip that takes the buttom field" of the prevoius frame and replace it with "buttom field" of the current frame (so that I have progressive frames).

So my problem is, I have no idea how to do it in avisynth, can anyone help (with an example script)?

Thanks

HIS

Poof
28th August 2008, 22:17
you mean you want to deinterlace your video? Load it into vdub then video->filters->add->deinterlace, though you would rather try this filter http://neuron2.net/smart/smart.html as it doesnt suck as hard. Set what colorspace your video should be in, as well as any other options under the video menu, then file-> save as .avi.

avisynth is for people who like to recreate the wheel cause it makes them feel like LEET HAXXORS. Ive gotten better results using Alparysoft Deinterlace filter than anything avisynth could offer.

Nightshiver
28th August 2008, 22:22
avisynth is for people who like to recreate the wheel cause it makes them feel like LEET HAXXORS. Ive gotten better results using Alparysoft Deinterlace filter than anything avisynth could offer.

That was rather rude and untrue. No one here feels like "leet haxxors" as that is not what scripting is.

killerhis
28th August 2008, 22:24
Yes, but basicly I want to shift the fields by 1

If you deinterlace a footage, it usually takes the top field of the current frame and allign the bottom field of the current frame to it..

I want to use the bottom field of the previous frame and replace the bottom field of the current frame.

HIS

Guest
28th August 2008, 22:31
No, Poof, he doesn't want to deinterlace his video.

A simple solution is to use field matching:

telecide(post=0)

You can also do it this way if the pattern is constant throughout (I'm sure there are other approaches; this is just what my brain conceived after two beers):

assumetff
separatefields
trim(1,0)
assumebff
weave

Zwitterion
28th August 2008, 22:33
If your video is phase shifted, try:
TFM()
You'll need TIVTC v1.0.5 (http://bengal.missouri.edu/~kes25c/).

edit: whoops, neuron2 was faster :)

killerhis
28th August 2008, 22:57
Thank you neuron2 & Zwitterion... both functions work like a charm... perfect :)