FFmpeg-Cheatsheet
FFmpeg-CLI-Rezepte für Audio und Video: Remuxen ohne Neukodierung, H.264/H.265-Transkodierung, Schneiden, Skalieren, GIF-Export, Zusammenfügen und Analyse.
Funktionsweise
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.
Survival-Kit
Die wichtigsten Befehle für den Einstieg.
40 Befehle
Inspect & Lossless Remux
Probe stream codecs with ffprobe and rewrap containers instantly with `-c copy`.
- Grundlagen
Inspect codecs, resolution, FPS, bitrate, and streams cleanly
ffprobe -hide_banner <input>Befehl zusammenbauen
ffprobe -hide_banner <input>Werte werden genau wie eingegeben eingefügt. Setze sie selbst in Anführungszeichen, falls sie Leer- oder Sonderzeichen enthalten.
Wann verwenden
Always check source codecs first so you know when lossless `-c copy` is possible.
Aufbau
- -hide_banner
- Omit verbose FFmpeg compile configuration header
Beispiel
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.