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

Scale Filter 깊게

~10 min · scale, resize, lanczos

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

Basic 너머

Track 2 에서 scale 만났어. Full filter 에 손잡이 더 있어:

  • scale=W:H — basic.
  • scale=W:H:flags=lanczos — algorithm 픽: fast_bilinear (빠름, blocky), bicubic (default), lanczos (sharp), spline (가장 느림, 가장 quality).
  • scale=W:H:force_original_aspect_ratio=decrease,pad=W:H:(ow-iw)/2:(oh-ih)/2 — fit-with-letterbox.
  • scale='min(1920,iw)':-2 — downscale 만, 절대 upscale 안 함 (1920 cap).

Flag 왜 신경?

Bicubic 이 default. OK. Lanczos 가 sharper, text-heavy 콘텐츠 (slide, screen recording) 에 better. Spline 이 가장 느림, 가장 quality option. fast_bilinear 는 라이브 미리보기만.

Code

Scaling 패턴·bash
# Sharpness 위한 Lanczos
ffmpeg -i in.mp4 -vf "scale=1920:-2:flags=lanczos" out.mp4

# 1080p cap (720p source upscale 안 함)
ffmpeg -i in.mp4 -vf "scale='min(1920,iw)':-2" out.mp4

# 16:9 letterbox (콘텐츠 보존, black 으로 pad)
ffmpeg -i in_4_3.mp4 \
  -vf "scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2:color=black" \
  -c:v libx264 -crf 20 -preset slow out.mp4

# 16:9 crop-fill (cover, 콘텐츠 잘릴 수 있음)
ffmpeg -i in_4_3.mp4 \
  -vf "scale=1920:1080:force_original_aspect_ratio=increase,crop=1920:1080" \
  -c:v libx264 -crf 20 -preset slow out.mp4

External links

Exercise

4:3 source 잡아. 16:9 1920×1080 letterbox. 그 다음 같은 source 를 16:9 1920×1080 crop-fill. 비교: 어느 게 콘텐츠 모두 보존, 어느 게 crop, 어느 게 black bar? 그 다음 720p source 잡고 'upscale 안 함, 1080p cap' 룰 적용 — output 이 720p 로 머무는지 확인.

Progress

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

댓글 0

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

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