Log in

View Full Version : anti-shaking plugin advice


supernater
7th August 2010, 04:17
I have a android phone that takes pretty good video, but the shaking is something I would like to address. Is there a good anti-shaking filter out there for avisynth? I've been using this...

mdata=DePanEstimate(range=1,trust=1.0,dxmax=8,dymax=8)
DePanStabilize(data=mdata,cutoff=0.5,dxmax=8,dymax=8,method=1,mirror=15)
crop(8,8,-8,-8)
lanczosresize(720,400)

It works okay but there is still too much shaking for my tastes. Is there something out there better?

scharfis_brain
7th August 2010, 08:49
have a look on deshaker.
Deshaker also is able to address the rolling shutter issue of CMOS based cameras.

Gser
7th August 2010, 11:52
Hold your phone steady (use both hands) and don't make sharp turns or other movements - ease into them.

scharfis_brain
7th August 2010, 11:56
yeah, avoiding shakes is better then having to remove them afterwards.

you also might raise the total weight if your camera by sticking it to a brick or a bottle of water ;)

supernater
7th August 2010, 14:34
Hold your phone steady (use both hands) and don't make sharp turns or other movements - ease into them.

Ha ha ha ha! Will do!

have a look on deshaker.

I looked at deshaker but I don't understand some of the avisynth parameters. Some examples of it being used in avisynth look like this...

deshaker("8|1|30|4|1|0|1|0|640|480|1|2|1|400|400|400|1500|4|1|1|2|5|40|300|4|C:\\Deshaker.log|0|0|0|0|0|0|0|0|0|0|0|0|0|1|15|15|5|15|0|0|30|30|0|100|0|0|1|0|0")

Is there a tutorial/documentation that shows how to use this in avisynth?

2Bdecided
7th August 2010, 20:34
If you're going to use deshaker, use it in VirtualDub. No point making your life even harder!

The small values of dxmax and dymax that you're using for DePanStabilize are probably stopping it from doing that much. Have you read the instructions? If there's "still too much shaking" then chances are you're not using the right settings. DePanStabilize does work. With the right settings, it can make the movement as smooth as you want. It's limitations lie elsewhere.

Cheers,
David.

um3k
8th August 2010, 02:40
You also may want to look in to MDePan, a DePanEstimate alternative which is part of MVTools 2.

supernater
8th August 2010, 12:12
@2Bdecided

After a while of playing around with deshaker I decided you were correct, it works just fine in vdub so I just used vdub as a framserver and everything worked out okay. I found that with a higher dxmax/dymax (around 40) that the shaking stopped significantly, I ended up using those settings and then cropping to get rid of the mirroring around the border (basically I used the same model that videoFred used to stop shaking in him 8mm film script). You were correct, the results are actually pretty good.

@um3k

Thanks for the tip, I will run a test using MDepan right now.

Thanks again!

scharfis_brain
8th August 2010, 12:33
depan and mdepan have problems when big objects pass the screen. They will simply follow the biggest pbject on the screen, or they will average all motion of the screen.
This is bad and will cause weird movements.

Deshaker tries to avoid this as much as possible, by dropping vectors that don't belong to the main movement.