stabilize a video with ffmpeg libvidstab - RayGutt/PersonalWiki GitHub Wiki
Very effective but CPU-time costly.
# check if the vidstab lib is installed
ffmpeg -version | grep libvidstab
# analyze vid to prepare stabilization
ffmpeg -i video_file.mp4 -vf vidstabdetect -f null -
# actually stabilize video
ffmpeg -i video_file.mp4 -vf vidstabtransform=smoothing=30:input="transforms.trf" stabilized_video_file.mp4
Result : https://youtu.be/6G7WmXfKiFA