Adding pixels around your video
pad=W:H:X:Y:color. W and H are the new canvas dimensions; X and Y are where the original goes (top-left). color is the fill (default black).
Common patterns
- Letterbox 4:3 → 16:9 →
pad=1920:1080:(ow-iw)/2:(oh-ih)/2with the original scaled into the inner region. - Border for thumbnails →
pad=iw+40:ih+40:20:20:color=white - Pillarbox — vertical content padded to horizontal canvas.