1 All the numerical options, if not specified otherwise, accept in input
2 a string representing a number, which may contain one of the
3 International System number postfixes, for example 'K', 'M', 'G'.
4 If 'i' is appended after the postfix, powers of 2 are used instead of
5 powers of 10. The 'B' postfix multiplies the value for 8, and can be
6 appended after another postfix or used alone. This allows using for
7 example 'KB', 'MiB', 'G' and 'B' as postfix.
9 Options which do not take arguments are boolean options, and set the
10 corresponding value to true. They can be set to false by prefixing
11 with "no" the option name, for example using "-nofoo" in the
12 commandline will set to false the boolean option with name "foo".
14 @section Generic options
16 These options are shared amongst the ff* tools.
23 @item -h, -?, -help, --help
30 Show available formats.
32 The fields preceding the format names have the following meanings:
41 Show available codecs.
43 The fields preceding the codec names have the following meanings:
50 Video/audio/subtitle codec
54 Codec supports direct rendering
56 Codec can handle input truncated at random locations instead of only at frame boundaries
60 Show available bitstream filters.
63 Show available protocols.
66 Show available libavfilter filters.
69 Show available pixel formats.
72 Show available sample formats.
74 @item -loglevel @var{loglevel}
75 Set the logging level used by the library.
76 @var{loglevel} is a number or a string containing one of the following values:
88 By default the program logs to stderr, if coloring is supported by the
89 terminal, colors are used to mark errors and warnings. Log coloring
90 can be disabled setting the environment variable
91 @env{FFMPEG_FORCE_NOCOLOR} or @env{NO_COLOR}, or can be forced setting
92 the environment variable @env{FFMPEG_FORCE_COLOR}.
93 The use of the environment variable @env{NO_COLOR} is deprecated and
94 will be dropped in a following Libav version.
100 These options are provided directly by the libavformat, libavdevice and
101 libavcodec libraries. To see the list of available AVOptions, use the
102 @option{-help} option. They are separated into two categories:
105 These options can be set for any container, codec or device. Generic options are
106 listed under AVFormatContext options for containers/devices and under
107 AVCodecContext options for codecs.
109 These options are specific to the given container, device or codec. Private
110 options are listed under their corresponding containers/devices/codecs.
113 For example to write an ID3v2.3 header instead of a default ID3v2.4 to
114 an MP3 file, use the @option{id3v2_version} private option of the MP3
117 ffmpeg -i input.flac -id3v2_version 3 out.mp3
120 You can precisely specify which stream(s) should the codec AVOption apply to by
121 appending a stream specifier of the form
122 @option{[:@var{stream_type}][:@var{stream_index}]} to the option name.
123 @var{stream_type} is 'v' for video, 'a' for audio and 's' for subtitle streams.
124 @var{stream_index} is a global stream index when @var{stream_type} isn't
125 given, otherwise it counts streams of the given type only. As always, the index
126 is zero-based. For example
128 -foo -- applies to all applicable streams
129 -foo:v -- applies to all video streams
130 -foo:a:2 -- applies to the third audio stream
131 -foo:0 -- applies to the first stream
134 Note -nooption syntax cannot be used for boolean AVOptions, use -option
137 Note2 old undocumented way of specifying per-stream AVOptions by prepending
138 v/a/s to the options name is now obsolete and will be removed soon.