ffmpeg video stabilization demo with drone footage
ffmpeg video stabilization demo with drone footage
video.berocs.com FFMPEG vid.stab demo with drone footage
PeerTube, an ActivityPub-federated video streaming platform using P2P directly in your web browser.
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"
0
comments