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?

【備忘録】ffmpegを使って16:9の動画を4:3にする

0
Last updated at Posted at 2026-08-31

Macにffmpegが入っていれば(なければ brew install ffmpeg)、ターミナルで一発です。

ffmpeg -i input.mov -vf "crop=ih*4/3:ih" output.mov
  • crop=ih*4/3:ih は「動画の高さ(ih)を基準に、幅を高さ×4/3にして中央から切り出す」という意味です。左右が切られて4:3になります。
  • 幅(iw)を保ったまま4:3にしたい場合は、上下を切り取るのではなく pad フィルタで黒帯(余白)を追加する必要があります。16:9の動画では幅を保ったまま必要な高さを確保できない(必要な高さが元の高さを超える)ため、cropでは実現できません。
    ffmpeg -i input.mov -vf "pad=iw:iw*3/4:0:(oh-ih)/2:black" output.mov
  • なお crop=iw:iw*3/4 で上下を切って幅を保つ方法もありますが、これは元動画の高さが iw*3/4 以上ある場合(縦長の動画など)にしか使えません。16:9の動画では高さが足りずエラーになるので注意してください。
  • 切り出す位置をずらしたい場合は crop=ih*4/3:ih:x=0:y=0 のように座標を指定できます。

    4x3.png

備考
この記事は執筆支援にAIを使用しています。

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?