"Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearLI
Linux Video Editing ctag 2mo ago 100%

ffmpeg video stabilization demo with drone footage

video.berocs.com

I edited this video with Pikimov! It worked well, and was easy to use once I had chromium up and running.

This post is a follow up to vid.stab.

For general camera wobble it corrects nicely, though if the shaking is moderate the correction leads to some nauseating wiggling effect in the resulting file. I'm still looking for a way to fix that.

Here's the current shell script I use on the footage:

#!/bin/bash

ARG_COUNT=$#
INPUT=$1
VID="${INPUT%.*}"
EXT="${INPUT##*.}"

if [ $ARG_COUNT -ne 1 ]
then
	echo "Usage: ./stabilize.sh input.MP4"
	exit 1
fi

ffmpeg -i "$VID.$EXT" -vf vidstabdetect=shakiness=10 -f null -
ffmpeg -i "$VID.$EXT" -vf vidstabtransform=smoothing=30:zoom=5:crop=black "$VID.stab10_z5.$EXT"
#ffmpeg -i "$VID.stab.$EXT" -filter:v scale=1920:-1 -c:a copy "$VID.stab.small.$EXT"

8
0
Comments 0