Open source · 51 commands

ffmpeg commands, explained

Real-world ffmpeg commands for transforming video, images and audio, grouped by theme.

Each .sh file is a single, copy-paste-ready command or small loop, taken from real projects. The comment header explains what it does and why, what every flag means, which script it came from, and what was changed to bring it up to date. Every ffmpeg example was run against generated test media on ffmpeg 9.0.2.

Each file's Source: line names the original script in this repo that the command came from. The originals were removed once converted and are still in the git history.

Most files read input.mp4 (or input.mov, input.aiff, frames/f%05d.jpg) and write output.* in the current folder. Rename the files or edit the paths to fit your project.

From lucidbeaming/ffmpeg-utilities at v1.0.1, MIT licensed.

Conversion

Resize and crop

Overlays and compositing

Stills and GIFs

Timing and slow motion

Effects

Audio visualization

Image sequences

Batch processing

Diagnostics