Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- # makes a gif out of a quicktime .mov screen recording
- # usage - 'makeGif <foo>'
- function makeGif() {
- ffmpeg -i $1.mov -vf 'scale=-1:-1:flags=lanczos,palettegen' $1-palette.png;
- ffmpeg -i $1.mov $1-palette.png -filter_complex 'scale=-1:-1:flags=lanczos[x];[x][1:v]paletteuse' $1.gif
- }
Add Comment
Please, Sign In to add comment