Created
August 13, 2020 22:05
-
-
Save ryanrhee/701ae6d6ad01a5f6efd89edb060c4486 to your computer and use it in GitHub Desktop.
screen recording to gif
This file contains 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
#!/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