Welcome to Firefly
Switch language
Firefly Docsss
Last Updated: 2026-08-27 07:36:09

Basic Command Structure

General FFmpeg Usage

Basic Command Structure

The basic structure of an FFmpeg command is:

ffmpeg [global options] [input options] -i <input> [output options] <output>

For example:

ffmpeg -hide_banner -i input.mp4 -c:v libx264 -c:a aac output.mp4

Option placement is important:

  • Options before -i normally apply to the following input.
  • Options before an output file normally apply to that output.
  • Different options can be assigned to each input and output.

Common global options:

OptionDescription
-hide_bannerHide the version banner and reduce log output
-yOverwrite existing output files without asking
-nStop if the output file already exists
-loglevel <level>Set the log level, such as error, info, verbose, or debug
-statsDisplay real-time processing progress
-benchmarkPrint processing-time and resource statistics

On this page