Glossaire FFmpeg
Guide de référence pour les drapeaux de ligne de commande FFmpeg courants, les filtres et les spécificateurs de flux.
-vf (or -filter:v)Video filter. Used to apply filters to the video stream (e.g., scale, crop, pad).
-af (or -filter:a)Audio filter. Used to apply filters to the audio stream (e.g., volume, fade).
-filter_complexComplex filter graph. Used for filtering multiple inputs and/or outputs, controlling both audio and video streams together.
[0]Select all streams from the first input (0-based index).
[0:v]Select the video stream from the first input.
[1:a]Select the audio stream from the second input.
0:v:0Specific stream selection: From first input (0), first video stream (v:0).
-mapDesignate which streams to map to the output file.
-yOverwrites output files without asking for confirmation.
-c copyStream copy mode. Copies the stream directly without re-encoding (fastest, no quality loss).
-ssSeek to position. When used before input (-i), it seeks fast (keyframe). When used after, it is frame-accurate but slower.
-tDuration. Stop writing the output after its duration reaches duration.
-toStop writing the output at position.
-crfConstant Rate Factor. The default quality setting for x264/x265. Lower value = higher quality (0-51, default 23).
-presetEncoding preset (e.g., ultrafast, superfast, veryfast, faster, fast, medium, slow, slower, veryslow). Slower presets provide better compression for the same quality.
-movflags +faststartOptimizes MP4 for web streaming by moving metadata (moov atom) to the beginning of the file.
Tip: Using Filters
Filters in FFmpeg are powerful. Use -vf for video filters (like scaling) and -filter_complex for mixing multiple streams. Remember that complex filters use labeled streams (like [v1]) to pass data between steps.
VIDEO API
Découvrez pourquoi Hunt est le fournisseur d'API préféré des développeurs.