Created
December 2, 2018 06:07
-
-
Save moshfeu/1f09825aa507bdb32a17a40790b8f4ed to your computer and use it in GitHub Desktop.
videos and gifs manipulation in terminal
This file contains hidden or 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
// convert mov to gif | |
ffmpeg -i video.mov -vf palettegen palette.png | |
ffmpeg -i video.mov -i palette.png -lavfi paletteuse=bayer_scale=4:dither=bayer -r 18 -s 320x399 video.gif | |
// crop gif | |
// https://stackoverflow.com/a/14036766/863110 | |
convert input.gif -coalesce -repage 0x0 -crop WxH+X+Y +repage output.gif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment