LoginSignup
1
2

More than 3 years have passed since last update.

Twitterにあげる用の動画をffmpegで処理する備忘録

Posted at

毎回忘れるのでメモ

動画の形式

ブラウザからアップロードできる動画の解像度と縦横比を教えてください。
- 最小解像度: 32 x 32
- 最大解像度: 1920 x 1200(および1200 x 1900)
- 縦横比: 1:2.39~2.39:1の範囲(両方の値を含む)
- 最大フレームレート: 40fps
- 最大ビットレート:25Mbps

引用元: Twitterで動画を共有および視聴する方法

コマンド

ffmpeg -i ${input_name} -vf scale=${width}:${height} -r 40 ${output_name}.mp4
  • ${input_name}: 入力ファイルパス
  • ${output_name}: 出力ファイルパス
  • `${width}: 出力動画横サイズ
  • `${height}: 出力動画縦サイズ
1
2
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
1
2