C.W.K.
Stream
Lesson 04 of 08 · published

흔한 에러 & Fix

~12 min · errors, debug, troubleshoot

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

가장 자주 볼 에러 10개

각 fix 외워:

  1. 'No such file or directory' — relative path 잘못, 또는 shell glob expansion 잘못. Debug 위해 absolute path 사용.
  2. 'Could not find tag for codec X in stream #N, codec not currently supported in container' — codec/container mismatch. Container 변경 또는 stream re-encode.
  3. 'Conversion failed!' 디테일 없이 — verbosity bump: -loglevel verbose 또는 -loglevel debug.
  4. 'Cannot store overhead frame' — input 부서짐. -fflags +genpts -fflags +igndts 시도.
  5. 'Width / height not divisible by 2' — encoder 가 짝수 dimension 요구. scale=W:-2 또는 pad 사용.
  6. 'No accelerated colorspace conversion found' — HW pipeline 의 pixel-format mismatch. 명시적으로 -pix_fmt yuv420p 추가.
  7. 'Pad / scale: cannot be applied to this stream' — Wrong stream type 에 filter 적용. -vf vs -af 확인.
  8. 'Invalid data found when processing input' — 파일 truncated 또는 corrupt. Lesson 5 참조.
  9. 'Stream specifier matches no streams'-map 이 매칭 없음. ffprobe -show_streams 먼저 돌려.
  10. 'Output file does not contain any stream' — Filtergraph 가 다 drop. -map typo 또는 unmatched label 가능성 높음.

Code

Verbosity tier·bash
# Default — minimal
ffmpeg -i in.mp4 out.mp4

# FFmpeg 이 internally 돌리는 모든 명령 보여
ffmpeg -loglevel verbose -i in.mp4 out.mp4

# Full debug (소방수)
ffmpeg -loglevel debug -i in.mp4 out.mp4 2> debug.log

# Error 외 전부 hide (script 용)
ffmpeg -hide_banner -loglevel error -i in.mp4 out.mp4

# Log spam 없이 stat progress
ffmpeg -loglevel error -stats -i in.mp4 out.mp4
부서진 파일 진단·bash
# Probe 시도
ffprobe -v error -show_error -show_format input.mp4
# 'Invalid NAL unit size...' = 부서진 bitstream
# 'moov atom not found' = MP4 가 index 없음 (lesson 5 fix)

# Trial decode + error 봄
ffmpeg -err_detect explode -xerror -i input.mp4 -f null - 2>&1 | head -20

External links

Exercise

일부러 에러 셋 produce: (1) 존재 안 하는 파일에 FFmpeg 가리키기, (2) H.265 를 AVI 에 mux 시도, (3) 존재 안 하는 stream specifier 로 clip trim (-map 0:a:99). 각 에러 메시지 읽기. 그 다음 AVI 케이스를 -loglevel verbose 로 다시 돌리고 log 어디에 helpful 메시지 보이는지 확인.

Progress

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

댓글 0

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

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