Stabilize this video

Hey there

Here is a 10 second clip of driving down a dirt road in the middle of nowhere in central Zambia. It’s not the most stable of recordings.

If the attachment doesn’t work, right-click on it and select “copy address”, then open that address.

The best I could do to stabilize it using ffmpeg’s vidstab is the following:

That was achieved using ffmpeg-4.2.1 with this command:

vid="in.mp4"; \
ffmpeg -hide_banner -loglevel error \
    -i "$vid" \
    -vf "format=yuv420p,vidstabdetect=shakiness=10:accuracy=10" \
    -f null - \
&& ffmpeg -hide_banner -loglevel error \
    -i "$vid" \
    -vf "format=yuv420p,vidstabtransform=smoothing=30:relative=1:zoom=0,unsharp=5:5:0.8:3:3:0.4" \
    -c:v libx264 -preset medium -crf 25 -c:a aac -b:a 128k \

Can you do better? I’m particularly interested in what the Blender=savvy folk can do, and if you could share your Blender project so we may learn.

That’s pretty consistent with my results from trying to electronically stabilize A6300 video.

The key would be to have a stabilization algorithm that was aware of a camera’s rolling shutter behavior and could thus detect/unroll things, as what you see is exactly what I remember - Eliminate the obvious shake and the remaining rolling shutter artifacts are REALLY evidence.

Lowering the accuracy (higher value) might make it slightly smoother.


Is that the parameter you meant? In that case, lowering accuracy = lowering the value.

Sorry, I got it backwards. :blush: