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

Overlay — Picture-in-Picture, Logo, 워터마크

~10 min · overlay, logo, watermark, pip

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

Overlay 위치

overlay=x:y. 흔한 위치 expression:

  • overlay=10:10 — top-left, 10px in.
  • overlay=W-w-10:10 — top-right (W = main width, w = overlay width).
  • overlay=W-w-10:H-h-10 — bottom-right.
  • overlay=(W-w)/2:(H-h)/2 — centered.

Time-aware overlay

enable='between(t,2,5)' — t=2s 와 t=5s 사이만 overlay. Sponsor logo, lower-third 등에 유용.

Code

Overlay recipe·bash
# Margin 있는 top-right logo
ffmpeg -i in.mp4 -i logo.png \
  -filter_complex "[1:v]scale=200:-2[lg]; [0:v][lg]overlay=W-w-20:20" \
  -c:a copy with_logo.mp4

# Picture-in-picture (screen recording 코너에 작은 webcam)
ffmpeg -i screen.mp4 -i webcam.mp4 \
  -filter_complex "[1:v]scale=320:-2[cam]; [0:v][cam]overlay=W-w-20:H-h-20" \
  -map 0:a -c:a copy pip.mp4

# 특정 시간 window 동안만 워터마크
ffmpeg -i in.mp4 -i sponsor.png \
  -filter_complex "[1:v]scale=240:-2[sp]; [0:v][sp]overlay=20:H-h-20:enable='between(t,30,60)'" \
  -c:a copy timed.mp4

# 애니메이션 overlay (fade in/out)
ffmpeg -i in.mp4 -i logo.png \
  -filter_complex "[1:v]format=rgba,fade=t=in:st=2:d=1:alpha=1,fade=t=out:st=8:d=1:alpha=1[lg]; \
                   [0:v][lg]overlay=W-w-20:20" \
  -c:a copy fade_logo.mp4

External links

Exercise

Video 에 transparent PNG logo 를 top-right margin 20px 로 추가. 그 다음 두 clip 으로 picture-in-picture. 그 다음 logo 를 2초에 fade in, 8초에 fade out. 각 output 검사, timing/positioning 검증.

Progress

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

댓글 0

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

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