실 workflow 에선 ffmpeg 보다 ffprobe 를 10배 더 돌려. 모든 encoder 버그, '왜 이 audio가 silent해' 순간, '잠깐 이거 frame rate 뭐야' 질문 — ffprobe 가 2초에 답해. 아래 다섯 flag 조합이 필요한 거 ~90% 커버.
출력 형식
-print_format 은 json, xml, csv, flat, ini, 또는 default 사람 읽기 좋은. scripting 용은 무조건 json — 안정적으로 파싱되는 유일한 구조 있는 형식이야.
흔한 패턴
ffprobe 손 가는 순간: duration (초), 총 frame count, 정확한 frame rate (rational, 30000/1001 = 29.97), bitrate, dimension, color space, audio channel layout, metadata tag, chapter, stream 개수, 또는 그냥 'decode 가능한지' (에러는 stderr에 떠).
shell 함수 한 줄짜리 vinfo <file> 작성: 순서대로 duration (초), 해상도 (WxH), video codec, audio codec, audio channel layout 출력. 다른 파일 셋에 테스트. 보너스: 평균 video bitrate 추가 (stream=bit_rate).
Progress
Progress is local-only — sign in to sync across devices.