-
Ttyrec+tty2gif/ttygif: after a long time, the generation of gif is too slow and the effect is not very good -
LICECap tool screen recording generation gif: the effect is not satisfactory and the image quality is too poor -
Ttystduio: The image quality is not very satisfactory, and the generated file is very large -
The qucktime video recording mov+ffmpeg to gif+convert provided with the mac optimizes the gif size: the final solution -
The qucktime provided with the Mac is very powerful. You can directly select the area where you want to record the screen and record it directly. Finally, you can generate a mov file..
#!/ bin/sh palette="/tmp/palette.png" filters="fps=$4,scale=$3:-1:flags=lanczos" ffmpeg -v warning -i $1 -vf "$filters,palettegen" -y $palette ffmpeg -v warning -i $1 -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y $2
mov2gif xxx.mov xxx.gif 800 1
convert xxx.gif -fuzz 5% -layers Optimize xxx2.gif