0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【CLI】時間指定をして動画をGIFに変換する方法

Posted at

動画をGIFに変換するには ffmpeg コマンドを使用します。

インストール

以下のコマンドを実行してインストールします。

brew install ffmpeg

使用方法

以下のようにコマンドを実行するとMP4をGIFに変換できます。

ffmpeg -i input.mp4 output.gif

開始時間・終了時間を指定する

開始時間や終了時間を指定するには -ss および -t を使用します。

ffmpeg -ss 00:00:00.000 -i input.mp4 -t 00:00:15.000 output.gif

上記の場合、開始時間は 0 秒、終了時間は 15 秒となります。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?