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

Crop

~8 min · crop, aspect, framing

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

Crop 문법

crop=W:H:X:Y. W 와 H 가 output dimension; X 와 Y 가 input 기준 top-left corner. Default 가 (in_w-out_w)/2(in_h-out_h)/2 — centered.

흔한 패턴

  • crop=in_w:in_h*0.9 — bottom 10% 자름 (de-letterbox).
  • crop=in_w/2:in_h:0:0 — frame 의 left 절반.
  • crop=1080:1920 — 16:9 에서 vertical 9:16 (TikTok format), centered.
  • crop=in_h*9/16:in_h — 어떤 horizontal source 든 vertical crop.

Code

Crop recipe·bash
# Top + bottom 100px 제거 (1920×1080 input 가정)
ffmpeg -i in.mp4 -vf "crop=1920:880:0:100" -c:v libx264 -crf 20 out.mp4

# 16:9 → 9:16 vertical (centered)
ffmpeg -i landscape.mp4 \
  -vf "crop=in_h*9/16:in_h" \
  -c:v libx264 -crf 20 -preset slow vertical.mp4

# Black bar auto-detect 후 crop
ffmpeg -i in.mp4 -vf cropdetect -f null - 2>&1 | grep -o 'crop=[^ ]*' | tail -1
# 예: crop=1920:800:0:140 출력
# 그 crop 돌려:
ffmpeg -i in.mp4 -vf "crop=1920:800:0:140" -c:v libx264 -crf 20 cropped.mp4

External links

Exercise

Letterbox 있는 video 찾아 (영화 trailer, 2.35:1 뭐든). cropdetect 돌려, 제안 crop 가져가, 적용. Output 에 black bar 없는지 확인. 그 다음 16:9 clip 잡아 vertical 9:16 변환 — centered crop 이 right look, 아니면 re-frame 필요?

Progress

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

댓글 0

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

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