FFmpeg 치트시트
FFmpeg 오디오 및 비디오 CLI 레시피: 재인코딩 없는 리먹싱, H.264/H.265 트랜스코딩, 자르기, 크기 조정, GIF 내보내기, 병합 및 미디어 검사.
동작 원리
FFmpeg processes media as a pipeline: `[input options] -i input [output options] output`. Flags apply to the NEXT `-i` or NEXT output file; `-c copy` remuxes streams without re-encoding.
서바이벌 키트
가장 먼저 배워야 할 몇 가지 명령어입니다.
40개 명령어
Inspect & Lossless Remux
Probe stream codecs with ffprobe and rewrap containers instantly with `-c copy`.
- 기본
Inspect codecs, resolution, FPS, bitrate, and streams cleanly
ffprobe -hide_banner <input>명령어 만들기
ffprobe -hide_banner <input>값은 입력한 그대로 삽입됩니다. 공백이나 특수 문자가 포함된 경우 직접 따옴표로 감싸 주세요.
사용 시점
Always check source codecs first so you know when lossless `-c copy` is possible.
상세 분석
- -hide_banner
- Omit verbose FFmpeg compile configuration header
예제
ffprobe -hide_banner clip.mp4
Trim, Split & Concatenate
Cut time ranges accurately, concat clips, and reverse/loop media.
Video Codecs, Quality & Scaling
Compress H.264/H.265 cleanly for web playback and resize safely.
Audio, Volume & Subtitles
Extract, normalize, replace, mute audio, and handle subtitles.
Thumbnails, GIFs & Image Sequences
Generate high-quality palettes, extract frames, or turn stills into video.