Log in

View Full Version : Help with MVFlowFPS2


Tailschao
18th June 2009, 19:07
I'd like to preface this by saying that pretty much everything about the usage of MVTools goes a few miles over my head. I've tried on so many different occasions to get to grips with it, but no matter how much I read the documentation I just cannot get my head around it.

Now, I shot some stuff that I want to try and slow-motion down. I deliberately shot it in 50i at a shutter speed of 1/1000 to make sure there was as much motion in the source, and that the movement was as sharp as possible to aid in the interpolating of new frames.
Untouched sample - http://www.mediafire.com/download.php?zjbgjmowmje
Yes, I deliberately shot it that rotation. For lack of a wide-angle adapter, it was the best I could do.

I copied and pasted a motion interpolation script from another thread:
source = last
backward_vec = source.MVAnalyse(isb = true, truemotion=true, pel=2, idx=1,blksize=8)
forward_vec = source.MVAnalyse(isb = false, truemotion=true, pel=2, idx=1,blksize=8)
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,blksize=8)
forward_vec2 = cropped.MVAnalyse(isb = false, truemotion=true, pel=2, idx=2,blksize=8)
source.MVFlowFps2(backward_vec,forward_vec,backward_vec2,forward_vec2,num=50,idx=1,idx2=2
Now, all I know about that is that obviously MVanalyse is analysing the frames before and after, and FlowFps2 is then constructing the new ones from that data. And that 'num=50' is the output frame rate.
Now, what the crop line does I have no idea so I took it out (and corrected all the calls from 'cropped' to 'source', etc), and I changed num=50 to num=100 because I already had 50p after bobbing and I want higher rates for super-slow.
So my final script looked like this:
mpeg2source("X:\Input.d2v")
tdeint(mode=1) #bob to 50p
spline36resize(1920,1080) #fix aspect ratio
turnright() #fix rotation
source = last
backward_vec = source.MVAnalyse(isb = true, truemotion=true, pel=2, idx=1,blksize=8)
forward_vec = source.MVAnalyse(isb = false, truemotion=true, pel=2, idx=1,blksize=8)
backward_vec2 = source.MVAnalyse(isb = true, truemotion=true, pel=2, idx=2,blksize=8)
forward_vec2 = source.MVAnalyse(isb = false, truemotion=true, pel=2, idx=2,blksize=8)
source.MVFlowFps2(backward_vec,forward_vec,backward_vec2,forward_vec2,num=100,idx=1,idx2=2)
assumefps(25)
Now, aside from pretty much crashing my computer ("Access violation 0x0", that's out-of-memory isn't it?), the new frames created of the slow-moving person were lovely and smooth, but the frames created of the club were horrible:
Downsized script 1 output sample - http://www.mediafire.com/download.php?n3nz1lnywyy
Original frame - http://img197.imageshack.us/img197/8255/image0001a.jpg
Interpolated frame - http://img194.imageshack.us/img194/5342/image0000.jpg

I'm hoping this can be fixed by tweaking the settings (probably of the analysing somewhere). The club looks sharp enough at 1/1000 to make it possible to interpolate accurately I think. But as I said I understand very little about how to use these plugins, so my question is - can anyone offer any advice as to how to improve this?

Thanks

videoFred
19th June 2009, 07:12
If you want to create slow motion, you must change the play speed first with 'assumeFPS(10) for example. This will slow down the play speed of your clip. The 'num' and 'den' parameters are for the final output frame rate and this is not the same as play speed. You must set those parameters according to what you want for the output.

For example: if you want 59,94fps for the output, you must set num=60000, den=1001. Or num=30000, den=1001 for 29,97fps.

PS: please try Fizicks new MVTools2, it works with a 'super' clip now and the interpolation is even better now IMHO.

Fred.

scharfis_brain
19th June 2009, 08:19
Now, what the crop line does I have no idea so I took it out (and corrected all the calls from 'cropped' to 'source', etc)
Sorry, but: RTFM!

the crop belongs to the high quality overlapping block motion search. so don't just delete it!
Since you have deleted it, that's the cause for the bad quality you're experiencing!

Also you won't be able to get a decent motion interpolated result out of this footage at all.
The moving objects simply are too small and too fast moving.

videoFred
19th June 2009, 09:35
I have the clip here now.... It's impossible to slow it down because the golfstick is moving way to fast. The difference between two frames is to high for decent interpolation.

Cross posting: Sharfis has just noticed this too :p

Fred.