`pad`を指定する。 ```console ffmpeg -i input.png -vf "pad=1280:640:320:0:color=0x00000000" output.png ``` `pad=1280:640:320:0` はそれぞれ `pad=変更後の横幅:変更後の縦幅:変更後の配置するx座標:変更後の配置するy座標` となる。`pad=1280:640:320:0` の場合は元画像サイズは `640x640` なので - 横幅を2倍にする - 変更後は左端から320pxの位置に配置する - 左右に320pxのpadding = 左右中央に配置 <div style="position: relative; width: 400px; height: 200px; background-color: #f009"> <div style="position: absolute; width: 200px; height: 200px; left: 100; top: 0; background-color: #f009"> <div style="color: white; margin-top: 175px; text-align: center;">元サイズ(640x640)</div> </div> <span style="position: absolute; color: white">変更後のサイズ(1280x640)</span> </div>