Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make a Gif #9

Open
raineydavid opened this issue Aug 12, 2018 · 1 comment
Open

Make a Gif #9

raineydavid opened this issue Aug 12, 2018 · 1 comment
Labels
FFMPEG question Further information is requested

Comments

@raineydavid
Copy link
Owner

Describe the question
Gif from a movie or images?

@raineydavid raineydavid added question Further information is requested FFMPEG labels Aug 12, 2018
@raineydavid
Copy link
Owner Author

Prerequisite

$ brew install ffmpeg

Answer

https://www.atrixnet.com/animated-gifs/

# This makes a 10 second gif
$ mkdir gif
$ ffmpeg -i YOUR_MOVIE.mpg -an -r 10 -y -s 640x480 gif/capture%03d.png # *see footnote
$ cd gif
$ for file in *png; do echo converting $file ...; convert $file `basename $file .png`.gif; done
$ convert -delay 10 cap*gif -loop 0 anim.gif
$ convert -layers Optimize anim.gif anim_optimized.gif
$ mv anim_optimized.gif ../
$ cd ../
$ rm -rf ./gif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FFMPEG question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant