by mehrdadn · 6y ago · 0 comments
Update: Just tried it. It seems to do some kind of blurring to smooth the vibrations over several frames instead of trying to cancel the shaking by inverse-transforming the frame with respect to the shake. I think I've tried this in my experiments before -- and I guess it's the difference between "de-shake" and "stabilization"? Sadly it doesn't really seem better to my eyes sadly, but thanks for the help anyway.
Perhaps you just need to increase the smoothing parameter. I found the default of 10 way too low, and needed around 50-100 for my very shaky 50 fps home videos.
See here: https://ffmpeg.org/ffmpeg-filters.html#vidstabdetect-1
Maybe your ffmpeg build doesn’t have it? Also try removing the log level parameter.
>which is then used by the vidstabtransform filter.
The first pass is meant to find the rotation, then I assume the next pass cancels it out.
https://www.youtube.com/watch?v=I6E6InIQ76Q&t=9s
They stay stable in the center whereas the rest of the frame is transformed. This necessarily requires introducing black/white crop frames into the image with all kinds of shapes and sizes, but it turns out incredibly smooth and doesn't lose any of the frame. It also requires no noticeable blurring at all from what I can tell. But that doesn't seem to be quite what's happening with these commands though.