Options which do not take arguments are boolean options, and set thecorresponding value to true. They can be set to false by prefixingthe option name with "no". For example using "-nofoo"will set the boolean option with name "foo" to false.
A stream specifier is a string generally appended to the option name andseparated from it by a colon. E.g. -codec:a:1 ac3 contains thea:1 stream specifier, which matches the second audio stream. Therefore, itwould select the ac3 codec for the second audio stream.
Matches the stream with this index. E.g. -threads:1 4 would set thethread count for the second stream to 4. If stream_index is used as anadditional stream specifier (see below), then it selects stream numberstream_index from the matching streams. Stream numbering is based on theorder of the streams as detected by libavformat except when a stream groupspecifier or program ID is also specified. In this case it is based on theordering of the streams in the group or program.
Matches streams which are in the group with the specifier group_specifier.if additional_stream_specifier is used, then it matches streams which bothare part of the group and match the additional_stream_specifier.group_specifier may be one of the following:
Matches streams which are in the program with the id program_id. Ifadditional_stream_specifier is used, then it matches streams which bothare part of the program and match the additional_stream_specifier.
By default the program logs to stderr. If coloring is supported by theterminal, colors are used to mark errors and warnings. Log coloringcan be disabled setting the environment variableAV_LOG_FORCE_NOCOLOR, or can be forced settingthe environment variable AV_LOG_FORCE_COLOR.
In the above example, a multichannel audio stream is mapped twice for output.The first instance is encoded with codec ac3 and bitrate 640k.The second instance is downmixed to 2 channels and encoded with codec aac. A bitrate of 128k is specified for it usingabsolute index of the output stream.
Entries are specified according to the followingsyntax. section_entries contains a list of section entriesseparated by :. Each section entry is composed by a sectionname (or unique name), optionally followed by a list of entries localto that section, separated by ,.
If section name is specified but is followed by no =, allentries are printed to output, together with all the containedsections. Otherwise only the entries specified in the local sectionentries list are printed. In particular, if = is specified butthe list of local entries is empty, then no entries will be shown forthat section.
The first part specifies the interval start position. It isinterpreted as an absolute position, or as a relative offset from thecurrent position if it is preceded by the "+" character. If this firstpart is not specified, no seeking will be performed when reading thisinterval.
The second part specifies the interval end position. It is interpretedas an absolute position, or as a relative offset from the currentposition if it is preceded by the "+" character. If the offsetspecification starts with "#", it is interpreted as the number ofpackets to read (not including the flushing packets) from the intervalstart. If no second part is specified, the program will read until theend of the input.
Note that seeking is not accurate, thus the actual interval startpoint may be different from the specified position. Also, when aninterval duration is specified, the absolute end time will be computedby adding the duration to the interval start point found by seekingthe file, rather than to the specified start value.
Show private data, that is data depending on the format of theparticular shown element.This option is enabled by default, but you may need to disable itfor specific uses, for example when creating XSD-compliant XML output.
Some writers viz. JSON and XML, omit the printing of fields with invalid or non-applicable values,while other writers always print them. This option enables one to control this behaviour.Valid values are always/1, never/0 and auto/-1.Default is auto.
A free-form output where each line contains an explicit key=value, such as"streams.stream.3.tags.foo=bar". The output is shell escaped, so it can bedirectly embedded in sh scripts as long as the separator character is analphanumeric character or an underscore (see sep_char option).
Specify if the section name specification should be hierarchical. Ifset to 1, and if there is more than one section in the currentchapter, the section name will be prefixed by the name of thechapter. A value of 0 will disable this behavior.
Specify the frame rate of a video, expressed as the number of framesgenerated per second. It has to be a string in the formatframe_rate_num/frame_rate_den, an integer number, a floatnumber or a valid video frame rate abbreviation.
Before libavutil version 53 the trailing character "c" to specify a number ofchannels was optional, but now it is required, while a channel layout mask canalso be specified as a decimal number (if and only if not followed by "c" or "C").
Some internal variables can be used to store and load intermediaryresults. They can be accessed using the ld and stfunctions with an index argument varying from 0 to 9 to specify whichinternal variable to access.
ld(0) is used to represent the function input value, which means that thegiven expression will be evaluated multiple times with various input values thatthe expression can access through ld(0). When the expression evaluates to0 then the corresponding input value will be returned.
Store the value of the expression expr in an internalvariable. idx specifies the index of the variable where to storethe value, and it is a value ranging from 0 to 9. The function returnsthe value stored in the internal variable.
ld(idx) is used to represent the derivative order in expr,which means that the given expression will be evaluated multiple timeswith various input values that the expression can access throughld(idx). If idx is not specified then 0 is assumed.
Sometimes, a global option may only affect a specific kind of codec,and may be nonsensical or ignored by another, so you need to be awareof the meaning of the specified options. Also some options aremeant only for decoding or encoding.
Set video bitrate tolerance (in bits/s). In 1-pass mode, bitratetolerance specifies how far ratecontrol is willing to deviate from thetarget average bitrate value. This is not related to min/maxbitrate. Lowering tolerance too much has an adverse effect on quality.
Only write platform-, build- and time-independent data. (except (I)DCT).This ensures that file and data checksums are reproducible and match betweenplatforms. Its primary use is for regression testing.
It is the fundamental unit of time (in seconds) in terms of whichframe timestamps are represented. For fixed-fps content, timebaseshould be 1 / frame_rate and timestamp increments should beidentically 1.
Each submitted frame except the last must contain exactly frame_sizesamples per channel. May be 0 when the codec hasCODEC_CAP_VARIABLE_FRAME_SIZE set, in that case the frame size is notrestricted. It is set by some decoders to indicate constant framesize.
allow non standardized experimental things, experimental(unfinished/work in progress/not well tested) decoders and encoders.Note: experimental decoders can pose a security risk, do not use this fordecoding untrusted input.
ignore decoding errors, and continue decoding.This is useful if you want to analyze the content of a video and thus wanteverything to be decoded no matter what. This option will not result in a videothat is pleasing to watch in case of errors.
Enable cropping if cropping parameters are multiples of the requiredalignment for the left and top parameters. If the alignment is not met thecropping will be partially applied to maintain alignment.Default is 1 (enabled).Note: The required alignment depends on if AV_CODEC_FLAG_UNALIGNED is set and theCPU. AV_CODEC_FLAG_UNALIGNED cannot be changed from the command line. Also hardwaredecoders will not apply left/top Cropping.
When you configure your FFmpeg build, all the supported native decodersare enabled by default. Decoders requiring an external library must be enabledmanually via the corresponding --enable-lib option. You can list allavailable decoders using the configure option --list-decoders.
libdav1d allows libavcodec to decode the AOMedia Video 1 (AV1) codec.Requires the presence of the libdav1d headers and library during configuration.You need to explicitly configure the build with --enable-libdav1d.
Set amount of frame threads to use during decoding. The default value is 0 (autodetect).This option is deprecated for libdav1d >= 1.0 and will be removed in the future. Use theoption max_frame_delay and the global option threads instead.
Set amount of tile threads to use during decoding. The default value is 0 (autodetect).This option is deprecated for libdav1d >= 1.0 and will be removed in the future. Use theglobal option threads instead.
Apply film grain to the decoded video if present in the bitstream. Defaults to theinternal default of the library.This option is deprecated and will be removed in the future. See the global optionexport_side_data to export Film Grain parameters instead of applying it.
libcelt allows libavcodec to decode the Xiph CELT ultra-low delay audio codec.Requires the presence of the libcelt headers and library during configuration.You need to explicitly configure the build with --enable-libcelt.
libgsm allows libavcodec to decode the GSM full rate audio codec. Requiresthe presence of the libgsm headers and library during configuration. You needto explicitly configure the build with --enable-libgsm.
libilbc allows libavcodec to decode the Internet Low Bitrate Codec (iLBC)audio codec. Requires the presence of the libilbc headers and library duringconfiguration. You need to explicitly configure the build with--enable-libilbc.
795a8134c1