1 \input texinfo @c -*- texinfo -*-
3 @settitle FFmpeg Formats Documentation
5 @center @titlefont{FFmpeg Formats Documentation}
13 @c man begin DESCRIPTION
15 This document describes the supported formats (muxers and demuxers)
16 provided by the libavformat library.
18 @c man end DESCRIPTION
20 @chapter Format Options
21 @c man begin FORMAT OPTIONS
23 The libavformat library provides some generic global options, which
24 can be set on all the muxers and demuxers. In addition each muxer or
25 demuxer may support so-called private options, which are specific for
28 Options may be set by specifying -@var{option} @var{value} in the
29 FFmpeg tools, or by setting the value explicitly in the
30 @code{AVFormatContext} options or using the @file{libavutil/opt.h} API
33 The list of supported options follows:
36 @item avioflags @var{flags} (@emph{input/output})
43 @item probesize @var{integer} (@emph{input})
44 Set probing size in bytes, i.e. the size of the data to analyze to get
45 stream information. A higher value will allow to detect more
46 information in case it is dispersed into the stream, but will increase
47 latency. Must be an integer not lesser than 32. It is 5000000 by default.
49 @item packetsize @var{integer} (@emph{output})
52 @item fflags @var{flags} (@emph{input/output})
62 Do not fill in missing values that can be exactly calculated.
64 Disable AVParsers, this needs @code{+nofillin} too.
68 Discard corrupted frames.
70 Try to interleave output packets by DTS.
72 Do not merge side data.
74 Enable RTP MP4A-LATM payload.
76 Reduce the latency introduced by optional buffering
79 @item analyzeduration @var{integer} (@emph{input})
80 Specify how many microseconds are analyzed to estimate duration.
82 @item cryptokey @var{hexadecimal string} (@emph{input})
85 @item indexmem @var{integer} (@emph{input})
86 Set max memory used for timestamp index (per stream).
88 @item rtbufsize @var{integer} (@emph{input})
89 Set max memory used for buffering real-time frames.
91 @item fdebug @var{flags} (@emph{input/output})
92 Print specific debug info.
99 @item max_delay @var{integer} (@emph{input/output})
100 Set maximum muxing or demuxing delay in microseconds.
102 @item fpsprobesize @var{integer} (@emph{input})
103 Set number of frames used to probe fps.
105 @item audio_preload @var{integer} (@emph{output})
106 Set microseconds by which audio packets should be interleaved earlier.
108 @item chunk_duration @var{integer} (@emph{output})
109 Set microseconds for each chunk.
111 @item chunk_size @var{integer} (@emph{output})
112 Set size in bytes for each chunk.
114 @item err_detect, f_err_detect @var{flags} (@emph{input})
115 Set error detection flags. @code{f_err_detect} is deprecated and
116 should be used only via the @command{ffmpeg} tool.
121 Verify embedded CRCs.
123 Detect bitstream specification deviations.
125 Detect improper bitstream length.
127 Abort decoding on minor error detection.
129 Consider things that violate the spec and have not been seen in the
132 Consider all spec non compliancies as errors.
134 Consider things that a sane encoder should not do as an error.
137 @item use_wallclock_as_timestamps @var{integer} (@emph{input})
138 Use wallclock as timestamps.
140 @item avoid_negative_ts @var{integer} (@emph{output})
141 Shift timestamps to make them positive. 1 enables, 0 disables, default
142 of -1 enables when required by target format.
145 @c man end FORMAT OPTIONS
147 @include demuxers.texi
149 @include metadata.texi
154 @url{ffmpeg.html,ffmpeg}, @url{ffplay.html,ffplay}, @url{ffprobe.html,ffprobe}, @url{ffserver.html,ffserver},
155 @url{libavformat.html,libavformat}
159 ffmpeg(1), ffplay(1), ffprobe(1), ffserver(1), libavformat(3)
162 @include authors.texi
166 @setfilename ffmpeg-formats
167 @settitle FFmpeg formats