Skip to content

Instantly share code, notes, and snippets.

@Keita-N
Last active August 29, 2015 14:23
Show Gist options
  • Save Keita-N/4c50ebd384806303a386 to your computer and use it in GitHub Desktop.
Save Keita-N/4c50ebd384806303a386 to your computer and use it in GitHub Desktop.
# ffmpegで動画のキャプチャを取得
ffmpeg -i input.mp4 -s 320x180 -r 10 -f image2 output-%03d.jpeg
# ImageMagickで画像を連結
convert -append output-*.jpeg conncat.jpeg
@Keita-N
Copy link
Author

Keita-N commented Jun 16, 2015

ffmpeg オプション

  • -i 入力ファイル
  • -s 出力画像のサイズ format: 'wxh'
  • -r fps 秒あたりのフレームレート

ImageMagick オプション

convert -append input1 input2 .... output

  • -append 縦に連結
  • +append 横に連結

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment