FFmpeg Verklarende woordenlijst

Naslagwerk voor veelvoorkomende FFmpeg-opdrachtregelvlaggen, filters en stroomsceficicaties.

-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_complex
Complex 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:0
Specific stream selection: From first input (0), first video stream (v:0).
-map
Designate which streams to map to the output file.
-y
Overwrites output files without asking for confirmation.
-c copy
Stream copy mode. Copies the stream directly without re-encoding (fastest, no quality loss).
-ss
Seek to position. When used before input (-i), it seeks fast (keyframe). When used after, it is frame-accurate but slower.
-t
Duration. Stop writing the output after its duration reaches duration.
-to
Stop writing the output at position.
-crf
Constant Rate Factor. The default quality setting for x264/x265. Lower value = higher quality (0-51, default 23).
-preset
Encoding preset (e.g., ultrafast, superfast, veryfast, faster, fast, medium, slow, slower, veryslow). Slower presets provide better compression for the same quality.
-movflags +faststart
Optimizes 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

Ontdek waarom Hunt de favoriete API-provider is voor ontwikkelaars.