Skip to content

Instantly share code, notes, and snippets.

@derde
Created June 8, 2020 21:29
Show Gist options
  • Save derde/fe00e2d6e6826225a89b9ead45ca83ad to your computer and use it in GitHub Desktop.
Save derde/fe00e2d6e6826225a89b9ead45ca83ad to your computer and use it in GitHub Desktop.
ffmpeg video stabiliser with a bit of slow dynamic zoom
#! /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