Bảng tra cứu nhanh FFmpeg
Công thức dòng lệnh FFmpeg xử lý âm thanh và video: chuyển định dạng không mã hoá lại, H.264/H.265, cắt ghép, đổi kích thước, tạo GIF và tách audio.
Cách hoạt động
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.
Bộ lệnh sống còn
Vài lệnh nên học trước tiên.
40 lệnh
Inspect & Lossless Remux
Probe stream codecs with ffprobe and rewrap containers instantly with `-c copy`.
- Cơ bản
Inspect codecs, resolution, FPS, bitrate, and streams cleanly
ffprobe -hide_banner <input>Dựng lệnh
ffprobe -hide_banner <input>Giá trị được chèn đúng như bạn nhập. Hãy tự đặt dấu nháy nếu giá trị có khoảng trắng hoặc ký tự đặc biệt.
Khi nào dùng
Always check source codecs first so you know when lossless `-c copy` is possible.
Giải thích từng phần
- -hide_banner
- Omit verbose FFmpeg compile configuration header
Ví dụ
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.