ffmpeg Chinese parameters detailed description

  • 2020-12-22 17:53:05
  • OfStack

FFMPEG version 3.4.1 parameters detailed

Usage: ffmpeg [options] [[infile options] -i infile]... outfile} {[outfile options]...

FFMPEG gets help:

-ES19en - Print basic options
-h long - Print more options
-ES24en full - Print all options (including all format and codec specific options, very long)
-ES27en type = name - Prints all options for the specified decoder/encoder/demulturator/muxer/filter
For details on options, see man ffmpeg.

Print help/information/features:

-L display license
-h topic display help
-? Theme display help
-ES46en topic display help
--help theme displays help
-ES50en display version
-ES52en shows the build configuration
-formats displays available formats
-ES56en displays available multiplexers
-ES58en shows the available demultiplexers
-devices displays available devices
-codecs displays available codecs
-decoders displays available decoders
-encoders displays available encoders
-ES68en shows the available bitstream filters
- Protocol displays available protocols
-ES71en displays the available filters
-pix_ES74en displays the available pixel formats
-ES76en displays the standard channel layout
-sample_fmts displays available audio sample formats
-ES81en displays the available color names
-ES83en device lists the source of the input device
-sinks device list output device receiver
-ES87en shows the available hardware acceleration methods

Global option (affects the entire program, not just one file:

-loglevel loglevel sets the logging level
-ES97en loglevel sets the logging level
-report generates reports
-max_ES103en bytes sets the maximum size of a single allocated block
-y overwrites the output file
-ES108en will never overwrite the output file
-ignore_ES111en ignores unknown stream types
-filter_threads Non-complex filter threads
-filter_complex_threads -filter_complex number of threads
-stats prints progress reports during encoding
-max_error_rate error rate (0.0: no error, 1.0:100% error maximum error rate
-bits_per_ES130en_ES131en number sets the number of digits per original sample
-vol volume change Volume (256 = normal)

Main options for each file:

-f fmt force format
-c Codec Name
-codec Codec Codec name
- pre preset default name
-map_ES153en outfile [, metadata] : infile [, metadata] sets metadata information from infile's outfile
-t duration the "duration" seconds of recorded or transcoded audio/video
-to time_stop records or transcoding stop time
-fs limit_size sets limit file size (in bytes)
-ES171en time_off sets the start time offset
-ES175en time_off sets the start time offset relative to EOF
-seek_ES181en enables/disables timestamp searches using -ss
-timestamp time sets recording timestamp ('now' sets current time)
-metadata string = string add metadata
-ES190en title = string: st = number... Adds a program with the specified flow
Specify the target file type (" vcd ", "svcd", "dvd", "dv" or "dv50", with the optional prefix "pal-", "ntsc-" or "film-")
- apad audio pad
-frames number sets the number of frames to output
-filter filter_graph set stream filtergraph
-filter_script filename reads the flow filter description from the file
-reinit_filter restarts filtergraph with an input parameter change
- the discard discard
- disposition configuration

FFMPEG Video Options:

-ES232en number sets the number of video frames to output
-r rate Set frame rate (Hz value, score or abbreviation)
-ES238en size Set frame size (WxH or abbreviation)
- Aspect ratio setting (4:3, 16:9 or 1.3333,1.77777)
-bits_per_ES245en_ES246en number sets the number of digits per original sample
-vn disables video
-vcodec Codec Mandatory video codec (' copy 'copy stream)
-timecode hh: mm: ss [:;] ff sets the initial TimeCode value.
n Select pass number (1 through 3)
-ES263en filter_graph sets the video filter
-ES267en bitrate Audio bitrate (use -ES268en: a)
-ES271en Bitrate Video bitrate (please use -ES272en: v)
-dn disables data

FFMPEG Audio Options:

-frames number sets the number of audio frames to output
-aq Quality Settings Audio quality (codec specific)
-ar rate set sampling rate (Hz)
-ac channels set the number of audio channels
- Disable audio
-acodec Codec - Forced audio codec (' copy 'to copy stream)
-vol volume change Volume (256 = normal)
-ES303en filter_graph Sets the audio filter

FFMPEG Subtitle options:

-s size Sets the frame size (WxH or abbreviation)
-sn disable subtitles
-scodec Codec - Mandatory Captioning codec (' copy 'copy stream)
-stag fourcc/tag Subtitle tag/fourcc
-fix_sub_duration fixed subtitle duration
-canvas_ES331en size Set canvas size (WxH or abbreviation)
-spre sets the marquee option to the default indicated


Related articles: