LoginSignup
7
6

More than 5 years have passed since last update.

macで画面キャプチャしたアニメーションGIFの作り方

Last updated at Posted at 2016-08-08

ffmpegとimagemagickでつくれるので、
homebrewでインストールする
brew install ffmpeg imagemagick
直接ダウンロードはここ
https://ffmpeg.org/
http://www.imagemagick.org/script/index.php

手順は
1. QuickTime Playerで録画する。(ファイル>新規画面収録)
2. 録画した動画をffmpegで連番画像へ変換(-i 動画名 -s 変換後ファイルサイズ -r フレームレート
ffmpeg -i capture.mov -s 320x568 -r 10 images/%03d.png
3. 連番画像をconvertでgifへ変換(-delay フレーム間隔(0.01s) -layers (optimizeがいいらしい) -loop ループ回数(無制限)
convert -delay 10 -layers optimize -loop 0 images/*.png capture.gif

こんな感じで出来る。
onsenui_menu.gif

7
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
6