Skip to content

Instantly share code, notes, and snippets.

@ryanrhee
Created August 13, 2020 22:05
Show Gist options
  • Save ryanrhee/701ae6d6ad01a5f6efd89edb060c4486 to your computer and use it in GitHub Desktop.
Save ryanrhee/701ae6d6ad01a5f6efd89edb060c4486 to your computer and use it in GitHub Desktop.
screen recording to gif
#!/bin/bash
# assumes the screen recording is pr.mov
# first, make a palette:
ffmpeg -y -i pr.mov -vf fps=10,palettegen palette.png
# use palette to make the gif (scaled to width:700)
ffmpeg -i pr.mov -i palette.png -filter_complex "fps=10,scale=700:-1,paletteuse" pr.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment