Created
June 8, 2020 21:29
-
-
Save derde/fe00e2d6e6826225a89b9ead45ca83ad to your computer and use it in GitHub Desktop.
ffmpeg video stabiliser with a bit of slow dynamic zoom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
for i in "$@" ; do | |
trf=transform.$$.trf | |
ffmpeg -i "$i" -vf "vidstabdetect=shakiness=5:accuracy=15:result=$trf" "$i.tmp.mp4" | |
rm "$i.tmp.mp4" | |
ffmpeg -i "$i" -vf "vidstabtransform=$trf:optzoom=2:maxangle=0.1,unsharp=5:5:0.8:3:3:0.4" "$i.unshake.mp4" | |
rm $trf | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment