Skip to content

Instantly share code, notes, and snippets.

@nobane
Last active September 10, 2016 07:20
Show Gist options
  • Save nobane/5a123dcfecaa9b15ac8cb0a953c27479 to your computer and use it in GitHub Desktop.
Save nobane/5a123dcfecaa9b15ac8cb0a953c27479 to your computer and use it in GitHub Desktop.
deshakify: simple script interface to use ffmpeg/vidstab to smooth (deshake) videos.
#!/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