Skip to content

Instantly share code, notes, and snippets.

@tripu
Last active February 14, 2016 09:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tripu/dc3abe3f3664db7bfc69 to your computer and use it in GitHub Desktop.
Save tripu/dc3abe3f3664db7bfc69 to your computer and use it in GitHub Desktop.
How to image-stabilise a video on Linux

How to image-stabilise a video on Linux

Recipe

$ sudo apt-get install transcode
$ transcode -J stabilize -i <INPUT>
$ transcode -J transform=smoothing=<FRAMES> -i <INPUT> -o <OUTPUT> -y <MODULE>

Notes

  • transcode -J stabilize will create file <INPUT>.trf.
  • smoothing=15 will correct shakes up to 1 s in a 30-FPS video.
  • man transcode_export to see list of encoder modules to pass to option -y (I have used xvid and xvid4).

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment