mgh
3rd June 2007, 16:13
I used the following function to get slow motion
Function slowdown( clip clip, int c ) {
# c is the slowdown factor
fn=FramerateNumerator (clip)
fd=FramerateDenominator(clip)
b=fd*c
source=assumefps(clip,fn,b).killaudio()
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)
return source.MVFlowFps2(backward_vec,forward_vec,backward_vec2,forward_vec2,num=fn,den=fd,idx=1,idx2=2)
}
To my surprise, I found that the script also did excellent denoising.
Could one get temporal denoising without blending of frames by using above function as follows?
slowdown(2)
selectodd()
assumefps(original fps)
Function slowdown( clip clip, int c ) {
# c is the slowdown factor
fn=FramerateNumerator (clip)
fd=FramerateDenominator(clip)
b=fd*c
source=assumefps(clip,fn,b).killaudio()
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)
return source.MVFlowFps2(backward_vec,forward_vec,backward_vec2,forward_vec2,num=fn,den=fd,idx=1,idx2=2)
}
To my surprise, I found that the script also did excellent denoising.
Could one get temporal denoising without blending of frames by using above function as follows?
slowdown(2)
selectodd()
assumefps(original fps)