Detailed description of parameters in ffmpeg
Detailed description of parameters of FFMPEG version 3.4.1
Usage: ffmpeg [options] [[infile options]-I infile]... {[outfile options] outfile}...
FFMPEG gets help:
-h-print basic options
-h long-print more options
-h full-print all options (including all formatting and codec specific options, very long)
-h type = name-print all options for the specified decoder / encoder / demultiplexer / muxer / filter
For a detailed description of the options, see man ffmpeg.
Print help / information / features:
-L display license
-h topic display help
-? Topic display help
-help topic display help
-- help topic display help
-version display version
-buildconf displays the build configuration
-formats display available format
-muxers displays available multiplexers
-demuxers shows available demultiplexers
-devices displays available devices
-codecs shows available codecs
-decoders shows available decoders
-encoders shows available encoders
-bsfs displays available bitstream filters
-protocols show available protocols
-filters displays available filters
-pix_fmts displays available pixel formats
-layouts displays standard channel layout
-sample_fmts displays available audio sample formats
-colors displays available color names
-sources device lists the source of the input device
-receiver of the sinks device list output device
-hardware acceleration methods available for hwaccels display
Global options (affect the entire program, not just one file:
-loglevel loglevel sets logging level
-v loglevel sets logging level
-report generates a report
-max_alloc bytes sets the maximum size of a single allocated block
-y overwrite the output file
-n will never overwrite the output file
-ignore_unknown ignores unknown stream types
-number of filter_threads non-complex filter threads
-filter_complex_threads-number of threads in filter_complex
-stats prints progress reports during coding
-max_error_rate error rate (0. 0: no error, 1.0 100% error maximum error rate
-bits_per_raw_sample number sets the number of digits for each original sample
-vol Volume change Volume (256 = normal)
The main options for each file:
-f fmt force format
-C Codec codec name
-codec name
-pre preset preset name
-map_metadata outfile [, metadata]: infile [, metadata] sets the metadata information from the outfile of infile
-t duration recording or transcoding the "duration" seconds of audio / video
-to time_stop recording or transcoding stop time
-fs limit_size setting limits file size (in bytes)
-ss time_off sets the start time offset
-sseof time_off sets the start time offset from EOF
-seek_timestamp uses-ss to enable / disable timestamp search
-timestamp time sets recording timestamp ('now' sets current time)
-metadata string = string add metadata
-program title = string:st = number... Add a program with the specified stream
-target type specifies the target file type ("vcd", "svcd", "dvd", "dv" or "dv50" with the optional prefix "pal-", "ntsc-" or "film-")
-apad audio mat
-frames number sets the number of frames to output
-filter filter_graph set stream filtergraph
-filter_script filename reads the stream filter description from the file
-reinit_filter restarts filtergraph with input parameter changes
-discard discard
-disposition configuration
FFMPEG video options:
-vframes number sets the number of video frames to be output
-r rate sets the frame rate (Hz value, fraction or abbreviation)
-s size sets the frame size (WxH or abbreviation)
-aspect setting aspect ratio (4glaze 3pr 16vir 9 or 1.333pr 1.77777)
-bits_per_raw_sample number sets the number of digits for each original sample
-vn disables video
-vcodec codec enforces video codec ('copy' replication stream)
-timecode hh:mm:ss [:;] Ff sets the initial timecode value.
-pass n Select the pass number (1 to 3)
-vf filter_graph sets video filter
-ab bit rate Audio bit rate (please use-bvision a)
-b bit rate video bit rate (please use-bbank v)
-dn disable data
FFMPEG Audio options:
-frames number sets the number of audio frames to output
-aq quality setting audio quality (codec specific)
-ar rate set audio sampling rate (Hz)
-ac channel sets the number of audio channels
-disable audio
-acodec codec enforces audio codec ('copy' to copy stream)
-vol Volume change Volume (256 = normal)
-af filter_graph sets audio filter
FFMPEG subtitle options:
-s size sets the frame size (WxH or abbreviation)
-sn disable subtitles
-scodec codec enforces subtitle codecs ('copy' replication stream)
-stag fourcc / tag Force subtitle tag / fourcc
-fix_sub_duration repair subtitle duration
-canvas_size size sets the canvas size (WxH or abbreviation)
-spre preset sets the subtitle option to the indicated preset