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

Audio Fade

~8 min · fade, afade, intro, outro

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

Fade in, fade out, crossfade

패턴 셋이 거의 모든 실 fade 작업 커버:

  • afade=t=in:st=0:d=2 — 0 시작 2초 fade in.
  • afade=t=out:st=58:d=2 — 58초 시작 2초 fade out (60초 clip).
  • acrossfade=d=2 — 두 input 사이 crossfade (lesson 8 mixing).

Curve 선택

Linear (tri, default) OK. Exponential curve (exp) 가 음악엔 부드럽게. Equal-power curve (esin, hsin) 가 crossfade 의 right 선택 — overlap 통해 perceptual loudness constant 유지.

Code

Fade in/out·bash
# 시작 2s fade-in, 끝 2s fade-out
DURATION=$(ffprobe -v error -show_entries format=duration \
  -of default=noprint_wrappers=1:nokey=1 in.mp4)
FADE_OUT_START=$(awk -v d="$DURATION" 'BEGIN { print d - 2 }')

ffmpeg -i in.mp4 \
  -af "afade=t=in:st=0:d=2,afade=t=out:st=${FADE_OUT_START}:d=2" \
  -c:v copy out.mp4
Curve 와 crossfade·bash
# Exponential fade-out (음악에 부드럽게)
ffmpeg -i music.wav -af "afade=t=out:st=180:d=4:curve=exp" out.wav

# Equal-power curve 로 두 clip crossfade
ffmpeg -i intro.wav -i body.wav \
  -filter_complex "[0:a][1:a]acrossfade=d=3:c1=esin:c2=esin" \
  joined.wav

External links

Exercise

60초 music clip 잡아. 시작에 3초 linear fade-in, 마지막 frame 에 끝나는 4초 exponential fade-out 적용. 헤드폰으로 들어 검증. 그 다음 두 clip 을 acrossfade=d=3:c1=esin:c2=esin 로 crossfade, overlap 중간에 6 dB dip 안 만드는지 확인.

Progress

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

댓글 0

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

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