Help us understand the problem. What is going on with this article?

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

毎回忘れるのでメモ

動画の形式

ブラウザからアップロードできる動画の解像度と縦横比を教えてください。
- 最小解像度: 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}: 出力動画縦サイズ
Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away