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

Bitrate Mode — CBR, VBR, CRF, CQP

~10 min · bitrate, cbr, vbr, rate-control

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

네 rate-control mode

  • CRF (Constant Rate Factor) — quality target. 파일 사이즈 가변. libx264/x265/svtav1 single-pass 의 default.
  • VBR (Variable Bitrate) — clip 평균 bitrate; busy scene 에 bit 유연 할당. Two-pass 가 사용.
  • CBR (Constant Bitrate) — 매 초가 같은 bitrate hit. Stable buffer 필요한 streaming 프로토콜에. 저장 파일엔 wasteful 지만 라이브 RTMP 엔 mandatory.
  • CQP (Constant Quantizer) — 모든 macroblock 같은 quantization. Hardware encoder 가 가끔 자기 'CQ' mode 라고 부름.

고르기

나중에 볼 저장 파일: CRF. 정확히 사이즈 맞춰야 할 업로드: two-pass VBR. 라이브 streaming: CBR. Hardware encoder: 자기 proprietary 'CQ' 또는 bitrate-cap mode (ffmpeg -h encoder=... 읽어).

Code

네 mode, 한 source·bash
# CRF — quality target
ffmpeg -i in.mp4 -c:v libx264 -crf 20 -preset slow out_crf.mp4

# VBR (single-pass, 평균 bitrate)
ffmpeg -i in.mp4 -c:v libx264 -b:v 4M -preset slow out_vbr.mp4

# CBR — constant bitrate (streaming 에 사용)
ffmpeg -i in.mp4 -c:v libx264 -b:v 4M -minrate 4M -maxrate 4M \
  -bufsize 4M -preset slow out_cbr.mp4

# CQP — constant quantizer (드묾, 주로 testing)
ffmpeg -i in.mp4 -c:v libx264 -qp 20 -preset slow out_cqp.mp4
Hardware bitrate cap·bash
# VideoToolbox bitrate cap + buffer
ffmpeg -i in.mp4 -c:v h264_videotoolbox \
  -b:v 6M -maxrate 8M -bufsize 12M \
  -c:a aac -b:a 192k out.mp4

# NVENC 의 constant quality target
ffmpeg -i in.mp4 -c:v h264_nvenc -rc constqp -qp 22 \
  -c:a aac -b:a 192k out.mp4

External links

Exercise

Static 과 high-motion 콘텐츠 (game footage, 뮤직 비디오) mix 인 clip 잡아. -crf 22 한 번, CRF 버전이 만든 bitrate 로 -b:v 한 번, 그 bitrate 의 CBR variant 한 번 encode. High-motion section 시각 검사 — 어느 mode 가 quality 안정 유지? 어느 게 static section을 busy 한 거 먹이려고 sacrifice?

Progress

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

댓글 0

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

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