https://gist.github.com/dergachev/4627207
brew install ffmpeg

  1. 用 ScreenShot 或 Quicktime Player 录制视频, 保存位 in.mov
  2. ffmpeg -i in.mov -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > out.gif

Notes on the arguments:

  • -r 10 tells ffmpeg to reduce the frame rate from 25 fps to 10
  • -s 600x400 tells ffmpeg the max-width and max-height
  • --delay=3 tells gifsicle to delay 30ms between each gif
  • --optimize=3 requests that gifsicle use the slowest/most file-size optimization

相关文章:

  • 2021-12-18
  • 2021-04-24
  • 2021-10-14
  • 2021-10-26
  • 2021-12-12
  • 2021-11-24
  • 2022-01-16
猜你喜欢
  • 2021-11-24
  • 2022-02-10
  • 2021-10-21
  • 2022-01-04
  • 2021-12-12
  • 2021-10-27
  • 2021-10-28
相关资源
相似解决方案