Skip to content

Instantly share code, notes, and snippets.

@xezpeleta
Last active January 26, 2024 16:40
Show Gist options
  • Save xezpeleta/231e3722f0af7f0d43724a3ebaeea822 to your computer and use it in GitHub Desktop.
Save xezpeleta/231e3722f0af7f0d43724a3ebaeea822 to your computer and use it in GitHub Desktop.
Video stabilization with Dockerized FFMPEG
#
# ffmpeg shipped with Ubuntu 18.04 doesn't have libvidstab enabled
# That's why I'm using a dockerized ffmpeg
#

docker run -it -v $(pwd):/tmp jrottenberg/ffmpeg -i /tmp/myvideo.mp4 -vf vidstabdetect=shakiness=5:show=1 /tmp/dummy.mp4
docker run -it -v $(pwd):/tmp jrottenberg/ffmpeg -i /tmp/myvideo.mp4 -vf vidstabtransform,unsharp=5:5:0.8:3:3:0.4 /tmp/stabilized-output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment