C.W.K.
Stream
Lesson 04 of 10 · published

Pad

~8 min · pad, letterbox, border

Level 0Viewer
0 XP0/73 lessons0/15 achievements
0/100 XP to next level100 XP to go0% complete

Video 주위에 pixel 추가

pad=W:H:X:Y:color. W 와 H 가 새 canvas dimension; X 와 Y 가 원본 들어갈 곳 (top-left). color 가 fill (default black).

흔한 패턴

  • Letterbox 4:3 → 16:9 → pad=1920:1080:(ow-iw)/2:(oh-ih)/2, 원본 inner region 으로 scale.
  • Thumbnail borderpad=iw+40:ih+40:20:20:color=white
  • Pillarbox — vertical 콘텐츠 horizontal canvas 로 pad.

Code

Pad recipe·bash
# 4:3 → 16:9 letterbox (콘텐츠 keep, left/right black bar 추가)
ffmpeg -i in_4_3.mp4 \
  -vf "scale=1440:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2:color=black" \
  -c:v libx264 -crf 20 letterboxed.mp4

# 9:16 vertical → 16:9 horizontal (blurred 배경 pillarbox)
ffmpeg -i vertical.mp4 \
  -filter_complex "[0:v]scale=1920:1080:force_original_aspect_ratio=increase,gblur=sigma=20[bg]; \
                   [0:v]scale=-2:1080[fg]; \
                   [bg][fg]overlay=(W-w)/2:0[outv]" \
  -map "[outv]" -map 0:a -c:v libx264 -crf 20 -c:a copy fancy.mp4

External links

Exercise

Vertical 9:16 폰 video 잡아. 16:9 1920×1080 으로: (a) plain black pillarbox, (b) 위 recipe 로 blurred-배경 pillarbox 변환. YouTube/Instagram 에서 비교 — horizontal feed 에 어느 게 더 'native' 보여?

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.