Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 16th June 2010, 21:32   #1  |  Link
D9JK
Registered User
 
Join Date: Feb 2010
Posts: 41
Avisynth: frame interpolate + stitch clips together

Hello all,

I just recently started learning how to use Avisynth, and here's something I'm currently trying to figure out:


If the code (not written by me, by the way) for motion smoothing / frame interpolation is this...

Code:
LoadPlugin("C:\Program Files\AVISynth\Plugins\mvtools.dll")
source 		= DirectShowSource	("1.mov")
oSource		= source
source		= AssumeFPS		(source,20)
backward_vec	= source.MVAnalyse	(isb = true, truemotion=true, pel=2, idx=1)
forward_vec	= source.MVAnalyse	(isb = false, truemotion=true, pel=2, idx=1)
cropped		= source.crop		(4,4,-4,-4) # by half of block size 8
backward_vec2	= cropped.MVAnalyse	(isb = true, truemotion=true, pel=2, idx=2)
forward_vec2	= cropped.MVAnalyse	(isb = false, truemotion=true, pel=2, idx=2)
fSource		= source.MVFlowFps2	(backward_vec,forward_vec,backward_vec2,forward_vec2,num=60,idx=1,idx2=2)
fSource		= AssumeFPS		(fSource,60)
return fSource

... and the code for stitching multiple video clips together is something like this (if I'm not mistaken)...

Code:
DirectShowSource("1.mov")
d1=last

DirectShowSource("2.mov")
d2=last

DirectShowSource("3.mov")
d3=last

d1++d2++d3

... then how would I combine the two?

In other words, I'm trying to make Avisynth first motion smooth / frame interpolate all video clips, and then stitch them together into a single, long clip.


I already tried something with my (very) limited knowledge, but the results are not really worth mentioning. But I assume I might have to change things like "source" and "fsource" (and "cropped"?) into "source1 and "fsource1" for each clip, so that they don't interfere with each other, when processing the next clips, right? Or maybe not, you tell me.

It's the block of code required by the frame interpolation process that is confusing me, but this is probably a cakewalk for the Avisynth veterans.
D9JK is offline   Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:43.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.