LoginSignup
250
144

.mov を gif に変換【Mac】

Last updated at Posted at 2018-09-26

概要

ffmpegを使います

なければhomebrewでインストール
brew install ffmpeg

Homebrew - macOS用パッケージマネージャー
FFmpeg - 動画の変換

.mov → .gif

コマンドライン実行例
# ffmpeg -i Input.mov -r FrameRate OutputFilename.gif

ffmpeg -i 画面収録_299U-08-09_1.93.N.mov -r 24 gamen_test1.gif
確認
open -a /Applications/Google\ Chrome.app gamen_test1.gif                

変換がうまくいかないときのコマンドオプション例

以下の情報を参考にコマンド実施したら変換できた。

HDR動画1080p、通常フレームレート場合
YouTubeオススメのffmpegのエンコードオプション設定例

1080p変換サンプル
ffmpeg -i input1.mp4 -movflags +faststart -c:v libx264 -profile:v high -level:v 4.0 -b_strategy 2 -bf 2 -flags cgop -coder ac -pix_fmt yuv420p -crf 23 -maxrate 10M -bufsize 20M -c:a aac -ac 2 -ar 48000 -b:a 384k output2.mp4

参考

250
144
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
250
144