Last active
September 10, 2016 07:20
-
-
Save nobane/5a123dcfecaa9b15ac8cb0a953c27479 to your computer and use it in GitHub Desktop.
deshakify: simple script interface to use ffmpeg/vidstab to smooth (deshake) videos.
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 | |
input=$1 | |
trf=".$1.trf" | |
extension="${input##*.}" | |
filename="${input%.*}" | |
output="${filename}_deshaked.${extension}" | |
/usr/bin/ffmpeg -i $input -vf vidstabdetect=shakiness=10:accuracy=15:result="${trf}" -f null - | |
/usr/bin/ffmpeg -i $input -vf vidstabtransform=input="${trf}" $output | |
rm $trf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment