LoginSignup
0
1

More than 5 years have passed since last update.

LinuxでささっとGIF動画を作る

Last updated at Posted at 2017-12-10

目的

ちょっといい感じのgif(ジフ)動画をLinuxでささっと作りたい。

やったこと

ここにあった方法では Past duration 0.999992 too largeなどとワーニングがでて動画の前半がきれてしまった。

StackOverflowを参考に下記のコマンドを打てばうまくいった。

shell
mkdir -p frames
ffmpeg -i input.mp4 -vf fps=15,format=rgb8 frames/ffout%03d.png
convert -loop 0 frames/ffout*.png output.gif

format=rgb24とするととってもきれいな動画を作れるが、mp4などと違って時間方向の圧縮がないため結構動画サイズが大きくなるので注意。

0
1
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
0
1