-
Notifications
You must be signed in to change notification settings - Fork 0
How the GIF is Done?
Maxim Zaitsev edited this page Apr 14, 2019
·
2 revisions
I use the method described by Colten Jackson in his article.
Steps:
-
Set up webserver on localhost. The server sends to its clients index.html, which is a copy of the site's home page. Example of a configuration file:
# cat ws.conf document-root /home/max/Documents/repos/simon/site/ log /tmp/ws.log user nobody group nobody host 127.0.0.1 # ./webserver ws.conf
-
Include the following line to /etc/hosts:
127.0.0.1 simonstalenhag.se
-
Use
netem
to slow downlo
interface (see this):sudo tc qdisc add dev lo root handle 1: htb default 12 sudo tc class add dev lo parent 1:1 classid 1:12 htb rate 56kbps ceil 128kbps
-
Prepare a folder for the demonstration. It contains a link to the script and a snapshot.
-
Prepare terminal (transparency, title, size) and a background image.
-
Prepare commands to execute during a recording.
ffmpeg -video_size 695x335 -framerate 5 -f x11grab -i :0.0+145,105 output.mp4
-
Cut a second from the begining and on the end:
ffmpeg -i output.mp4 -ss 00:00:1 -t 27 cutted.mp4
-
Make a palette.png:
ffmpeg -i cutted.mp4 -filter_complex "palettegen" palette.png
-
Create a gif:
ffmpeg -i cutted.mp4 -i palette.png -filter_complex "paletteuse" res.gif
-
Download here https://github.com/7aitsev/simon/issues/4
-
Update README.md