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

Deinterlace & Stabilization

~12 min · interlace, yadif, stabilize, vidstab

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

Deinterlace — 옛날 TV / 카메라 footage

Interlaced video 가 odd line 먼저 그리고 even line, field 별 alternate. CRT 에선 OK. 모던 progressive display 에선 jagged combing 처럼 보임. yadif filter (Yet Another DeInterlace Filter) 가 standard fix.

Stabilization

FFmpeg 의 vidstabdetect + vidstabtransform 페어가 motion-tracking stabilization. Two-pass: detect 먼저, transform 두 번째. Editor 의 handheld footage stabilization 과 comparable.

Code

Deinterlace·bash
# Default yadif mode (대부분 source 에 좋음)
ffmpeg -i interlaced.mxf \
  -vf "yadif=mode=0" \
  -c:v libx264 -crf 20 -preset slow \
  progressive.mp4

# 필요할 때만 detect-and-deinterlace (smart)
ffmpeg -i mixed_source.mp4 \
  -vf "bwdif=mode=send_field:parity=auto:deint=interlaced" \
  -c:v libx264 -crf 20 -preset slow \
  smart.mp4

# bwdif = Bob Weaver Deinterlacing Filter — 모던, 느림, higher quality
Stabilization (two-pass)·bash
# Pass 1 — motion vector 분석
ffmpeg -i shaky.mp4 \
  -vf vidstabdetect=stepsize=6:shakiness=8:accuracy=15:result=transforms.trf \
  -f null -

# Pass 2 — 분석 사용해서 transform
ffmpeg -i shaky.mp4 \
  -vf vidstabtransform=input=transforms.trf:zoom=0:smoothing=10,unsharp=5:5:0.8:3:3:0.4 \
  -c:v libx264 -crf 20 -preset slow \
  -c:a copy \
  stable.mp4

# 정리
rm transforms.trf

External links

Exercise

Interlaced source 찾아 (YouTube 옛 TV 녹화, 또는 어떤 1080i 방송). yadif 로 deinterlace 하고 combing artifact 사라졌는지 확인. 그 다음 shaky handheld 폰 video 잡아 two-pass stabilizer 돌려. Before/after 비교 + cropped edge 봐.

Progress

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

댓글 0

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

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