.\" -*- mode: troff; coding: utf-8 -*-
.\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43)
.\"
.\" Standard preamble:
.\" ========================================================================
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Vb \" Begin verbatim text
.ft CW
.nf
.ne \\$1
..
.de Ve \" End verbatim text
.ft R
.fi
..
.\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.
.ie n \{\
.    ds C` ""
.    ds C' ""
'br\}
.el\{\
.    ds C`
.    ds C'
'br\}
.\"
.\" Escape single quotes in literal strings from groff's Unicode transform.
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\"
.\" If the F register is >0, we'll generate index entries on stderr for
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
.\" entries marked with X<> in POD.  Of course, you'll have to process the
.\" output yourself in some meaningful fashion.
.\"
.\" Avoid warning from groff about undefined register 'F'.
.de IX
..
.nr rF 0
.if \n(.g .if rF .nr rF 1
.if (\n(rF:(\n(.g==0)) \{\
.    if \nF \{\
.        de IX
.        tm Index:\\$1\t\\n%\t"\\$2"
..
.        if !\nF==2 \{\
.            nr % 0
.            nr F 2
.        \}
.    \}
.\}
.rr rF
.\" ========================================================================
.\"
.IX Title "FFPLAY-ALL 1"
.TH FFPLAY-ALL 1 " " " " " "
.\" For nroff, turn off justification.  Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
.nh
.SH NAME
ffplay \- FFplay media player
.SH SYNOPSIS
.IX Header "SYNOPSIS"
ffplay [\fIoptions\fR] [\fIinput_url\fR]
.SH DESCRIPTION
.IX Header "DESCRIPTION"
FFplay is a very simple and portable media player using the FFmpeg
libraries and the SDL library. It is mostly used as a testbed for the
various FFmpeg APIs.
.SH OPTIONS
.IX Header "OPTIONS"
All the numerical options, if not specified otherwise, accept a string
representing a number as input, which may be followed by one of the SI
unit prefixes, for example: 'K', 'M', or 'G'.
.PP
If 'i' is appended to the SI unit prefix, the complete prefix will be
interpreted as a unit prefix for binary multiples, which are based on
powers of 1024 instead of powers of 1000. Appending 'B' to the SI unit
prefix multiplies the value by 8. This allows using, for example:
\&'KB', 'MiB', 'G' and 'B' as number suffixes.
.PP
Options which do not take arguments are boolean options, and set the
corresponding value to true. They can be set to false by prefixing
the option name with "no". For example using "\-nofoo"
will set the boolean option with name "foo" to false.
.SS "Stream specifiers"
.IX Subsection "Stream specifiers"
Some options are applied per-stream, e.g. bitrate or codec. Stream specifiers
are used to precisely specify which stream(s) a given option belongs to.
.PP
A stream specifier is a string generally appended to the option name and
separated from it by a colon. E.g. \f(CW\*(C`\-codec:a:1 ac3\*(C'\fR contains the
\&\f(CW\*(C`a:1\*(C'\fR stream specifier, which matches the second audio stream. Therefore, it
would select the ac3 codec for the second audio stream.
.PP
A stream specifier can match several streams, so that the option is applied to all
of them. E.g. the stream specifier in \f(CW\*(C`\-b:a 128k\*(C'\fR matches all audio
streams.
.PP
An empty stream specifier matches all streams. For example, \f(CW\*(C`\-codec copy\*(C'\fR
or \f(CW\*(C`\-codec: copy\*(C'\fR would copy all the streams without reencoding.
.PP
Possible forms of stream specifiers are:
.IP \fIstream_index\fR 4
.IX Item "stream_index"
Matches the stream with this index. E.g. \f(CW\*(C`\-threads:1 4\*(C'\fR would set the
thread count for the second stream to 4. If \fIstream_index\fR is used as an
additional stream specifier (see below), then it selects stream number
\&\fIstream_index\fR from the matching streams. Stream numbering is based on the
order of the streams as detected by libavformat except when a program ID is
also specified. In this case it is based on the ordering of the streams in the
program.
.IP \fIstream_type\fR\fB[:\fR\fIadditional_stream_specifier\fR\fB]\fR 4
.IX Item "stream_type[:additional_stream_specifier]"
\&\fIstream_type\fR is one of following: 'v' or 'V' for video, 'a' for audio, 's'
for subtitle, 'd' for data, and 't' for attachments. 'v' matches all video
streams, 'V' only matches video streams which are not attached pictures, video
thumbnails or cover arts. If \fIadditional_stream_specifier\fR is used, then
it matches streams which both have this type and match the
\&\fIadditional_stream_specifier\fR. Otherwise, it matches all streams of the
specified type.
.IP \fBp:\fR\fIprogram_id\fR\fB[:\fR\fIadditional_stream_specifier\fR\fB]\fR 4
.IX Item "p:program_id[:additional_stream_specifier]"
Matches streams which are in the program with the id \fIprogram_id\fR. If
\&\fIadditional_stream_specifier\fR is used, then it matches streams which both
are part of the program and match the \fIadditional_stream_specifier\fR.
.IP "\fB#\fR\fIstream_id\fR \fBor i:\fR\fIstream_id\fR" 4
.IX Item "#stream_id or i:stream_id"
Match the stream by stream id (e.g. PID in MPEG-TS container).
.IP \fBm:\fR\fIkey\fR\fB[:\fR\fIvalue\fR\fB]\fR 4
.IX Item "m:key[:value]"
Matches streams with the metadata tag \fIkey\fR having the specified value. If
\&\fIvalue\fR is not given, matches streams that contain the given tag with any
value.
.IP \fBu\fR 4
.IX Item "u"
Matches streams with usable configuration, the codec must be defined and the
essential information such as video dimension or audio sample rate must be present.
.Sp
Note that in \fBffmpeg\fR, matching by metadata will only work properly for
input files.
.SS "Generic options"
.IX Subsection "Generic options"
These options are shared amongst the ff* tools.
.IP \fB\-L\fR 4
.IX Item "-L"
Show license.
.IP "\fB\-h, \-?, \-help, \-\-help [\fR\fIarg\fR\fB]\fR" 4
.IX Item "-h, -?, -help, --help [arg]"
Show help. An optional parameter may be specified to print help about a specific
item. If no argument is specified, only basic (non advanced) tool
options are shown.
.Sp
Possible values of \fIarg\fR are:
.RS 4
.IP \fBlong\fR 4
.IX Item "long"
Print advanced tool options in addition to the basic tool options.
.IP \fBfull\fR 4
.IX Item "full"
Print complete list of options, including shared and private options
for encoders, decoders, demuxers, muxers, filters, etc.
.IP \fBdecoder=\fR\fIdecoder_name\fR 4
.IX Item "decoder=decoder_name"
Print detailed information about the decoder named \fIdecoder_name\fR. Use the
\&\fB\-decoders\fR option to get a list of all decoders.
.IP \fBencoder=\fR\fIencoder_name\fR 4
.IX Item "encoder=encoder_name"
Print detailed information about the encoder named \fIencoder_name\fR. Use the
\&\fB\-encoders\fR option to get a list of all encoders.
.IP \fBdemuxer=\fR\fIdemuxer_name\fR 4
.IX Item "demuxer=demuxer_name"
Print detailed information about the demuxer named \fIdemuxer_name\fR. Use the
\&\fB\-formats\fR option to get a list of all demuxers and muxers.
.IP \fBmuxer=\fR\fImuxer_name\fR 4
.IX Item "muxer=muxer_name"
Print detailed information about the muxer named \fImuxer_name\fR. Use the
\&\fB\-formats\fR option to get a list of all muxers and demuxers.
.IP \fBfilter=\fR\fIfilter_name\fR 4
.IX Item "filter=filter_name"
Print detailed information about the filter named \fIfilter_name\fR. Use the
\&\fB\-filters\fR option to get a list of all filters.
.IP \fBbsf=\fR\fIbitstream_filter_name\fR 4
.IX Item "bsf=bitstream_filter_name"
Print detailed information about the bitstream filter named \fIbitstream_filter_name\fR.
Use the \fB\-bsfs\fR option to get a list of all bitstream filters.
.IP \fBprotocol=\fR\fIprotocol_name\fR 4
.IX Item "protocol=protocol_name"
Print detailed information about the protocol named \fIprotocol_name\fR.
Use the \fB\-protocols\fR option to get a list of all protocols.
.RE
.RS 4
.RE
.IP \fB\-version\fR 4
.IX Item "-version"
Show version.
.IP \fB\-buildconf\fR 4
.IX Item "-buildconf"
Show the build configuration, one option per line.
.IP \fB\-formats\fR 4
.IX Item "-formats"
Show available formats (including devices).
.IP \fB\-demuxers\fR 4
.IX Item "-demuxers"
Show available demuxers.
.IP \fB\-muxers\fR 4
.IX Item "-muxers"
Show available muxers.
.IP \fB\-devices\fR 4
.IX Item "-devices"
Show available devices.
.IP \fB\-codecs\fR 4
.IX Item "-codecs"
Show all codecs known to libavcodec.
.Sp
Note that the term 'codec' is used throughout this documentation as a shortcut
for what is more correctly called a media bitstream format.
.IP \fB\-decoders\fR 4
.IX Item "-decoders"
Show available decoders.
.IP \fB\-encoders\fR 4
.IX Item "-encoders"
Show all available encoders.
.IP \fB\-bsfs\fR 4
.IX Item "-bsfs"
Show available bitstream filters.
.IP \fB\-protocols\fR 4
.IX Item "-protocols"
Show available protocols.
.IP \fB\-filters\fR 4
.IX Item "-filters"
Show available libavfilter filters.
.IP \fB\-pix_fmts\fR 4
.IX Item "-pix_fmts"
Show available pixel formats.
.IP \fB\-sample_fmts\fR 4
.IX Item "-sample_fmts"
Show available sample formats.
.IP \fB\-layouts\fR 4
.IX Item "-layouts"
Show channel names and standard channel layouts.
.IP \fB\-colors\fR 4
.IX Item "-colors"
Show recognized color names.
.IP "\fB\-sources\fR \fIdevice\fR\fB[,\fR\fIopt1\fR\fB=\fR\fIval1\fR\fB[,\fR\fIopt2\fR\fB=\fR\fIval2\fR\fB]...]\fR" 4
.IX Item "-sources device[,opt1=val1[,opt2=val2]...]"
Show autodetected sources of the input device.
Some devices may provide system-dependent source names that cannot be autodetected.
The returned list cannot be assumed to be always complete.
.Sp
.Vb 1
\&        ffmpeg \-sources pulse,server=192.168.0.4
.Ve
.IP "\fB\-sinks\fR \fIdevice\fR\fB[,\fR\fIopt1\fR\fB=\fR\fIval1\fR\fB[,\fR\fIopt2\fR\fB=\fR\fIval2\fR\fB]...]\fR" 4
.IX Item "-sinks device[,opt1=val1[,opt2=val2]...]"
Show autodetected sinks of the output device.
Some devices may provide system-dependent sink names that cannot be autodetected.
The returned list cannot be assumed to be always complete.
.Sp
.Vb 1
\&        ffmpeg \-sinks pulse,server=192.168.0.4
.Ve
.IP "\fB\-loglevel [\fR\fIflags\fR\fB+]\fR\fIloglevel\fR \fB| \-v [\fR\fIflags\fR\fB+]\fR\fIloglevel\fR" 4
.IX Item "-loglevel [flags+]loglevel | -v [flags+]loglevel"
Set logging level and flags used by the library.
.Sp
The optional \fIflags\fR prefix can consist of the following values:
.RS 4
.IP \fBrepeat\fR 4
.IX Item "repeat"
Indicates that repeated log output should not be compressed to the first line
and the "Last message repeated n times" line will be omitted.
.IP \fBlevel\fR 4
.IX Item "level"
Indicates that log output should add a \f(CW\*(C`[level]\*(C'\fR prefix to each message
line. This can be used as an alternative to log coloring, e.g. when dumping the
log to file.
.RE
.RS 4
.Sp
Flags can also be used alone by adding a '+'/'\-' prefix to set/reset a single
flag without affecting other \fIflags\fR or changing \fIloglevel\fR. When
setting both \fIflags\fR and \fIloglevel\fR, a '+' separator is expected
between the last \fIflags\fR value and before \fIloglevel\fR.
.Sp
\&\fIloglevel\fR is a string or a number containing one of the following values:
.IP "\fBquiet, \-8\fR" 4
.IX Item "quiet, -8"
Show nothing at all; be silent.
.IP "\fBpanic, 0\fR" 4
.IX Item "panic, 0"
Only show fatal errors which could lead the process to crash, such as
an assertion failure. This is not currently used for anything.
.IP "\fBfatal, 8\fR" 4
.IX Item "fatal, 8"
Only show fatal errors. These are errors after which the process absolutely
cannot continue.
.IP "\fBerror, 16\fR" 4
.IX Item "error, 16"
Show all errors, including ones which can be recovered from.
.IP "\fBwarning, 24\fR" 4
.IX Item "warning, 24"
Show all warnings and errors. Any message related to possibly
incorrect or unexpected events will be shown.
.IP "\fBinfo, 32\fR" 4
.IX Item "info, 32"
Show informative messages during processing. This is in addition to
warnings and errors. This is the default value.
.IP "\fBverbose, 40\fR" 4
.IX Item "verbose, 40"
Same as \f(CW\*(C`info\*(C'\fR, except more verbose.
.IP "\fBdebug, 48\fR" 4
.IX Item "debug, 48"
Show everything, including debugging information.
.IP "\fBtrace, 56\fR" 4
.IX Item "trace, 56"
.RE
.RS 4
.Sp
For example to enable repeated log output, add the \f(CW\*(C`level\*(C'\fR prefix, and set
\&\fIloglevel\fR to \f(CW\*(C`verbose\*(C'\fR:
.Sp
.Vb 1
\&        ffmpeg \-loglevel repeat+level+verbose \-i input output
.Ve
.Sp
Another example that enables repeated log output without affecting current
state of \f(CW\*(C`level\*(C'\fR prefix flag or \fIloglevel\fR:
.Sp
.Vb 1
\&        ffmpeg [...] \-loglevel +repeat
.Ve
.Sp
By default the program logs to stderr. If coloring is supported by the
terminal, colors are used to mark errors and warnings. Log coloring
can be disabled setting the environment variable
\&\fBAV_LOG_FORCE_NOCOLOR\fR, or can be forced setting
the environment variable \fBAV_LOG_FORCE_COLOR\fR.
.RE
.IP \fB\-report\fR 4
.IX Item "-report"
Dump full command line and log output to a file named
\&\f(CW\*(C`\fR\f(CIprogram\fR\f(CW\-\fR\f(CIYYYYMMDD\fR\f(CW\-\fR\f(CIHHMMSS\fR\f(CW.log\*(C'\fR in the current
directory.
This file can be useful for bug reports.
It also implies \f(CW\*(C`\-loglevel debug\*(C'\fR.
.Sp
Setting the environment variable \fBFFREPORT\fR to any value has the
same effect. If the value is a ':'\-separated key=value sequence, these
options will affect the report; option values must be escaped if they
contain special characters or the options delimiter ':' (see the
``Quoting and escaping'' section in the ffmpeg-utils manual).
.Sp
The following options are recognized:
.RS 4
.IP \fBfile\fR 4
.IX Item "file"
set the file name to use for the report; \f(CW%p\fR is expanded to the name
of the program, \f(CW%t\fR is expanded to a timestamp, \f(CW\*(C`%%\*(C'\fR is expanded
to a plain \f(CW\*(C`%\*(C'\fR
.IP \fBlevel\fR 4
.IX Item "level"
set the log verbosity level using a numerical value (see \f(CW\*(C`\-loglevel\*(C'\fR).
.RE
.RS 4
.Sp
For example, to output a report to a file named \fIffreport.log\fR
using a log level of \f(CW32\fR (alias for log level \f(CW\*(C`info\*(C'\fR):
.Sp
.Vb 1
\&        FFREPORT=file=ffreport.log:level=32 ffmpeg \-i input output
.Ve
.Sp
Errors in parsing the environment variable are not fatal, and will not
appear in the report.
.RE
.IP \fB\-hide_banner\fR 4
.IX Item "-hide_banner"
Suppress printing banner.
.Sp
All FFmpeg tools will normally show a copyright notice, build options
and library versions. This option can be used to suppress printing
this information.
.IP "\fB\-cpuflags flags (\fR\fIglobal\fR\fB)\fR" 4
.IX Item "-cpuflags flags (global)"
Allows setting and clearing cpu flags. This option is intended
for testing. Do not use it unless you know what you're doing.
.Sp
.Vb 3
\&        ffmpeg \-cpuflags \-sse+mmx ...
\&        ffmpeg \-cpuflags mmx ...
\&        ffmpeg \-cpuflags 0 ...
.Ve
.Sp
Possible flags for this option are:
.RS 4
.IP \fBx86\fR 4
.IX Item "x86"
.RS 4
.PD 0
.IP \fBmmx\fR 4
.IX Item "mmx"
.IP \fBmmxext\fR 4
.IX Item "mmxext"
.IP \fBsse\fR 4
.IX Item "sse"
.IP \fBsse2\fR 4
.IX Item "sse2"
.IP \fBsse2slow\fR 4
.IX Item "sse2slow"
.IP \fBsse3\fR 4
.IX Item "sse3"
.IP \fBsse3slow\fR 4
.IX Item "sse3slow"
.IP \fBssse3\fR 4
.IX Item "ssse3"
.IP \fBatom\fR 4
.IX Item "atom"
.IP \fBsse4.1\fR 4
.IX Item "sse4.1"
.IP \fBsse4.2\fR 4
.IX Item "sse4.2"
.IP \fBavx\fR 4
.IX Item "avx"
.IP \fBavx2\fR 4
.IX Item "avx2"
.IP \fBxop\fR 4
.IX Item "xop"
.IP \fBfma3\fR 4
.IX Item "fma3"
.IP \fBfma4\fR 4
.IX Item "fma4"
.IP \fB3dnow\fR 4
.IX Item "3dnow"
.IP \fB3dnowext\fR 4
.IX Item "3dnowext"
.IP \fBbmi1\fR 4
.IX Item "bmi1"
.IP \fBbmi2\fR 4
.IX Item "bmi2"
.IP \fBcmov\fR 4
.IX Item "cmov"
.RE
.RS 4
.RE
.IP \fBARM\fR 4
.IX Item "ARM"
.RS 4
.IP \fBarmv5te\fR 4
.IX Item "armv5te"
.IP \fBarmv6\fR 4
.IX Item "armv6"
.IP \fBarmv6t2\fR 4
.IX Item "armv6t2"
.IP \fBvfp\fR 4
.IX Item "vfp"
.IP \fBvfpv3\fR 4
.IX Item "vfpv3"
.IP \fBneon\fR 4
.IX Item "neon"
.IP \fBsetend\fR 4
.IX Item "setend"
.RE
.RS 4
.RE
.IP \fBAArch64\fR 4
.IX Item "AArch64"
.RS 4
.IP \fBarmv8\fR 4
.IX Item "armv8"
.IP \fBvfp\fR 4
.IX Item "vfp"
.IP \fBneon\fR 4
.IX Item "neon"
.RE
.RS 4
.RE
.IP \fBPowerPC\fR 4
.IX Item "PowerPC"
.RS 4
.IP \fBaltivec\fR 4
.IX Item "altivec"
.RE
.RS 4
.RE
.IP "\fBSpecific Processors\fR" 4
.IX Item "Specific Processors"
.RS 4
.IP \fBpentium2\fR 4
.IX Item "pentium2"
.IP \fBpentium3\fR 4
.IX Item "pentium3"
.IP \fBpentium4\fR 4
.IX Item "pentium4"
.IP \fBk6\fR 4
.IX Item "k6"
.IP \fBk62\fR 4
.IX Item "k62"
.IP \fBathlon\fR 4
.IX Item "athlon"
.IP \fBathlonxp\fR 4
.IX Item "athlonxp"
.IP \fBk8\fR 4
.IX Item "k8"
.RE
.RS 4
.RE
.RE
.RS 4
.RE
.IP "\fB\-max_alloc\fR \fIbytes\fR" 4
.IX Item "-max_alloc bytes"
.PD
Set the maximum size limit for allocating a block on the heap by ffmpeg's
family of malloc functions. Exercise \fBextreme caution\fR when using
this option. Don't use if you do not understand the full consequence of doing so.
Default is INT_MAX.
.SS AVOptions
.IX Subsection "AVOptions"
These options are provided directly by the libavformat, libavdevice and
libavcodec libraries. To see the list of available AVOptions, use the
\&\fB\-help\fR option. They are separated into two categories:
.IP \fBgeneric\fR 4
.IX Item "generic"
These options can be set for any container, codec or device. Generic options
are listed under AVFormatContext options for containers/devices and under
AVCodecContext options for codecs.
.IP \fBprivate\fR 4
.IX Item "private"
These options are specific to the given container, device or codec. Private
options are listed under their corresponding containers/devices/codecs.
.PP
For example to write an ID3v2.3 header instead of a default ID3v2.4 to
an MP3 file, use the \fBid3v2_version\fR private option of the MP3
muxer:
.PP
.Vb 1
\&        ffmpeg \-i input.flac \-id3v2_version 3 out.mp3
.Ve
.PP
All codec AVOptions are per-stream, and thus a stream specifier
should be attached to them:
.PP
.Vb 1
\&        ffmpeg \-i multichannel.mxf \-map 0:v:0 \-map 0:a:0 \-map 0:a:0 \-c:a:0 ac3 \-b:a:0 640k \-ac:a:1 2 \-c:a:1 aac \-b:2 128k out.mp4
.Ve
.PP
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 using
absolute index of the output stream.
.PP
Note: the \fB\-nooption\fR syntax cannot be used for boolean
AVOptions, use \fB\-option 0\fR/\fB\-option 1\fR.
.PP
Note: the old undocumented way of specifying per-stream AVOptions by
prepending v/a/s to the options name is now obsolete and will be
removed soon.
.SS "Main options"
.IX Subsection "Main options"
.IP "\fB\-x\fR \fIwidth\fR" 4
.IX Item "-x width"
Force displayed width.
.IP "\fB\-y\fR \fIheight\fR" 4
.IX Item "-y height"
Force displayed height.
.IP "\fB\-s\fR \fIsize\fR" 4
.IX Item "-s size"
Set frame size (WxH or abbreviation), needed for videos which do
not contain a header with the frame size like raw YUV.  This option
has been deprecated in favor of private options, try \-video_size.
.IP \fB\-fs\fR 4
.IX Item "-fs"
Start in fullscreen mode.
.IP \fB\-an\fR 4
.IX Item "-an"
Disable audio.
.IP \fB\-vn\fR 4
.IX Item "-vn"
Disable video.
.IP \fB\-sn\fR 4
.IX Item "-sn"
Disable subtitles.
.IP "\fB\-ss\fR \fIpos\fR" 4
.IX Item "-ss pos"
Seek to \fIpos\fR. Note that in most formats it is not possible to seek
exactly, so \fBffplay\fR will seek to the nearest seek point to
\&\fIpos\fR.
.Sp
\&\fIpos\fR must be a time duration specification,
see \fBthe Time duration section in the ffmpeg\-utils\|(1) manual\fR.
.IP "\fB\-t\fR \fIduration\fR" 4
.IX Item "-t duration"
Play \fIduration\fR seconds of audio/video.
.Sp
\&\fIduration\fR must be a time duration specification,
see \fBthe Time duration section in the ffmpeg\-utils\|(1) manual\fR.
.IP \fB\-bytes\fR 4
.IX Item "-bytes"
Seek by bytes.
.IP \fB\-seek_interval\fR 4
.IX Item "-seek_interval"
Set custom interval, in seconds, for seeking using left/right keys. Default is 10 seconds.
.IP \fB\-nodisp\fR 4
.IX Item "-nodisp"
Disable graphical display.
.IP \fB\-noborder\fR 4
.IX Item "-noborder"
Borderless window.
.IP \fB\-alwaysontop\fR 4
.IX Item "-alwaysontop"
Window always on top. Available on: X11 with SDL >= 2.0.5, Windows SDL >= 2.0.6.
.IP \fB\-volume\fR 4
.IX Item "-volume"
Set the startup volume. 0 means silence, 100 means no volume reduction or
amplification. Negative values are treated as 0, values above 100 are treated
as 100.
.IP "\fB\-f\fR \fIfmt\fR" 4
.IX Item "-f fmt"
Force format.
.IP "\fB\-window_title\fR \fItitle\fR" 4
.IX Item "-window_title title"
Set window title (default is the input filename).
.IP "\fB\-left\fR \fItitle\fR" 4
.IX Item "-left title"
Set the x position for the left of the window (default is a centered window).
.IP "\fB\-top\fR \fItitle\fR" 4
.IX Item "-top title"
Set the y position for the top of the window (default is a centered window).
.IP "\fB\-loop\fR \fInumber\fR" 4
.IX Item "-loop number"
Loops movie playback <number> times. 0 means forever.
.IP "\fB\-showmode\fR \fImode\fR" 4
.IX Item "-showmode mode"
Set the show mode to use.
Available values for \fImode\fR are:
.RS 4
.IP "\fB0, video\fR" 4
.IX Item "0, video"
show video
.IP "\fB1, waves\fR" 4
.IX Item "1, waves"
show audio waves
.IP "\fB2, rdft\fR" 4
.IX Item "2, rdft"
show audio frequency band using RDFT ((Inverse) Real Discrete Fourier Transform)
.RE
.RS 4
.Sp
Default value is "video", if video is not present or cannot be played
"rdft" is automatically selected.
.Sp
You can interactively cycle through the available show modes by
pressing the key \fBw\fR.
.RE
.IP "\fB\-vf\fR \fIfiltergraph\fR" 4
.IX Item "-vf filtergraph"
Create the filtergraph specified by \fIfiltergraph\fR and use it to
filter the video stream.
.Sp
\&\fIfiltergraph\fR is a description of the filtergraph to apply to
the stream, and must have a single video input and a single video
output. In the filtergraph, the input is associated to the label
\&\f(CW\*(C`in\*(C'\fR, and the output to the label \f(CW\*(C`out\*(C'\fR. See the
ffmpeg-filters manual for more information about the filtergraph
syntax.
.Sp
You can specify this parameter multiple times and cycle through the specified
filtergraphs along with the show modes by pressing the key \fBw\fR.
.IP "\fB\-af\fR \fIfiltergraph\fR" 4
.IX Item "-af filtergraph"
\&\fIfiltergraph\fR is a description of the filtergraph to apply to
the input audio.
Use the option "\-filters" to show all the available filters (including
sources and sinks).
.IP "\fB\-i\fR \fIinput_url\fR" 4
.IX Item "-i input_url"
Read \fIinput_url\fR.
.SS "Advanced options"
.IX Subsection "Advanced options"
.IP "\fB\-pix_fmt\fR \fIformat\fR" 4
.IX Item "-pix_fmt format"
Set pixel format.
This option has been deprecated in favor of private options, try \-pixel_format.
.IP \fB\-stats\fR 4
.IX Item "-stats"
Print several playback statistics, in particular show the stream
duration, the codec parameters, the current position in the stream and
the audio/video synchronisation drift. It is shown by default, unless the
log level is lower than \f(CW\*(C`info\*(C'\fR. Its display can be forced by manually
specifying this option. To disable it, you need to specify \f(CW\*(C`\-nostats\*(C'\fR.
.IP \fB\-fast\fR 4
.IX Item "-fast"
Non-spec-compliant optimizations.
.IP \fB\-genpts\fR 4
.IX Item "-genpts"
Generate pts.
.IP "\fB\-sync\fR \fItype\fR" 4
.IX Item "-sync type"
Set the master clock to audio (\f(CW\*(C`type=audio\*(C'\fR), video
(\f(CW\*(C`type=video\*(C'\fR) or external (\f(CW\*(C`type=ext\*(C'\fR). Default is audio. The
master clock is used to control audio-video synchronization. Most media
players use audio as master clock, but in some cases (streaming or high
quality broadcast) it is necessary to change that. This option is mainly
used for debugging purposes.
.IP "\fB\-ast\fR \fIaudio_stream_specifier\fR" 4
.IX Item "-ast audio_stream_specifier"
Select the desired audio stream using the given stream specifier. The stream
specifiers are described in the \fBStream specifiers\fR chapter. If this option
is not specified, the "best" audio stream is selected in the program of the
already selected video stream.
.IP "\fB\-vst\fR \fIvideo_stream_specifier\fR" 4
.IX Item "-vst video_stream_specifier"
Select the desired video stream using the given stream specifier. The stream
specifiers are described in the \fBStream specifiers\fR chapter. If this option
is not specified, the "best" video stream is selected.
.IP "\fB\-sst\fR \fIsubtitle_stream_specifier\fR" 4
.IX Item "-sst subtitle_stream_specifier"
Select the desired subtitle stream using the given stream specifier. The stream
specifiers are described in the \fBStream specifiers\fR chapter. If this option
is not specified, the "best" subtitle stream is selected in the program of the
already selected video or audio stream.
.IP \fB\-autoexit\fR 4
.IX Item "-autoexit"
Exit when video is done playing.
.IP \fB\-exitonkeydown\fR 4
.IX Item "-exitonkeydown"
Exit if any key is pressed.
.IP \fB\-exitonmousedown\fR 4
.IX Item "-exitonmousedown"
Exit if any mouse button is pressed.
.IP "\fB\-codec:\fR\fImedia_specifier\fR\fB \fR\fIcodec_name\fR" 4
.IX Item "-codec:media_specifier codec_name"
Force a specific decoder implementation for the stream identified by
\&\fImedia_specifier\fR, which can assume the values \f(CW\*(C`a\*(C'\fR (audio),
\&\f(CW\*(C`v\*(C'\fR (video), and \f(CW\*(C`s\*(C'\fR subtitle.
.IP "\fB\-acodec\fR \fIcodec_name\fR" 4
.IX Item "-acodec codec_name"
Force a specific audio decoder.
.IP "\fB\-vcodec\fR \fIcodec_name\fR" 4
.IX Item "-vcodec codec_name"
Force a specific video decoder.
.IP "\fB\-scodec\fR \fIcodec_name\fR" 4
.IX Item "-scodec codec_name"
Force a specific subtitle decoder.
.IP \fB\-autorotate\fR 4
.IX Item "-autorotate"
Automatically rotate the video according to file metadata. Enabled by
default, use \fB\-noautorotate\fR to disable it.
.IP \fB\-framedrop\fR 4
.IX Item "-framedrop"
Drop video frames if video is out of sync. Enabled by default if the master
clock is not set to video. Use this option to enable frame dropping for all
master clock sources, use \fB\-noframedrop\fR to disable it.
.IP \fB\-infbuf\fR 4
.IX Item "-infbuf"
Do not limit the input buffer size, read as much data as possible from the
input as soon as possible. Enabled by default for realtime streams, where data
may be dropped if not read in time. Use this option to enable infinite buffers
for all inputs, use \fB\-noinfbuf\fR to disable it.
.IP "\fB\-filter_threads\fR \fInb_threads\fR" 4
.IX Item "-filter_threads nb_threads"
Defines how many threads are used to process a filter pipeline. Each pipeline
will produce a thread pool with this many threads available for parallel
processing. The default is 0 which means that the thread count will be
determined by the number of available CPUs.
.SS "While playing"
.IX Subsection "While playing"
.IP "\fBq, ESC\fR" 4
.IX Item "q, ESC"
Quit.
.IP \fBf\fR 4
.IX Item "f"
Toggle full screen.
.IP "\fBp, SPC\fR" 4
.IX Item "p, SPC"
Pause.
.IP \fBm\fR 4
.IX Item "m"
Toggle mute.
.IP "\fB9, 0\fR" 4
.IX Item "9, 0"
Decrease and increase volume respectively.
.IP "\fB/, *\fR" 4
.IX Item "/, *"
Decrease and increase volume respectively.
.IP \fBa\fR 4
.IX Item "a"
Cycle audio channel in the current program.
.IP \fBv\fR 4
.IX Item "v"
Cycle video channel.
.IP \fBt\fR 4
.IX Item "t"
Cycle subtitle channel in the current program.
.IP \fBc\fR 4
.IX Item "c"
Cycle program.
.IP \fBw\fR 4
.IX Item "w"
Cycle video filters or show modes.
.IP \fBs\fR 4
.IX Item "s"
Step to the next frame.
.Sp
Pause if the stream is not already paused, step to the next video
frame, and pause.
.IP \fBleft/right\fR 4
.IX Item "left/right"
Seek backward/forward 10 seconds.
.IP \fBdown/up\fR 4
.IX Item "down/up"
Seek backward/forward 1 minute.
.IP "\fBpage down/page up\fR" 4
.IX Item "page down/page up"
Seek to the previous/next chapter.
or if there are no chapters
Seek backward/forward 10 minutes.
.IP "\fBright mouse click\fR" 4
.IX Item "right mouse click"
Seek to percentage in file corresponding to fraction of width.
.IP "\fBleft mouse double-click\fR" 4
.IX Item "left mouse double-click"
Toggle full screen.
.SH SYNTAX
.IX Header "SYNTAX"
This section documents the syntax and formats employed by the FFmpeg
libraries and tools.
.SS "Quoting and escaping"
.IX Subsection "Quoting and escaping"
FFmpeg adopts the following quoting and escaping mechanism, unless
explicitly specified. The following rules are applied:
.IP \(bu 4
\&\fB'\fR and \fB\e\fR are special characters (respectively used for
quoting and escaping). In addition to them, there might be other
special characters depending on the specific syntax where the escaping
and quoting are employed.
.IP \(bu 4
A special character is escaped by prefixing it with a \fB\e\fR.
.IP \(bu 4
All characters enclosed between \fB''\fR are included literally in the
parsed string. The quote character \fB'\fR itself cannot be quoted,
so you may need to close the quote and escape it.
.IP \(bu 4
Leading and trailing whitespaces, unless escaped or quoted, are
removed from the parsed string.
.PP
Note that you may need to add a second level of escaping when using
the command line or a script, which depends on the syntax of the
adopted shell language.
.PP
The function \f(CW\*(C`av_get_token\*(C'\fR defined in
\&\fIlibavutil/avstring.h\fR can be used to parse a token quoted or
escaped according to the rules defined above.
.PP
The tool \fItools/ffescape\fR in the FFmpeg source tree can be used
to automatically quote or escape a string in a script.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Escape the string \f(CW\*(C`Crime d\*(AqAmour\*(C'\fR containing the \f(CW\*(C`\*(Aq\*(C'\fR special
character:
.Sp
.Vb 1
\&        Crime d\e\*(AqAmour
.Ve
.IP \(bu 4
The string above contains a quote, so the \f(CW\*(C`\*(Aq\*(C'\fR needs to be escaped
when quoting it:
.Sp
.Vb 1
\&        \*(AqCrime d\*(Aq\e\*(Aq\*(AqAmour\*(Aq
.Ve
.IP \(bu 4
Include leading or trailing whitespaces using quoting:
.Sp
.Vb 1
\&        \*(Aq  this string starts and ends with whitespaces  \*(Aq
.Ve
.IP \(bu 4
Escaping and quoting can be mixed together:
.Sp
.Vb 1
\&        \*(Aq The string \*(Aq\e\*(Aqstring\e\*(Aq\*(Aq is a string \*(Aq
.Ve
.IP \(bu 4
To include a literal \fB\e\fR you can use either escaping or quoting:
.Sp
.Vb 1
\&        \*(Aqc:\efoo\*(Aq can be written as c:\e\efoo
.Ve
.SS Date
.IX Subsection "Date"
The accepted syntax is:
.PP
.Vb 2
\&        [(YYYY\-MM\-DD|YYYYMMDD)[T|t| ]]((HH:MM:SS[.m...]]])|(HHMMSS[.m...]]]))[Z]
\&        now
.Ve
.PP
If the value is "now" it takes the current time.
.PP
Time is local time unless Z is appended, in which case it is
interpreted as UTC.
If the year-month-day part is not specified it takes the current
year-month-day.
.SS "Time duration"
.IX Subsection "Time duration"
There are two accepted syntaxes for expressing time duration.
.PP
.Vb 1
\&        [\-][<HH>:]<MM>:<SS>[.<m>...]
.Ve
.PP
\&\fIHH\fR expresses the number of hours, \fIMM\fR the number of minutes
for a maximum of 2 digits, and \fISS\fR the number of seconds for a
maximum of 2 digits. The \fIm\fR at the end expresses decimal value for
\&\fISS\fR.
.PP
\&\fIor\fR
.PP
.Vb 1
\&        [\-]<S>+[.<m>...][s|ms|us]
.Ve
.PP
\&\fIS\fR expresses the number of seconds, with the optional decimal part
\&\fIm\fR.  The optional literal suffixes \fBs\fR, \fBms\fR or \fBus\fR
indicate to interpret the value as seconds, milliseconds or microseconds,
respectively.
.PP
In both expressions, the optional \fB\-\fR indicates negative duration.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.PP
The following examples are all valid time duration:
.IP \fB55\fR 4
.IX Item "55"
55 seconds
.IP \fB0.2\fR 4
.IX Item "0.2"
0.2 seconds
.IP \fB200ms\fR 4
.IX Item "200ms"
200 milliseconds, that's 0.2s
.IP \fB200000us\fR 4
.IX Item "200000us"
200000 microseconds, that's 0.2s
.IP \fB12:03:45\fR 4
.IX Item "12:03:45"
12 hours, 03 minutes and 45 seconds
.IP \fB23.189\fR 4
.IX Item "23.189"
23.189 seconds
.SS "Video size"
.IX Subsection "Video size"
Specify the size of the sourced video, it may be a string of the form
\&\fIwidth\fRx\fIheight\fR, or the name of a size abbreviation.
.PP
The following abbreviations are recognized:
.IP \fBntsc\fR 4
.IX Item "ntsc"
720x480
.IP \fBpal\fR 4
.IX Item "pal"
720x576
.IP \fBqntsc\fR 4
.IX Item "qntsc"
352x240
.IP \fBqpal\fR 4
.IX Item "qpal"
352x288
.IP \fBsntsc\fR 4
.IX Item "sntsc"
640x480
.IP \fBspal\fR 4
.IX Item "spal"
768x576
.IP \fBfilm\fR 4
.IX Item "film"
352x240
.IP \fBntsc-film\fR 4
.IX Item "ntsc-film"
352x240
.IP \fBsqcif\fR 4
.IX Item "sqcif"
128x96
.IP \fBqcif\fR 4
.IX Item "qcif"
176x144
.IP \fBcif\fR 4
.IX Item "cif"
352x288
.IP \fB4cif\fR 4
.IX Item "4cif"
704x576
.IP \fB16cif\fR 4
.IX Item "16cif"
1408x1152
.IP \fBqqvga\fR 4
.IX Item "qqvga"
160x120
.IP \fBqvga\fR 4
.IX Item "qvga"
320x240
.IP \fBvga\fR 4
.IX Item "vga"
640x480
.IP \fBsvga\fR 4
.IX Item "svga"
800x600
.IP \fBxga\fR 4
.IX Item "xga"
1024x768
.IP \fBuxga\fR 4
.IX Item "uxga"
1600x1200
.IP \fBqxga\fR 4
.IX Item "qxga"
2048x1536
.IP \fBsxga\fR 4
.IX Item "sxga"
1280x1024
.IP \fBqsxga\fR 4
.IX Item "qsxga"
2560x2048
.IP \fBhsxga\fR 4
.IX Item "hsxga"
5120x4096
.IP \fBwvga\fR 4
.IX Item "wvga"
852x480
.IP \fBwxga\fR 4
.IX Item "wxga"
1366x768
.IP \fBwsxga\fR 4
.IX Item "wsxga"
1600x1024
.IP \fBwuxga\fR 4
.IX Item "wuxga"
1920x1200
.IP \fBwoxga\fR 4
.IX Item "woxga"
2560x1600
.IP \fBwqsxga\fR 4
.IX Item "wqsxga"
3200x2048
.IP \fBwquxga\fR 4
.IX Item "wquxga"
3840x2400
.IP \fBwhsxga\fR 4
.IX Item "whsxga"
6400x4096
.IP \fBwhuxga\fR 4
.IX Item "whuxga"
7680x4800
.IP \fBcga\fR 4
.IX Item "cga"
320x200
.IP \fBega\fR 4
.IX Item "ega"
640x350
.IP \fBhd480\fR 4
.IX Item "hd480"
852x480
.IP \fBhd720\fR 4
.IX Item "hd720"
1280x720
.IP \fBhd1080\fR 4
.IX Item "hd1080"
1920x1080
.IP \fB2k\fR 4
.IX Item "2k"
2048x1080
.IP \fB2kflat\fR 4
.IX Item "2kflat"
1998x1080
.IP \fB2kscope\fR 4
.IX Item "2kscope"
2048x858
.IP \fB4k\fR 4
.IX Item "4k"
4096x2160
.IP \fB4kflat\fR 4
.IX Item "4kflat"
3996x2160
.IP \fB4kscope\fR 4
.IX Item "4kscope"
4096x1716
.IP \fBnhd\fR 4
.IX Item "nhd"
640x360
.IP \fBhqvga\fR 4
.IX Item "hqvga"
240x160
.IP \fBwqvga\fR 4
.IX Item "wqvga"
400x240
.IP \fBfwqvga\fR 4
.IX Item "fwqvga"
432x240
.IP \fBhvga\fR 4
.IX Item "hvga"
480x320
.IP \fBqhd\fR 4
.IX Item "qhd"
960x540
.IP \fB2kdci\fR 4
.IX Item "2kdci"
2048x1080
.IP \fB4kdci\fR 4
.IX Item "4kdci"
4096x2160
.IP \fBuhd2160\fR 4
.IX Item "uhd2160"
3840x2160
.IP \fBuhd4320\fR 4
.IX Item "uhd4320"
7680x4320
.SS "Video rate"
.IX Subsection "Video rate"
Specify the frame rate of a video, expressed as the number of frames
generated per second. It has to be a string in the format
\&\fIframe_rate_num\fR/\fIframe_rate_den\fR, an integer number, a float
number or a valid video frame rate abbreviation.
.PP
The following abbreviations are recognized:
.IP \fBntsc\fR 4
.IX Item "ntsc"
30000/1001
.IP \fBpal\fR 4
.IX Item "pal"
25/1
.IP \fBqntsc\fR 4
.IX Item "qntsc"
30000/1001
.IP \fBqpal\fR 4
.IX Item "qpal"
25/1
.IP \fBsntsc\fR 4
.IX Item "sntsc"
30000/1001
.IP \fBspal\fR 4
.IX Item "spal"
25/1
.IP \fBfilm\fR 4
.IX Item "film"
24/1
.IP \fBntsc-film\fR 4
.IX Item "ntsc-film"
24000/1001
.SS Ratio
.IX Subsection "Ratio"
A ratio can be expressed as an expression, or in the form
\&\fInumerator\fR:\fIdenominator\fR.
.PP
Note that a ratio with infinite (1/0) or negative value is
considered valid, so you should check on the returned value if you
want to exclude those values.
.PP
The undefined value can be expressed using the "0:0" string.
.SS Color
.IX Subsection "Color"
It can be the name of a color as defined below (case insensitive match) or a
\&\f(CW\*(C`[0x|#]RRGGBB[AA]\*(C'\fR sequence, possibly followed by @ and a string
representing the alpha component.
.PP
The alpha component may be a string composed by "0x" followed by an
hexadecimal number or a decimal number between 0.0 and 1.0, which
represents the opacity value (\fB0x00\fR or \fB0.0\fR means completely
transparent, \fB0xff\fR or \fB1.0\fR completely opaque). If the alpha
component is not specified then \fB0xff\fR is assumed.
.PP
The string \fBrandom\fR will result in a random color.
.PP
The following names of colors are recognized:
.IP \fBAliceBlue\fR 4
.IX Item "AliceBlue"
0xF0F8FF
.IP \fBAntiqueWhite\fR 4
.IX Item "AntiqueWhite"
0xFAEBD7
.IP \fBAqua\fR 4
.IX Item "Aqua"
0x00FFFF
.IP \fBAquamarine\fR 4
.IX Item "Aquamarine"
0x7FFFD4
.IP \fBAzure\fR 4
.IX Item "Azure"
0xF0FFFF
.IP \fBBeige\fR 4
.IX Item "Beige"
0xF5F5DC
.IP \fBBisque\fR 4
.IX Item "Bisque"
0xFFE4C4
.IP \fBBlack\fR 4
.IX Item "Black"
0x000000
.IP \fBBlanchedAlmond\fR 4
.IX Item "BlanchedAlmond"
0xFFEBCD
.IP \fBBlue\fR 4
.IX Item "Blue"
0x0000FF
.IP \fBBlueViolet\fR 4
.IX Item "BlueViolet"
0x8A2BE2
.IP \fBBrown\fR 4
.IX Item "Brown"
0xA52A2A
.IP \fBBurlyWood\fR 4
.IX Item "BurlyWood"
0xDEB887
.IP \fBCadetBlue\fR 4
.IX Item "CadetBlue"
0x5F9EA0
.IP \fBChartreuse\fR 4
.IX Item "Chartreuse"
0x7FFF00
.IP \fBChocolate\fR 4
.IX Item "Chocolate"
0xD2691E
.IP \fBCoral\fR 4
.IX Item "Coral"
0xFF7F50
.IP \fBCornflowerBlue\fR 4
.IX Item "CornflowerBlue"
0x6495ED
.IP \fBCornsilk\fR 4
.IX Item "Cornsilk"
0xFFF8DC
.IP \fBCrimson\fR 4
.IX Item "Crimson"
0xDC143C
.IP \fBCyan\fR 4
.IX Item "Cyan"
0x00FFFF
.IP \fBDarkBlue\fR 4
.IX Item "DarkBlue"
0x00008B
.IP \fBDarkCyan\fR 4
.IX Item "DarkCyan"
0x008B8B
.IP \fBDarkGoldenRod\fR 4
.IX Item "DarkGoldenRod"
0xB8860B
.IP \fBDarkGray\fR 4
.IX Item "DarkGray"
0xA9A9A9
.IP \fBDarkGreen\fR 4
.IX Item "DarkGreen"
0x006400
.IP \fBDarkKhaki\fR 4
.IX Item "DarkKhaki"
0xBDB76B
.IP \fBDarkMagenta\fR 4
.IX Item "DarkMagenta"
0x8B008B
.IP \fBDarkOliveGreen\fR 4
.IX Item "DarkOliveGreen"
0x556B2F
.IP \fBDarkorange\fR 4
.IX Item "Darkorange"
0xFF8C00
.IP \fBDarkOrchid\fR 4
.IX Item "DarkOrchid"
0x9932CC
.IP \fBDarkRed\fR 4
.IX Item "DarkRed"
0x8B0000
.IP \fBDarkSalmon\fR 4
.IX Item "DarkSalmon"
0xE9967A
.IP \fBDarkSeaGreen\fR 4
.IX Item "DarkSeaGreen"
0x8FBC8F
.IP \fBDarkSlateBlue\fR 4
.IX Item "DarkSlateBlue"
0x483D8B
.IP \fBDarkSlateGray\fR 4
.IX Item "DarkSlateGray"
0x2F4F4F
.IP \fBDarkTurquoise\fR 4
.IX Item "DarkTurquoise"
0x00CED1
.IP \fBDarkViolet\fR 4
.IX Item "DarkViolet"
0x9400D3
.IP \fBDeepPink\fR 4
.IX Item "DeepPink"
0xFF1493
.IP \fBDeepSkyBlue\fR 4
.IX Item "DeepSkyBlue"
0x00BFFF
.IP \fBDimGray\fR 4
.IX Item "DimGray"
0x696969
.IP \fBDodgerBlue\fR 4
.IX Item "DodgerBlue"
0x1E90FF
.IP \fBFireBrick\fR 4
.IX Item "FireBrick"
0xB22222
.IP \fBFloralWhite\fR 4
.IX Item "FloralWhite"
0xFFFAF0
.IP \fBForestGreen\fR 4
.IX Item "ForestGreen"
0x228B22
.IP \fBFuchsia\fR 4
.IX Item "Fuchsia"
0xFF00FF
.IP \fBGainsboro\fR 4
.IX Item "Gainsboro"
0xDCDCDC
.IP \fBGhostWhite\fR 4
.IX Item "GhostWhite"
0xF8F8FF
.IP \fBGold\fR 4
.IX Item "Gold"
0xFFD700
.IP \fBGoldenRod\fR 4
.IX Item "GoldenRod"
0xDAA520
.IP \fBGray\fR 4
.IX Item "Gray"
0x808080
.IP \fBGreen\fR 4
.IX Item "Green"
0x008000
.IP \fBGreenYellow\fR 4
.IX Item "GreenYellow"
0xADFF2F
.IP \fBHoneyDew\fR 4
.IX Item "HoneyDew"
0xF0FFF0
.IP \fBHotPink\fR 4
.IX Item "HotPink"
0xFF69B4
.IP \fBIndianRed\fR 4
.IX Item "IndianRed"
0xCD5C5C
.IP \fBIndigo\fR 4
.IX Item "Indigo"
0x4B0082
.IP \fBIvory\fR 4
.IX Item "Ivory"
0xFFFFF0
.IP \fBKhaki\fR 4
.IX Item "Khaki"
0xF0E68C
.IP \fBLavender\fR 4
.IX Item "Lavender"
0xE6E6FA
.IP \fBLavenderBlush\fR 4
.IX Item "LavenderBlush"
0xFFF0F5
.IP \fBLawnGreen\fR 4
.IX Item "LawnGreen"
0x7CFC00
.IP \fBLemonChiffon\fR 4
.IX Item "LemonChiffon"
0xFFFACD
.IP \fBLightBlue\fR 4
.IX Item "LightBlue"
0xADD8E6
.IP \fBLightCoral\fR 4
.IX Item "LightCoral"
0xF08080
.IP \fBLightCyan\fR 4
.IX Item "LightCyan"
0xE0FFFF
.IP \fBLightGoldenRodYellow\fR 4
.IX Item "LightGoldenRodYellow"
0xFAFAD2
.IP \fBLightGreen\fR 4
.IX Item "LightGreen"
0x90EE90
.IP \fBLightGrey\fR 4
.IX Item "LightGrey"
0xD3D3D3
.IP \fBLightPink\fR 4
.IX Item "LightPink"
0xFFB6C1
.IP \fBLightSalmon\fR 4
.IX Item "LightSalmon"
0xFFA07A
.IP \fBLightSeaGreen\fR 4
.IX Item "LightSeaGreen"
0x20B2AA
.IP \fBLightSkyBlue\fR 4
.IX Item "LightSkyBlue"
0x87CEFA
.IP \fBLightSlateGray\fR 4
.IX Item "LightSlateGray"
0x778899
.IP \fBLightSteelBlue\fR 4
.IX Item "LightSteelBlue"
0xB0C4DE
.IP \fBLightYellow\fR 4
.IX Item "LightYellow"
0xFFFFE0
.IP \fBLime\fR 4
.IX Item "Lime"
0x00FF00
.IP \fBLimeGreen\fR 4
.IX Item "LimeGreen"
0x32CD32
.IP \fBLinen\fR 4
.IX Item "Linen"
0xFAF0E6
.IP \fBMagenta\fR 4
.IX Item "Magenta"
0xFF00FF
.IP \fBMaroon\fR 4
.IX Item "Maroon"
0x800000
.IP \fBMediumAquaMarine\fR 4
.IX Item "MediumAquaMarine"
0x66CDAA
.IP \fBMediumBlue\fR 4
.IX Item "MediumBlue"
0x0000CD
.IP \fBMediumOrchid\fR 4
.IX Item "MediumOrchid"
0xBA55D3
.IP \fBMediumPurple\fR 4
.IX Item "MediumPurple"
0x9370D8
.IP \fBMediumSeaGreen\fR 4
.IX Item "MediumSeaGreen"
0x3CB371
.IP \fBMediumSlateBlue\fR 4
.IX Item "MediumSlateBlue"
0x7B68EE
.IP \fBMediumSpringGreen\fR 4
.IX Item "MediumSpringGreen"
0x00FA9A
.IP \fBMediumTurquoise\fR 4
.IX Item "MediumTurquoise"
0x48D1CC
.IP \fBMediumVioletRed\fR 4
.IX Item "MediumVioletRed"
0xC71585
.IP \fBMidnightBlue\fR 4
.IX Item "MidnightBlue"
0x191970
.IP \fBMintCream\fR 4
.IX Item "MintCream"
0xF5FFFA
.IP \fBMistyRose\fR 4
.IX Item "MistyRose"
0xFFE4E1
.IP \fBMoccasin\fR 4
.IX Item "Moccasin"
0xFFE4B5
.IP \fBNavajoWhite\fR 4
.IX Item "NavajoWhite"
0xFFDEAD
.IP \fBNavy\fR 4
.IX Item "Navy"
0x000080
.IP \fBOldLace\fR 4
.IX Item "OldLace"
0xFDF5E6
.IP \fBOlive\fR 4
.IX Item "Olive"
0x808000
.IP \fBOliveDrab\fR 4
.IX Item "OliveDrab"
0x6B8E23
.IP \fBOrange\fR 4
.IX Item "Orange"
0xFFA500
.IP \fBOrangeRed\fR 4
.IX Item "OrangeRed"
0xFF4500
.IP \fBOrchid\fR 4
.IX Item "Orchid"
0xDA70D6
.IP \fBPaleGoldenRod\fR 4
.IX Item "PaleGoldenRod"
0xEEE8AA
.IP \fBPaleGreen\fR 4
.IX Item "PaleGreen"
0x98FB98
.IP \fBPaleTurquoise\fR 4
.IX Item "PaleTurquoise"
0xAFEEEE
.IP \fBPaleVioletRed\fR 4
.IX Item "PaleVioletRed"
0xD87093
.IP \fBPapayaWhip\fR 4
.IX Item "PapayaWhip"
0xFFEFD5
.IP \fBPeachPuff\fR 4
.IX Item "PeachPuff"
0xFFDAB9
.IP \fBPeru\fR 4
.IX Item "Peru"
0xCD853F
.IP \fBPink\fR 4
.IX Item "Pink"
0xFFC0CB
.IP \fBPlum\fR 4
.IX Item "Plum"
0xDDA0DD
.IP \fBPowderBlue\fR 4
.IX Item "PowderBlue"
0xB0E0E6
.IP \fBPurple\fR 4
.IX Item "Purple"
0x800080
.IP \fBRed\fR 4
.IX Item "Red"
0xFF0000
.IP \fBRosyBrown\fR 4
.IX Item "RosyBrown"
0xBC8F8F
.IP \fBRoyalBlue\fR 4
.IX Item "RoyalBlue"
0x4169E1
.IP \fBSaddleBrown\fR 4
.IX Item "SaddleBrown"
0x8B4513
.IP \fBSalmon\fR 4
.IX Item "Salmon"
0xFA8072
.IP \fBSandyBrown\fR 4
.IX Item "SandyBrown"
0xF4A460
.IP \fBSeaGreen\fR 4
.IX Item "SeaGreen"
0x2E8B57
.IP \fBSeaShell\fR 4
.IX Item "SeaShell"
0xFFF5EE
.IP \fBSienna\fR 4
.IX Item "Sienna"
0xA0522D
.IP \fBSilver\fR 4
.IX Item "Silver"
0xC0C0C0
.IP \fBSkyBlue\fR 4
.IX Item "SkyBlue"
0x87CEEB
.IP \fBSlateBlue\fR 4
.IX Item "SlateBlue"
0x6A5ACD
.IP \fBSlateGray\fR 4
.IX Item "SlateGray"
0x708090
.IP \fBSnow\fR 4
.IX Item "Snow"
0xFFFAFA
.IP \fBSpringGreen\fR 4
.IX Item "SpringGreen"
0x00FF7F
.IP \fBSteelBlue\fR 4
.IX Item "SteelBlue"
0x4682B4
.IP \fBTan\fR 4
.IX Item "Tan"
0xD2B48C
.IP \fBTeal\fR 4
.IX Item "Teal"
0x008080
.IP \fBThistle\fR 4
.IX Item "Thistle"
0xD8BFD8
.IP \fBTomato\fR 4
.IX Item "Tomato"
0xFF6347
.IP \fBTurquoise\fR 4
.IX Item "Turquoise"
0x40E0D0
.IP \fBViolet\fR 4
.IX Item "Violet"
0xEE82EE
.IP \fBWheat\fR 4
.IX Item "Wheat"
0xF5DEB3
.IP \fBWhite\fR 4
.IX Item "White"
0xFFFFFF
.IP \fBWhiteSmoke\fR 4
.IX Item "WhiteSmoke"
0xF5F5F5
.IP \fBYellow\fR 4
.IX Item "Yellow"
0xFFFF00
.IP \fBYellowGreen\fR 4
.IX Item "YellowGreen"
0x9ACD32
.SS "Channel Layout"
.IX Subsection "Channel Layout"
A channel layout specifies the spatial disposition of the channels in
a multi-channel audio stream. To specify a channel layout, FFmpeg
makes use of a special syntax.
.PP
Individual channels are identified by an id, as given by the table
below:
.IP \fBFL\fR 4
.IX Item "FL"
front left
.IP \fBFR\fR 4
.IX Item "FR"
front right
.IP \fBFC\fR 4
.IX Item "FC"
front center
.IP \fBLFE\fR 4
.IX Item "LFE"
low frequency
.IP \fBBL\fR 4
.IX Item "BL"
back left
.IP \fBBR\fR 4
.IX Item "BR"
back right
.IP \fBFLC\fR 4
.IX Item "FLC"
front left-of-center
.IP \fBFRC\fR 4
.IX Item "FRC"
front right-of-center
.IP \fBBC\fR 4
.IX Item "BC"
back center
.IP \fBSL\fR 4
.IX Item "SL"
side left
.IP \fBSR\fR 4
.IX Item "SR"
side right
.IP \fBTC\fR 4
.IX Item "TC"
top center
.IP \fBTFL\fR 4
.IX Item "TFL"
top front left
.IP \fBTFC\fR 4
.IX Item "TFC"
top front center
.IP \fBTFR\fR 4
.IX Item "TFR"
top front right
.IP \fBTBL\fR 4
.IX Item "TBL"
top back left
.IP \fBTBC\fR 4
.IX Item "TBC"
top back center
.IP \fBTBR\fR 4
.IX Item "TBR"
top back right
.IP \fBDL\fR 4
.IX Item "DL"
downmix left
.IP \fBDR\fR 4
.IX Item "DR"
downmix right
.IP \fBWL\fR 4
.IX Item "WL"
wide left
.IP \fBWR\fR 4
.IX Item "WR"
wide right
.IP \fBSDL\fR 4
.IX Item "SDL"
surround direct left
.IP \fBSDR\fR 4
.IX Item "SDR"
surround direct right
.IP \fBLFE2\fR 4
.IX Item "LFE2"
low frequency 2
.PP
Standard channel layout compositions can be specified by using the
following identifiers:
.IP \fBmono\fR 4
.IX Item "mono"
FC
.IP \fBstereo\fR 4
.IX Item "stereo"
FL+FR
.IP \fB2.1\fR 4
.IX Item "2.1"
FL+FR+LFE
.IP \fB3.0\fR 4
.IX Item "3.0"
FL+FR+FC
.IP \fB3.0(back)\fR 4
.IX Item "3.0(back)"
FL+FR+BC
.IP \fB4.0\fR 4
.IX Item "4.0"
FL+FR+FC+BC
.IP \fBquad\fR 4
.IX Item "quad"
FL+FR+BL+BR
.IP \fBquad(side)\fR 4
.IX Item "quad(side)"
FL+FR+SL+SR
.IP \fB3.1\fR 4
.IX Item "3.1"
FL+FR+FC+LFE
.IP \fB5.0\fR 4
.IX Item "5.0"
FL+FR+FC+BL+BR
.IP \fB5.0(side)\fR 4
.IX Item "5.0(side)"
FL+FR+FC+SL+SR
.IP \fB4.1\fR 4
.IX Item "4.1"
FL+FR+FC+LFE+BC
.IP \fB5.1\fR 4
.IX Item "5.1"
FL+FR+FC+LFE+BL+BR
.IP \fB5.1(side)\fR 4
.IX Item "5.1(side)"
FL+FR+FC+LFE+SL+SR
.IP \fB6.0\fR 4
.IX Item "6.0"
FL+FR+FC+BC+SL+SR
.IP \fB6.0(front)\fR 4
.IX Item "6.0(front)"
FL+FR+FLC+FRC+SL+SR
.IP \fBhexagonal\fR 4
.IX Item "hexagonal"
FL+FR+FC+BL+BR+BC
.IP \fB6.1\fR 4
.IX Item "6.1"
FL+FR+FC+LFE+BC+SL+SR
.IP \fB6.1\fR 4
.IX Item "6.1"
FL+FR+FC+LFE+BL+BR+BC
.IP \fB6.1(front)\fR 4
.IX Item "6.1(front)"
FL+FR+LFE+FLC+FRC+SL+SR
.IP \fB7.0\fR 4
.IX Item "7.0"
FL+FR+FC+BL+BR+SL+SR
.IP \fB7.0(front)\fR 4
.IX Item "7.0(front)"
FL+FR+FC+FLC+FRC+SL+SR
.IP \fB7.1\fR 4
.IX Item "7.1"
FL+FR+FC+LFE+BL+BR+SL+SR
.IP \fB7.1(wide)\fR 4
.IX Item "7.1(wide)"
FL+FR+FC+LFE+BL+BR+FLC+FRC
.IP \fB7.1(wide\-side)\fR 4
.IX Item "7.1(wide-side)"
FL+FR+FC+LFE+FLC+FRC+SL+SR
.IP \fBoctagonal\fR 4
.IX Item "octagonal"
FL+FR+FC+BL+BR+BC+SL+SR
.IP \fBhexadecagonal\fR 4
.IX Item "hexadecagonal"
FL+FR+FC+BL+BR+BC+SL+SR+WL+WR+TBL+TBR+TBC+TFC+TFL+TFR
.IP \fBdownmix\fR 4
.IX Item "downmix"
DL+DR
.PP
A custom channel layout can be specified as a sequence of terms, separated by
\&'+' or '|'. Each term can be:
.IP \(bu 4
the name of a standard channel layout (e.g. \fBmono\fR,
\&\fBstereo\fR, \fB4.0\fR, \fBquad\fR, \fB5.0\fR, etc.)
.IP \(bu 4
the name of a single channel (e.g. \fBFL\fR, \fBFR\fR, \fBFC\fR, \fBLFE\fR, etc.)
.IP \(bu 4
a number of channels, in decimal, followed by 'c', yielding the default channel
layout for that number of channels (see the function
\&\f(CW\*(C`av_get_default_channel_layout\*(C'\fR). Note that not all channel counts have a
default layout.
.IP \(bu 4
a number of channels, in decimal, followed by 'C', yielding an unknown channel
layout with the specified number of channels. Note that not all channel layout
specification strings support unknown channel layouts.
.IP \(bu 4
a channel layout mask, in hexadecimal starting with "0x" (see the
\&\f(CW\*(C`AV_CH_*\*(C'\fR macros in \fIlibavutil/channel_layout.h\fR.
.PP
Before libavutil version 53 the trailing character "c" to specify a number of
channels was optional, but now it is required, while a channel layout mask can
also be specified as a decimal number (if and only if not followed by "c" or "C").
.PP
See also the function \f(CW\*(C`av_get_channel_layout\*(C'\fR defined in
\&\fIlibavutil/channel_layout.h\fR.
.SH "EXPRESSION EVALUATION"
.IX Header "EXPRESSION EVALUATION"
When evaluating an arithmetic expression, FFmpeg uses an internal
formula evaluator, implemented through the \fIlibavutil/eval.h\fR
interface.
.PP
An expression may contain unary, binary operators, constants, and
functions.
.PP
Two expressions \fIexpr1\fR and \fIexpr2\fR can be combined to form
another expression "\fIexpr1\fR;\fIexpr2\fR".
\&\fIexpr1\fR and \fIexpr2\fR are evaluated in turn, and the new
expression evaluates to the value of \fIexpr2\fR.
.PP
The following binary operators are available: \f(CW\*(C`+\*(C'\fR, \f(CW\*(C`\-\*(C'\fR,
\&\f(CW\*(C`*\*(C'\fR, \f(CW\*(C`/\*(C'\fR, \f(CW\*(C`^\*(C'\fR.
.PP
The following unary operators are available: \f(CW\*(C`+\*(C'\fR, \f(CW\*(C`\-\*(C'\fR.
.PP
The following functions are available:
.IP \fBabs(x)\fR 4
.IX Item "abs(x)"
Compute absolute value of \fIx\fR.
.IP \fBacos(x)\fR 4
.IX Item "acos(x)"
Compute arccosine of \fIx\fR.
.IP \fBasin(x)\fR 4
.IX Item "asin(x)"
Compute arcsine of \fIx\fR.
.IP \fBatan(x)\fR 4
.IX Item "atan(x)"
Compute arctangent of \fIx\fR.
.IP "\fBatan2(x, y)\fR" 4
.IX Item "atan2(x, y)"
Compute principal value of the arc tangent of \fIy\fR/\fIx\fR.
.IP "\fBbetween(x, min, max)\fR" 4
.IX Item "between(x, min, max)"
Return 1 if \fIx\fR is greater than or equal to \fImin\fR and lesser than or
equal to \fImax\fR, 0 otherwise.
.IP "\fBbitand(x, y)\fR" 4
.IX Item "bitand(x, y)"
.PD 0
.IP "\fBbitor(x, y)\fR" 4
.IX Item "bitor(x, y)"
.PD
Compute bitwise and/or operation on \fIx\fR and \fIy\fR.
.Sp
The results of the evaluation of \fIx\fR and \fIy\fR are converted to
integers before executing the bitwise operation.
.Sp
Note that both the conversion to integer and the conversion back to
floating point can lose precision. Beware of unexpected results for
large numbers (usually 2^53 and larger).
.IP \fBceil(expr)\fR 4
.IX Item "ceil(expr)"
Round the value of expression \fIexpr\fR upwards to the nearest
integer. For example, "ceil(1.5)" is "2.0".
.IP "\fBclip(x, min, max)\fR" 4
.IX Item "clip(x, min, max)"
Return the value of \fIx\fR clipped between \fImin\fR and \fImax\fR.
.IP \fBcos(x)\fR 4
.IX Item "cos(x)"
Compute cosine of \fIx\fR.
.IP \fBcosh(x)\fR 4
.IX Item "cosh(x)"
Compute hyperbolic cosine of \fIx\fR.
.IP "\fBeq(x, y)\fR" 4
.IX Item "eq(x, y)"
Return 1 if \fIx\fR and \fIy\fR are equivalent, 0 otherwise.
.IP \fBexp(x)\fR 4
.IX Item "exp(x)"
Compute exponential of \fIx\fR (with base \f(CW\*(C`e\*(C'\fR, the Euler's number).
.IP \fBfloor(expr)\fR 4
.IX Item "floor(expr)"
Round the value of expression \fIexpr\fR downwards to the nearest
integer. For example, "floor(\-1.5)" is "\-2.0".
.IP \fBgauss(x)\fR 4
.IX Item "gauss(x)"
Compute Gauss function of \fIx\fR, corresponding to
\&\f(CW\*(C`exp(\-x*x/2) / sqrt(2*PI)\*(C'\fR.
.IP "\fBgcd(x, y)\fR" 4
.IX Item "gcd(x, y)"
Return the greatest common divisor of \fIx\fR and \fIy\fR. If both \fIx\fR and
\&\fIy\fR are 0 or either or both are less than zero then behavior is undefined.
.IP "\fBgt(x, y)\fR" 4
.IX Item "gt(x, y)"
Return 1 if \fIx\fR is greater than \fIy\fR, 0 otherwise.
.IP "\fBgte(x, y)\fR" 4
.IX Item "gte(x, y)"
Return 1 if \fIx\fR is greater than or equal to \fIy\fR, 0 otherwise.
.IP "\fBhypot(x, y)\fR" 4
.IX Item "hypot(x, y)"
This function is similar to the C function with the same name; it returns
"sqrt(\fIx\fR*\fIx\fR + \fIy\fR*\fIy\fR)", the length of the hypotenuse of a
right triangle with sides of length \fIx\fR and \fIy\fR, or the distance of the
point (\fIx\fR, \fIy\fR) from the origin.
.IP "\fBif(x, y)\fR" 4
.IX Item "if(x, y)"
Evaluate \fIx\fR, and if the result is non-zero return the result of
the evaluation of \fIy\fR, return 0 otherwise.
.IP "\fBif(x, y, z)\fR" 4
.IX Item "if(x, y, z)"
Evaluate \fIx\fR, and if the result is non-zero return the evaluation
result of \fIy\fR, otherwise the evaluation result of \fIz\fR.
.IP "\fBifnot(x, y)\fR" 4
.IX Item "ifnot(x, y)"
Evaluate \fIx\fR, and if the result is zero return the result of the
evaluation of \fIy\fR, return 0 otherwise.
.IP "\fBifnot(x, y, z)\fR" 4
.IX Item "ifnot(x, y, z)"
Evaluate \fIx\fR, and if the result is zero return the evaluation
result of \fIy\fR, otherwise the evaluation result of \fIz\fR.
.IP \fBisinf(x)\fR 4
.IX Item "isinf(x)"
Return 1.0 if \fIx\fR is +/\-INFINITY, 0.0 otherwise.
.IP \fBisnan(x)\fR 4
.IX Item "isnan(x)"
Return 1.0 if \fIx\fR is NAN, 0.0 otherwise.
.IP \fBld(var)\fR 4
.IX Item "ld(var)"
Load the value of the internal variable with number
\&\fIvar\fR, which was previously stored with st(\fIvar\fR, \fIexpr\fR).
The function returns the loaded value.
.IP "\fBlerp(x, y, z)\fR" 4
.IX Item "lerp(x, y, z)"
Return linear interpolation between \fIx\fR and \fIy\fR by amount of \fIz\fR.
.IP \fBlog(x)\fR 4
.IX Item "log(x)"
Compute natural logarithm of \fIx\fR.
.IP "\fBlt(x, y)\fR" 4
.IX Item "lt(x, y)"
Return 1 if \fIx\fR is lesser than \fIy\fR, 0 otherwise.
.IP "\fBlte(x, y)\fR" 4
.IX Item "lte(x, y)"
Return 1 if \fIx\fR is lesser than or equal to \fIy\fR, 0 otherwise.
.IP "\fBmax(x, y)\fR" 4
.IX Item "max(x, y)"
Return the maximum between \fIx\fR and \fIy\fR.
.IP "\fBmin(x, y)\fR" 4
.IX Item "min(x, y)"
Return the minimum between \fIx\fR and \fIy\fR.
.IP "\fBmod(x, y)\fR" 4
.IX Item "mod(x, y)"
Compute the remainder of division of \fIx\fR by \fIy\fR.
.IP \fBnot(expr)\fR 4
.IX Item "not(expr)"
Return 1.0 if \fIexpr\fR is zero, 0.0 otherwise.
.IP "\fBpow(x, y)\fR" 4
.IX Item "pow(x, y)"
Compute the power of \fIx\fR elevated \fIy\fR, it is equivalent to
"(\fIx\fR)^(\fIy\fR)".
.IP \fBprint(t)\fR 4
.IX Item "print(t)"
.PD 0
.IP "\fBprint(t, l)\fR" 4
.IX Item "print(t, l)"
.PD
Print the value of expression \fIt\fR with loglevel \fIl\fR. If
\&\fIl\fR is not specified then a default log level is used.
Returns the value of the expression printed.
.Sp
Prints t with loglevel l
.IP \fBrandom(x)\fR 4
.IX Item "random(x)"
Return a pseudo random value between 0.0 and 1.0. \fIx\fR is the index of the
internal variable which will be used to save the seed/state.
.IP "\fBroot(expr, max)\fR" 4
.IX Item "root(expr, max)"
Find an input value for which the function represented by \fIexpr\fR
with argument \fR\f(BIld\fR\fI\|(0)\fR is 0 in the interval 0..\fImax\fR.
.Sp
The expression in \fIexpr\fR must denote a continuous function or the
result is undefined.
.Sp
\&\fR\f(BIld\fR\fI\|(0)\fR is used to represent the function input value, which means
that the given expression will be evaluated multiple times with
various input values that the expression can access through
\&\f(CWld(0)\fR. When the expression evaluates to 0 then the
corresponding input value will be returned.
.IP \fBround(expr)\fR 4
.IX Item "round(expr)"
Round the value of expression \fIexpr\fR to the nearest integer. For example, "round(1.5)" is "2.0".
.IP \fBsgn(x)\fR 4
.IX Item "sgn(x)"
Compute sign of \fIx\fR.
.IP \fBsin(x)\fR 4
.IX Item "sin(x)"
Compute sine of \fIx\fR.
.IP \fBsinh(x)\fR 4
.IX Item "sinh(x)"
Compute hyperbolic sine of \fIx\fR.
.IP \fBsqrt(expr)\fR 4
.IX Item "sqrt(expr)"
Compute the square root of \fIexpr\fR. This is equivalent to
"(\fIexpr\fR)^.5".
.IP \fBsquish(x)\fR 4
.IX Item "squish(x)"
Compute expression \f(CW\*(C`1/(1 + exp(4*x))\*(C'\fR.
.IP "\fBst(var, expr)\fR" 4
.IX Item "st(var, expr)"
Store the value of the expression \fIexpr\fR in an internal
variable. \fIvar\fR specifies the number of the variable where to
store the value, and it is a value ranging from 0 to 9. The function
returns the value stored in the internal variable.
Note, Variables are currently not shared between expressions.
.IP \fBtan(x)\fR 4
.IX Item "tan(x)"
Compute tangent of \fIx\fR.
.IP \fBtanh(x)\fR 4
.IX Item "tanh(x)"
Compute hyperbolic tangent of \fIx\fR.
.IP "\fBtaylor(expr, x)\fR" 4
.IX Item "taylor(expr, x)"
.PD 0
.IP "\fBtaylor(expr, x, id)\fR" 4
.IX Item "taylor(expr, x, id)"
.PD
Evaluate a Taylor series at \fIx\fR, given an expression representing
the \f(CWld(id)\fR\-th derivative of a function at 0.
.Sp
When the series does not converge the result is undefined.
.Sp
\&\fIld(id)\fR is used to represent the derivative order in \fIexpr\fR,
which means that the given expression will be evaluated multiple times
with various input values that the expression can access through
\&\f(CWld(id)\fR. If \fIid\fR is not specified then 0 is assumed.
.Sp
Note, when you have the derivatives at y instead of 0,
\&\f(CW\*(C`taylor(expr, x\-y)\*(C'\fR can be used.
.IP \fBtime\|(0)\fR 4
.IX Item "time"
Return the current (wallclock) time in seconds.
.IP \fBtrunc(expr)\fR 4
.IX Item "trunc(expr)"
Round the value of expression \fIexpr\fR towards zero to the nearest
integer. For example, "trunc(\-1.5)" is "\-1.0".
.IP "\fBwhile(cond, expr)\fR" 4
.IX Item "while(cond, expr)"
Evaluate expression \fIexpr\fR while the expression \fIcond\fR is
non-zero, and returns the value of the last \fIexpr\fR evaluation, or
NAN if \fIcond\fR was always false.
.PP
The following constants are available:
.IP \fBPI\fR 4
.IX Item "PI"
area of the unit disc, approximately 3.14
.IP \fBE\fR 4
.IX Item "E"
\&\fBexp\fR\|(1) (Euler's number), approximately 2.718
.IP \fBPHI\fR 4
.IX Item "PHI"
golden ratio (1+\fBsqrt\fR\|(5))/2, approximately 1.618
.PP
Assuming that an expression is considered "true" if it has a non-zero
value, note that:
.PP
\&\f(CW\*(C`*\*(C'\fR works like AND
.PP
\&\f(CW\*(C`+\*(C'\fR works like OR
.PP
For example the construct:
.PP
.Vb 1
\&        if (A AND B) then C
.Ve
.PP
is equivalent to:
.PP
.Vb 1
\&        if(A*B, C)
.Ve
.PP
In your C code, you can extend the list of unary and binary functions,
and define recognized constants, so that they are available for your
expressions.
.PP
The evaluator also recognizes the International System unit prefixes.
If 'i' is appended after the prefix, binary prefixes are used, which
are based on powers of 1024 instead of powers of 1000.
The 'B' postfix multiplies the value by 8, and can be appended after a
unit prefix or used alone. This allows using for example 'KB', 'MiB',
\&'G' and 'B' as number postfix.
.PP
The list of available International System prefixes follows, with
indication of the corresponding powers of 10 and of 2.
.IP \fBy\fR 4
.IX Item "y"
10^\-24 / 2^\-80
.IP \fBz\fR 4
.IX Item "z"
10^\-21 / 2^\-70
.IP \fBa\fR 4
.IX Item "a"
10^\-18 / 2^\-60
.IP \fBf\fR 4
.IX Item "f"
10^\-15 / 2^\-50
.IP \fBp\fR 4
.IX Item "p"
10^\-12 / 2^\-40
.IP \fBn\fR 4
.IX Item "n"
10^\-9 / 2^\-30
.IP \fBu\fR 4
.IX Item "u"
10^\-6 / 2^\-20
.IP \fBm\fR 4
.IX Item "m"
10^\-3 / 2^\-10
.IP \fBc\fR 4
.IX Item "c"
10^\-2
.IP \fBd\fR 4
.IX Item "d"
10^\-1
.IP \fBh\fR 4
.IX Item "h"
10^2
.IP \fBk\fR 4
.IX Item "k"
10^3 / 2^10
.IP \fBK\fR 4
.IX Item "K"
10^3 / 2^10
.IP \fBM\fR 4
.IX Item "M"
10^6 / 2^20
.IP \fBG\fR 4
.IX Item "G"
10^9 / 2^30
.IP \fBT\fR 4
.IX Item "T"
10^12 / 2^40
.IP \fBP\fR 4
.IX Item "P"
10^15 / 2^40
.IP \fBE\fR 4
.IX Item "E"
10^18 / 2^50
.IP \fBZ\fR 4
.IX Item "Z"
10^21 / 2^60
.IP \fBY\fR 4
.IX Item "Y"
10^24 / 2^70
.SH "CODEC OPTIONS"
.IX Header "CODEC OPTIONS"
libavcodec provides some generic global options, which can be set on
all the encoders and decoders. In addition each codec may support
so-called private options, which are specific for a given codec.
.PP
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 aware
of the meaning of the specified options. Also some options are
meant only for decoding or encoding.
.PP
Options may be set by specifying \-\fIoption\fR \fIvalue\fR in the
FFmpeg tools, or by setting the value explicitly in the
\&\f(CW\*(C`AVCodecContext\*(C'\fR options or using the \fIlibavutil/opt.h\fR API
for programmatic use.
.PP
The list of supported options follow:
.IP "\fBb\fR \fIinteger\fR \fB(\fR\fIencoding,audio,video\fR\fB)\fR" 4
.IX Item "b integer (encoding,audio,video)"
Set bitrate in bits/s. Default value is 200K.
.IP "\fBab\fR \fIinteger\fR \fB(\fR\fIencoding,audio\fR\fB)\fR" 4
.IX Item "ab integer (encoding,audio)"
Set audio bitrate (in bits/s). Default value is 128K.
.IP "\fBbt\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "bt integer (encoding,video)"
Set video bitrate tolerance (in bits/s). In 1\-pass mode, bitrate
tolerance specifies how far ratecontrol is willing to deviate from the
target average bitrate value. This is not related to min/max
bitrate. Lowering tolerance too much has an adverse effect on quality.
.IP "\fBflags\fR \fIflags\fR \fB(\fR\fIdecoding/encoding,audio,video,subtitles\fR\fB)\fR" 4
.IX Item "flags flags (decoding/encoding,audio,video,subtitles)"
Set generic flags.
.Sp
Possible values:
.RS 4
.IP \fBmv4\fR 4
.IX Item "mv4"
Use four motion vector by macroblock (mpeg4).
.IP \fBqpel\fR 4
.IX Item "qpel"
Use 1/4 pel motion compensation.
.IP \fBloop\fR 4
.IX Item "loop"
Use loop filter.
.IP \fBqscale\fR 4
.IX Item "qscale"
Use fixed qscale.
.IP \fBpass1\fR 4
.IX Item "pass1"
Use internal 2pass ratecontrol in first pass mode.
.IP \fBpass2\fR 4
.IX Item "pass2"
Use internal 2pass ratecontrol in second pass mode.
.IP \fBgray\fR 4
.IX Item "gray"
Only decode/encode grayscale.
.IP \fBpsnr\fR 4
.IX Item "psnr"
Set error[?] variables during encoding.
.IP \fBtruncated\fR 4
.IX Item "truncated"
Input bitstream might be randomly truncated.
.IP \fBdrop_changed\fR 4
.IX Item "drop_changed"
Don't output frames whose parameters differ from first decoded frame in stream.
Error AVERROR_INPUT_CHANGED is returned when a frame is dropped.
.IP \fBildct\fR 4
.IX Item "ildct"
Use interlaced DCT.
.IP \fBlow_delay\fR 4
.IX Item "low_delay"
Force low delay.
.IP \fBglobal_header\fR 4
.IX Item "global_header"
Place global headers in extradata instead of every keyframe.
.IP \fBbitexact\fR 4
.IX Item "bitexact"
Only write platform\-, build\- and time-independent data. (except (I)DCT).
This ensures that file and data checksums are reproducible and match between
platforms. Its primary use is for regression testing.
.IP \fBaic\fR 4
.IX Item "aic"
Apply H263 advanced intra coding / mpeg4 ac prediction.
.IP \fBilme\fR 4
.IX Item "ilme"
Apply interlaced motion estimation.
.IP \fBcgop\fR 4
.IX Item "cgop"
Use closed gop.
.IP \fBoutput_corrupt\fR 4
.IX Item "output_corrupt"
Output even potentially corrupted frames.
.RE
.RS 4
.RE
.IP "\fBtime_base\fR \fIrational number\fR" 4
.IX Item "time_base rational number"
Set codec time base.
.Sp
It is the fundamental unit of time (in seconds) in terms of which
frame timestamps are represented. For fixed-fps content, timebase
should be \f(CW\*(C`1 / frame_rate\*(C'\fR and timestamp increments should be
identically 1.
.IP "\fBg\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "g integer (encoding,video)"
Set the group of picture (GOP) size. Default value is 12.
.IP "\fBar\fR \fIinteger\fR \fB(\fR\fIdecoding/encoding,audio\fR\fB)\fR" 4
.IX Item "ar integer (decoding/encoding,audio)"
Set audio sampling rate (in Hz).
.IP "\fBac\fR \fIinteger\fR \fB(\fR\fIdecoding/encoding,audio\fR\fB)\fR" 4
.IX Item "ac integer (decoding/encoding,audio)"
Set number of audio channels.
.IP "\fBcutoff\fR \fIinteger\fR \fB(\fR\fIencoding,audio\fR\fB)\fR" 4
.IX Item "cutoff integer (encoding,audio)"
Set cutoff bandwidth. (Supported only by selected encoders, see
their respective documentation sections.)
.IP "\fBframe_size\fR \fIinteger\fR \fB(\fR\fIencoding,audio\fR\fB)\fR" 4
.IX Item "frame_size integer (encoding,audio)"
Set audio frame size.
.Sp
Each submitted frame except the last must contain exactly frame_size
samples per channel. May be 0 when the codec has
CODEC_CAP_VARIABLE_FRAME_SIZE set, in that case the frame size is not
restricted. It is set by some decoders to indicate constant frame
size.
.IP "\fBframe_number\fR \fIinteger\fR" 4
.IX Item "frame_number integer"
Set the frame number.
.IP "\fBdelay\fR \fIinteger\fR" 4
.IX Item "delay integer"
.PD 0
.IP "\fBqcomp\fR \fIfloat\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "qcomp float (encoding,video)"
.PD
Set video quantizer scale compression (VBR). It is used as a constant
in the ratecontrol equation. Recommended range for default rc_eq:
0.0\-1.0.
.IP "\fBqblur\fR \fIfloat\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "qblur float (encoding,video)"
Set video quantizer scale blur (VBR).
.IP "\fBqmin\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "qmin integer (encoding,video)"
Set min video quantizer scale (VBR). Must be included between \-1 and
69, default value is 2.
.IP "\fBqmax\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "qmax integer (encoding,video)"
Set max video quantizer scale (VBR). Must be included between \-1 and
1024, default value is 31.
.IP "\fBqdiff\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "qdiff integer (encoding,video)"
Set max difference between the quantizer scale (VBR).
.IP "\fBbf\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "bf integer (encoding,video)"
Set max number of B frames between non-B-frames.
.Sp
Must be an integer between \-1 and 16. 0 means that B\-frames are
disabled. If a value of \-1 is used, it will choose an automatic value
depending on the encoder.
.Sp
Default value is 0.
.IP "\fBb_qfactor\fR \fIfloat\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "b_qfactor float (encoding,video)"
Set qp factor between P and B frames.
.IP "\fBb_strategy\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "b_strategy integer (encoding,video)"
Set strategy to choose between I/P/B\-frames.
.IP "\fBps\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "ps integer (encoding,video)"
Set RTP payload size in bytes.
.IP "\fBmv_bits\fR \fIinteger\fR" 4
.IX Item "mv_bits integer"
.PD 0
.IP "\fBheader_bits\fR \fIinteger\fR" 4
.IX Item "header_bits integer"
.IP "\fBi_tex_bits\fR \fIinteger\fR" 4
.IX Item "i_tex_bits integer"
.IP "\fBp_tex_bits\fR \fIinteger\fR" 4
.IX Item "p_tex_bits integer"
.IP "\fBi_count\fR \fIinteger\fR" 4
.IX Item "i_count integer"
.IP "\fBp_count\fR \fIinteger\fR" 4
.IX Item "p_count integer"
.IP "\fBskip_count\fR \fIinteger\fR" 4
.IX Item "skip_count integer"
.IP "\fBmisc_bits\fR \fIinteger\fR" 4
.IX Item "misc_bits integer"
.IP "\fBframe_bits\fR \fIinteger\fR" 4
.IX Item "frame_bits integer"
.IP "\fBcodec_tag\fR \fIinteger\fR" 4
.IX Item "codec_tag integer"
.IP "\fBbug\fR \fIflags\fR \fB(\fR\fIdecoding,video\fR\fB)\fR" 4
.IX Item "bug flags (decoding,video)"
.PD
Workaround not auto detected encoder bugs.
.Sp
Possible values:
.RS 4
.IP \fBautodetect\fR 4
.IX Item "autodetect"
.PD 0
.IP \fBxvid_ilace\fR 4
.IX Item "xvid_ilace"
.PD
Xvid interlacing bug (autodetected if fourcc==XVIX)
.IP \fBump4\fR 4
.IX Item "ump4"
(autodetected if fourcc==UMP4)
.IP \fBno_padding\fR 4
.IX Item "no_padding"
padding bug (autodetected)
.IP \fBamv\fR 4
.IX Item "amv"
.PD 0
.IP \fBqpel_chroma\fR 4
.IX Item "qpel_chroma"
.IP \fBstd_qpel\fR 4
.IX Item "std_qpel"
.PD
old standard qpel (autodetected per fourcc/version)
.IP \fBqpel_chroma2\fR 4
.IX Item "qpel_chroma2"
.PD 0
.IP \fBdirect_blocksize\fR 4
.IX Item "direct_blocksize"
.PD
direct-qpel-blocksize bug (autodetected per fourcc/version)
.IP \fBedge\fR 4
.IX Item "edge"
edge padding bug (autodetected per fourcc/version)
.IP \fBhpel_chroma\fR 4
.IX Item "hpel_chroma"
.PD 0
.IP \fBdc_clip\fR 4
.IX Item "dc_clip"
.IP \fBms\fR 4
.IX Item "ms"
.PD
Workaround various bugs in microsoft broken decoders.
.IP \fBtrunc\fR 4
.IX Item "trunc"
trancated frames
.RE
.RS 4
.RE
.IP "\fBstrict\fR \fIinteger\fR \fB(\fR\fIdecoding/encoding,audio,video\fR\fB)\fR" 4
.IX Item "strict integer (decoding/encoding,audio,video)"
Specify how strictly to follow the standards.
.Sp
Possible values:
.RS 4
.IP \fBvery\fR 4
.IX Item "very"
strictly conform to an older more strict version of the spec or reference software
.IP \fBstrict\fR 4
.IX Item "strict"
strictly conform to all the things in the spec no matter what consequences
.IP \fBnormal\fR 4
.IX Item "normal"
.PD 0
.IP \fBunofficial\fR 4
.IX Item "unofficial"
.PD
allow unofficial extensions
.IP \fBexperimental\fR 4
.IX Item "experimental"
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 for
decoding untrusted input.
.RE
.RS 4
.RE
.IP "\fBb_qoffset\fR \fIfloat\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "b_qoffset float (encoding,video)"
Set QP offset between P and B frames.
.IP "\fBerr_detect\fR \fIflags\fR \fB(\fR\fIdecoding,audio,video\fR\fB)\fR" 4
.IX Item "err_detect flags (decoding,audio,video)"
Set error detection flags.
.Sp
Possible values:
.RS 4
.IP \fBcrccheck\fR 4
.IX Item "crccheck"
verify embedded CRCs
.IP \fBbitstream\fR 4
.IX Item "bitstream"
detect bitstream specification deviations
.IP \fBbuffer\fR 4
.IX Item "buffer"
detect improper bitstream length
.IP \fBexplode\fR 4
.IX Item "explode"
abort decoding on minor error detection
.IP \fBignore_err\fR 4
.IX Item "ignore_err"
ignore decoding errors, and continue decoding.
This is useful if you want to analyze the content of a video and thus want
everything to be decoded no matter what. This option will not result in a video
that is pleasing to watch in case of errors.
.IP \fBcareful\fR 4
.IX Item "careful"
consider things that violate the spec and have not been seen in the wild as errors
.IP \fBcompliant\fR 4
.IX Item "compliant"
consider all spec non compliancies as errors
.IP \fBaggressive\fR 4
.IX Item "aggressive"
consider things that a sane encoder should not do as an error
.RE
.RS 4
.RE
.IP "\fBhas_b_frames\fR \fIinteger\fR" 4
.IX Item "has_b_frames integer"
.PD 0
.IP "\fBblock_align\fR \fIinteger\fR" 4
.IX Item "block_align integer"
.IP "\fBmpeg_quant\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "mpeg_quant integer (encoding,video)"
.PD
Use MPEG quantizers instead of H.263.
.IP "\fBrc_override_count\fR \fIinteger\fR" 4
.IX Item "rc_override_count integer"
.PD 0
.IP "\fBmaxrate\fR \fIinteger\fR \fB(\fR\fIencoding,audio,video\fR\fB)\fR" 4
.IX Item "maxrate integer (encoding,audio,video)"
.PD
Set max bitrate tolerance (in bits/s). Requires bufsize to be set.
.IP "\fBminrate\fR \fIinteger\fR \fB(\fR\fIencoding,audio,video\fR\fB)\fR" 4
.IX Item "minrate integer (encoding,audio,video)"
Set min bitrate tolerance (in bits/s). Most useful in setting up a CBR
encode. It is of little use elsewise.
.IP "\fBbufsize\fR \fIinteger\fR \fB(\fR\fIencoding,audio,video\fR\fB)\fR" 4
.IX Item "bufsize integer (encoding,audio,video)"
Set ratecontrol buffer size (in bits).
.IP "\fBi_qfactor\fR \fIfloat\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "i_qfactor float (encoding,video)"
Set QP factor between P and I frames.
.IP "\fBi_qoffset\fR \fIfloat\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "i_qoffset float (encoding,video)"
Set QP offset between P and I frames.
.IP "\fBdct\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "dct integer (encoding,video)"
Set DCT algorithm.
.Sp
Possible values:
.RS 4
.IP \fBauto\fR 4
.IX Item "auto"
autoselect a good one (default)
.IP \fBfastint\fR 4
.IX Item "fastint"
fast integer
.IP \fBint\fR 4
.IX Item "int"
accurate integer
.IP \fBmmx\fR 4
.IX Item "mmx"
.PD 0
.IP \fBaltivec\fR 4
.IX Item "altivec"
.IP \fBfaan\fR 4
.IX Item "faan"
.PD
floating point AAN DCT
.RE
.RS 4
.RE
.IP "\fBlumi_mask\fR \fIfloat\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "lumi_mask float (encoding,video)"
Compress bright areas stronger than medium ones.
.IP "\fBtcplx_mask\fR \fIfloat\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "tcplx_mask float (encoding,video)"
Set temporal complexity masking.
.IP "\fBscplx_mask\fR \fIfloat\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "scplx_mask float (encoding,video)"
Set spatial complexity masking.
.IP "\fBp_mask\fR \fIfloat\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "p_mask float (encoding,video)"
Set inter masking.
.IP "\fBdark_mask\fR \fIfloat\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "dark_mask float (encoding,video)"
Compress dark areas stronger than medium ones.
.IP "\fBidct\fR \fIinteger\fR \fB(\fR\fIdecoding/encoding,video\fR\fB)\fR" 4
.IX Item "idct integer (decoding/encoding,video)"
Select IDCT implementation.
.Sp
Possible values:
.RS 4
.IP \fBauto\fR 4
.IX Item "auto"
.PD 0
.IP \fBint\fR 4
.IX Item "int"
.IP \fBsimple\fR 4
.IX Item "simple"
.IP \fBsimplemmx\fR 4
.IX Item "simplemmx"
.IP \fBsimpleauto\fR 4
.IX Item "simpleauto"
.PD
Automatically pick a IDCT compatible with the simple one
.IP \fBarm\fR 4
.IX Item "arm"
.PD 0
.IP \fBaltivec\fR 4
.IX Item "altivec"
.IP \fBsh4\fR 4
.IX Item "sh4"
.IP \fBsimplearm\fR 4
.IX Item "simplearm"
.IP \fBsimplearmv5te\fR 4
.IX Item "simplearmv5te"
.IP \fBsimplearmv6\fR 4
.IX Item "simplearmv6"
.IP \fBsimpleneon\fR 4
.IX Item "simpleneon"
.IP \fBxvid\fR 4
.IX Item "xvid"
.IP \fBfaani\fR 4
.IX Item "faani"
.PD
floating point AAN IDCT
.RE
.RS 4
.RE
.IP "\fBslice_count\fR \fIinteger\fR" 4
.IX Item "slice_count integer"
.PD 0
.IP "\fBec\fR \fIflags\fR \fB(\fR\fIdecoding,video\fR\fB)\fR" 4
.IX Item "ec flags (decoding,video)"
.PD
Set error concealment strategy.
.Sp
Possible values:
.RS 4
.IP \fBguess_mvs\fR 4
.IX Item "guess_mvs"
iterative motion vector (MV) search (slow)
.IP \fBdeblock\fR 4
.IX Item "deblock"
use strong deblock filter for damaged MBs
.IP \fBfavor_inter\fR 4
.IX Item "favor_inter"
favor predicting from the previous frame instead of the current
.RE
.RS 4
.RE
.IP "\fBbits_per_coded_sample\fR \fIinteger\fR" 4
.IX Item "bits_per_coded_sample integer"
.PD 0
.IP "\fBpred\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "pred integer (encoding,video)"
.PD
Set prediction method.
.Sp
Possible values:
.RS 4
.IP \fBleft\fR 4
.IX Item "left"
.PD 0
.IP \fBplane\fR 4
.IX Item "plane"
.IP \fBmedian\fR 4
.IX Item "median"
.RE
.RS 4
.RE
.IP "\fBaspect\fR \fIrational number\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "aspect rational number (encoding,video)"
.PD
Set sample aspect ratio.
.IP "\fBsar\fR \fIrational number\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "sar rational number (encoding,video)"
Set sample aspect ratio. Alias to \fIaspect\fR.
.IP "\fBdebug\fR \fIflags\fR \fB(\fR\fIdecoding/encoding,audio,video,subtitles\fR\fB)\fR" 4
.IX Item "debug flags (decoding/encoding,audio,video,subtitles)"
Print specific debug info.
.Sp
Possible values:
.RS 4
.IP \fBpict\fR 4
.IX Item "pict"
picture info
.IP \fBrc\fR 4
.IX Item "rc"
rate control
.IP \fBbitstream\fR 4
.IX Item "bitstream"
.PD 0
.IP \fBmb_type\fR 4
.IX Item "mb_type"
.PD
macroblock (MB) type
.IP \fBqp\fR 4
.IX Item "qp"
per-block quantization parameter (QP)
.IP \fBdct_coeff\fR 4
.IX Item "dct_coeff"
.PD 0
.IP \fBgreen_metadata\fR 4
.IX Item "green_metadata"
.PD
display complexity metadata for the upcoming frame, GoP or for a given duration.
.IP \fBskip\fR 4
.IX Item "skip"
.PD 0
.IP \fBstartcode\fR 4
.IX Item "startcode"
.IP \fBer\fR 4
.IX Item "er"
.PD
error recognition
.IP \fBmmco\fR 4
.IX Item "mmco"
memory management control operations (H.264)
.IP \fBbugs\fR 4
.IX Item "bugs"
.PD 0
.IP \fBbuffers\fR 4
.IX Item "buffers"
.PD
picture buffer allocations
.IP \fBthread_ops\fR 4
.IX Item "thread_ops"
threading operations
.IP \fBnomc\fR 4
.IX Item "nomc"
skip motion compensation
.RE
.RS 4
.RE
.IP "\fBcmp\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "cmp integer (encoding,video)"
Set full pel me compare function.
.Sp
Possible values:
.RS 4
.IP \fBsad\fR 4
.IX Item "sad"
sum of absolute differences, fast (default)
.IP \fBsse\fR 4
.IX Item "sse"
sum of squared errors
.IP \fBsatd\fR 4
.IX Item "satd"
sum of absolute Hadamard transformed differences
.IP \fBdct\fR 4
.IX Item "dct"
sum of absolute DCT transformed differences
.IP \fBpsnr\fR 4
.IX Item "psnr"
sum of squared quantization errors (avoid, low quality)
.IP \fBbit\fR 4
.IX Item "bit"
number of bits needed for the block
.IP \fBrd\fR 4
.IX Item "rd"
rate distortion optimal, slow
.IP \fBzero\fR 4
.IX Item "zero"
0
.IP \fBvsad\fR 4
.IX Item "vsad"
sum of absolute vertical differences
.IP \fBvsse\fR 4
.IX Item "vsse"
sum of squared vertical differences
.IP \fBnsse\fR 4
.IX Item "nsse"
noise preserving sum of squared differences
.IP \fBw53\fR 4
.IX Item "w53"
5/3 wavelet, only used in snow
.IP \fBw97\fR 4
.IX Item "w97"
9/7 wavelet, only used in snow
.IP \fBdctmax\fR 4
.IX Item "dctmax"
.PD 0
.IP \fBchroma\fR 4
.IX Item "chroma"
.RE
.RS 4
.RE
.IP "\fBsubcmp\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "subcmp integer (encoding,video)"
.PD
Set sub pel me compare function.
.Sp
Possible values:
.RS 4
.IP \fBsad\fR 4
.IX Item "sad"
sum of absolute differences, fast (default)
.IP \fBsse\fR 4
.IX Item "sse"
sum of squared errors
.IP \fBsatd\fR 4
.IX Item "satd"
sum of absolute Hadamard transformed differences
.IP \fBdct\fR 4
.IX Item "dct"
sum of absolute DCT transformed differences
.IP \fBpsnr\fR 4
.IX Item "psnr"
sum of squared quantization errors (avoid, low quality)
.IP \fBbit\fR 4
.IX Item "bit"
number of bits needed for the block
.IP \fBrd\fR 4
.IX Item "rd"
rate distortion optimal, slow
.IP \fBzero\fR 4
.IX Item "zero"
0
.IP \fBvsad\fR 4
.IX Item "vsad"
sum of absolute vertical differences
.IP \fBvsse\fR 4
.IX Item "vsse"
sum of squared vertical differences
.IP \fBnsse\fR 4
.IX Item "nsse"
noise preserving sum of squared differences
.IP \fBw53\fR 4
.IX Item "w53"
5/3 wavelet, only used in snow
.IP \fBw97\fR 4
.IX Item "w97"
9/7 wavelet, only used in snow
.IP \fBdctmax\fR 4
.IX Item "dctmax"
.PD 0
.IP \fBchroma\fR 4
.IX Item "chroma"
.RE
.RS 4
.RE
.IP "\fBmbcmp\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "mbcmp integer (encoding,video)"
.PD
Set macroblock compare function.
.Sp
Possible values:
.RS 4
.IP \fBsad\fR 4
.IX Item "sad"
sum of absolute differences, fast (default)
.IP \fBsse\fR 4
.IX Item "sse"
sum of squared errors
.IP \fBsatd\fR 4
.IX Item "satd"
sum of absolute Hadamard transformed differences
.IP \fBdct\fR 4
.IX Item "dct"
sum of absolute DCT transformed differences
.IP \fBpsnr\fR 4
.IX Item "psnr"
sum of squared quantization errors (avoid, low quality)
.IP \fBbit\fR 4
.IX Item "bit"
number of bits needed for the block
.IP \fBrd\fR 4
.IX Item "rd"
rate distortion optimal, slow
.IP \fBzero\fR 4
.IX Item "zero"
0
.IP \fBvsad\fR 4
.IX Item "vsad"
sum of absolute vertical differences
.IP \fBvsse\fR 4
.IX Item "vsse"
sum of squared vertical differences
.IP \fBnsse\fR 4
.IX Item "nsse"
noise preserving sum of squared differences
.IP \fBw53\fR 4
.IX Item "w53"
5/3 wavelet, only used in snow
.IP \fBw97\fR 4
.IX Item "w97"
9/7 wavelet, only used in snow
.IP \fBdctmax\fR 4
.IX Item "dctmax"
.PD 0
.IP \fBchroma\fR 4
.IX Item "chroma"
.RE
.RS 4
.RE
.IP "\fBildctcmp\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "ildctcmp integer (encoding,video)"
.PD
Set interlaced dct compare function.
.Sp
Possible values:
.RS 4
.IP \fBsad\fR 4
.IX Item "sad"
sum of absolute differences, fast (default)
.IP \fBsse\fR 4
.IX Item "sse"
sum of squared errors
.IP \fBsatd\fR 4
.IX Item "satd"
sum of absolute Hadamard transformed differences
.IP \fBdct\fR 4
.IX Item "dct"
sum of absolute DCT transformed differences
.IP \fBpsnr\fR 4
.IX Item "psnr"
sum of squared quantization errors (avoid, low quality)
.IP \fBbit\fR 4
.IX Item "bit"
number of bits needed for the block
.IP \fBrd\fR 4
.IX Item "rd"
rate distortion optimal, slow
.IP \fBzero\fR 4
.IX Item "zero"
0
.IP \fBvsad\fR 4
.IX Item "vsad"
sum of absolute vertical differences
.IP \fBvsse\fR 4
.IX Item "vsse"
sum of squared vertical differences
.IP \fBnsse\fR 4
.IX Item "nsse"
noise preserving sum of squared differences
.IP \fBw53\fR 4
.IX Item "w53"
5/3 wavelet, only used in snow
.IP \fBw97\fR 4
.IX Item "w97"
9/7 wavelet, only used in snow
.IP \fBdctmax\fR 4
.IX Item "dctmax"
.PD 0
.IP \fBchroma\fR 4
.IX Item "chroma"
.RE
.RS 4
.RE
.IP "\fBdia_size\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "dia_size integer (encoding,video)"
.PD
Set diamond type & size for motion estimation.
.RS 4
.IP "\fB(1024, INT_MAX)\fR" 4
.IX Item "(1024, INT_MAX)"
full motion estimation(slowest)
.IP "\fB(768, 1024]\fR" 4
.IX Item "(768, 1024]"
umh motion estimation
.IP "\fB(512, 768]\fR" 4
.IX Item "(512, 768]"
hex motion estimation
.IP "\fB(256, 512]\fR" 4
.IX Item "(256, 512]"
l2s diamond motion estimation
.IP \fB[2,256]\fR 4
.IX Item "[2,256]"
var diamond motion estimation
.IP "\fB(\-1,  2)\fR" 4
.IX Item "(-1, 2)"
small diamond motion estimation
.IP \fB\-1\fR 4
.IX Item "-1"
funny diamond motion estimation
.IP "\fB(INT_MIN, \-1)\fR" 4
.IX Item "(INT_MIN, -1)"
sab diamond motion estimation
.RE
.RS 4
.RE
.IP "\fBlast_pred\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "last_pred integer (encoding,video)"
Set amount of motion predictors from the previous frame.
.IP "\fBpreme\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "preme integer (encoding,video)"
Set pre motion estimation.
.IP "\fBprecmp\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "precmp integer (encoding,video)"
Set pre motion estimation compare function.
.Sp
Possible values:
.RS 4
.IP \fBsad\fR 4
.IX Item "sad"
sum of absolute differences, fast (default)
.IP \fBsse\fR 4
.IX Item "sse"
sum of squared errors
.IP \fBsatd\fR 4
.IX Item "satd"
sum of absolute Hadamard transformed differences
.IP \fBdct\fR 4
.IX Item "dct"
sum of absolute DCT transformed differences
.IP \fBpsnr\fR 4
.IX Item "psnr"
sum of squared quantization errors (avoid, low quality)
.IP \fBbit\fR 4
.IX Item "bit"
number of bits needed for the block
.IP \fBrd\fR 4
.IX Item "rd"
rate distortion optimal, slow
.IP \fBzero\fR 4
.IX Item "zero"
0
.IP \fBvsad\fR 4
.IX Item "vsad"
sum of absolute vertical differences
.IP \fBvsse\fR 4
.IX Item "vsse"
sum of squared vertical differences
.IP \fBnsse\fR 4
.IX Item "nsse"
noise preserving sum of squared differences
.IP \fBw53\fR 4
.IX Item "w53"
5/3 wavelet, only used in snow
.IP \fBw97\fR 4
.IX Item "w97"
9/7 wavelet, only used in snow
.IP \fBdctmax\fR 4
.IX Item "dctmax"
.PD 0
.IP \fBchroma\fR 4
.IX Item "chroma"
.RE
.RS 4
.RE
.IP "\fBpre_dia_size\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "pre_dia_size integer (encoding,video)"
.PD
Set diamond type & size for motion estimation pre-pass.
.IP "\fBsubq\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "subq integer (encoding,video)"
Set sub pel motion estimation quality.
.IP "\fBme_range\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "me_range integer (encoding,video)"
Set limit motion vectors range (1023 for DivX player).
.IP "\fBglobal_quality\fR \fIinteger\fR \fB(\fR\fIencoding,audio,video\fR\fB)\fR" 4
.IX Item "global_quality integer (encoding,audio,video)"
.PD 0
.IP "\fBcoder\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "coder integer (encoding,video)"
.PD
Possible values:
.RS 4
.IP \fBvlc\fR 4
.IX Item "vlc"
variable length coder / huffman coder
.IP \fBac\fR 4
.IX Item "ac"
arithmetic coder
.IP \fBraw\fR 4
.IX Item "raw"
raw (no encoding)
.IP \fBrle\fR 4
.IX Item "rle"
run-length coder
.RE
.RS 4
.RE
.IP "\fBcontext\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "context integer (encoding,video)"
Set context model.
.IP "\fBslice_flags\fR \fIinteger\fR" 4
.IX Item "slice_flags integer"
.PD 0
.IP "\fBmbd\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "mbd integer (encoding,video)"
.PD
Set macroblock decision algorithm (high quality mode).
.Sp
Possible values:
.RS 4
.IP \fBsimple\fR 4
.IX Item "simple"
use mbcmp (default)
.IP \fBbits\fR 4
.IX Item "bits"
use fewest bits
.IP \fBrd\fR 4
.IX Item "rd"
use best rate distortion
.RE
.RS 4
.RE
.IP "\fBsc_threshold\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "sc_threshold integer (encoding,video)"
Set scene change threshold.
.IP "\fBnr\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "nr integer (encoding,video)"
Set noise reduction.
.IP "\fBrc_init_occupancy\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "rc_init_occupancy integer (encoding,video)"
Set number of bits which should be loaded into the rc buffer before
decoding starts.
.IP "\fBflags2\fR \fIflags\fR \fB(\fR\fIdecoding/encoding,audio,video,subtitles\fR\fB)\fR" 4
.IX Item "flags2 flags (decoding/encoding,audio,video,subtitles)"
Possible values:
.RS 4
.IP \fBfast\fR 4
.IX Item "fast"
Allow non spec compliant speedup tricks.
.IP \fBnoout\fR 4
.IX Item "noout"
Skip bitstream encoding.
.IP \fBignorecrop\fR 4
.IX Item "ignorecrop"
Ignore cropping information from sps.
.IP \fBlocal_header\fR 4
.IX Item "local_header"
Place global headers at every keyframe instead of in extradata.
.IP \fBchunks\fR 4
.IX Item "chunks"
Frame data might be split into multiple chunks.
.IP \fBshowall\fR 4
.IX Item "showall"
Show all frames before the first keyframe.
.IP \fBexport_mvs\fR 4
.IX Item "export_mvs"
Export motion vectors into frame side-data (see \f(CW\*(C`AV_FRAME_DATA_MOTION_VECTORS\*(C'\fR)
for codecs that support it. See also \fIdoc/examples/export_mvs.c\fR.
.IP \fBskip_manual\fR 4
.IX Item "skip_manual"
Do not skip samples and export skip information as frame side data.
.IP \fBass_ro_flush_noop\fR 4
.IX Item "ass_ro_flush_noop"
Do not reset ASS ReadOrder field on flush.
.RE
.RS 4
.RE
.IP "\fBexport_side_data\fR \fIflags\fR \fB(\fR\fIdecoding/encoding,audio,video,subtitles\fR\fB)\fR" 4
.IX Item "export_side_data flags (decoding/encoding,audio,video,subtitles)"
Possible values:
.RS 4
.IP \fBmvs\fR 4
.IX Item "mvs"
Export motion vectors into frame side-data (see \f(CW\*(C`AV_FRAME_DATA_MOTION_VECTORS\*(C'\fR)
for codecs that support it. See also \fIdoc/examples/export_mvs.c\fR.
.IP \fBprft\fR 4
.IX Item "prft"
Export encoder Producer Reference Time into packet side-data (see \f(CW\*(C`AV_PKT_DATA_PRFT\*(C'\fR)
for codecs that support it.
.IP \fBvenc_params\fR 4
.IX Item "venc_params"
Export video encoding parameters through frame side data (see \f(CW\*(C`AV_FRAME_DATA_VIDEO_ENC_PARAMS\*(C'\fR)
for codecs that support it. At present, those are H.264 and VP9.
.IP \fBfilm_grain\fR 4
.IX Item "film_grain"
Export film grain parameters through frame side data (see \f(CW\*(C`AV_FRAME_DATA_FILM_GRAIN_PARAMS\*(C'\fR).
Supported at present by AV1 decoders.
.RE
.RS 4
.RE
.IP "\fBthreads\fR \fIinteger\fR \fB(\fR\fIdecoding/encoding,video\fR\fB)\fR" 4
.IX Item "threads integer (decoding/encoding,video)"
Set the number of threads to be used, in case the selected codec
implementation supports multi-threading.
.Sp
Possible values:
.RS 4
.IP "\fBauto, 0\fR" 4
.IX Item "auto, 0"
automatically select the number of threads to set
.RE
.RS 4
.Sp
Default value is \fBauto\fR.
.RE
.IP "\fBdc\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "dc integer (encoding,video)"
Set intra_dc_precision.
.IP "\fBnssew\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "nssew integer (encoding,video)"
Set nsse weight.
.IP "\fBskip_top\fR \fIinteger\fR \fB(\fR\fIdecoding,video\fR\fB)\fR" 4
.IX Item "skip_top integer (decoding,video)"
Set number of macroblock rows at the top which are skipped.
.IP "\fBskip_bottom\fR \fIinteger\fR \fB(\fR\fIdecoding,video\fR\fB)\fR" 4
.IX Item "skip_bottom integer (decoding,video)"
Set number of macroblock rows at the bottom which are skipped.
.IP "\fBprofile\fR \fIinteger\fR \fB(\fR\fIencoding,audio,video\fR\fB)\fR" 4
.IX Item "profile integer (encoding,audio,video)"
Set encoder codec profile. Default value is \fBunknown\fR. Encoder specific
profiles are documented in the relevant encoder documentation.
.IP "\fBlevel\fR \fIinteger\fR \fB(\fR\fIencoding,audio,video\fR\fB)\fR" 4
.IX Item "level integer (encoding,audio,video)"
Possible values:
.RS 4
.IP \fBunknown\fR 4
.IX Item "unknown"
.RE
.RS 4
.RE
.PD 0
.IP "\fBlowres\fR \fIinteger\fR \fB(\fR\fIdecoding,audio,video\fR\fB)\fR" 4
.IX Item "lowres integer (decoding,audio,video)"
.PD
Decode at 1= 1/2, 2=1/4, 3=1/8 resolutions.
.IP "\fBskip_threshold\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "skip_threshold integer (encoding,video)"
Set frame skip threshold.
.IP "\fBskip_factor\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "skip_factor integer (encoding,video)"
Set frame skip factor.
.IP "\fBskip_exp\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "skip_exp integer (encoding,video)"
Set frame skip exponent.
Negative values behave identical to the corresponding positive ones, except
that the score is normalized.
Positive values exist primarily for compatibility reasons and are not so useful.
.IP "\fBskipcmp\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "skipcmp integer (encoding,video)"
Set frame skip compare function.
.Sp
Possible values:
.RS 4
.IP \fBsad\fR 4
.IX Item "sad"
sum of absolute differences, fast (default)
.IP \fBsse\fR 4
.IX Item "sse"
sum of squared errors
.IP \fBsatd\fR 4
.IX Item "satd"
sum of absolute Hadamard transformed differences
.IP \fBdct\fR 4
.IX Item "dct"
sum of absolute DCT transformed differences
.IP \fBpsnr\fR 4
.IX Item "psnr"
sum of squared quantization errors (avoid, low quality)
.IP \fBbit\fR 4
.IX Item "bit"
number of bits needed for the block
.IP \fBrd\fR 4
.IX Item "rd"
rate distortion optimal, slow
.IP \fBzero\fR 4
.IX Item "zero"
0
.IP \fBvsad\fR 4
.IX Item "vsad"
sum of absolute vertical differences
.IP \fBvsse\fR 4
.IX Item "vsse"
sum of squared vertical differences
.IP \fBnsse\fR 4
.IX Item "nsse"
noise preserving sum of squared differences
.IP \fBw53\fR 4
.IX Item "w53"
5/3 wavelet, only used in snow
.IP \fBw97\fR 4
.IX Item "w97"
9/7 wavelet, only used in snow
.IP \fBdctmax\fR 4
.IX Item "dctmax"
.PD 0
.IP \fBchroma\fR 4
.IX Item "chroma"
.RE
.RS 4
.RE
.IP "\fBmblmin\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "mblmin integer (encoding,video)"
.PD
Set min macroblock lagrange factor (VBR).
.IP "\fBmblmax\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "mblmax integer (encoding,video)"
Set max macroblock lagrange factor (VBR).
.IP "\fBmepc\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "mepc integer (encoding,video)"
Set motion estimation bitrate penalty compensation (1.0 = 256).
.IP "\fBskip_loop_filter\fR \fIinteger\fR \fB(\fR\fIdecoding,video\fR\fB)\fR" 4
.IX Item "skip_loop_filter integer (decoding,video)"
.PD 0
.IP "\fBskip_idct\fR        \fIinteger\fR \fB(\fR\fIdecoding,video\fR\fB)\fR" 4
.IX Item "skip_idct integer (decoding,video)"
.IP "\fBskip_frame\fR       \fIinteger\fR \fB(\fR\fIdecoding,video\fR\fB)\fR" 4
.IX Item "skip_frame integer (decoding,video)"
.PD
Make decoder discard processing depending on the frame type selected
by the option value.
.Sp
\&\fBskip_loop_filter\fR skips frame loop filtering, \fBskip_idct\fR
skips frame IDCT/dequantization, \fBskip_frame\fR skips decoding.
.Sp
Possible values:
.RS 4
.IP \fBnone\fR 4
.IX Item "none"
Discard no frame.
.IP \fBdefault\fR 4
.IX Item "default"
Discard useless frames like 0\-sized frames.
.IP \fBnoref\fR 4
.IX Item "noref"
Discard all non-reference frames.
.IP \fBbidir\fR 4
.IX Item "bidir"
Discard all bidirectional frames.
.IP \fBnokey\fR 4
.IX Item "nokey"
Discard all frames excepts keyframes.
.IP \fBnointra\fR 4
.IX Item "nointra"
Discard all frames except I frames.
.IP \fBall\fR 4
.IX Item "all"
Discard all frames.
.RE
.RS 4
.Sp
Default value is \fBdefault\fR.
.RE
.IP "\fBbidir_refine\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "bidir_refine integer (encoding,video)"
Refine the two motion vectors used in bidirectional macroblocks.
.IP "\fBbrd_scale\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "brd_scale integer (encoding,video)"
Downscale frames for dynamic B\-frame decision.
.IP "\fBkeyint_min\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "keyint_min integer (encoding,video)"
Set minimum interval between IDR-frames.
.IP "\fBrefs\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "refs integer (encoding,video)"
Set reference frames to consider for motion compensation.
.IP "\fBchromaoffset\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "chromaoffset integer (encoding,video)"
Set chroma qp offset from luma.
.IP "\fBtrellis\fR \fIinteger\fR \fB(\fR\fIencoding,audio,video\fR\fB)\fR" 4
.IX Item "trellis integer (encoding,audio,video)"
Set rate-distortion optimal quantization.
.IP "\fBmv0_threshold\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "mv0_threshold integer (encoding,video)"
.PD 0
.IP "\fBb_sensitivity\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "b_sensitivity integer (encoding,video)"
.PD
Adjust sensitivity of b_frame_strategy 1.
.IP "\fBcompression_level\fR \fIinteger\fR \fB(\fR\fIencoding,audio,video\fR\fB)\fR" 4
.IX Item "compression_level integer (encoding,audio,video)"
.PD 0
.IP "\fBmin_prediction_order\fR \fIinteger\fR \fB(\fR\fIencoding,audio\fR\fB)\fR" 4
.IX Item "min_prediction_order integer (encoding,audio)"
.IP "\fBmax_prediction_order\fR \fIinteger\fR \fB(\fR\fIencoding,audio\fR\fB)\fR" 4
.IX Item "max_prediction_order integer (encoding,audio)"
.IP "\fBtimecode_frame_start\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "timecode_frame_start integer (encoding,video)"
.PD
Set GOP timecode frame start number, in non drop frame format.
.IP "\fBbits_per_raw_sample\fR \fIinteger\fR" 4
.IX Item "bits_per_raw_sample integer"
.PD 0
.IP "\fBchannel_layout\fR \fIinteger\fR \fB(\fR\fIdecoding/encoding,audio\fR\fB)\fR" 4
.IX Item "channel_layout integer (decoding/encoding,audio)"
.PD
Possible values:
.IP "\fBrequest_channel_layout\fR \fIinteger\fR \fB(\fR\fIdecoding,audio\fR\fB)\fR" 4
.IX Item "request_channel_layout integer (decoding,audio)"
Possible values:
.IP "\fBrc_max_vbv_use\fR \fIfloat\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "rc_max_vbv_use float (encoding,video)"
.PD 0
.IP "\fBrc_min_vbv_use\fR \fIfloat\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "rc_min_vbv_use float (encoding,video)"
.IP "\fBticks_per_frame\fR \fIinteger\fR \fB(\fR\fIdecoding/encoding,audio,video\fR\fB)\fR" 4
.IX Item "ticks_per_frame integer (decoding/encoding,audio,video)"
.IP "\fBcolor_primaries\fR \fIinteger\fR \fB(\fR\fIdecoding/encoding,video\fR\fB)\fR" 4
.IX Item "color_primaries integer (decoding/encoding,video)"
.PD
Possible values:
.RS 4
.IP \fBbt709\fR 4
.IX Item "bt709"
BT.709
.IP \fBbt470m\fR 4
.IX Item "bt470m"
BT.470 M
.IP \fBbt470bg\fR 4
.IX Item "bt470bg"
BT.470 BG
.IP \fBsmpte170m\fR 4
.IX Item "smpte170m"
SMPTE 170 M
.IP \fBsmpte240m\fR 4
.IX Item "smpte240m"
SMPTE 240 M
.IP \fBfilm\fR 4
.IX Item "film"
Film
.IP \fBbt2020\fR 4
.IX Item "bt2020"
BT.2020
.IP \fBsmpte428\fR 4
.IX Item "smpte428"
.PD 0
.IP \fBsmpte428_1\fR 4
.IX Item "smpte428_1"
.PD
SMPTE ST 428\-1
.IP \fBsmpte431\fR 4
.IX Item "smpte431"
SMPTE 431\-2
.IP \fBsmpte432\fR 4
.IX Item "smpte432"
SMPTE 432\-1
.IP \fBjedec\-p22\fR 4
.IX Item "jedec-p22"
JEDEC P22
.RE
.RS 4
.RE
.IP "\fBcolor_trc\fR \fIinteger\fR \fB(\fR\fIdecoding/encoding,video\fR\fB)\fR" 4
.IX Item "color_trc integer (decoding/encoding,video)"
Possible values:
.RS 4
.IP \fBbt709\fR 4
.IX Item "bt709"
BT.709
.IP \fBgamma22\fR 4
.IX Item "gamma22"
BT.470 M
.IP \fBgamma28\fR 4
.IX Item "gamma28"
BT.470 BG
.IP \fBsmpte170m\fR 4
.IX Item "smpte170m"
SMPTE 170 M
.IP \fBsmpte240m\fR 4
.IX Item "smpte240m"
SMPTE 240 M
.IP \fBlinear\fR 4
.IX Item "linear"
Linear
.IP \fBlog\fR 4
.IX Item "log"
.PD 0
.IP \fBlog100\fR 4
.IX Item "log100"
.PD
Log
.IP \fBlog_sqrt\fR 4
.IX Item "log_sqrt"
.PD 0
.IP \fBlog316\fR 4
.IX Item "log316"
.PD
Log square root
.IP \fBiec61966_2_4\fR 4
.IX Item "iec61966_2_4"
.PD 0
.IP \fBiec61966\-2\-4\fR 4
.IX Item "iec61966-2-4"
.PD
IEC 61966\-2\-4
.IP \fBbt1361\fR 4
.IX Item "bt1361"
.PD 0
.IP \fBbt1361e\fR 4
.IX Item "bt1361e"
.PD
BT.1361
.IP \fBiec61966_2_1\fR 4
.IX Item "iec61966_2_1"
.PD 0
.IP \fBiec61966\-2\-1\fR 4
.IX Item "iec61966-2-1"
.PD
IEC 61966\-2\-1
.IP \fBbt2020_10\fR 4
.IX Item "bt2020_10"
.PD 0
.IP \fBbt2020_10bit\fR 4
.IX Item "bt2020_10bit"
.PD
BT.2020 \- 10 bit
.IP \fBbt2020_12\fR 4
.IX Item "bt2020_12"
.PD 0
.IP \fBbt2020_12bit\fR 4
.IX Item "bt2020_12bit"
.PD
BT.2020 \- 12 bit
.IP \fBsmpte2084\fR 4
.IX Item "smpte2084"
SMPTE ST 2084
.IP \fBsmpte428\fR 4
.IX Item "smpte428"
.PD 0
.IP \fBsmpte428_1\fR 4
.IX Item "smpte428_1"
.PD
SMPTE ST 428\-1
.IP \fBarib\-std\-b67\fR 4
.IX Item "arib-std-b67"
ARIB STD\-B67
.RE
.RS 4
.RE
.IP "\fBcolorspace\fR \fIinteger\fR \fB(\fR\fIdecoding/encoding,video\fR\fB)\fR" 4
.IX Item "colorspace integer (decoding/encoding,video)"
Possible values:
.RS 4
.IP \fBrgb\fR 4
.IX Item "rgb"
RGB
.IP \fBbt709\fR 4
.IX Item "bt709"
BT.709
.IP \fBfcc\fR 4
.IX Item "fcc"
FCC
.IP \fBbt470bg\fR 4
.IX Item "bt470bg"
BT.470 BG
.IP \fBsmpte170m\fR 4
.IX Item "smpte170m"
SMPTE 170 M
.IP \fBsmpte240m\fR 4
.IX Item "smpte240m"
SMPTE 240 M
.IP \fBycocg\fR 4
.IX Item "ycocg"
YCOCG
.IP \fBbt2020nc\fR 4
.IX Item "bt2020nc"
.PD 0
.IP \fBbt2020_ncl\fR 4
.IX Item "bt2020_ncl"
.PD
BT.2020 NCL
.IP \fBbt2020c\fR 4
.IX Item "bt2020c"
.PD 0
.IP \fBbt2020_cl\fR 4
.IX Item "bt2020_cl"
.PD
BT.2020 CL
.IP \fBsmpte2085\fR 4
.IX Item "smpte2085"
SMPTE 2085
.IP \fBchroma-derived-nc\fR 4
.IX Item "chroma-derived-nc"
Chroma-derived NCL
.IP \fBchroma-derived-c\fR 4
.IX Item "chroma-derived-c"
Chroma-derived CL
.IP \fBictcp\fR 4
.IX Item "ictcp"
ICtCp
.RE
.RS 4
.RE
.IP "\fBcolor_range\fR \fIinteger\fR \fB(\fR\fIdecoding/encoding,video\fR\fB)\fR" 4
.IX Item "color_range integer (decoding/encoding,video)"
If used as input parameter, it serves as a hint to the decoder, which
color_range the input has.
Possible values:
.RS 4
.IP \fBtv\fR 4
.IX Item "tv"
.PD 0
.IP \fBmpeg\fR 4
.IX Item "mpeg"
.PD
MPEG (219*2^(n\-8))
.IP \fBpc\fR 4
.IX Item "pc"
.PD 0
.IP \fBjpeg\fR 4
.IX Item "jpeg"
.PD
JPEG (2^n\-1)
.RE
.RS 4
.RE
.IP "\fBchroma_sample_location\fR \fIinteger\fR \fB(\fR\fIdecoding/encoding,video\fR\fB)\fR" 4
.IX Item "chroma_sample_location integer (decoding/encoding,video)"
Possible values:
.RS 4
.IP \fBleft\fR 4
.IX Item "left"
.PD 0
.IP \fBcenter\fR 4
.IX Item "center"
.IP \fBtopleft\fR 4
.IX Item "topleft"
.IP \fBtop\fR 4
.IX Item "top"
.IP \fBbottomleft\fR 4
.IX Item "bottomleft"
.IP \fBbottom\fR 4
.IX Item "bottom"
.RE
.RS 4
.RE
.IP "\fBlog_level_offset\fR \fIinteger\fR" 4
.IX Item "log_level_offset integer"
.PD
Set the log level offset.
.IP "\fBslices\fR \fIinteger\fR \fB(\fR\fIencoding,video\fR\fB)\fR" 4
.IX Item "slices integer (encoding,video)"
Number of slices, used in parallelized encoding.
.IP "\fBthread_type\fR \fIflags\fR \fB(\fR\fIdecoding/encoding,video\fR\fB)\fR" 4
.IX Item "thread_type flags (decoding/encoding,video)"
Select which multithreading methods to use.
.Sp
Use of \fBframe\fR will increase decoding delay by one frame per
thread, so clients which cannot provide future frames should not use
it.
.Sp
Possible values:
.RS 4
.IP \fBslice\fR 4
.IX Item "slice"
Decode more than one part of a single frame at once.
.Sp
Multithreading using slices works only when the video was encoded with
slices.
.IP \fBframe\fR 4
.IX Item "frame"
Decode more than one frame at once.
.RE
.RS 4
.Sp
Default value is \fBslice+frame\fR.
.RE
.IP "\fBaudio_service_type\fR \fIinteger\fR \fB(\fR\fIencoding,audio\fR\fB)\fR" 4
.IX Item "audio_service_type integer (encoding,audio)"
Set audio service type.
.Sp
Possible values:
.RS 4
.IP \fBma\fR 4
.IX Item "ma"
Main Audio Service
.IP \fBef\fR 4
.IX Item "ef"
Effects
.IP \fBvi\fR 4
.IX Item "vi"
Visually Impaired
.IP \fBhi\fR 4
.IX Item "hi"
Hearing Impaired
.IP \fBdi\fR 4
.IX Item "di"
Dialogue
.IP \fBco\fR 4
.IX Item "co"
Commentary
.IP \fBem\fR 4
.IX Item "em"
Emergency
.IP \fBvo\fR 4
.IX Item "vo"
Voice Over
.IP \fBka\fR 4
.IX Item "ka"
Karaoke
.RE
.RS 4
.RE
.IP "\fBrequest_sample_fmt\fR \fIsample_fmt\fR \fB(\fR\fIdecoding,audio\fR\fB)\fR" 4
.IX Item "request_sample_fmt sample_fmt (decoding,audio)"
Set sample format audio decoders should prefer. Default value is
\&\f(CW\*(C`none\*(C'\fR.
.IP "\fBpkt_timebase\fR \fIrational number\fR" 4
.IX Item "pkt_timebase rational number"
.PD 0
.IP "\fBsub_charenc\fR \fIencoding\fR \fB(\fR\fIdecoding,subtitles\fR\fB)\fR" 4
.IX Item "sub_charenc encoding (decoding,subtitles)"
.PD
Set the input subtitles character encoding.
.IP "\fBfield_order\fR  \fIfield_order\fR \fB(\fR\fIvideo\fR\fB)\fR" 4
.IX Item "field_order field_order (video)"
Set/override the field order of the video.
Possible values:
.RS 4
.IP \fBprogressive\fR 4
.IX Item "progressive"
Progressive video
.IP \fBtt\fR 4
.IX Item "tt"
Interlaced video, top field coded and displayed first
.IP \fBbb\fR 4
.IX Item "bb"
Interlaced video, bottom field coded and displayed first
.IP \fBtb\fR 4
.IX Item "tb"
Interlaced video, top coded first, bottom displayed first
.IP \fBbt\fR 4
.IX Item "bt"
Interlaced video, bottom coded first, top displayed first
.RE
.RS 4
.RE
.IP "\fBskip_alpha\fR \fIbool\fR \fB(\fR\fIdecoding,video\fR\fB)\fR" 4
.IX Item "skip_alpha bool (decoding,video)"
Set to 1 to disable processing alpha (transparency). This works like the
\&\fBgray\fR flag in the \fBflags\fR option which skips chroma information
instead of alpha. Default is 0.
.IP "\fBcodec_whitelist\fR \fIlist\fR \fB(\fR\fIinput\fR\fB)\fR" 4
.IX Item "codec_whitelist list (input)"
"," separated list of allowed decoders. By default all are allowed.
.IP "\fBdump_separator\fR \fIstring\fR \fB(\fR\fIinput\fR\fB)\fR" 4
.IX Item "dump_separator string (input)"
Separator used to separate the fields printed on the command line about the
Stream parameters.
For example, to separate the fields with newlines and indentation:
.Sp
.Vb 2
\&        ffprobe \-dump_separator "
\&                                  "  \-i ~/videos/matrixbench_mpeg2.mpg
.Ve
.IP "\fBmax_pixels\fR \fIinteger\fR \fB(\fR\fIdecoding/encoding,video\fR\fB)\fR" 4
.IX Item "max_pixels integer (decoding/encoding,video)"
Maximum number of pixels per image. This value can be used to avoid out of
memory failures due to large images.
.IP "\fBapply_cropping\fR \fIbool\fR \fB(\fR\fIdecoding,video\fR\fB)\fR" 4
.IX Item "apply_cropping bool (decoding,video)"
Enable cropping if cropping parameters are multiples of the required
alignment for the left and top parameters. If the alignment is not met the
cropping will be partially applied to maintain alignment.
Default is 1 (enabled).
Note: The required alignment depends on if \f(CW\*(C`AV_CODEC_FLAG_UNALIGNED\*(C'\fR is set and the
CPU. \f(CW\*(C`AV_CODEC_FLAG_UNALIGNED\*(C'\fR cannot be changed from the command line. Also hardware
decoders will not apply left/top Cropping.
.SH DECODERS
.IX Header "DECODERS"
Decoders are configured elements in FFmpeg which allow the decoding of
multimedia streams.
.PP
When you configure your FFmpeg build, all the supported native decoders
are enabled by default. Decoders requiring an external library must be enabled
manually via the corresponding \f(CW\*(C`\-\-enable\-lib\*(C'\fR option. You can list all
available decoders using the configure option \f(CW\*(C`\-\-list\-decoders\*(C'\fR.
.PP
You can disable all the decoders with the configure option
\&\f(CW\*(C`\-\-disable\-decoders\*(C'\fR and selectively enable / disable single decoders
with the options \f(CW\*(C`\-\-enable\-decoder=\fR\f(CIDECODER\fR\f(CW\*(C'\fR /
\&\f(CW\*(C`\-\-disable\-decoder=\fR\f(CIDECODER\fR\f(CW\*(C'\fR.
.PP
The option \f(CW\*(C`\-decoders\*(C'\fR of the ff* tools will display the list of
enabled decoders.
.SH "VIDEO DECODERS"
.IX Header "VIDEO DECODERS"
A description of some of the currently available video decoders
follows.
.SS av1
.IX Subsection "av1"
AOMedia Video 1 (AV1) decoder.
.PP
\fIOptions\fR
.IX Subsection "Options"
.IP \fBoperating_point\fR 4
.IX Item "operating_point"
Select an operating point of a scalable AV1 bitstream (0 \- 31). Default is 0.
.SS rawvideo
.IX Subsection "rawvideo"
Raw video decoder.
.PP
This decoder decodes rawvideo streams.
.PP
\fIOptions\fR
.IX Subsection "Options"
.IP "\fBtop\fR \fItop_field_first\fR" 4
.IX Item "top top_field_first"
Specify the assumed field type of the input video.
.RS 4
.IP \fB\-1\fR 4
.IX Item "-1"
the video is assumed to be progressive (default)
.IP \fB0\fR 4
.IX Item "0"
bottom-field-first is assumed
.IP \fB1\fR 4
.IX Item "1"
top-field-first is assumed
.RE
.RS 4
.RE
.SS libdav1d
.IX Subsection "libdav1d"
dav1d AV1 decoder.
.PP
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 \f(CW\*(C`\-\-enable\-libdav1d\*(C'\fR.
.PP
\fIOptions\fR
.IX Subsection "Options"
.PP
The following options are supported by the libdav1d wrapper.
.IP \fBframethreads\fR 4
.IX Item "framethreads"
Set amount of frame threads to use during decoding. The default value is 0 (autodetect).
.IP \fBtilethreads\fR 4
.IX Item "tilethreads"
Set amount of tile threads to use during decoding. The default value is 0 (autodetect).
.IP \fBfilmgrain\fR 4
.IX Item "filmgrain"
Apply film grain to the decoded video if present in the bitstream. Defaults to the
internal default of the library.
.IP \fBoppoint\fR 4
.IX Item "oppoint"
Select an operating point of a scalable AV1 bitstream (0 \- 31). Defaults to the
internal default of the library.
.IP \fBalllayers\fR 4
.IX Item "alllayers"
Output all spatial layers of a scalable AV1 bitstream. The default value is false.
.SS libdavs2
.IX Subsection "libdavs2"
AVS2\-P2/IEEE1857.4 video decoder wrapper.
.PP
This decoder allows libavcodec to decode AVS2 streams with davs2 library.
.SS libuavs3d
.IX Subsection "libuavs3d"
AVS3\-P2/IEEE1857.10 video decoder.
.PP
libuavs3d allows libavcodec to decode AVS3 streams.
Requires the presence of the libuavs3d headers and library during configuration.
You need to explicitly configure the build with \f(CW\*(C`\-\-enable\-libuavs3d\*(C'\fR.
.PP
\fIOptions\fR
.IX Subsection "Options"
.PP
The following option is supported by the libuavs3d wrapper.
.IP \fBframe_threads\fR 4
.IX Item "frame_threads"
Set amount of frame threads to use during decoding. The default value is 0 (autodetect).
.SH "AUDIO DECODERS"
.IX Header "AUDIO DECODERS"
A description of some of the currently available audio decoders
follows.
.SS ac3
.IX Subsection "ac3"
AC\-3 audio decoder.
.PP
This decoder implements part of ATSC A/52:2010 and ETSI TS 102 366, as well as
the undocumented RealAudio 3 (a.k.a. dnet).
.PP
\fIAC\-3 Decoder Options\fR
.IX Subsection "AC-3 Decoder Options"
.IP "\fB\-drc_scale\fR \fIvalue\fR" 4
.IX Item "-drc_scale value"
Dynamic Range Scale Factor. The factor to apply to dynamic range values
from the AC\-3 stream. This factor is applied exponentially. The default value is 1.
There are 3 notable scale factor ranges:
.RS 4
.IP "\fBdrc_scale == 0\fR" 4
.IX Item "drc_scale == 0"
DRC disabled. Produces full range audio.
.IP "\fB0 < drc_scale <= 1\fR" 4
.IX Item "0 < drc_scale <= 1"
DRC enabled.  Applies a fraction of the stream DRC value.
Audio reproduction is between full range and full compression.
.IP "\fBdrc_scale > 1\fR" 4
.IX Item "drc_scale > 1"
DRC enabled. Applies drc_scale asymmetrically.
Loud sounds are fully compressed.  Soft sounds are enhanced.
.RE
.RS 4
.RE
.SS flac
.IX Subsection "flac"
FLAC audio decoder.
.PP
This decoder aims to implement the complete FLAC specification from Xiph.
.PP
\fIFLAC Decoder options\fR
.IX Subsection "FLAC Decoder options"
.IP \fB\-use_buggy_lpc\fR 4
.IX Item "-use_buggy_lpc"
The lavc FLAC encoder used to produce buggy streams with high lpc values
(like the default value). This option makes it possible to decode such streams
correctly by using lavc's old buggy lpc logic for decoding.
.SS ffwavesynth
.IX Subsection "ffwavesynth"
Internal wave synthesizer.
.PP
This decoder generates wave patterns according to predefined sequences. Its
use is purely internal and the format of the data it accepts is not publicly
documented.
.SS libcelt
.IX Subsection "libcelt"
libcelt decoder wrapper.
.PP
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 \f(CW\*(C`\-\-enable\-libcelt\*(C'\fR.
.SS libgsm
.IX Subsection "libgsm"
libgsm decoder wrapper.
.PP
libgsm allows libavcodec to decode the GSM full rate audio codec. Requires
the presence of the libgsm headers and library during configuration. You need
to explicitly configure the build with \f(CW\*(C`\-\-enable\-libgsm\*(C'\fR.
.PP
This decoder supports both the ordinary GSM and the Microsoft variant.
.SS libilbc
.IX Subsection "libilbc"
libilbc decoder wrapper.
.PP
libilbc allows libavcodec to decode the Internet Low Bitrate Codec (iLBC)
audio codec. Requires the presence of the libilbc headers and library during
configuration. You need to explicitly configure the build with
\&\f(CW\*(C`\-\-enable\-libilbc\*(C'\fR.
.PP
\fIOptions\fR
.IX Subsection "Options"
.PP
The following option is supported by the libilbc wrapper.
.IP \fBenhance\fR 4
.IX Item "enhance"
Enable the enhancement of the decoded audio when set to 1. The default
value is 0 (disabled).
.SS libopencore-amrnb
.IX Subsection "libopencore-amrnb"
libopencore-amrnb decoder wrapper.
.PP
libopencore-amrnb allows libavcodec to decode the Adaptive Multi-Rate
Narrowband audio codec. Using it requires the presence of the
libopencore-amrnb headers and library during configuration. You need to
explicitly configure the build with \f(CW\*(C`\-\-enable\-libopencore\-amrnb\*(C'\fR.
.PP
An FFmpeg native decoder for AMR-NB exists, so users can decode AMR-NB
without this library.
.SS libopencore-amrwb
.IX Subsection "libopencore-amrwb"
libopencore-amrwb decoder wrapper.
.PP
libopencore-amrwb allows libavcodec to decode the Adaptive Multi-Rate
Wideband audio codec. Using it requires the presence of the
libopencore-amrwb headers and library during configuration. You need to
explicitly configure the build with \f(CW\*(C`\-\-enable\-libopencore\-amrwb\*(C'\fR.
.PP
An FFmpeg native decoder for AMR-WB exists, so users can decode AMR-WB
without this library.
.SS libopus
.IX Subsection "libopus"
libopus decoder wrapper.
.PP
libopus allows libavcodec to decode the Opus Interactive Audio Codec.
Requires the presence of the libopus headers and library during
configuration. You need to explicitly configure the build with
\&\f(CW\*(C`\-\-enable\-libopus\*(C'\fR.
.PP
An FFmpeg native decoder for Opus exists, so users can decode Opus
without this library.
.SH "SUBTITLES DECODERS"
.IX Header "SUBTITLES DECODERS"
.SS libaribb24
.IX Subsection "libaribb24"
ARIB STD\-B24 caption decoder.
.PP
Implements profiles A and C of the ARIB STD\-B24 standard.
.PP
\fIlibaribb24 Decoder Options\fR
.IX Subsection "libaribb24 Decoder Options"
.IP "\fB\-aribb24\-base\-path\fR \fIpath\fR" 4
.IX Item "-aribb24-base-path path"
Sets the base path for the libaribb24 library. This is utilized for reading of
configuration files (for custom unicode conversions), and for dumping of
non-text symbols as images under that location.
.Sp
Unset by default.
.IP "\fB\-aribb24\-skip\-ruby\-text\fR \fIboolean\fR" 4
.IX Item "-aribb24-skip-ruby-text boolean"
Tells the decoder wrapper to skip text blocks that contain half-height ruby
text.
.Sp
Enabled by default.
.SS dvbsub
.IX Subsection "dvbsub"
\fIOptions\fR
.IX Subsection "Options"
.IP \fBcompute_clut\fR 4
.IX Item "compute_clut"
.RS 4
.PD 0
.IP \fB\-1\fR 4
.IX Item "-1"
.PD
Compute clut if no matching CLUT is in the stream.
.IP \fB0\fR 4
.IX Item "0"
Never compute CLUT
.IP \fB1\fR 4
.IX Item "1"
Always compute CLUT and override the one provided in the stream.
.RE
.RS 4
.RE
.IP \fBdvb_substream\fR 4
.IX Item "dvb_substream"
Selects the dvb substream, or all substreams if \-1 which is default.
.SS dvdsub
.IX Subsection "dvdsub"
This codec decodes the bitmap subtitles used in DVDs; the same subtitles can
also be found in VobSub file pairs and in some Matroska files.
.PP
\fIOptions\fR
.IX Subsection "Options"
.IP \fBpalette\fR 4
.IX Item "palette"
Specify the global palette used by the bitmaps. When stored in VobSub, the
palette is normally specified in the index file; in Matroska, the palette is
stored in the codec extra-data in the same format as in VobSub. In DVDs, the
palette is stored in the IFO file, and therefore not available when reading
from dumped VOB files.
.Sp
The format for this option is a string containing 16 24\-bits hexadecimal
numbers (without 0x prefix) separated by commas, for example \f(CW\*(C`0d00ee,
ee450d, 101010, eaeaea, 0ce60b, ec14ed, ebff0b, 0d617a, 7b7b7b, d1d1d1,
7b2a0e, 0d950c, 0f007b, cf0dec, cfa80c, 7c127b\*(C'\fR.
.IP \fBifo_palette\fR 4
.IX Item "ifo_palette"
Specify the IFO file from which the global palette is obtained.
(experimental)
.IP \fBforced_subs_only\fR 4
.IX Item "forced_subs_only"
Only decode subtitle entries marked as forced. Some titles have forced
and non-forced subtitles in the same track. Setting this flag to \f(CW1\fR
will only keep the forced subtitles. Default value is \f(CW0\fR.
.SS libzvbi-teletext
.IX Subsection "libzvbi-teletext"
Libzvbi allows libavcodec to decode DVB teletext pages and DVB teletext
subtitles. Requires the presence of the libzvbi headers and library during
configuration. You need to explicitly configure the build with
\&\f(CW\*(C`\-\-enable\-libzvbi\*(C'\fR.
.PP
\fIOptions\fR
.IX Subsection "Options"
.IP \fBtxt_page\fR 4
.IX Item "txt_page"
List of teletext page numbers to decode. Pages that do not match the specified
list are dropped. You may use the special \f(CW\*(C`*\*(C'\fR string to match all pages,
or \f(CW\*(C`subtitle\*(C'\fR to match all subtitle pages.
Default value is *.
.IP \fBtxt_default_region\fR 4
.IX Item "txt_default_region"
Set default character set used for decoding, a value between 0 and 87 (see
ETS 300 706, Section 15, Table 32). Default value is \-1, which does not
override the libzvbi default. This option is needed for some legacy level 1.0
transmissions which cannot signal the proper charset.
.IP \fBtxt_chop_top\fR 4
.IX Item "txt_chop_top"
Discards the top teletext line. Default value is 1.
.IP \fBtxt_format\fR 4
.IX Item "txt_format"
Specifies the format of the decoded subtitles.
.RS 4
.IP \fBbitmap\fR 4
.IX Item "bitmap"
The default format, you should use this for teletext pages, because certain
graphics and colors cannot be expressed in simple text or even ASS.
.IP \fBtext\fR 4
.IX Item "text"
Simple text based output without formatting.
.IP \fBass\fR 4
.IX Item "ass"
Formatted ASS output, subtitle pages and teletext pages are returned in
different styles, subtitle pages are stripped down to text, but an effort is
made to keep the text alignment and the formatting.
.RE
.RS 4
.RE
.IP \fBtxt_left\fR 4
.IX Item "txt_left"
X offset of generated bitmaps, default is 0.
.IP \fBtxt_top\fR 4
.IX Item "txt_top"
Y offset of generated bitmaps, default is 0.
.IP \fBtxt_chop_spaces\fR 4
.IX Item "txt_chop_spaces"
Chops leading and trailing spaces and removes empty lines from the generated
text. This option is useful for teletext based subtitles where empty spaces may
be present at the start or at the end of the lines or empty lines may be
present between the subtitle lines because of double-sized teletext characters.
Default value is 1.
.IP \fBtxt_duration\fR 4
.IX Item "txt_duration"
Sets the display duration of the decoded teletext pages or subtitles in
milliseconds. Default value is \-1 which means infinity or until the next
subtitle event comes.
.IP \fBtxt_transparent\fR 4
.IX Item "txt_transparent"
Force transparent background of the generated teletext bitmaps. Default value
is 0 which means an opaque background.
.IP \fBtxt_opacity\fR 4
.IX Item "txt_opacity"
Sets the opacity (0\-255) of the teletext background. If
\&\fBtxt_transparent\fR is not set, it only affects characters between a start
box and an end box, typically subtitles. Default value is 0 if
\&\fBtxt_transparent\fR is set, 255 otherwise.
.SH "BITSTREAM FILTERS"
.IX Header "BITSTREAM FILTERS"
When you configure your FFmpeg build, all the supported bitstream
filters are enabled by default. You can list all available ones using
the configure option \f(CW\*(C`\-\-list\-bsfs\*(C'\fR.
.PP
You can disable all the bitstream filters using the configure option
\&\f(CW\*(C`\-\-disable\-bsfs\*(C'\fR, and selectively enable any bitstream filter using
the option \f(CW\*(C`\-\-enable\-bsf=BSF\*(C'\fR, or you can disable a particular
bitstream filter using the option \f(CW\*(C`\-\-disable\-bsf=BSF\*(C'\fR.
.PP
The option \f(CW\*(C`\-bsfs\*(C'\fR of the ff* tools will display the list of
all the supported bitstream filters included in your build.
.PP
The ff* tools have a \-bsf option applied per stream, taking a
comma-separated list of filters, whose parameters follow the filter
name after a '='.
.PP
.Vb 1
\&        ffmpeg \-i INPUT \-c:v copy \-bsf:v filter1[=opt1=str1:opt2=str2][,filter2] OUTPUT
.Ve
.PP
Below is a description of the currently available bitstream filters,
with their parameters, if any.
.SS aac_adtstoasc
.IX Subsection "aac_adtstoasc"
Convert MPEG\-2/4 AAC ADTS to an MPEG\-4 Audio Specific Configuration
bitstream.
.PP
This filter creates an MPEG\-4 AudioSpecificConfig from an MPEG\-2/4
ADTS header and removes the ADTS header.
.PP
This filter is required for example when copying an AAC stream from a
raw ADTS AAC or an MPEG-TS container to MP4A\-LATM, to an FLV file, or
to MOV/MP4 files and related formats such as 3GP or M4A. Please note
that it is auto-inserted for MP4A\-LATM and MOV/MP4 and related formats.
.SS av1_metadata
.IX Subsection "av1_metadata"
Modify metadata embedded in an AV1 stream.
.IP \fBtd\fR 4
.IX Item "td"
Insert or remove temporal delimiter OBUs in all temporal units of the
stream.
.RS 4
.IP \fBinsert\fR 4
.IX Item "insert"
Insert a TD at the beginning of every TU which does not already have one.
.IP \fBremove\fR 4
.IX Item "remove"
Remove the TD from the beginning of every TU which has one.
.RE
.RS 4
.RE
.IP \fBcolor_primaries\fR 4
.IX Item "color_primaries"
.PD 0
.IP \fBtransfer_characteristics\fR 4
.IX Item "transfer_characteristics"
.IP \fBmatrix_coefficients\fR 4
.IX Item "matrix_coefficients"
.PD
Set the color description fields in the stream (see AV1 section 6.4.2).
.IP \fBcolor_range\fR 4
.IX Item "color_range"
Set the color range in the stream (see AV1 section 6.4.2; note that
this cannot be set for streams using BT.709 primaries, sRGB transfer
characteristic and identity (RGB) matrix coefficients).
.RS 4
.IP \fBtv\fR 4
.IX Item "tv"
Limited range.
.IP \fBpc\fR 4
.IX Item "pc"
Full range.
.RE
.RS 4
.RE
.IP \fBchroma_sample_position\fR 4
.IX Item "chroma_sample_position"
Set the chroma sample location in the stream (see AV1 section 6.4.2).
This can only be set for 4:2:0 streams.
.RS 4
.IP \fBvertical\fR 4
.IX Item "vertical"
Left position (matching the default in MPEG\-2 and H.264).
.IP \fBcolocated\fR 4
.IX Item "colocated"
Top-left position.
.RE
.RS 4
.RE
.IP \fBtick_rate\fR 4
.IX Item "tick_rate"
Set the tick rate (\fInum_units_in_display_tick / time_scale\fR) in
the timing info in the sequence header.
.IP \fBnum_ticks_per_picture\fR 4
.IX Item "num_ticks_per_picture"
Set the number of ticks in each picture, to indicate that the stream
has a fixed framerate.  Ignored if \fBtick_rate\fR is not also set.
.IP \fBdelete_padding\fR 4
.IX Item "delete_padding"
Deletes Padding OBUs.
.SS chomp
.IX Subsection "chomp"
Remove zero padding at the end of a packet.
.SS dca_core
.IX Subsection "dca_core"
Extract the core from a DCA/DTS stream, dropping extensions such as
DTS-HD.
.SS dump_extra
.IX Subsection "dump_extra"
Add extradata to the beginning of the filtered packets except when
said packets already exactly begin with the extradata that is intended
to be added.
.IP \fBfreq\fR 4
.IX Item "freq"
The additional argument specifies which packets should be filtered.
It accepts the values:
.RS 4
.IP \fBk\fR 4
.IX Item "k"
.PD 0
.IP \fBkeyframe\fR 4
.IX Item "keyframe"
.PD
add extradata to all key packets
.IP \fBe\fR 4
.IX Item "e"
.PD 0
.IP \fBall\fR 4
.IX Item "all"
.PD
add extradata to all packets
.RE
.RS 4
.RE
.PP
If not specified it is assumed \fBk\fR.
.PP
For example the following \fBffmpeg\fR command forces a global
header (thus disabling individual packet headers) in the H.264 packets
generated by the \f(CW\*(C`libx264\*(C'\fR encoder, but corrects them by adding
the header stored in extradata to the key packets:
.PP
.Vb 1
\&        ffmpeg \-i INPUT \-map 0 \-flags:v +global_header \-c:v libx264 \-bsf:v dump_extra out.ts
.Ve
.SS eac3_core
.IX Subsection "eac3_core"
Extract the core from a E\-AC\-3 stream, dropping extra channels.
.SS extract_extradata
.IX Subsection "extract_extradata"
Extract the in-band extradata.
.PP
Certain codecs allow the long-term headers (e.g. MPEG\-2 sequence headers,
or H.264/HEVC (VPS/)SPS/PPS) to be transmitted either "in-band" (i.e. as a part
of the bitstream containing the coded frames) or "out of band" (e.g. on the
container level). This latter form is called "extradata" in FFmpeg terminology.
.PP
This bitstream filter detects the in-band headers and makes them available as
extradata.
.IP \fBremove\fR 4
.IX Item "remove"
When this option is enabled, the long-term headers are removed from the
bitstream after extraction.
.SS filter_units
.IX Subsection "filter_units"
Remove units with types in or not in a given set from the stream.
.IP \fBpass_types\fR 4
.IX Item "pass_types"
List of unit types or ranges of unit types to pass through while removing
all others.  This is specified as a '|'\-separated list of unit type values
or ranges of values with '\-'.
.IP \fBremove_types\fR 4
.IX Item "remove_types"
Identical to \fBpass_types\fR, except the units in the given set
removed and all others passed through.
.PP
Extradata is unchanged by this transformation, but note that if the stream
contains inline parameter sets then the output may be unusable if they are
removed.
.PP
For example, to remove all non-VCL NAL units from an H.264 stream:
.PP
.Vb 1
\&        ffmpeg \-i INPUT \-c:v copy \-bsf:v \*(Aqfilter_units=pass_types=1\-5\*(Aq OUTPUT
.Ve
.PP
To remove all AUDs, SEI and filler from an H.265 stream:
.PP
.Vb 1
\&        ffmpeg \-i INPUT \-c:v copy \-bsf:v \*(Aqfilter_units=remove_types=35|38\-40\*(Aq OUTPUT
.Ve
.SS hapqa_extract
.IX Subsection "hapqa_extract"
Extract Rgb or Alpha part of an HAPQA file, without recompression, in order to create an HAPQ or an HAPAlphaOnly file.
.IP \fBtexture\fR 4
.IX Item "texture"
Specifies the texture to keep.
.RS 4
.IP \fBcolor\fR 4
.IX Item "color"
.PD 0
.IP \fBalpha\fR 4
.IX Item "alpha"
.RE
.RS 4
.RE
.PD
.PP
Convert HAPQA to HAPQ
.PP
.Vb 1
\&        ffmpeg \-i hapqa_inputfile.mov \-c copy \-bsf:v hapqa_extract=texture=color \-tag:v HapY \-metadata:s:v:0 encoder="HAPQ" hapq_file.mov
.Ve
.PP
Convert HAPQA to HAPAlphaOnly
.PP
.Vb 1
\&        ffmpeg \-i hapqa_inputfile.mov \-c copy \-bsf:v hapqa_extract=texture=alpha \-tag:v HapA \-metadata:s:v:0 encoder="HAPAlpha Only" hapalphaonly_file.mov
.Ve
.SS h264_metadata
.IX Subsection "h264_metadata"
Modify metadata embedded in an H.264 stream.
.IP \fBaud\fR 4
.IX Item "aud"
Insert or remove AUD NAL units in all access units of the stream.
.RS 4
.IP \fBinsert\fR 4
.IX Item "insert"
.PD 0
.IP \fBremove\fR 4
.IX Item "remove"
.RE
.RS 4
.RE
.IP \fBsample_aspect_ratio\fR 4
.IX Item "sample_aspect_ratio"
.PD
Set the sample aspect ratio of the stream in the VUI parameters.
.IP \fBoverscan_appropriate_flag\fR 4
.IX Item "overscan_appropriate_flag"
Set whether the stream is suitable for display using overscan
or not (see H.264 section E.2.1).
.IP \fBvideo_format\fR 4
.IX Item "video_format"
.PD 0
.IP \fBvideo_full_range_flag\fR 4
.IX Item "video_full_range_flag"
.PD
Set the video format in the stream (see H.264 section E.2.1 and
table E\-2).
.IP \fBcolour_primaries\fR 4
.IX Item "colour_primaries"
.PD 0
.IP \fBtransfer_characteristics\fR 4
.IX Item "transfer_characteristics"
.IP \fBmatrix_coefficients\fR 4
.IX Item "matrix_coefficients"
.PD
Set the colour description in the stream (see H.264 section E.2.1
and tables E\-3, E\-4 and E\-5).
.IP \fBchroma_sample_loc_type\fR 4
.IX Item "chroma_sample_loc_type"
Set the chroma sample location in the stream (see H.264 section
E.2.1 and figure E\-1).
.IP \fBtick_rate\fR 4
.IX Item "tick_rate"
Set the tick rate (num_units_in_tick / time_scale) in the VUI
parameters.  This is the smallest time unit representable in the
stream, and in many cases represents the field rate of the stream
(double the frame rate).
.IP \fBfixed_frame_rate_flag\fR 4
.IX Item "fixed_frame_rate_flag"
Set whether the stream has fixed framerate \- typically this indicates
that the framerate is exactly half the tick rate, but the exact
meaning is dependent on interlacing and the picture structure (see
H.264 section E.2.1 and table E\-6).
.IP \fBcrop_left\fR 4
.IX Item "crop_left"
.PD 0
.IP \fBcrop_right\fR 4
.IX Item "crop_right"
.IP \fBcrop_top\fR 4
.IX Item "crop_top"
.IP \fBcrop_bottom\fR 4
.IX Item "crop_bottom"
.PD
Set the frame cropping offsets in the SPS.  These values will replace
the current ones if the stream is already cropped.
.Sp
These fields are set in pixels.  Note that some sizes may not be
representable if the chroma is subsampled or the stream is interlaced
(see H.264 section 7.4.2.1.1).
.IP \fBsei_user_data\fR 4
.IX Item "sei_user_data"
Insert a string as SEI unregistered user data.  The argument must
be of the form \fIUUID+string\fR, where the UUID is as hex digits
possibly separated by hyphens, and the string can be anything.
.Sp
For example, \fB086f3693\-b7b3\-4f2c\-9653\-21492feee5b8+hello\fR will
insert the string ``hello'' associated with the given UUID.
.IP \fBdelete_filler\fR 4
.IX Item "delete_filler"
Deletes both filler NAL units and filler SEI messages.
.IP \fBlevel\fR 4
.IX Item "level"
Set the level in the SPS.  Refer to H.264 section A.3 and tables A\-1
to A\-5.
.Sp
The argument must be the name of a level (for example, \fB4.2\fR), a
level_idc value (for example, \fB42\fR), or the special name \fBauto\fR
indicating that the filter should attempt to guess the level from the
input stream properties.
.SS h264_mp4toannexb
.IX Subsection "h264_mp4toannexb"
Convert an H.264 bitstream from length prefixed mode to start code
prefixed mode (as defined in the Annex B of the ITU-T H.264
specification).
.PP
This is required by some streaming formats, typically the MPEG\-2
transport stream format (muxer \f(CW\*(C`mpegts\*(C'\fR).
.PP
For example to remux an MP4 file containing an H.264 stream to mpegts
format with \fBffmpeg\fR, you can use the command:
.PP
.Vb 1
\&        ffmpeg \-i INPUT.mp4 \-codec copy \-bsf:v h264_mp4toannexb OUTPUT.ts
.Ve
.PP
Please note that this filter is auto-inserted for MPEG-TS (muxer
\&\f(CW\*(C`mpegts\*(C'\fR) and raw H.264 (muxer \f(CW\*(C`h264\*(C'\fR) output formats.
.SS h264_redundant_pps
.IX Subsection "h264_redundant_pps"
This applies a specific fixup to some Blu-ray streams which contain
redundant PPSs modifying irrelevant parameters of the stream which
confuse other transformations which require correct extradata.
.PP
A new single global PPS is created, and all of the redundant PPSs
within the stream are removed.
.SS hevc_metadata
.IX Subsection "hevc_metadata"
Modify metadata embedded in an HEVC stream.
.IP \fBaud\fR 4
.IX Item "aud"
Insert or remove AUD NAL units in all access units of the stream.
.RS 4
.IP \fBinsert\fR 4
.IX Item "insert"
.PD 0
.IP \fBremove\fR 4
.IX Item "remove"
.RE
.RS 4
.RE
.IP \fBsample_aspect_ratio\fR 4
.IX Item "sample_aspect_ratio"
.PD
Set the sample aspect ratio in the stream in the VUI parameters.
.IP \fBvideo_format\fR 4
.IX Item "video_format"
.PD 0
.IP \fBvideo_full_range_flag\fR 4
.IX Item "video_full_range_flag"
.PD
Set the video format in the stream (see H.265 section E.3.1 and
table E.2).
.IP \fBcolour_primaries\fR 4
.IX Item "colour_primaries"
.PD 0
.IP \fBtransfer_characteristics\fR 4
.IX Item "transfer_characteristics"
.IP \fBmatrix_coefficients\fR 4
.IX Item "matrix_coefficients"
.PD
Set the colour description in the stream (see H.265 section E.3.1
and tables E.3, E.4 and E.5).
.IP \fBchroma_sample_loc_type\fR 4
.IX Item "chroma_sample_loc_type"
Set the chroma sample location in the stream (see H.265 section
E.3.1 and figure E.1).
.IP \fBtick_rate\fR 4
.IX Item "tick_rate"
Set the tick rate in the VPS and VUI parameters (num_units_in_tick /
time_scale).  Combined with \fBnum_ticks_poc_diff_one\fR, this can
set a constant framerate in the stream.  Note that it is likely to be
overridden by container parameters when the stream is in a container.
.IP \fBnum_ticks_poc_diff_one\fR 4
.IX Item "num_ticks_poc_diff_one"
Set poc_proportional_to_timing_flag in VPS and VUI and use this value
to set num_ticks_poc_diff_one_minus1 (see H.265 sections 7.4.3.1 and
E.3.1).  Ignored if \fBtick_rate\fR is not also set.
.IP \fBcrop_left\fR 4
.IX Item "crop_left"
.PD 0
.IP \fBcrop_right\fR 4
.IX Item "crop_right"
.IP \fBcrop_top\fR 4
.IX Item "crop_top"
.IP \fBcrop_bottom\fR 4
.IX Item "crop_bottom"
.PD
Set the conformance window cropping offsets in the SPS.  These values
will replace the current ones if the stream is already cropped.
.Sp
These fields are set in pixels.  Note that some sizes may not be
representable if the chroma is subsampled (H.265 section 7.4.3.2.1).
.IP \fBlevel\fR 4
.IX Item "level"
Set the level in the VPS and SPS.  See H.265 section A.4 and tables
A.6 and A.7.
.Sp
The argument must be the name of a level (for example, \fB5.1\fR), a
\&\fIgeneral_level_idc\fR value (for example, \fB153\fR for level 5.1),
or the special name \fBauto\fR indicating that the filter should
attempt to guess the level from the input stream properties.
.SS hevc_mp4toannexb
.IX Subsection "hevc_mp4toannexb"
Convert an HEVC/H.265 bitstream from length prefixed mode to start code
prefixed mode (as defined in the Annex B of the ITU-T H.265
specification).
.PP
This is required by some streaming formats, typically the MPEG\-2
transport stream format (muxer \f(CW\*(C`mpegts\*(C'\fR).
.PP
For example to remux an MP4 file containing an HEVC stream to mpegts
format with \fBffmpeg\fR, you can use the command:
.PP
.Vb 1
\&        ffmpeg \-i INPUT.mp4 \-codec copy \-bsf:v hevc_mp4toannexb OUTPUT.ts
.Ve
.PP
Please note that this filter is auto-inserted for MPEG-TS (muxer
\&\f(CW\*(C`mpegts\*(C'\fR) and raw HEVC/H.265 (muxer \f(CW\*(C`h265\*(C'\fR or
\&\f(CW\*(C`hevc\*(C'\fR) output formats.
.SS imxdump
.IX Subsection "imxdump"
Modifies the bitstream to fit in MOV and to be usable by the Final Cut
Pro decoder. This filter only applies to the mpeg2video codec, and is
likely not needed for Final Cut Pro 7 and newer with the appropriate
\&\fB\-tag:v\fR.
.PP
For example, to remux 30 MB/sec NTSC IMX to MOV:
.PP
.Vb 1
\&        ffmpeg \-i input.mxf \-c copy \-bsf:v imxdump \-tag:v mx3n output.mov
.Ve
.SS mjpeg2jpeg
.IX Subsection "mjpeg2jpeg"
Convert MJPEG/AVI1 packets to full JPEG/JFIF packets.
.PP
MJPEG is a video codec wherein each video frame is essentially a
JPEG image. The individual frames can be extracted without loss,
e.g. by
.PP
.Vb 1
\&        ffmpeg \-i ../some_mjpeg.avi \-c:v copy frames_%d.jpg
.Ve
.PP
Unfortunately, these chunks are incomplete JPEG images, because
they lack the DHT segment required for decoding. Quoting from
<\fBhttp://www.digitalpreservation.gov/formats/fdd/fdd000063.shtml\fR>:
.PP
Avery Lee, writing in the rec.video.desktop newsgroup in 2001,
commented that "MJPEG, or at least the MJPEG in AVIs having the
MJPG fourcc, is restricted JPEG with a fixed \-\- and *omitted* \-\-
Huffman table. The JPEG must be YCbCr colorspace, it must be 4:2:2,
and it must use basic Huffman encoding, not arithmetic or
progressive. . . . You can indeed extract the MJPEG frames and
decode them with a regular JPEG decoder, but you have to prepend
the DHT segment to them, or else the decoder won't have any idea
how to decompress the data. The exact table necessary is given in
the OpenDML spec."
.PP
This bitstream filter patches the header of frames extracted from an MJPEG
stream (carrying the AVI1 header ID and lacking a DHT segment) to
produce fully qualified JPEG images.
.PP
.Vb 3
\&        ffmpeg \-i mjpeg\-movie.avi \-c:v copy \-bsf:v mjpeg2jpeg frame_%d.jpg
\&        exiftran \-i \-9 frame*.jpg
\&        ffmpeg \-i frame_%d.jpg \-c:v copy rotated.avi
.Ve
.SS mjpegadump
.IX Subsection "mjpegadump"
Add an MJPEG A header to the bitstream, to enable decoding by
Quicktime.
.SS mov2textsub
.IX Subsection "mov2textsub"
Extract a representable text file from MOV subtitles, stripping the
metadata header from each subtitle packet.
.PP
See also the \fBtext2movsub\fR filter.
.SS mp3decomp
.IX Subsection "mp3decomp"
Decompress non-standard compressed MP3 audio headers.
.SS mpeg2_metadata
.IX Subsection "mpeg2_metadata"
Modify metadata embedded in an MPEG\-2 stream.
.IP \fBdisplay_aspect_ratio\fR 4
.IX Item "display_aspect_ratio"
Set the display aspect ratio in the stream.
.Sp
The following fixed values are supported:
.RS 4
.IP \fB4/3\fR 4
.IX Item "4/3"
.PD 0
.IP \fB16/9\fR 4
.IX Item "16/9"
.IP \fB221/100\fR 4
.IX Item "221/100"
.RE
.RS 4
.PD
.Sp
Any other value will result in square pixels being signalled instead
(see H.262 section 6.3.3 and table 6\-3).
.RE
.IP \fBframe_rate\fR 4
.IX Item "frame_rate"
Set the frame rate in the stream.  This is constructed from a table
of known values combined with a small multiplier and divisor \- if
the supplied value is not exactly representable, the nearest
representable value will be used instead (see H.262 section 6.3.3
and table 6\-4).
.IP \fBvideo_format\fR 4
.IX Item "video_format"
Set the video format in the stream (see H.262 section 6.3.6 and
table 6\-6).
.IP \fBcolour_primaries\fR 4
.IX Item "colour_primaries"
.PD 0
.IP \fBtransfer_characteristics\fR 4
.IX Item "transfer_characteristics"
.IP \fBmatrix_coefficients\fR 4
.IX Item "matrix_coefficients"
.PD
Set the colour description in the stream (see H.262 section 6.3.6
and tables 6\-7, 6\-8 and 6\-9).
.SS mpeg4_unpack_bframes
.IX Subsection "mpeg4_unpack_bframes"
Unpack DivX-style packed B\-frames.
.PP
DivX-style packed B\-frames are not valid MPEG\-4 and were only a
workaround for the broken Video for Windows subsystem.
They use more space, can cause minor AV sync issues, require more
CPU power to decode (unless the player has some decoded picture queue
to compensate the 2,0,2,0 frame per packet style) and cause
trouble if copied into a standard container like mp4 or mpeg\-ps/ts,
because MPEG\-4 decoders may not be able to decode them, since they are
not valid MPEG\-4.
.PP
For example to fix an AVI file containing an MPEG\-4 stream with
DivX-style packed B\-frames using \fBffmpeg\fR, you can use the command:
.PP
.Vb 1
\&        ffmpeg \-i INPUT.avi \-codec copy \-bsf:v mpeg4_unpack_bframes OUTPUT.avi
.Ve
.SS noise
.IX Subsection "noise"
Damages the contents of packets or simply drops them without damaging the
container. Can be used for fuzzing or testing error resilience/concealment.
.PP
Parameters:
.IP \fBamount\fR 4
.IX Item "amount"
A numeral string, whose value is related to how often output bytes will
be modified. Therefore, values below or equal to 0 are forbidden, and
the lower the more frequent bytes will be modified, with 1 meaning
every byte is modified.
.IP \fBdropamount\fR 4
.IX Item "dropamount"
A numeral string, whose value is related to how often packets will be dropped.
Therefore, values below or equal to 0 are forbidden, and the lower the more
frequent packets will be dropped, with 1 meaning every packet is dropped.
.PP
The following example applies the modification to every byte but does not drop
any packets.
.PP
.Vb 1
\&        ffmpeg \-i INPUT \-c copy \-bsf noise[=1] output.mkv
.Ve
.SS null
.IX Subsection "null"
This bitstream filter passes the packets through unchanged.
.SS pcm_rechunk
.IX Subsection "pcm_rechunk"
Repacketize PCM audio to a fixed number of samples per packet or a fixed packet
rate per second. This is similar to the \fBasetnsamples audio
filter\fR but works on audio packets instead of audio frames.
.IP "\fBnb_out_samples, n\fR" 4
.IX Item "nb_out_samples, n"
Set the number of samples per each output audio packet. The number is intended
as the number of samples \fIper each channel\fR. Default value is 1024.
.IP "\fBpad, p\fR" 4
.IX Item "pad, p"
If set to 1, the filter will pad the last audio packet with silence, so that it
will contain the same number of samples (or roughly the same number of samples,
see \fBframe_rate\fR) as the previous ones. Default value is 1.
.IP "\fBframe_rate, r\fR" 4
.IX Item "frame_rate, r"
This option makes the filter output a fixed number of packets per second instead
of a fixed number of samples per packet. If the audio sample rate is not
divisible by the frame rate then the number of samples will not be constant but
will vary slightly so that each packet will start as close to the frame
boundary as possible. Using this option has precedence over \fBnb_out_samples\fR.
.PP
You can generate the well known 1602\-1601\-1602\-1601\-1602 pattern of 48kHz audio
for NTSC frame rate using the \fBframe_rate\fR option.
.PP
.Vb 1
\&        ffmpeg \-f lavfi \-i sine=r=48000:d=1 \-c pcm_s16le \-bsf pcm_rechunk=r=30000/1001 \-f framecrc \-
.Ve
.SS prores_metadata
.IX Subsection "prores_metadata"
Modify color property metadata embedded in prores stream.
.IP \fBcolor_primaries\fR 4
.IX Item "color_primaries"
Set the color primaries.
Available values are:
.RS 4
.IP \fBauto\fR 4
.IX Item "auto"
Keep the same color primaries property (default).
.IP \fBunknown\fR 4
.IX Item "unknown"
.PD 0
.IP \fBbt709\fR 4
.IX Item "bt709"
.IP \fBbt470bg\fR 4
.IX Item "bt470bg"
.PD
BT601 625
.IP \fBsmpte170m\fR 4
.IX Item "smpte170m"
BT601 525
.IP \fBbt2020\fR 4
.IX Item "bt2020"
.PD 0
.IP \fBsmpte431\fR 4
.IX Item "smpte431"
.PD
DCI P3
.IP \fBsmpte432\fR 4
.IX Item "smpte432"
P3 D65
.RE
.RS 4
.RE
.IP \fBtransfer_characteristics\fR 4
.IX Item "transfer_characteristics"
Set the color transfer.
Available values are:
.RS 4
.IP \fBauto\fR 4
.IX Item "auto"
Keep the same transfer characteristics property (default).
.IP \fBunknown\fR 4
.IX Item "unknown"
.PD 0
.IP \fBbt709\fR 4
.IX Item "bt709"
.PD
BT 601, BT 709, BT 2020
.IP \fBsmpte2084\fR 4
.IX Item "smpte2084"
SMPTE ST 2084
.IP \fBarib\-std\-b67\fR 4
.IX Item "arib-std-b67"
ARIB STD\-B67
.RE
.RS 4
.RE
.IP \fBmatrix_coefficients\fR 4
.IX Item "matrix_coefficients"
Set the matrix coefficient.
Available values are:
.RS 4
.IP \fBauto\fR 4
.IX Item "auto"
Keep the same colorspace property (default).
.IP \fBunknown\fR 4
.IX Item "unknown"
.PD 0
.IP \fBbt709\fR 4
.IX Item "bt709"
.IP \fBsmpte170m\fR 4
.IX Item "smpte170m"
.PD
BT 601
.IP \fBbt2020nc\fR 4
.IX Item "bt2020nc"
.RE
.RS 4
.RE
.PP
Set Rec709 colorspace for each frame of the file
.PP
.Vb 1
\&        ffmpeg \-i INPUT \-c copy \-bsf:v prores_metadata=color_primaries=bt709:color_trc=bt709:colorspace=bt709 output.mov
.Ve
.PP
Set Hybrid Log-Gamma parameters for each frame of the file
.PP
.Vb 1
\&        ffmpeg \-i INPUT \-c copy \-bsf:v prores_metadata=color_primaries=bt2020:color_trc=arib\-std\-b67:colorspace=bt2020nc output.mov
.Ve
.SS remove_extra
.IX Subsection "remove_extra"
Remove extradata from packets.
.PP
It accepts the following parameter:
.IP \fBfreq\fR 4
.IX Item "freq"
Set which frame types to remove extradata from.
.RS 4
.IP \fBk\fR 4
.IX Item "k"
Remove extradata from non-keyframes only.
.IP \fBkeyframe\fR 4
.IX Item "keyframe"
Remove extradata from keyframes only.
.IP "\fBe, all\fR" 4
.IX Item "e, all"
Remove extradata from all frames.
.RE
.RS 4
.RE
.SS setts
.IX Subsection "setts"
Set PTS and DTS in packets.
.PP
It accepts the following parameters:
.IP \fBts\fR 4
.IX Item "ts"
.PD 0
.IP \fBpts\fR 4
.IX Item "pts"
.IP \fBdts\fR 4
.IX Item "dts"
.PD
Set expressions for PTS, DTS or both.
.PP
The expressions are evaluated through the eval API and can contain the following
constants:
.IP \fBN\fR 4
.IX Item "N"
The count of the input packet. Starting from 0.
.IP \fBTS\fR 4
.IX Item "TS"
The demux timestamp in input in case of \f(CW\*(C`ts\*(C'\fR or \f(CW\*(C`dts\*(C'\fR option or presentation
timestamp in case of \f(CW\*(C`pts\*(C'\fR option.
.IP \fBPOS\fR 4
.IX Item "POS"
The original position in the file of the packet, or undefined if undefined
for the current packet
.IP \fBDTS\fR 4
.IX Item "DTS"
The demux timestamp in input.
.IP \fBPTS\fR 4
.IX Item "PTS"
The presentation timestamp in input.
.IP \fBSTARTDTS\fR 4
.IX Item "STARTDTS"
The DTS of the first packet.
.IP \fBSTARTPTS\fR 4
.IX Item "STARTPTS"
The PTS of the first packet.
.IP \fBPREV_INDTS\fR 4
.IX Item "PREV_INDTS"
The previous input DTS.
.IP \fBPREV_INPTS\fR 4
.IX Item "PREV_INPTS"
The previous input PTS.
.IP \fBPREV_OUTDTS\fR 4
.IX Item "PREV_OUTDTS"
The previous output DTS.
.IP \fBPREV_OUTPTS\fR 4
.IX Item "PREV_OUTPTS"
The previous output PTS.
.IP \fBTB\fR 4
.IX Item "TB"
The timebase of stream packet belongs.
.IP \fBSR\fR 4
.IX Item "SR"
The sample rate of stream packet belongs.
.SS text2movsub
.IX Subsection "text2movsub"
Convert text subtitles to MOV subtitles (as used by the \f(CW\*(C`mov_text\*(C'\fR
codec) with metadata headers.
.PP
See also the \fBmov2textsub\fR filter.
.SS trace_headers
.IX Subsection "trace_headers"
Log trace output containing all syntax elements in the coded stream
headers (everything above the level of individual coded blocks).
This can be useful for debugging low-level stream issues.
.PP
Supports AV1, H.264, H.265, (M)JPEG, MPEG\-2 and VP9, but depending
on the build only a subset of these may be available.
.SS truehd_core
.IX Subsection "truehd_core"
Extract the core from a TrueHD stream, dropping ATMOS data.
.SS vp9_metadata
.IX Subsection "vp9_metadata"
Modify metadata embedded in a VP9 stream.
.IP \fBcolor_space\fR 4
.IX Item "color_space"
Set the color space value in the frame header.  Note that any frame
set to RGB will be implicitly set to PC range and that RGB is
incompatible with profiles 0 and 2.
.RS 4
.IP \fBunknown\fR 4
.IX Item "unknown"
.PD 0
.IP \fBbt601\fR 4
.IX Item "bt601"
.IP \fBbt709\fR 4
.IX Item "bt709"
.IP \fBsmpte170\fR 4
.IX Item "smpte170"
.IP \fBsmpte240\fR 4
.IX Item "smpte240"
.IP \fBbt2020\fR 4
.IX Item "bt2020"
.IP \fBrgb\fR 4
.IX Item "rgb"
.RE
.RS 4
.RE
.IP \fBcolor_range\fR 4
.IX Item "color_range"
.PD
Set the color range value in the frame header.  Note that any value
imposed by the color space will take precedence over this value.
.RS 4
.IP \fBtv\fR 4
.IX Item "tv"
.PD 0
.IP \fBpc\fR 4
.IX Item "pc"
.RE
.RS 4
.RE
.PD
.SS vp9_superframe
.IX Subsection "vp9_superframe"
Merge VP9 invisible (alt-ref) frames back into VP9 superframes. This
fixes merging of split/segmented VP9 streams where the alt-ref frame
was split from its visible counterpart.
.SS vp9_superframe_split
.IX Subsection "vp9_superframe_split"
Split VP9 superframes into single frames.
.SS vp9_raw_reorder
.IX Subsection "vp9_raw_reorder"
Given a VP9 stream with correct timestamps but possibly out of order,
insert additional show-existing-frame packets to correct the ordering.
.SH "FORMAT OPTIONS"
.IX Header "FORMAT OPTIONS"
The libavformat library provides some generic global options, which
can be set on all the muxers and demuxers. In addition each muxer or
demuxer may support so-called private options, which are specific for
that component.
.PP
Options may be set by specifying \-\fIoption\fR \fIvalue\fR in the
FFmpeg tools, or by setting the value explicitly in the
\&\f(CW\*(C`AVFormatContext\*(C'\fR options or using the \fIlibavutil/opt.h\fR API
for programmatic use.
.PP
The list of supported options follows:
.IP "\fBavioflags\fR \fIflags\fR \fB(\fR\fIinput/output\fR\fB)\fR" 4
.IX Item "avioflags flags (input/output)"
Possible values:
.RS 4
.IP \fBdirect\fR 4
.IX Item "direct"
Reduce buffering.
.RE
.RS 4
.RE
.IP "\fBprobesize\fR \fIinteger\fR \fB(\fR\fIinput\fR\fB)\fR" 4
.IX Item "probesize integer (input)"
Set probing size in bytes, i.e. the size of the data to analyze to get
stream information. A higher value will enable detecting more
information in case it is dispersed into the stream, but will increase
latency. Must be an integer not lesser than 32. It is 5000000 by default.
.IP "\fBmax_probe_packets\fR \fIinteger\fR \fB(\fR\fIinput\fR\fB)\fR" 4
.IX Item "max_probe_packets integer (input)"
Set the maximum number of buffered packets when probing a codec.
Default is 2500 packets.
.IP "\fBpacketsize\fR \fIinteger\fR \fB(\fR\fIoutput\fR\fB)\fR" 4
.IX Item "packetsize integer (output)"
Set packet size.
.IP "\fBfflags\fR \fIflags\fR" 4
.IX Item "fflags flags"
Set format flags. Some are implemented for a limited number of formats.
.Sp
Possible values for input files:
.RS 4
.IP \fBdiscardcorrupt\fR 4
.IX Item "discardcorrupt"
Discard corrupted packets.
.IP \fBfastseek\fR 4
.IX Item "fastseek"
Enable fast, but inaccurate seeks for some formats.
.IP \fBgenpts\fR 4
.IX Item "genpts"
Generate missing PTS if DTS is present.
.IP \fBigndts\fR 4
.IX Item "igndts"
Ignore DTS if PTS is set. Inert when nofillin is set.
.IP \fBignidx\fR 4
.IX Item "ignidx"
Ignore index.
.IP "\fBkeepside (\fR\fIdeprecated\fR\fB,\fR\fIinert\fR\fB)\fR" 4
.IX Item "keepside (deprecated,inert)"
.PD 0
.IP \fBnobuffer\fR 4
.IX Item "nobuffer"
.PD
Reduce the latency introduced by buffering during initial input streams analysis.
.IP \fBnofillin\fR 4
.IX Item "nofillin"
Do not fill in missing values in packet fields that can be exactly calculated.
.IP \fBnoparse\fR 4
.IX Item "noparse"
Disable AVParsers, this needs \f(CW\*(C`+nofillin\*(C'\fR too.
.IP \fBsortdts\fR 4
.IX Item "sortdts"
Try to interleave output packets by DTS. At present, available only for AVIs with an index.
.RE
.RS 4
.Sp
Possible values for output files:
.IP \fBautobsf\fR 4
.IX Item "autobsf"
Automatically apply bitstream filters as required by the output format. Enabled by default.
.IP \fBbitexact\fR 4
.IX Item "bitexact"
Only write platform\-, build\- and time-independent data.
This ensures that file and data checksums are reproducible and match between
platforms. Its primary use is for regression testing.
.IP \fBflush_packets\fR 4
.IX Item "flush_packets"
Write out packets immediately.
.IP "\fBlatm (\fR\fIdeprecated\fR\fB,\fR\fIinert\fR\fB)\fR" 4
.IX Item "latm (deprecated,inert)"
.PD 0
.IP \fBshortest\fR 4
.IX Item "shortest"
.PD
Stop muxing at the end of the shortest stream.
It may be needed to increase max_interleave_delta to avoid flushing the longer
streams before EOF.
.RE
.RS 4
.RE
.IP "\fBseek2any\fR \fIinteger\fR \fB(\fR\fIinput\fR\fB)\fR" 4
.IX Item "seek2any integer (input)"
Allow seeking to non-keyframes on demuxer level when supported if set to 1.
Default is 0.
.IP "\fBanalyzeduration\fR \fIinteger\fR \fB(\fR\fIinput\fR\fB)\fR" 4
.IX Item "analyzeduration integer (input)"
Specify how many microseconds are analyzed to probe the input. A
higher value will enable detecting more accurate information, but will
increase latency. It defaults to 5,000,000 microseconds = 5 seconds.
.IP "\fBcryptokey\fR \fIhexadecimal string\fR \fB(\fR\fIinput\fR\fB)\fR" 4
.IX Item "cryptokey hexadecimal string (input)"
Set decryption key.
.IP "\fBindexmem\fR \fIinteger\fR \fB(\fR\fIinput\fR\fB)\fR" 4
.IX Item "indexmem integer (input)"
Set max memory used for timestamp index (per stream).
.IP "\fBrtbufsize\fR \fIinteger\fR \fB(\fR\fIinput\fR\fB)\fR" 4
.IX Item "rtbufsize integer (input)"
Set max memory used for buffering real-time frames.
.IP "\fBfdebug\fR \fIflags\fR \fB(\fR\fIinput/output\fR\fB)\fR" 4
.IX Item "fdebug flags (input/output)"
Print specific debug info.
.Sp
Possible values:
.RS 4
.IP \fBts\fR 4
.IX Item "ts"
.RE
.RS 4
.RE
.PD 0
.IP "\fBmax_delay\fR \fIinteger\fR \fB(\fR\fIinput/output\fR\fB)\fR" 4
.IX Item "max_delay integer (input/output)"
.PD
Set maximum muxing or demuxing delay in microseconds.
.IP "\fBfpsprobesize\fR \fIinteger\fR \fB(\fR\fIinput\fR\fB)\fR" 4
.IX Item "fpsprobesize integer (input)"
Set number of frames used to probe fps.
.IP "\fBaudio_preload\fR \fIinteger\fR \fB(\fR\fIoutput\fR\fB)\fR" 4
.IX Item "audio_preload integer (output)"
Set microseconds by which audio packets should be interleaved earlier.
.IP "\fBchunk_duration\fR \fIinteger\fR \fB(\fR\fIoutput\fR\fB)\fR" 4
.IX Item "chunk_duration integer (output)"
Set microseconds for each chunk.
.IP "\fBchunk_size\fR \fIinteger\fR \fB(\fR\fIoutput\fR\fB)\fR" 4
.IX Item "chunk_size integer (output)"
Set size in bytes for each chunk.
.IP "\fBerr_detect, f_err_detect\fR \fIflags\fR \fB(\fR\fIinput\fR\fB)\fR" 4
.IX Item "err_detect, f_err_detect flags (input)"
Set error detection flags. \f(CW\*(C`f_err_detect\*(C'\fR is deprecated and
should be used only via the \fBffmpeg\fR tool.
.Sp
Possible values:
.RS 4
.IP \fBcrccheck\fR 4
.IX Item "crccheck"
Verify embedded CRCs.
.IP \fBbitstream\fR 4
.IX Item "bitstream"
Detect bitstream specification deviations.
.IP \fBbuffer\fR 4
.IX Item "buffer"
Detect improper bitstream length.
.IP \fBexplode\fR 4
.IX Item "explode"
Abort decoding on minor error detection.
.IP \fBcareful\fR 4
.IX Item "careful"
Consider things that violate the spec and have not been seen in the
wild as errors.
.IP \fBcompliant\fR 4
.IX Item "compliant"
Consider all spec non compliancies as errors.
.IP \fBaggressive\fR 4
.IX Item "aggressive"
Consider things that a sane encoder should not do as an error.
.RE
.RS 4
.RE
.IP "\fBmax_interleave_delta\fR \fIinteger\fR \fB(\fR\fIoutput\fR\fB)\fR" 4
.IX Item "max_interleave_delta integer (output)"
Set maximum buffering duration for interleaving. The duration is
expressed in microseconds, and defaults to 10000000 (10 seconds).
.Sp
To ensure all the streams are interleaved correctly, libavformat will
wait until it has at least one packet for each stream before actually
writing any packets to the output file. When some streams are
"sparse" (i.e. there are large gaps between successive packets), this
can result in excessive buffering.
.Sp
This field specifies the maximum difference between the timestamps of the
first and the last packet in the muxing queue, above which libavformat
will output a packet regardless of whether it has queued a packet for all
the streams.
.Sp
If set to 0, libavformat will continue buffering packets until it has
a packet for each stream, regardless of the maximum timestamp
difference between the buffered packets.
.IP "\fBuse_wallclock_as_timestamps\fR \fIinteger\fR \fB(\fR\fIinput\fR\fB)\fR" 4
.IX Item "use_wallclock_as_timestamps integer (input)"
Use wallclock as timestamps if set to 1. Default is 0.
.IP "\fBavoid_negative_ts\fR \fIinteger\fR \fB(\fR\fIoutput\fR\fB)\fR" 4
.IX Item "avoid_negative_ts integer (output)"
Possible values:
.RS 4
.IP \fBmake_non_negative\fR 4
.IX Item "make_non_negative"
Shift timestamps to make them non-negative.
Also note that this affects only leading negative timestamps, and not
non-monotonic negative timestamps.
.IP \fBmake_zero\fR 4
.IX Item "make_zero"
Shift timestamps so that the first timestamp is 0.
.IP "\fBauto (default)\fR" 4
.IX Item "auto (default)"
Enables shifting when required by the target format.
.IP \fBdisabled\fR 4
.IX Item "disabled"
Disables shifting of timestamp.
.RE
.RS 4
.Sp
When shifting is enabled, all output timestamps are shifted by the
same amount. Audio, video, and subtitles desynching and relative
timestamp differences are preserved compared to how they would have
been without shifting.
.RE
.IP "\fBskip_initial_bytes\fR \fIinteger\fR \fB(\fR\fIinput\fR\fB)\fR" 4
.IX Item "skip_initial_bytes integer (input)"
Set number of bytes to skip before reading header and frames if set to 1.
Default is 0.
.IP "\fBcorrect_ts_overflow\fR \fIinteger\fR \fB(\fR\fIinput\fR\fB)\fR" 4
.IX Item "correct_ts_overflow integer (input)"
Correct single timestamp overflows if set to 1. Default is 1.
.IP "\fBflush_packets\fR \fIinteger\fR \fB(\fR\fIoutput\fR\fB)\fR" 4
.IX Item "flush_packets integer (output)"
Flush the underlying I/O stream after each packet. Default is \-1 (auto), which
means that the underlying protocol will decide, 1 enables it, and has the
effect of reducing the latency, 0 disables it and may increase IO throughput in
some cases.
.IP "\fBoutput_ts_offset\fR \fIoffset\fR \fB(\fR\fIoutput\fR\fB)\fR" 4
.IX Item "output_ts_offset offset (output)"
Set the output time offset.
.Sp
\&\fIoffset\fR must be a time duration specification,
see \fBthe Time duration section in the ffmpeg\-utils\|(1) manual\fR.
.Sp
The offset is added by the muxer to the output timestamps.
.Sp
Specifying a positive offset means that the corresponding streams are
delayed bt the time duration specified in \fIoffset\fR. Default value
is \f(CW0\fR (meaning that no offset is applied).
.IP "\fBformat_whitelist\fR \fIlist\fR \fB(\fR\fIinput\fR\fB)\fR" 4
.IX Item "format_whitelist list (input)"
"," separated list of allowed demuxers. By default all are allowed.
.IP "\fBdump_separator\fR \fIstring\fR \fB(\fR\fIinput\fR\fB)\fR" 4
.IX Item "dump_separator string (input)"
Separator used to separate the fields printed on the command line about the
Stream parameters.
For example, to separate the fields with newlines and indentation:
.Sp
.Vb 2
\&        ffprobe \-dump_separator "
\&                                  "  \-i ~/videos/matrixbench_mpeg2.mpg
.Ve
.IP "\fBmax_streams\fR \fIinteger\fR \fB(\fR\fIinput\fR\fB)\fR" 4
.IX Item "max_streams integer (input)"
Specifies the maximum number of streams. This can be used to reject files that
would require too many resources due to a large number of streams.
.IP "\fBskip_estimate_duration_from_pts\fR \fIbool\fR \fB(\fR\fIinput\fR\fB)\fR" 4
.IX Item "skip_estimate_duration_from_pts bool (input)"
Skip estimation of input duration when calculated using PTS.
At present, applicable for MPEG-PS and MPEG-TS.
.IP "\fBstrict, f_strict\fR \fIinteger\fR \fB(\fR\fIinput/output\fR\fB)\fR" 4
.IX Item "strict, f_strict integer (input/output)"
Specify how strictly to follow the standards. \f(CW\*(C`f_strict\*(C'\fR is deprecated and
should be used only via the \fBffmpeg\fR tool.
.Sp
Possible values:
.RS 4
.IP \fBvery\fR 4
.IX Item "very"
strictly conform to an older more strict version of the spec or reference software
.IP \fBstrict\fR 4
.IX Item "strict"
strictly conform to all the things in the spec no matter what consequences
.IP \fBnormal\fR 4
.IX Item "normal"
.PD 0
.IP \fBunofficial\fR 4
.IX Item "unofficial"
.PD
allow unofficial extensions
.IP \fBexperimental\fR 4
.IX Item "experimental"
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 for
decoding untrusted input.
.RE
.RS 4
.RE
.SS "Format stream specifiers"
.IX Subsection "Format stream specifiers"
Format stream specifiers allow selection of one or more streams that
match specific properties.
.PP
The exact semantics of stream specifiers is defined by the
\&\f(CWavformat_match_stream_specifier()\fR function declared in the
\&\fIlibavformat/avformat.h\fR header and documented in the
\&\fBStream specifiers section in the ffmpeg\|(1) manual\fR.
.SH DEMUXERS
.IX Header "DEMUXERS"
Demuxers are configured elements in FFmpeg that can read the
multimedia streams from a particular type of file.
.PP
When you configure your FFmpeg build, all the supported demuxers
are enabled by default. You can list all available ones using the
configure option \f(CW\*(C`\-\-list\-demuxers\*(C'\fR.
.PP
You can disable all the demuxers using the configure option
\&\f(CW\*(C`\-\-disable\-demuxers\*(C'\fR, and selectively enable a single demuxer with
the option \f(CW\*(C`\-\-enable\-demuxer=\fR\f(CIDEMUXER\fR\f(CW\*(C'\fR, or disable it
with the option \f(CW\*(C`\-\-disable\-demuxer=\fR\f(CIDEMUXER\fR\f(CW\*(C'\fR.
.PP
The option \f(CW\*(C`\-demuxers\*(C'\fR of the ff* tools will display the list of
enabled demuxers. Use \f(CW\*(C`\-formats\*(C'\fR to view a combined list of
enabled demuxers and muxers.
.PP
The description of some of the currently available demuxers follows.
.SS aa
.IX Subsection "aa"
Audible Format 2, 3, and 4 demuxer.
.PP
This demuxer is used to demux Audible Format 2, 3, and 4 (.aa) files.
.SS apng
.IX Subsection "apng"
Animated Portable Network Graphics demuxer.
.PP
This demuxer is used to demux APNG files.
All headers, but the PNG signature, up to (but not including) the first
fcTL chunk are transmitted as extradata.
Frames are then split as being all the chunks between two fcTL ones, or
between the last fcTL and IEND chunks.
.IP "\fB\-ignore_loop\fR \fIbool\fR" 4
.IX Item "-ignore_loop bool"
Ignore the loop variable in the file if set.
.IP "\fB\-max_fps\fR \fIint\fR" 4
.IX Item "-max_fps int"
Maximum framerate in frames per second (0 for no limit).
.IP "\fB\-default_fps\fR \fIint\fR" 4
.IX Item "-default_fps int"
Default framerate in frames per second when none is specified in the file
(0 meaning as fast as possible).
.SS asf
.IX Subsection "asf"
Advanced Systems Format demuxer.
.PP
This demuxer is used to demux ASF files and MMS network streams.
.IP "\fB\-no_resync_search\fR \fIbool\fR" 4
.IX Item "-no_resync_search bool"
Do not try to resynchronize by looking for a certain optional start code.
.SS concat
.IX Subsection "concat"
Virtual concatenation script demuxer.
.PP
This demuxer reads a list of files and other directives from a text file and
demuxes them one after the other, as if all their packets had been muxed
together.
.PP
The timestamps in the files are adjusted so that the first file starts at 0
and each next file starts where the previous one finishes. Note that it is
done globally and may cause gaps if all streams do not have exactly the same
length.
.PP
All files must have the same streams (same codecs, same time base, etc.).
.PP
The duration of each file is used to adjust the timestamps of the next file:
if the duration is incorrect (because it was computed using the bit-rate or
because the file is truncated, for example), it can cause artifacts. The
\&\f(CW\*(C`duration\*(C'\fR directive can be used to override the duration stored in
each file.
.PP
\fISyntax\fR
.IX Subsection "Syntax"
.PP
The script is a text file in extended-ASCII, with one directive per line.
Empty lines, leading spaces and lines starting with '#' are ignored. The
following directive is recognized:
.ie n .IP "\fR\fB""file path""\fR\fB\fR" 4
.el .IP "\fR\f(CBfile path\fR\fB\fR" 4
.IX Item "file path"
Path to a file to read; special characters and spaces must be escaped with
backslash or single quotes.
.Sp
All subsequent file-related directives apply to that file.
.ie n .IP "\fR\fB""ffconcat version 1.0""\fR\fB\fR" 4
.el .IP "\fR\f(CBffconcat version 1.0\fR\fB\fR" 4
.IX Item "ffconcat version 1.0"
Identify the script type and version. It also sets the \fBsafe\fR option
to 1 if it was \-1.
.Sp
To make FFmpeg recognize the format automatically, this directive must
appear exactly as is (no extra space or byte-order-mark) on the very first
line of the script.
.ie n .IP "\fR\fB""duration dur""\fR\fB\fR" 4
.el .IP "\fR\f(CBduration dur\fR\fB\fR" 4
.IX Item "duration dur"
Duration of the file. This information can be specified from the file;
specifying it here may be more efficient or help if the information from the
file is not available or accurate.
.Sp
If the duration is set for all files, then it is possible to seek in the
whole concatenated video.
.ie n .IP "\fR\fB""inpoint timestamp""\fR\fB\fR" 4
.el .IP "\fR\f(CBinpoint timestamp\fR\fB\fR" 4
.IX Item "inpoint timestamp"
In point of the file. When the demuxer opens the file it instantly seeks to the
specified timestamp. Seeking is done so that all streams can be presented
successfully at In point.
.Sp
This directive works best with intra frame codecs, because for non-intra frame
ones you will usually get extra packets before the actual In point and the
decoded content will most likely contain frames before In point too.
.Sp
For each file, packets before the file In point will have timestamps less than
the calculated start timestamp of the file (negative in case of the first
file), and the duration of the files (if not specified by the \f(CW\*(C`duration\*(C'\fR
directive) will be reduced based on their specified In point.
.Sp
Because of potential packets before the specified In point, packet timestamps
may overlap between two concatenated files.
.ie n .IP "\fR\fB""outpoint timestamp""\fR\fB\fR" 4
.el .IP "\fR\f(CBoutpoint timestamp\fR\fB\fR" 4
.IX Item "outpoint timestamp"
Out point of the file. When the demuxer reaches the specified decoding
timestamp in any of the streams, it handles it as an end of file condition and
skips the current and all the remaining packets from all streams.
.Sp
Out point is exclusive, which means that the demuxer will not output packets
with a decoding timestamp greater or equal to Out point.
.Sp
This directive works best with intra frame codecs and formats where all streams
are tightly interleaved. For non-intra frame codecs you will usually get
additional packets with presentation timestamp after Out point therefore the
decoded content will most likely contain frames after Out point too. If your
streams are not tightly interleaved you may not get all the packets from all
streams before Out point and you may only will be able to decode the earliest
stream until Out point.
.Sp
The duration of the files (if not specified by the \f(CW\*(C`duration\*(C'\fR
directive) will be reduced based on their specified Out point.
.ie n .IP "\fR\fB""file_packet_metadata key=value""\fR\fB\fR" 4
.el .IP "\fR\f(CBfile_packet_metadata key=value\fR\fB\fR" 4
.IX Item "file_packet_metadata key=value"
Metadata of the packets of the file. The specified metadata will be set for
each file packet. You can specify this directive multiple times to add multiple
metadata entries.
.ie n .IP "\fR\fB""stream""\fR\fB\fR" 4
.el .IP \fR\f(CBstream\fR\fB\fR 4
.IX Item "stream"
Introduce a stream in the virtual file.
All subsequent stream-related directives apply to the last introduced
stream.
Some streams properties must be set in order to allow identifying the
matching streams in the subfiles.
If no streams are defined in the script, the streams from the first file are
copied.
.ie n .IP "\fR\fB""exact_stream_id id""\fR\fB\fR" 4
.el .IP "\fR\f(CBexact_stream_id id\fR\fB\fR" 4
.IX Item "exact_stream_id id"
Set the id of the stream.
If this directive is given, the string with the corresponding id in the
subfiles will be used.
This is especially useful for MPEG-PS (VOB) files, where the order of the
streams is not reliable.
.PP
\fIOptions\fR
.IX Subsection "Options"
.PP
This demuxer accepts the following option:
.IP \fBsafe\fR 4
.IX Item "safe"
If set to 1, reject unsafe file paths. A file path is considered safe if it
does not contain a protocol specification and is relative and all components
only contain characters from the portable character set (letters, digits,
period, underscore and hyphen) and have no period at the beginning of a
component.
.Sp
If set to 0, any file name is accepted.
.Sp
The default is 1.
.Sp
\&\-1 is equivalent to 1 if the format was automatically
probed and 0 otherwise.
.IP \fBauto_convert\fR 4
.IX Item "auto_convert"
If set to 1, try to perform automatic conversions on packet data to make the
streams concatenable.
The default is 1.
.Sp
Currently, the only conversion is adding the h264_mp4toannexb bitstream
filter to H.264 streams in MP4 format. This is necessary in particular if
there are resolution changes.
.IP \fBsegment_time_metadata\fR 4
.IX Item "segment_time_metadata"
If set to 1, every packet will contain the \fIlavf.concat.start_time\fR and the
\&\fIlavf.concat.duration\fR packet metadata values which are the start_time and
the duration of the respective file segments in the concatenated output
expressed in microseconds. The duration metadata is only set if it is known
based on the concat file.
The default is 0.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Use absolute filenames and include some comments:
.Sp
.Vb 6
\&        # my first filename
\&        file /mnt/share/file\-1.wav
\&        # my second filename including whitespace
\&        file \*(Aq/mnt/share/file 2.wav\*(Aq
\&        # my third filename including whitespace plus single quote
\&        file \*(Aq/mnt/share/file 3\*(Aq\e\*(Aq\*(Aq.wav\*(Aq
.Ve
.IP \(bu 4
Allow for input format auto-probing, use safe filenames and set the duration of
the first file:
.Sp
.Vb 1
\&        ffconcat version 1.0
\&        
\&        file file\-1.wav
\&        duration 20.0
\&        
\&        file subdir/file\-2.wav
.Ve
.SS dash
.IX Subsection "dash"
Dynamic Adaptive Streaming over HTTP demuxer.
.PP
This demuxer presents all AVStreams found in the manifest.
By setting the discard flags on AVStreams the caller can decide
which streams to actually receive.
Each stream mirrors the \f(CW\*(C`id\*(C'\fR and \f(CW\*(C`bandwidth\*(C'\fR properties from the
\&\f(CW\*(C`<Representation>\*(C'\fR as metadata keys named "id" and "variant_bitrate" respectively.
.SS "flv, live_flv"
.IX Subsection "flv, live_flv"
Adobe Flash Video Format demuxer.
.PP
This demuxer is used to demux FLV files and RTMP network streams. In case of live network streams, if you force format, you may use live_flv option instead of flv to survive timestamp discontinuities.
.PP
.Vb 2
\&        ffmpeg \-f flv \-i myfile.flv ...
\&        ffmpeg \-f live_flv \-i rtmp://<any.server>/anything/key ....
.Ve
.IP "\fB\-flv_metadata\fR \fIbool\fR" 4
.IX Item "-flv_metadata bool"
Allocate the streams according to the onMetaData array content.
.IP "\fB\-flv_ignore_prevtag\fR \fIbool\fR" 4
.IX Item "-flv_ignore_prevtag bool"
Ignore the size of previous tag value.
.IP "\fB\-flv_full_metadata\fR \fIbool\fR" 4
.IX Item "-flv_full_metadata bool"
Output all context of the onMetadata.
.SS gif
.IX Subsection "gif"
Animated GIF demuxer.
.PP
It accepts the following options:
.IP \fBmin_delay\fR 4
.IX Item "min_delay"
Set the minimum valid delay between frames in hundredths of seconds.
Range is 0 to 6000. Default value is 2.
.IP \fBmax_gif_delay\fR 4
.IX Item "max_gif_delay"
Set the maximum valid delay between frames in hundredth of seconds.
Range is 0 to 65535. Default value is 65535 (nearly eleven minutes),
the maximum value allowed by the specification.
.IP \fBdefault_delay\fR 4
.IX Item "default_delay"
Set the default delay between frames in hundredths of seconds.
Range is 0 to 6000. Default value is 10.
.IP \fBignore_loop\fR 4
.IX Item "ignore_loop"
GIF files can contain information to loop a certain number of times (or
infinitely). If \fBignore_loop\fR is set to 1, then the loop setting
from the input will be ignored and looping will not occur. If set to 0,
then looping will occur and will cycle the number of times according to
the GIF. Default value is 1.
.PP
For example, with the overlay filter, place an infinitely looping GIF
over another video:
.PP
.Vb 1
\&        ffmpeg \-i input.mp4 \-ignore_loop 0 \-i input.gif \-filter_complex overlay=shortest=1 out.mkv
.Ve
.PP
Note that in the above example the shortest option for overlay filter is
used to end the output video at the length of the shortest input file,
which in this case is \fIinput.mp4\fR as the GIF in this example loops
infinitely.
.SS hls
.IX Subsection "hls"
HLS demuxer
.PP
Apple HTTP Live Streaming demuxer.
.PP
This demuxer presents all AVStreams from all variant streams.
The id field is set to the bitrate variant index number. By setting
the discard flags on AVStreams (by pressing 'a' or 'v' in ffplay),
the caller can decide which variant streams to actually receive.
The total bitrate of the variant that the stream belongs to is
available in a metadata key named "variant_bitrate".
.PP
It accepts the following options:
.IP \fBlive_start_index\fR 4
.IX Item "live_start_index"
segment index to start live streams at (negative values are from the end).
.IP \fBallowed_extensions\fR 4
.IX Item "allowed_extensions"
\&',' separated list of file extensions that hls is allowed to access.
.IP \fBmax_reload\fR 4
.IX Item "max_reload"
Maximum number of times a insufficient list is attempted to be reloaded.
Default value is 1000.
.IP \fBm3u8_hold_counters\fR 4
.IX Item "m3u8_hold_counters"
The maximum number of times to load m3u8 when it refreshes without new segments.
Default value is 1000.
.IP \fBhttp_persistent\fR 4
.IX Item "http_persistent"
Use persistent HTTP connections. Applicable only for HTTP streams.
Enabled by default.
.IP \fBhttp_multiple\fR 4
.IX Item "http_multiple"
Use multiple HTTP connections for downloading HTTP segments.
Enabled by default for HTTP/1.1 servers.
.IP \fBhttp_seekable\fR 4
.IX Item "http_seekable"
Use HTTP partial requests for downloading HTTP segments.
0 = disable, 1 = enable, \-1 = auto, Default is auto.
.SS image2
.IX Subsection "image2"
Image file demuxer.
.PP
This demuxer reads from a list of image files specified by a pattern.
The syntax and meaning of the pattern is specified by the
option \fIpattern_type\fR.
.PP
The pattern may contain a suffix which is used to automatically
determine the format of the images contained in the files.
.PP
The size, the pixel format, and the format of each image must be the
same for all the files in the sequence.
.PP
This demuxer accepts the following options:
.IP \fBframerate\fR 4
.IX Item "framerate"
Set the frame rate for the video stream. It defaults to 25.
.IP \fBloop\fR 4
.IX Item "loop"
If set to 1, loop over the input. Default value is 0.
.IP \fBpattern_type\fR 4
.IX Item "pattern_type"
Select the pattern type used to interpret the provided filename.
.Sp
\&\fIpattern_type\fR accepts one of the following values.
.RS 4
.IP \fBnone\fR 4
.IX Item "none"
Disable pattern matching, therefore the video will only contain the specified
image. You should use this option if you do not want to create sequences from
multiple images and your filenames may contain special pattern characters.
.IP \fBsequence\fR 4
.IX Item "sequence"
Select a sequence pattern type, used to specify a sequence of files
indexed by sequential numbers.
.Sp
A sequence pattern may contain the string "%d" or "%0\fIN\fRd", which
specifies the position of the characters representing a sequential
number in each filename matched by the pattern. If the form
"%d0\fIN\fRd" is used, the string representing the number in each
filename is 0\-padded and \fIN\fR is the total number of 0\-padded
digits representing the number. The literal character '%' can be
specified in the pattern with the string "%%".
.Sp
If the sequence pattern contains "%d" or "%0\fIN\fRd", the first filename of
the file list specified by the pattern must contain a number
inclusively contained between \fIstart_number\fR and
\&\fIstart_number\fR+\fIstart_number_range\fR\-1, and all the following
numbers must be sequential.
.Sp
For example the pattern "img\-%03d.bmp" will match a sequence of
filenames of the form \fIimg\-001.bmp\fR, \fIimg\-002.bmp\fR, ...,
\&\fIimg\-010.bmp\fR, etc.; the pattern "i%%m%%g\-%d.jpg" will match a
sequence of filenames of the form \fIi%m%g\-1.jpg\fR,
\&\fIi%m%g\-2.jpg\fR, ..., \fIi%m%g\-10.jpg\fR, etc.
.Sp
Note that the pattern must not necessarily contain "%d" or
"%0\fIN\fRd", for example to convert a single image file
\&\fIimg.jpeg\fR you can employ the command:
.Sp
.Vb 1
\&        ffmpeg \-i img.jpeg img.png
.Ve
.IP \fBglob\fR 4
.IX Item "glob"
Select a glob wildcard pattern type.
.Sp
The pattern is interpreted like a \f(CWglob()\fR pattern. This is only
selectable if libavformat was compiled with globbing support.
.IP "\fBglob_sequence\fR \fI(deprecated, will be removed)\fR" 4
.IX Item "glob_sequence (deprecated, will be removed)"
Select a mixed glob wildcard/sequence pattern.
.Sp
If your version of libavformat was compiled with globbing support, and
the provided pattern contains at least one glob meta character among
\&\f(CW\*(C`%*?[]{}\*(C'\fR that is preceded by an unescaped "%", the pattern is
interpreted like a \f(CWglob()\fR pattern, otherwise it is interpreted
like a sequence pattern.
.Sp
All glob special characters \f(CW\*(C`%*?[]{}\*(C'\fR must be prefixed
with "%". To escape a literal "%" you shall use "%%".
.Sp
For example the pattern \f(CW\*(C`foo\-%*.jpeg\*(C'\fR will match all the
filenames prefixed by "foo\-" and terminating with ".jpeg", and
\&\f(CW\*(C`foo\-%?%?%?.jpeg\*(C'\fR will match all the filenames prefixed with
"foo\-", followed by a sequence of three characters, and terminating
with ".jpeg".
.Sp
This pattern type is deprecated in favor of \fIglob\fR and
\&\fIsequence\fR.
.RE
.RS 4
.Sp
Default value is \fIglob_sequence\fR.
.RE
.IP \fBpixel_format\fR 4
.IX Item "pixel_format"
Set the pixel format of the images to read. If not specified the pixel
format is guessed from the first image file in the sequence.
.IP \fBstart_number\fR 4
.IX Item "start_number"
Set the index of the file matched by the image file pattern to start
to read from. Default value is 0.
.IP \fBstart_number_range\fR 4
.IX Item "start_number_range"
Set the index interval range to check when looking for the first image
file in the sequence, starting from \fIstart_number\fR. Default value
is 5.
.IP \fBts_from_file\fR 4
.IX Item "ts_from_file"
If set to 1, will set frame timestamp to modification time of image file. Note
that monotonity of timestamps is not provided: images go in the same order as
without this option. Default value is 0.
If set to 2, will set frame timestamp to the modification time of the image file in
nanosecond precision.
.IP \fBvideo_size\fR 4
.IX Item "video_size"
Set the video size of the images to read. If not specified the video
size is guessed from the first image file in the sequence.
.IP \fBexport_path_metadata\fR 4
.IX Item "export_path_metadata"
If set to 1, will add two extra fields to the metadata found in input, making them
also available for other filters (see \fIdrawtext\fR filter for examples). Default
value is 0. The extra fields are described below:
.RS 4
.IP \fBlavf.image2dec.source_path\fR 4
.IX Item "lavf.image2dec.source_path"
Corresponds to the full path to the input file being read.
.IP \fBlavf.image2dec.source_basename\fR 4
.IX Item "lavf.image2dec.source_basename"
Corresponds to the name of the file being read.
.RE
.RS 4
.RE
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Use \fBffmpeg\fR for creating a video from the images in the file
sequence \fIimg\-001.jpeg\fR, \fIimg\-002.jpeg\fR, ..., assuming an
input frame rate of 10 frames per second:
.Sp
.Vb 1
\&        ffmpeg \-framerate 10 \-i \*(Aqimg\-%03d.jpeg\*(Aq out.mkv
.Ve
.IP \(bu 4
As above, but start by reading from a file with index 100 in the sequence:
.Sp
.Vb 1
\&        ffmpeg \-framerate 10 \-start_number 100 \-i \*(Aqimg\-%03d.jpeg\*(Aq out.mkv
.Ve
.IP \(bu 4
Read images matching the "*.png" glob pattern , that is all the files
terminating with the ".png" suffix:
.Sp
.Vb 1
\&        ffmpeg \-framerate 10 \-pattern_type glob \-i "*.png" out.mkv
.Ve
.SS libgme
.IX Subsection "libgme"
The Game Music Emu library is a collection of video game music file emulators.
.PP
See <\fBhttps://bitbucket.org/mpyne/game\-music\-emu/overview\fR> for more information.
.PP
It accepts the following options:
.IP \fBtrack_index\fR 4
.IX Item "track_index"
Set the index of which track to demux. The demuxer can only export one track.
Track indexes start at 0. Default is to pick the first track. Number of tracks
is exported as \fItracks\fR metadata entry.
.IP \fBsample_rate\fR 4
.IX Item "sample_rate"
Set the sampling rate of the exported track. Range is 1000 to 999999. Default is 44100.
.IP "\fBmax_size\fR \fI(bytes)\fR" 4
.IX Item "max_size (bytes)"
The demuxer buffers the entire file into memory. Adjust this value to set the maximum buffer size,
which in turn, acts as a ceiling for the size of files that can be read.
Default is 50 MiB.
.SS libmodplug
.IX Subsection "libmodplug"
ModPlug based module demuxer
.PP
See <\fBhttps://github.com/Konstanty/libmodplug\fR>
.PP
It will export one 2\-channel 16\-bit 44.1 kHz audio stream.
Optionally, a \f(CW\*(C`pal8\*(C'\fR 16\-color video stream can be exported with or without printed metadata.
.PP
It accepts the following options:
.IP \fBnoise_reduction\fR 4
.IX Item "noise_reduction"
Apply a simple low-pass filter. Can be 1 (on) or 0 (off). Default is 0.
.IP \fBreverb_depth\fR 4
.IX Item "reverb_depth"
Set amount of reverb. Range 0\-100. Default is 0.
.IP \fBreverb_delay\fR 4
.IX Item "reverb_delay"
Set delay in ms, clamped to 40\-250 ms. Default is 0.
.IP \fBbass_amount\fR 4
.IX Item "bass_amount"
Apply bass expansion a.k.a. XBass or megabass. Range is 0 (quiet) to 100 (loud). Default is 0.
.IP \fBbass_range\fR 4
.IX Item "bass_range"
Set cutoff i.e. upper-bound for bass frequencies. Range is 10\-100 Hz. Default is 0.
.IP \fBsurround_depth\fR 4
.IX Item "surround_depth"
Apply a Dolby Pro-Logic surround effect. Range is 0 (quiet) to 100 (heavy). Default is 0.
.IP \fBsurround_delay\fR 4
.IX Item "surround_delay"
Set surround delay in ms, clamped to 5\-40 ms. Default is 0.
.IP \fBmax_size\fR 4
.IX Item "max_size"
The demuxer buffers the entire file into memory. Adjust this value to set the maximum buffer size,
which in turn, acts as a ceiling for the size of files that can be read. Range is 0 to 100 MiB.
0 removes buffer size limit (not recommended). Default is 5 MiB.
.IP \fBvideo_stream_expr\fR 4
.IX Item "video_stream_expr"
String which is evaluated using the eval API to assign colors to the generated video stream.
Variables which can be used are \f(CW\*(C`x\*(C'\fR, \f(CW\*(C`y\*(C'\fR, \f(CW\*(C`w\*(C'\fR, \f(CW\*(C`h\*(C'\fR, \f(CW\*(C`t\*(C'\fR, \f(CW\*(C`speed\*(C'\fR,
\&\f(CW\*(C`tempo\*(C'\fR, \f(CW\*(C`order\*(C'\fR, \f(CW\*(C`pattern\*(C'\fR and \f(CW\*(C`row\*(C'\fR.
.IP \fBvideo_stream\fR 4
.IX Item "video_stream"
Generate video stream. Can be 1 (on) or 0 (off). Default is 0.
.IP \fBvideo_stream_w\fR 4
.IX Item "video_stream_w"
Set video frame width in 'chars' where one char indicates 8 pixels. Range is 20\-512. Default is 30.
.IP \fBvideo_stream_h\fR 4
.IX Item "video_stream_h"
Set video frame height in 'chars' where one char indicates 8 pixels. Range is 20\-512. Default is 30.
.IP \fBvideo_stream_ptxt\fR 4
.IX Item "video_stream_ptxt"
Print metadata on video stream. Includes \f(CW\*(C`speed\*(C'\fR, \f(CW\*(C`tempo\*(C'\fR, \f(CW\*(C`order\*(C'\fR, \f(CW\*(C`pattern\*(C'\fR,
\&\f(CW\*(C`row\*(C'\fR and \f(CW\*(C`ts\*(C'\fR (time in ms). Can be 1 (on) or 0 (off). Default is 1.
.SS libopenmpt
.IX Subsection "libopenmpt"
libopenmpt based module demuxer
.PP
See <\fBhttps://lib.openmpt.org/libopenmpt/\fR> for more information.
.PP
Some files have multiple subsongs (tracks) this can be set with the \fBsubsong\fR
option.
.PP
It accepts the following options:
.IP \fBsubsong\fR 4
.IX Item "subsong"
Set the subsong index. This can be either  'all', 'auto', or the index of the
subsong. Subsong indexes start at 0. The default is 'auto'.
.Sp
The default value is to let libopenmpt choose.
.IP \fBlayout\fR 4
.IX Item "layout"
Set the channel layout. Valid values are 1, 2, and 4 channel layouts.
The default value is STEREO.
.IP \fBsample_rate\fR 4
.IX Item "sample_rate"
Set the sample rate for libopenmpt to output.
Range is from 1000 to INT_MAX. The value default is 48000.
.SS mov/mp4/3gp
.IX Subsection "mov/mp4/3gp"
Demuxer for Quicktime File Format & ISO/IEC Base Media File Format (ISO/IEC 14496\-12 or MPEG\-4 Part 12, ISO/IEC 15444\-12 or JPEG 2000 Part 12).
.PP
Registered extensions: mov, mp4, m4a, 3gp, 3g2, mj2, psp, m4b, ism, ismv, isma, f4v
.PP
\fIOptions\fR
.IX Subsection "Options"
.PP
This demuxer accepts the following options:
.IP \fBenable_drefs\fR 4
.IX Item "enable_drefs"
Enable loading of external tracks, disabled by default.
Enabling this can theoretically leak information in some use cases.
.IP \fBuse_absolute_path\fR 4
.IX Item "use_absolute_path"
Allows loading of external tracks via absolute paths, disabled by default.
Enabling this poses a security risk. It should only be enabled if the source
is known to be non-malicious.
.IP \fBseek_streams_individually\fR 4
.IX Item "seek_streams_individually"
When seeking, identify the closest point in each stream individually and demux packets in
that stream from identified point. This can lead to a different sequence of packets compared
to demuxing linearly from the beginning. Default is true.
.IP \fBignore_editlist\fR 4
.IX Item "ignore_editlist"
Ignore any edit list atoms. The demuxer, by default, modifies the stream index to reflect the
timeline described by the edit list. Default is false.
.IP \fBadvanced_editlist\fR 4
.IX Item "advanced_editlist"
Modify the stream index to reflect the timeline described by the edit list. \f(CW\*(C`ignore_editlist\*(C'\fR
must be set to false for this option to be effective.
If both \f(CW\*(C`ignore_editlist\*(C'\fR and this option are set to false, then only the
start of the stream index is modified to reflect initial dwell time or starting timestamp
described by the edit list. Default is true.
.IP \fBignore_chapters\fR 4
.IX Item "ignore_chapters"
Don't parse chapters. This includes GoPro 'HiLight' tags/moments. Note that chapters are
only parsed when input is seekable. Default is false.
.IP \fBuse_mfra_for\fR 4
.IX Item "use_mfra_for"
For seekable fragmented input, set fragment's starting timestamp from media fragment random access box, if present.
.Sp
Following options are available:
.RS 4
.IP \fBauto\fR 4
.IX Item "auto"
Auto-detect whether to set mfra timestamps as PTS or DTS \fI(default)\fR
.IP \fBdts\fR 4
.IX Item "dts"
Set mfra timestamps as DTS
.IP \fBpts\fR 4
.IX Item "pts"
Set mfra timestamps as PTS
.IP \fB0\fR 4
.IX Item "0"
Don't use mfra box to set timestamps
.RE
.RS 4
.RE
.IP \fBexport_all\fR 4
.IX Item "export_all"
Export unrecognized boxes within the \fIudta\fR box as metadata entries. The first four
characters of the box type are set as the key. Default is false.
.IP \fBexport_xmp\fR 4
.IX Item "export_xmp"
Export entire contents of \fIXMP_\fR box and \fIuuid\fR box as a string with key \f(CW\*(C`xmp\*(C'\fR. Note that
if \f(CW\*(C`export_all\*(C'\fR is set and this option isn't, the contents of \fIXMP_\fR box are still exported
but with key \f(CW\*(C`XMP_\*(C'\fR. Default is false.
.IP \fBactivation_bytes\fR 4
.IX Item "activation_bytes"
4\-byte key required to decrypt Audible AAX and AAX+ files. See Audible AAX subsection below.
.IP \fBaudible_fixed_key\fR 4
.IX Item "audible_fixed_key"
Fixed key used for handling Audible AAX/AAX+ files. It has been pre-set so should not be necessary to
specify.
.IP \fBdecryption_key\fR 4
.IX Item "decryption_key"
16\-byte key, in hex, to decrypt files encrypted using ISO Common Encryption (CENC/AES\-128 CTR; ISO/IEC 23001\-7).
.PP
\fIAudible AAX\fR
.IX Subsection "Audible AAX"
.PP
Audible AAX files are encrypted M4B files, and they can be decrypted by specifying a 4 byte activation secret.
.PP
.Vb 1
\&        ffmpeg \-activation_bytes 1CEB00DA \-i test.aax \-vn \-c:a copy output.mp4
.Ve
.SS mpegts
.IX Subsection "mpegts"
MPEG\-2 transport stream demuxer.
.PP
This demuxer accepts the following options:
.IP \fBresync_size\fR 4
.IX Item "resync_size"
Set size limit for looking up a new synchronization. Default value is
65536.
.IP \fBskip_unknown_pmt\fR 4
.IX Item "skip_unknown_pmt"
Skip PMTs for programs not defined in the PAT. Default value is 0.
.IP \fBfix_teletext_pts\fR 4
.IX Item "fix_teletext_pts"
Override teletext packet PTS and DTS values with the timestamps calculated
from the PCR of the first program which the teletext stream is part of and is
not discarded. Default value is 1, set this option to 0 if you want your
teletext packet PTS and DTS values untouched.
.IP \fBts_packetsize\fR 4
.IX Item "ts_packetsize"
Output option carrying the raw packet size in bytes.
Show the detected raw packet size, cannot be set by the user.
.IP \fBscan_all_pmts\fR 4
.IX Item "scan_all_pmts"
Scan and combine all PMTs. The value is an integer with value from \-1
to 1 (\-1 means automatic setting, 1 means enabled, 0 means
disabled). Default value is \-1.
.IP \fBmerge_pmt_versions\fR 4
.IX Item "merge_pmt_versions"
Re-use existing streams when a PMT's version is updated and elementary
streams move to different PIDs. Default value is 0.
.SS mpjpeg
.IX Subsection "mpjpeg"
MJPEG encapsulated in multi-part MIME demuxer.
.PP
This demuxer allows reading of MJPEG, where each frame is represented as a part of
multipart/x\-mixed\-replace stream.
.IP \fBstrict_mime_boundary\fR 4
.IX Item "strict_mime_boundary"
Default implementation applies a relaxed standard to multi-part MIME boundary detection,
to prevent regression with numerous existing endpoints not generating a proper MIME
MJPEG stream. Turning this option on by setting it to 1 will result in a stricter check
of the boundary value.
.SS rawvideo
.IX Subsection "rawvideo"
Raw video demuxer.
.PP
This demuxer allows one to read raw video data. Since there is no header
specifying the assumed video parameters, the user must specify them
in order to be able to decode the data correctly.
.PP
This demuxer accepts the following options:
.IP \fBframerate\fR 4
.IX Item "framerate"
Set input video frame rate. Default value is 25.
.IP \fBpixel_format\fR 4
.IX Item "pixel_format"
Set the input video pixel format. Default value is \f(CW\*(C`yuv420p\*(C'\fR.
.IP \fBvideo_size\fR 4
.IX Item "video_size"
Set the input video size. This value must be specified explicitly.
.PP
For example to read a rawvideo file \fIinput.raw\fR with
\&\fBffplay\fR, assuming a pixel format of \f(CW\*(C`rgb24\*(C'\fR, a video
size of \f(CW\*(C`320x240\*(C'\fR, and a frame rate of 10 images per second, use
the command:
.PP
.Vb 1
\&        ffplay \-f rawvideo \-pixel_format rgb24 \-video_size 320x240 \-framerate 10 input.raw
.Ve
.SS sbg
.IX Subsection "sbg"
SBaGen script demuxer.
.PP
This demuxer reads the script language used by SBaGen
<\fBhttp://uazu.net/sbagen/\fR> to generate binaural beats sessions. A SBG
script looks like that:
.PP
.Vb 9
\&        \-SE
\&        a: 300\-2.5/3 440+4.5/0
\&        b: 300\-2.5/0 440+4.5/3
\&        off: \-
\&        NOW      == a
\&        +0:07:00 == b
\&        +0:14:00 == a
\&        +0:21:00 == b
\&        +0:30:00    off
.Ve
.PP
A SBG script can mix absolute and relative timestamps. If the script uses
either only absolute timestamps (including the script start time) or only
relative ones, then its layout is fixed, and the conversion is
straightforward. On the other hand, if the script mixes both kind of
timestamps, then the \fINOW\fR reference for relative timestamps will be
taken from the current time of day at the time the script is read, and the
script layout will be frozen according to that reference. That means that if
the script is directly played, the actual times will match the absolute
timestamps up to the sound controller's clock accuracy, but if the user
somehow pauses the playback or seeks, all times will be shifted accordingly.
.SS tedcaptions
.IX Subsection "tedcaptions"
JSON captions used for <\fBhttp://www.ted.com/\fR>.
.PP
TED does not provide links to the captions, but they can be guessed from the
page. The file \fItools/bookmarklets.html\fR from the FFmpeg source tree
contains a bookmarklet to expose them.
.PP
This demuxer accepts the following option:
.IP \fBstart_time\fR 4
.IX Item "start_time"
Set the start time of the TED talk, in milliseconds. The default is 15000
(15s). It is used to sync the captions with the downloadable videos, because
they include a 15s intro.
.PP
Example: convert the captions to a format most players understand:
.PP
.Vb 1
\&        ffmpeg \-i http://www.ted.com/talks/subtitles/id/1/lang/en talk1\-en.srt
.Ve
.SS vapoursynth
.IX Subsection "vapoursynth"
Vapoursynth wrapper.
.PP
Due to security concerns, Vapoursynth scripts will not
be autodetected so the input format has to be forced. For ff* CLI tools,
add \f(CW\*(C`\-f vapoursynth\*(C'\fR before the input \f(CW\*(C`\-i yourscript.vpy\*(C'\fR.
.PP
This demuxer accepts the following option:
.IP \fBmax_script_size\fR 4
.IX Item "max_script_size"
The demuxer buffers the entire script into memory. Adjust this value to set the maximum buffer size,
which in turn, acts as a ceiling for the size of scripts that can be read.
Default is 1 MiB.
.SH METADATA
.IX Header "METADATA"
FFmpeg is able to dump metadata from media files into a simple UTF\-8\-encoded
INI-like text file and then load it back using the metadata muxer/demuxer.
.PP
The file format is as follows:
.IP 1. 4
A file consists of a header and a number of metadata tags divided into sections,
each on its own line.
.IP 2. 4
The header is a \fB;FFMETADATA\fR string, followed by a version number (now 1).
.IP 3. 4
Metadata tags are of the form \fBkey=value\fR
.IP 4. 4
Immediately after header follows global metadata
.IP 5. 4
After global metadata there may be sections with per\-stream/per\-chapter
metadata.
.IP 6. 4
A section starts with the section name in uppercase (i.e. STREAM or CHAPTER) in
brackets (\fB[\fR, \fB]\fR) and ends with next section or end of file.
.IP 7. 4
At the beginning of a chapter section there may be an optional timebase to be
used for start/end values. It must be in form
\&\fBTIMEBASE=\fR\fInum\fR\fB/\fR\fIden\fR, where \fInum\fR and \fIden\fR are
integers. If the timebase is missing then start/end times are assumed to
be in nanoseconds.
.Sp
Next a chapter section must contain chapter start and end times in form
\&\fBSTART=\fR\fInum\fR, \fBEND=\fR\fInum\fR, where \fInum\fR is a positive
integer.
.IP 8. 4
Empty lines and lines starting with \fB;\fR or \fB#\fR are ignored.
.IP 9. 4
Metadata keys or values containing special characters (\fB=\fR, \fB;\fR,
\&\fB#\fR, \fB\e\fR and a newline) must be escaped with a backslash \fB\e\fR.
.IP 10. 4
Note that whitespace in metadata (e.g. \fBfoo = bar\fR) is considered to be
a part of the tag (in the example above key is \fBfoo\fR , value is
 \fBbar\fR).
.PP
A ffmetadata file might look like this:
.PP
.Vb 4
\&        ;FFMETADATA1
\&        title=bike\e\eshed
\&        ;this is a comment
\&        artist=FFmpeg troll team
\&        
\&        [CHAPTER]
\&        TIMEBASE=1/1000
\&        START=0
\&        #chapter ends at 0:01:00
\&        END=60000
\&        title=chapter \e#1
\&        [STREAM]
\&        title=multi\e
\&        line
.Ve
.PP
By using the ffmetadata muxer and demuxer it is possible to extract
metadata from an input file to an ffmetadata file, and then transcode
the file into an output file with the edited ffmetadata file.
.PP
Extracting an ffmetadata file with \fIffmpeg\fR goes as follows:
.PP
.Vb 1
\&        ffmpeg \-i INPUT \-f ffmetadata FFMETADATAFILE
.Ve
.PP
Reinserting edited metadata information from the FFMETADATAFILE file can
be done as:
.PP
.Vb 1
\&        ffmpeg \-i INPUT \-i FFMETADATAFILE \-map_metadata 1 \-codec copy OUTPUT
.Ve
.SH "PROTOCOL OPTIONS"
.IX Header "PROTOCOL OPTIONS"
The libavformat library provides some generic global options, which
can be set on all the protocols. In addition each protocol may support
so-called private options, which are specific for that component.
.PP
Options may be set by specifying \-\fIoption\fR \fIvalue\fR in the
FFmpeg tools, or by setting the value explicitly in the
\&\f(CW\*(C`AVFormatContext\*(C'\fR options or using the \fIlibavutil/opt.h\fR API
for programmatic use.
.PP
The list of supported options follows:
.IP "\fBprotocol_whitelist\fR \fIlist\fR \fB(\fR\fIinput\fR\fB)\fR" 4
.IX Item "protocol_whitelist list (input)"
Set a ","\-separated list of allowed protocols. "ALL" matches all protocols. Protocols
prefixed by "\-" are disabled.
All protocols are allowed by default but protocols used by an another
protocol (nested protocols) are restricted to a per protocol subset.
.SH PROTOCOLS
.IX Header "PROTOCOLS"
Protocols are configured elements in FFmpeg that enable access to
resources that require specific protocols.
.PP
When you configure your FFmpeg build, all the supported protocols are
enabled by default. You can list all available ones using the
configure option "\-\-list\-protocols".
.PP
You can disable all the protocols using the configure option
"\-\-disable\-protocols", and selectively enable a protocol using the
option "\-\-enable\-protocol=\fIPROTOCOL\fR", or you can disable a
particular protocol using the option
"\-\-disable\-protocol=\fIPROTOCOL\fR".
.PP
The option "\-protocols" of the ff* tools will display the list of
supported protocols.
.PP
All protocols accept the following options:
.IP \fBrw_timeout\fR 4
.IX Item "rw_timeout"
Maximum time to wait for (network) read/write operations to complete,
in microseconds.
.PP
A description of the currently available protocols follows.
.SS amqp
.IX Subsection "amqp"
Advanced Message Queueing Protocol (AMQP) version 0\-9\-1 is a broker based
publish-subscribe communication protocol.
.PP
FFmpeg must be compiled with \-\-enable\-librabbitmq to support AMQP. A separate
AMQP broker must also be run. An example open-source AMQP broker is RabbitMQ.
.PP
After starting the broker, an FFmpeg client may stream data to the broker using
the command:
.PP
.Vb 1
\&        ffmpeg \-re \-i input \-f mpegts amqp://[[user]:[password]@]hostname[:port][/vhost]
.Ve
.PP
Where hostname and port (default is 5672) is the address of the broker. The
client may also set a user/password for authentication. The default for both
fields is "guest". Name of virtual host on broker can be set with vhost. The
default value is "/".
.PP
Muliple subscribers may stream from the broker using the command:
.PP
.Vb 1
\&        ffplay amqp://[[user]:[password]@]hostname[:port][/vhost]
.Ve
.PP
In RabbitMQ all data published to the broker flows through a specific exchange,
and each subscribing client has an assigned queue/buffer. When a packet arrives
at an exchange, it may be copied to a client's queue depending on the exchange
and routing_key fields.
.PP
The following options are supported:
.IP \fBexchange\fR 4
.IX Item "exchange"
Sets the exchange to use on the broker. RabbitMQ has several predefined
exchanges: "amq.direct" is the default exchange, where the publisher and
subscriber must have a matching routing_key; "amq.fanout" is the same as a
broadcast operation (i.e. the data is forwarded to all queues on the fanout
exchange independent of the routing_key); and "amq.topic" is similar to
"amq.direct", but allows for more complex pattern matching (refer to the RabbitMQ
documentation).
.IP \fBrouting_key\fR 4
.IX Item "routing_key"
Sets the routing key. The default value is "amqp". The routing key is used on
the "amq.direct" and "amq.topic" exchanges to decide whether packets are written
to the queue of a subscriber.
.IP \fBpkt_size\fR 4
.IX Item "pkt_size"
Maximum size of each packet sent/received to the broker. Default is 131072.
Minimum is 4096 and max is any large value (representable by an int). When
receiving packets, this sets an internal buffer size in FFmpeg. It should be
equal to or greater than the size of the published packets to the broker. Otherwise
the received message may be truncated causing decoding errors.
.IP \fBconnection_timeout\fR 4
.IX Item "connection_timeout"
The timeout in seconds during the initial connection to the broker. The
default value is rw_timeout, or 5 seconds if rw_timeout is not set.
.IP "\fBdelivery_mode\fR \fImode\fR" 4
.IX Item "delivery_mode mode"
Sets the delivery mode of each message sent to broker.
The following values are accepted:
.RS 4
.IP \fBpersistent\fR 4
.IX Item "persistent"
Delivery mode set to "persistent" (2). This is the default value.
Messages may be written to the broker's disk depending on its setup.
.IP \fBnon-persistent\fR 4
.IX Item "non-persistent"
Delivery mode set to "non-persistent" (1).
Messages will stay in broker's memory unless the broker is under memory
pressure.
.RE
.RS 4
.RE
.SS async
.IX Subsection "async"
Asynchronous data filling wrapper for input stream.
.PP
Fill data in a background thread, to decouple I/O operation from demux thread.
.PP
.Vb 3
\&        async:<URL>
\&        async:http://host/resource
\&        async:cache:http://host/resource
.Ve
.SS bluray
.IX Subsection "bluray"
Read BluRay playlist.
.PP
The accepted options are:
.IP \fBangle\fR 4
.IX Item "angle"
BluRay angle
.IP \fBchapter\fR 4
.IX Item "chapter"
Start chapter (1...N)
.IP \fBplaylist\fR 4
.IX Item "playlist"
Playlist to read (BDMV/PLAYLIST/?????.mpls)
.PP
Examples:
.PP
Read longest playlist from BluRay mounted to /mnt/bluray:
.PP
.Vb 1
\&        bluray:/mnt/bluray
.Ve
.PP
Read angle 2 of playlist 4 from BluRay mounted to /mnt/bluray, start from chapter 2:
.PP
.Vb 1
\&        \-playlist 4 \-angle 2 \-chapter 2 bluray:/mnt/bluray
.Ve
.SS cache
.IX Subsection "cache"
Caching wrapper for input stream.
.PP
Cache the input stream to temporary file. It brings seeking capability to live streams.
.PP
The accepted options are:
.IP \fBread_ahead_limit\fR 4
.IX Item "read_ahead_limit"
Amount in bytes that may be read ahead when seeking isn't supported. Range is \-1 to INT_MAX.
\&\-1 for unlimited. Default is 65536.
.PP
URL Syntax is
.PP
.Vb 1
\&        cache:<URL>
.Ve
.SS concat
.IX Subsection "concat"
Physical concatenation protocol.
.PP
Read and seek from many resources in sequence as if they were
a unique resource.
.PP
A URL accepted by this protocol has the syntax:
.PP
.Vb 1
\&        concat:<URL1>|<URL2>|...|<URLN>
.Ve
.PP
where \fIURL1\fR, \fIURL2\fR, ..., \fIURLN\fR are the urls of the
resource to be concatenated, each one possibly specifying a distinct
protocol.
.PP
For example to read a sequence of files \fIsplit1.mpeg\fR,
\&\fIsplit2.mpeg\fR, \fIsplit3.mpeg\fR with \fBffplay\fR use the
command:
.PP
.Vb 1
\&        ffplay concat:split1.mpeg\e|split2.mpeg\e|split3.mpeg
.Ve
.PP
Note that you may need to escape the character "|" which is special for
many shells.
.SS crypto
.IX Subsection "crypto"
AES-encrypted stream reading protocol.
.PP
The accepted options are:
.IP \fBkey\fR 4
.IX Item "key"
Set the AES decryption key binary block from given hexadecimal representation.
.IP \fBiv\fR 4
.IX Item "iv"
Set the AES decryption initialization vector binary block from given hexadecimal representation.
.PP
Accepted URL formats:
.PP
.Vb 2
\&        crypto:<URL>
\&        crypto+<URL>
.Ve
.SS data
.IX Subsection "data"
Data in-line in the URI. See <\fBhttp://en.wikipedia.org/wiki/Data_URI_scheme\fR>.
.PP
For example, to convert a GIF file given inline with \fBffmpeg\fR:
.PP
.Vb 1
\&        ffmpeg \-i "data:image/gif;base64,R0lGODdhCAAIAMIEAAAAAAAA//8AAP//AP///////////////ywAAAAACAAIAAADF0gEDLojDgdGiJdJqUX02iB4E8Q9jUMkADs=" smiley.png
.Ve
.SS file
.IX Subsection "file"
File access protocol.
.PP
Read from or write to a file.
.PP
A file URL can have the form:
.PP
.Vb 1
\&        file:<filename>
.Ve
.PP
where \fIfilename\fR is the path of the file to read.
.PP
An URL that does not have a protocol prefix will be assumed to be a
file URL. Depending on the build, an URL that looks like a Windows
path with the drive letter at the beginning will also be assumed to be
a file URL (usually not the case in builds for unix-like systems).
.PP
For example to read from a file \fIinput.mpeg\fR with \fBffmpeg\fR
use the command:
.PP
.Vb 1
\&        ffmpeg \-i file:input.mpeg output.mpeg
.Ve
.PP
This protocol accepts the following options:
.IP \fBtruncate\fR 4
.IX Item "truncate"
Truncate existing files on write, if set to 1. A value of 0 prevents
truncating. Default value is 1.
.IP \fBblocksize\fR 4
.IX Item "blocksize"
Set I/O operation maximum block size, in bytes. Default value is
\&\f(CW\*(C`INT_MAX\*(C'\fR, which results in not limiting the requested block size.
Setting this value reasonably low improves user termination request reaction
time, which is valuable for files on slow medium.
.IP \fBfollow\fR 4
.IX Item "follow"
If set to 1, the protocol will retry reading at the end of the file, allowing
reading files that still are being written. In order for this to terminate,
you either need to use the rw_timeout option, or use the interrupt callback
(for API users).
.IP \fBseekable\fR 4
.IX Item "seekable"
Controls if seekability is advertised on the file. 0 means non-seekable, \-1
means auto (seekable for normal files, non-seekable for named pipes).
.Sp
Many demuxers handle seekable and non-seekable resources differently,
overriding this might speed up opening certain files at the cost of losing some
features (e.g. accurate seeking).
.SS ftp
.IX Subsection "ftp"
FTP (File Transfer Protocol).
.PP
Read from or write to remote resources using FTP protocol.
.PP
Following syntax is required.
.PP
.Vb 1
\&        ftp://[user[:password]@]server[:port]/path/to/remote/resource.mpeg
.Ve
.PP
This protocol accepts the following options.
.IP \fBtimeout\fR 4
.IX Item "timeout"
Set timeout in microseconds of socket I/O operations used by the underlying low level
operation. By default it is set to \-1, which means that the timeout is
not specified.
.IP \fBftp-user\fR 4
.IX Item "ftp-user"
Set a user to be used for authenticating to the FTP server. This is overridden by the
user in the FTP URL.
.IP \fBftp-password\fR 4
.IX Item "ftp-password"
Set a password to be used for authenticating to the FTP server. This is overridden by
the password in the FTP URL, or by \fBftp-anonymous-password\fR if no user is set.
.IP \fBftp-anonymous-password\fR 4
.IX Item "ftp-anonymous-password"
Password used when login as anonymous user. Typically an e\-mail address
should be used.
.IP \fBftp-write-seekable\fR 4
.IX Item "ftp-write-seekable"
Control seekability of connection during encoding. If set to 1 the
resource is supposed to be seekable, if set to 0 it is assumed not
to be seekable. Default value is 0.
.PP
NOTE: Protocol can be used as output, but it is recommended to not do
it, unless special care is taken (tests, customized server configuration
etc.). Different FTP servers behave in different way during seek
operation. ff* tools may produce incomplete content due to server limitations.
.SS gopher
.IX Subsection "gopher"
Gopher protocol.
.SS gophers
.IX Subsection "gophers"
Gophers protocol.
.PP
The Gopher protocol with TLS encapsulation.
.SS hls
.IX Subsection "hls"
Read Apple HTTP Live Streaming compliant segmented stream as
a uniform one. The M3U8 playlists describing the segments can be
remote HTTP resources or local files, accessed using the standard
file protocol.
The nested protocol is declared by specifying
"+\fIproto\fR" after the hls URI scheme name, where \fIproto\fR
is either "file" or "http".
.PP
.Vb 2
\&        hls+http://host/path/to/remote/resource.m3u8
\&        hls+file://path/to/local/resource.m3u8
.Ve
.PP
Using this protocol is discouraged \- the hls demuxer should work
just as well (if not, please report the issues) and is more complete.
To use the hls demuxer instead, simply use the direct URLs to the
m3u8 files.
.SS http
.IX Subsection "http"
HTTP (Hyper Text Transfer Protocol).
.PP
This protocol accepts the following options:
.IP \fBseekable\fR 4
.IX Item "seekable"
Control seekability of connection. If set to 1 the resource is
supposed to be seekable, if set to 0 it is assumed not to be seekable,
if set to \-1 it will try to autodetect if it is seekable. Default
value is \-1.
.IP \fBchunked_post\fR 4
.IX Item "chunked_post"
If set to 1 use chunked Transfer-Encoding for posts, default is 1.
.IP \fBcontent_type\fR 4
.IX Item "content_type"
Set a specific content type for the POST messages or for listen mode.
.IP \fBhttp_proxy\fR 4
.IX Item "http_proxy"
set HTTP proxy to tunnel through e.g. http://example.com:1234
.IP \fBheaders\fR 4
.IX Item "headers"
Set custom HTTP headers, can override built in default headers. The
value must be a string encoding the headers.
.IP \fBmultiple_requests\fR 4
.IX Item "multiple_requests"
Use persistent connections if set to 1, default is 0.
.IP \fBpost_data\fR 4
.IX Item "post_data"
Set custom HTTP post data.
.IP \fBreferer\fR 4
.IX Item "referer"
Set the Referer header. Include 'Referer: URL' header in HTTP request.
.IP \fBuser_agent\fR 4
.IX Item "user_agent"
Override the User-Agent header. If not specified the protocol will use a
string describing the libavformat build. ("Lavf/<version>")
.IP \fBuser-agent\fR 4
.IX Item "user-agent"
This is a deprecated option, you can use user_agent instead it.
.IP \fBreconnect_at_eof\fR 4
.IX Item "reconnect_at_eof"
If set then eof is treated like an error and causes reconnection, this is useful
for live / endless streams.
.IP \fBreconnect_streamed\fR 4
.IX Item "reconnect_streamed"
If set then even streamed/non seekable streams will be reconnected on errors.
.IP \fBreconnect_on_network_error\fR 4
.IX Item "reconnect_on_network_error"
Reconnect automatically in case of TCP/TLS errors during connect.
.IP \fBreconnect_on_http_error\fR 4
.IX Item "reconnect_on_http_error"
A comma separated list of HTTP status codes to reconnect on. The list can
include specific status codes (e.g. '503') or the strings '4xx' / '5xx'.
.IP \fBreconnect_delay_max\fR 4
.IX Item "reconnect_delay_max"
Sets the maximum delay in seconds after which to give up reconnecting
.IP \fBmime_type\fR 4
.IX Item "mime_type"
Export the MIME type.
.IP \fBhttp_version\fR 4
.IX Item "http_version"
Exports the HTTP response version number. Usually "1.0" or "1.1".
.IP \fBicy\fR 4
.IX Item "icy"
If set to 1 request ICY (SHOUTcast) metadata from the server. If the server
supports this, the metadata has to be retrieved by the application by reading
the \fBicy_metadata_headers\fR and \fBicy_metadata_packet\fR options.
The default is 1.
.IP \fBicy_metadata_headers\fR 4
.IX Item "icy_metadata_headers"
If the server supports ICY metadata, this contains the ICY-specific HTTP reply
headers, separated by newline characters.
.IP \fBicy_metadata_packet\fR 4
.IX Item "icy_metadata_packet"
If the server supports ICY metadata, and \fBicy\fR was set to 1, this
contains the last non-empty metadata packet sent by the server. It should be
polled in regular intervals by applications interested in mid-stream metadata
updates.
.IP \fBcookies\fR 4
.IX Item "cookies"
Set the cookies to be sent in future requests. The format of each cookie is the
same as the value of a Set-Cookie HTTP response field. Multiple cookies can be
delimited by a newline character.
.IP \fBoffset\fR 4
.IX Item "offset"
Set initial byte offset.
.IP \fBend_offset\fR 4
.IX Item "end_offset"
Try to limit the request to bytes preceding this offset.
.IP \fBmethod\fR 4
.IX Item "method"
When used as a client option it sets the HTTP method for the request.
.Sp
When used as a server option it sets the HTTP method that is going to be
expected from the client(s).
If the expected and the received HTTP method do not match the client will
be given a Bad Request response.
When unset the HTTP method is not checked for now. This will be replaced by
autodetection in the future.
.IP \fBlisten\fR 4
.IX Item "listen"
If set to 1 enables experimental HTTP server. This can be used to send data when
used as an output option, or read data from a client with HTTP POST when used as
an input option.
If set to 2 enables experimental multi-client HTTP server. This is not yet implemented
in ffmpeg.c and thus must not be used as a command line option.
.Sp
.Vb 2
\&        # Server side (sending):
\&        ffmpeg \-i somefile.ogg \-c copy \-listen 1 \-f ogg http://<server>:<port>
\&        
\&        # Client side (receiving):
\&        ffmpeg \-i http://<server>:<port> \-c copy somefile.ogg
\&        
\&        # Client can also be done with wget:
\&        wget http://<server>:<port> \-O somefile.ogg
\&        
\&        # Server side (receiving):
\&        ffmpeg \-listen 1 \-i http://<server>:<port> \-c copy somefile.ogg
\&        
\&        # Client side (sending):
\&        ffmpeg \-i somefile.ogg \-chunked_post 0 \-c copy \-f ogg http://<server>:<port>
\&        
\&        # Client can also be done with wget:
\&        wget \-\-post\-file=somefile.ogg http://<server>:<port>
.Ve
.IP \fBsend_expect_100\fR 4
.IX Item "send_expect_100"
Send an Expect: 100\-continue header for POST. If set to 1 it will send, if set
to 0 it won't, if set to \-1 it will try to send if it is applicable. Default
value is \-1.
.IP \fBauth_type\fR 4
.IX Item "auth_type"
Set HTTP authentication type. No option for Digest, since this method requires
getting nonce parameters from the server first and can't be used straight away like
Basic.
.RS 4
.IP \fBnone\fR 4
.IX Item "none"
Choose the HTTP authentication type automatically. This is the default.
.IP \fBbasic\fR 4
.IX Item "basic"
Choose the HTTP basic authentication.
.Sp
Basic authentication sends a Base64\-encoded string that contains a user name and password
for the client. Base64 is not a form of encryption and should be considered the same as
sending the user name and password in clear text (Base64 is a reversible encoding).
If a resource needs to be protected, strongly consider using an authentication scheme
other than basic authentication. HTTPS/TLS should be used with basic authentication.
Without these additional security enhancements, basic authentication should not be used
to protect sensitive or valuable information.
.RE
.RS 4
.RE
.PP
\fIHTTP Cookies\fR
.IX Subsection "HTTP Cookies"
.PP
Some HTTP requests will be denied unless cookie values are passed in with the
request. The \fBcookies\fR option allows these cookies to be specified. At
the very least, each cookie must specify a value along with a path and domain.
HTTP requests that match both the domain and path will automatically include the
cookie value in the HTTP Cookie header field. Multiple cookies can be delimited
by a newline.
.PP
The required syntax to play a stream specifying a cookie is:
.PP
.Vb 1
\&        ffplay \-cookies "nlqptid=nltid=tsn; path=/; domain=somedomain.com;" http://somedomain.com/somestream.m3u8
.Ve
.SS Icecast
.IX Subsection "Icecast"
Icecast protocol (stream to Icecast servers)
.PP
This protocol accepts the following options:
.IP \fBice_genre\fR 4
.IX Item "ice_genre"
Set the stream genre.
.IP \fBice_name\fR 4
.IX Item "ice_name"
Set the stream name.
.IP \fBice_description\fR 4
.IX Item "ice_description"
Set the stream description.
.IP \fBice_url\fR 4
.IX Item "ice_url"
Set the stream website URL.
.IP \fBice_public\fR 4
.IX Item "ice_public"
Set if the stream should be public.
The default is 0 (not public).
.IP \fBuser_agent\fR 4
.IX Item "user_agent"
Override the User-Agent header. If not specified a string of the form
"Lavf/<version>" will be used.
.IP \fBpassword\fR 4
.IX Item "password"
Set the Icecast mountpoint password.
.IP \fBcontent_type\fR 4
.IX Item "content_type"
Set the stream content type. This must be set if it is different from
audio/mpeg.
.IP \fBlegacy_icecast\fR 4
.IX Item "legacy_icecast"
This enables support for Icecast versions < 2.4.0, that do not support the
HTTP PUT method but the SOURCE method.
.IP \fBtls\fR 4
.IX Item "tls"
Establish a TLS (HTTPS) connection to Icecast.
.PP
.Vb 1
\&        icecast://[<username>[:<password>]@]<server>:<port>/<mountpoint>
.Ve
.SS mmst
.IX Subsection "mmst"
MMS (Microsoft Media Server) protocol over TCP.
.SS mmsh
.IX Subsection "mmsh"
MMS (Microsoft Media Server) protocol over HTTP.
.PP
The required syntax is:
.PP
.Vb 1
\&        mmsh://<server>[:<port>][/<app>][/<playpath>]
.Ve
.SS md5
.IX Subsection "md5"
MD5 output protocol.
.PP
Computes the MD5 hash of the data to be written, and on close writes
this to the designated output or stdout if none is specified. It can
be used to test muxers without writing an actual file.
.PP
Some examples follow.
.PP
.Vb 2
\&        # Write the MD5 hash of the encoded AVI file to the file output.avi.md5.
\&        ffmpeg \-i input.flv \-f avi \-y md5:output.avi.md5
\&        
\&        # Write the MD5 hash of the encoded AVI file to stdout.
\&        ffmpeg \-i input.flv \-f avi \-y md5:
.Ve
.PP
Note that some formats (typically MOV) require the output protocol to
be seekable, so they will fail with the MD5 output protocol.
.SS pipe
.IX Subsection "pipe"
UNIX pipe access protocol.
.PP
Read and write from UNIX pipes.
.PP
The accepted syntax is:
.PP
.Vb 1
\&        pipe:[<number>]
.Ve
.PP
\&\fInumber\fR is the number corresponding to the file descriptor of the
pipe (e.g. 0 for stdin, 1 for stdout, 2 for stderr).  If \fInumber\fR
is not specified, by default the stdout file descriptor will be used
for writing, stdin for reading.
.PP
For example to read from stdin with \fBffmpeg\fR:
.PP
.Vb 3
\&        cat test.wav | ffmpeg \-i pipe:0
\&        # ...this is the same as...
\&        cat test.wav | ffmpeg \-i pipe:
.Ve
.PP
For writing to stdout with \fBffmpeg\fR:
.PP
.Vb 3
\&        ffmpeg \-i test.wav \-f avi pipe:1 | cat > test.avi
\&        # ...this is the same as...
\&        ffmpeg \-i test.wav \-f avi pipe: | cat > test.avi
.Ve
.PP
This protocol accepts the following options:
.IP \fBblocksize\fR 4
.IX Item "blocksize"
Set I/O operation maximum block size, in bytes. Default value is
\&\f(CW\*(C`INT_MAX\*(C'\fR, which results in not limiting the requested block size.
Setting this value reasonably low improves user termination request reaction
time, which is valuable if data transmission is slow.
.PP
Note that some formats (typically MOV), require the output protocol to
be seekable, so they will fail with the pipe output protocol.
.SS prompeg
.IX Subsection "prompeg"
Pro-MPEG Code of Practice #3 Release 2 FEC protocol.
.PP
The Pro-MPEG CoP#3 FEC is a 2D parity-check forward error correction mechanism
for MPEG\-2 Transport Streams sent over RTP.
.PP
This protocol must be used in conjunction with the \f(CW\*(C`rtp_mpegts\*(C'\fR muxer and
the \f(CW\*(C`rtp\*(C'\fR protocol.
.PP
The required syntax is:
.PP
.Vb 1
\&        \-f rtp_mpegts \-fec prompeg=<option>=<val>... rtp://<hostname>:<port>
.Ve
.PP
The destination UDP ports are \f(CW\*(C`port + 2\*(C'\fR for the column FEC stream
and \f(CW\*(C`port + 4\*(C'\fR for the row FEC stream.
.PP
This protocol accepts the following options:
.IP \fBl=\fR\fIn\fR 4
.IX Item "l=n"
The number of columns (4\-20, LxD <= 100)
.IP \fBd=\fR\fIn\fR 4
.IX Item "d=n"
The number of rows (4\-20, LxD <= 100)
.PP
Example usage:
.PP
.Vb 1
\&        \-f rtp_mpegts \-fec prompeg=l=8:d=4 rtp://<hostname>:<port>
.Ve
.SS rist
.IX Subsection "rist"
Reliable Internet Streaming Transport protocol
.PP
The accepted options are:
.IP \fBrist_profile\fR 4
.IX Item "rist_profile"
Supported values:
.RS 4
.IP \fBsimple\fR 4
.IX Item "simple"
.PD 0
.IP \fBmain\fR 4
.IX Item "main"
.PD
This one is default.
.IP \fBadvanced\fR 4
.IX Item "advanced"
.RE
.RS 4
.RE
.PD 0
.IP \fBbuffer_size\fR 4
.IX Item "buffer_size"
.PD
Set internal RIST buffer size in milliseconds for retransmission of data.
Default value is 0 which means the librist default (1 sec). Maximum value is 30
seconds.
.IP \fBpkt_size\fR 4
.IX Item "pkt_size"
Set maximum packet size for sending data. 1316 by default.
.IP \fBlog_level\fR 4
.IX Item "log_level"
Set loglevel for RIST logging messages. You only need to set this if you
explicitly want to enable debug level messages or packet loss simulation,
otherwise the regular loglevel is respected.
.IP \fBsecret\fR 4
.IX Item "secret"
Set override of encryption secret, by default is unset.
.IP \fBencryption\fR 4
.IX Item "encryption"
Set encryption type, by default is disabled.
Acceptable values are 128 and 256.
.SS rtmp
.IX Subsection "rtmp"
Real-Time Messaging Protocol.
.PP
The Real-Time Messaging Protocol (RTMP) is used for streaming multimedia
content across a TCP/IP network.
.PP
The required syntax is:
.PP
.Vb 1
\&        rtmp://[<username>:<password>@]<server>[:<port>][/<app>][/<instance>][/<playpath>]
.Ve
.PP
The accepted parameters are:
.IP \fBusername\fR 4
.IX Item "username"
An optional username (mostly for publishing).
.IP \fBpassword\fR 4
.IX Item "password"
An optional password (mostly for publishing).
.IP \fBserver\fR 4
.IX Item "server"
The address of the RTMP server.
.IP \fBport\fR 4
.IX Item "port"
The number of the TCP port to use (by default is 1935).
.IP \fBapp\fR 4
.IX Item "app"
It is the name of the application to access. It usually corresponds to
the path where the application is installed on the RTMP server
(e.g. \fI/ondemand/\fR, \fI/flash/live/\fR, etc.). You can override
the value parsed from the URI through the \f(CW\*(C`rtmp_app\*(C'\fR option, too.
.IP \fBplaypath\fR 4
.IX Item "playpath"
It is the path or name of the resource to play with reference to the
application specified in \fIapp\fR, may be prefixed by "mp4:". You
can override the value parsed from the URI through the \f(CW\*(C`rtmp_playpath\*(C'\fR
option, too.
.IP \fBlisten\fR 4
.IX Item "listen"
Act as a server, listening for an incoming connection.
.IP \fBtimeout\fR 4
.IX Item "timeout"
Maximum time to wait for the incoming connection. Implies listen.
.PP
Additionally, the following parameters can be set via command line options
(or in code via \f(CW\*(C`AVOption\*(C'\fRs):
.IP \fBrtmp_app\fR 4
.IX Item "rtmp_app"
Name of application to connect on the RTMP server. This option
overrides the parameter specified in the URI.
.IP \fBrtmp_buffer\fR 4
.IX Item "rtmp_buffer"
Set the client buffer time in milliseconds. The default is 3000.
.IP \fBrtmp_conn\fR 4
.IX Item "rtmp_conn"
Extra arbitrary AMF connection parameters, parsed from a string,
e.g. like \f(CW\*(C`B:1 S:authMe O:1 NN:code:1.23 NS:flag:ok O:0\*(C'\fR.
Each value is prefixed by a single character denoting the type,
B for Boolean, N for number, S for string, O for object, or Z for null,
followed by a colon. For Booleans the data must be either 0 or 1 for
FALSE or TRUE, respectively.  Likewise for Objects the data must be 0 or
1 to end or begin an object, respectively. Data items in subobjects may
be named, by prefixing the type with 'N' and specifying the name before
the value (i.e. \f(CW\*(C`NB:myFlag:1\*(C'\fR). This option may be used multiple
times to construct arbitrary AMF sequences.
.IP \fBrtmp_flashver\fR 4
.IX Item "rtmp_flashver"
Version of the Flash plugin used to run the SWF player. The default
is LNX 9,0,124,2. (When publishing, the default is FMLE/3.0 (compatible;
<libavformat version>).)
.IP \fBrtmp_flush_interval\fR 4
.IX Item "rtmp_flush_interval"
Number of packets flushed in the same request (RTMPT only). The default
is 10.
.IP \fBrtmp_live\fR 4
.IX Item "rtmp_live"
Specify that the media is a live stream. No resuming or seeking in
live streams is possible. The default value is \f(CW\*(C`any\*(C'\fR, which means the
subscriber first tries to play the live stream specified in the
playpath. If a live stream of that name is not found, it plays the
recorded stream. The other possible values are \f(CW\*(C`live\*(C'\fR and
\&\f(CW\*(C`recorded\*(C'\fR.
.IP \fBrtmp_pageurl\fR 4
.IX Item "rtmp_pageurl"
URL of the web page in which the media was embedded. By default no
value will be sent.
.IP \fBrtmp_playpath\fR 4
.IX Item "rtmp_playpath"
Stream identifier to play or to publish. This option overrides the
parameter specified in the URI.
.IP \fBrtmp_subscribe\fR 4
.IX Item "rtmp_subscribe"
Name of live stream to subscribe to. By default no value will be sent.
It is only sent if the option is specified or if rtmp_live
is set to live.
.IP \fBrtmp_swfhash\fR 4
.IX Item "rtmp_swfhash"
SHA256 hash of the decompressed SWF file (32 bytes).
.IP \fBrtmp_swfsize\fR 4
.IX Item "rtmp_swfsize"
Size of the decompressed SWF file, required for SWFVerification.
.IP \fBrtmp_swfurl\fR 4
.IX Item "rtmp_swfurl"
URL of the SWF player for the media. By default no value will be sent.
.IP \fBrtmp_swfverify\fR 4
.IX Item "rtmp_swfverify"
URL to player swf file, compute hash/size automatically.
.IP \fBrtmp_tcurl\fR 4
.IX Item "rtmp_tcurl"
URL of the target stream. Defaults to proto://host[:port]/app.
.PP
For example to read with \fBffplay\fR a multimedia resource named
"sample" from the application "vod" from an RTMP server "myserver":
.PP
.Vb 1
\&        ffplay rtmp://myserver/vod/sample
.Ve
.PP
To publish to a password protected server, passing the playpath and
app names separately:
.PP
.Vb 1
\&        ffmpeg \-re \-i <input> \-f flv \-rtmp_playpath some/long/path \-rtmp_app long/app/name rtmp://username:password@myserver/
.Ve
.SS rtmpe
.IX Subsection "rtmpe"
Encrypted Real-Time Messaging Protocol.
.PP
The Encrypted Real-Time Messaging Protocol (RTMPE) is used for
streaming multimedia content within standard cryptographic primitives,
consisting of Diffie-Hellman key exchange and HMACSHA256, generating
a pair of RC4 keys.
.SS rtmps
.IX Subsection "rtmps"
Real-Time Messaging Protocol over a secure SSL connection.
.PP
The Real-Time Messaging Protocol (RTMPS) is used for streaming
multimedia content across an encrypted connection.
.SS rtmpt
.IX Subsection "rtmpt"
Real-Time Messaging Protocol tunneled through HTTP.
.PP
The Real-Time Messaging Protocol tunneled through HTTP (RTMPT) is used
for streaming multimedia content within HTTP requests to traverse
firewalls.
.SS rtmpte
.IX Subsection "rtmpte"
Encrypted Real-Time Messaging Protocol tunneled through HTTP.
.PP
The Encrypted Real-Time Messaging Protocol tunneled through HTTP (RTMPTE)
is used for streaming multimedia content within HTTP requests to traverse
firewalls.
.SS rtmpts
.IX Subsection "rtmpts"
Real-Time Messaging Protocol tunneled through HTTPS.
.PP
The Real-Time Messaging Protocol tunneled through HTTPS (RTMPTS) is used
for streaming multimedia content within HTTPS requests to traverse
firewalls.
.SS libsmbclient
.IX Subsection "libsmbclient"
libsmbclient permits one to manipulate CIFS/SMB network resources.
.PP
Following syntax is required.
.PP
.Vb 1
\&        smb://[[domain:]user[:password@]]server[/share[/path[/file]]]
.Ve
.PP
This protocol accepts the following options.
.IP \fBtimeout\fR 4
.IX Item "timeout"
Set timeout in milliseconds of socket I/O operations used by the underlying
low level operation. By default it is set to \-1, which means that the timeout
is not specified.
.IP \fBtruncate\fR 4
.IX Item "truncate"
Truncate existing files on write, if set to 1. A value of 0 prevents
truncating. Default value is 1.
.IP \fBworkgroup\fR 4
.IX Item "workgroup"
Set the workgroup used for making connections. By default workgroup is not specified.
.PP
For more information see: <\fBhttp://www.samba.org/\fR>.
.SS libssh
.IX Subsection "libssh"
Secure File Transfer Protocol via libssh
.PP
Read from or write to remote resources using SFTP protocol.
.PP
Following syntax is required.
.PP
.Vb 1
\&        sftp://[user[:password]@]server[:port]/path/to/remote/resource.mpeg
.Ve
.PP
This protocol accepts the following options.
.IP \fBtimeout\fR 4
.IX Item "timeout"
Set timeout of socket I/O operations used by the underlying low level
operation. By default it is set to \-1, which means that the timeout
is not specified.
.IP \fBtruncate\fR 4
.IX Item "truncate"
Truncate existing files on write, if set to 1. A value of 0 prevents
truncating. Default value is 1.
.IP \fBprivate_key\fR 4
.IX Item "private_key"
Specify the path of the file containing private key to use during authorization.
By default libssh searches for keys in the \fI~/.ssh/\fR directory.
.PP
Example: Play a file stored on remote server.
.PP
.Vb 1
\&        ffplay sftp://user:password@server_address:22/home/user/resource.mpeg
.Ve
.SS "librtmp rtmp, rtmpe, rtmps, rtmpt, rtmpte"
.IX Subsection "librtmp rtmp, rtmpe, rtmps, rtmpt, rtmpte"
Real-Time Messaging Protocol and its variants supported through
librtmp.
.PP
Requires the presence of the librtmp headers and library during
configuration. You need to explicitly configure the build with
"\-\-enable\-librtmp". If enabled this will replace the native RTMP
protocol.
.PP
This protocol provides most client functions and a few server
functions needed to support RTMP, RTMP tunneled in HTTP (RTMPT),
encrypted RTMP (RTMPE), RTMP over SSL/TLS (RTMPS) and tunneled
variants of these encrypted types (RTMPTE, RTMPTS).
.PP
The required syntax is:
.PP
.Vb 1
\&        <rtmp_proto>://<server>[:<port>][/<app>][/<playpath>] <options>
.Ve
.PP
where \fIrtmp_proto\fR is one of the strings "rtmp", "rtmpt", "rtmpe",
"rtmps", "rtmpte", "rtmpts" corresponding to each RTMP variant, and
\&\fIserver\fR, \fIport\fR, \fIapp\fR and \fIplaypath\fR have the same
meaning as specified for the RTMP native protocol.
\&\fIoptions\fR contains a list of space-separated options of the form
\&\fIkey\fR=\fIval\fR.
.PP
See the librtmp manual page (man 3 librtmp) for more information.
.PP
For example, to stream a file in real-time to an RTMP server using
\&\fBffmpeg\fR:
.PP
.Vb 1
\&        ffmpeg \-re \-i myfile \-f flv rtmp://myserver/live/mystream
.Ve
.PP
To play the same stream using \fBffplay\fR:
.PP
.Vb 1
\&        ffplay "rtmp://myserver/live/mystream live=1"
.Ve
.SS rtp
.IX Subsection "rtp"
Real-time Transport Protocol.
.PP
The required syntax for an RTP URL is:
rtp://\fIhostname\fR[:\fIport\fR][?\fIoption\fR=\fIval\fR...]
.PP
\&\fIport\fR specifies the RTP port to use.
.PP
The following URL options are supported:
.IP \fBttl=\fR\fIn\fR 4
.IX Item "ttl=n"
Set the TTL (Time-To-Live) value (for multicast only).
.IP \fBrtcpport=\fR\fIn\fR 4
.IX Item "rtcpport=n"
Set the remote RTCP port to \fIn\fR.
.IP \fBlocalrtpport=\fR\fIn\fR 4
.IX Item "localrtpport=n"
Set the local RTP port to \fIn\fR.
.IP \fBlocalrtcpport=\fR\fIn\fR\fB'\fR 4
.IX Item "localrtcpport=n'"
Set the local RTCP port to \fIn\fR.
.IP \fBpkt_size=\fR\fIn\fR 4
.IX Item "pkt_size=n"
Set max packet size (in bytes) to \fIn\fR.
.IP \fBbuffer_size=\fR\fIsize\fR 4
.IX Item "buffer_size=size"
Set the maximum UDP socket buffer size in bytes.
.IP \fBconnect=0|1\fR 4
.IX Item "connect=0|1"
Do a \f(CWconnect()\fR on the UDP socket (if set to 1) or not (if set
to 0).
.IP \fBsources=\fR\fIip\fR\fB[,\fR\fIip\fR\fB]\fR 4
.IX Item "sources=ip[,ip]"
List allowed source IP addresses.
.IP \fBblock=\fR\fIip\fR\fB[,\fR\fIip\fR\fB]\fR 4
.IX Item "block=ip[,ip]"
List disallowed (blocked) source IP addresses.
.IP \fBwrite_to_source=0|1\fR 4
.IX Item "write_to_source=0|1"
Send packets to the source address of the latest received packet (if
set to 1) or to a default remote address (if set to 0).
.IP \fBlocalport=\fR\fIn\fR 4
.IX Item "localport=n"
Set the local RTP port to \fIn\fR.
.IP \fBtimeout=\fR\fIn\fR 4
.IX Item "timeout=n"
Set timeout (in microseconds) of socket I/O operations to \fIn\fR.
.Sp
This is a deprecated option. Instead, \fBlocalrtpport\fR should be
used.
.PP
Important notes:
.IP 1. 4
If \fBrtcpport\fR is not set the RTCP port will be set to the RTP
port value plus 1.
.IP 2. 4
If \fBlocalrtpport\fR (the local RTP port) is not set any available
port will be used for the local RTP and RTCP ports.
.IP 3. 4
If \fBlocalrtcpport\fR (the local RTCP port) is not set it will be
set to the local RTP port value plus 1.
.SS rtsp
.IX Subsection "rtsp"
Real-Time Streaming Protocol.
.PP
RTSP is not technically a protocol handler in libavformat, it is a demuxer
and muxer. The demuxer supports both normal RTSP (with data transferred
over RTP; this is used by e.g. Apple and Microsoft) and Real-RTSP (with
data transferred over RDT).
.PP
The muxer can be used to send a stream using RTSP ANNOUNCE to a server
supporting it (currently Darwin Streaming Server and Mischa Spiegelmock's
<\fBhttps://github.com/revmischa/rtsp\-server\fR>).
.PP
The required syntax for a RTSP url is:
.PP
.Vb 1
\&        rtsp://<hostname>[:<port>]/<path>
.Ve
.PP
Options can be set on the \fBffmpeg\fR/\fBffplay\fR command
line, or set in code via \f(CW\*(C`AVOption\*(C'\fRs or in
\&\f(CW\*(C`avformat_open_input\*(C'\fR.
.PP
The following options are supported.
.IP \fBinitial_pause\fR 4
.IX Item "initial_pause"
Do not start playing the stream immediately if set to 1. Default value
is 0.
.IP \fBrtsp_transport\fR 4
.IX Item "rtsp_transport"
Set RTSP transport protocols.
.Sp
It accepts the following values:
.RS 4
.IP \fBudp\fR 4
.IX Item "udp"
Use UDP as lower transport protocol.
.IP \fBtcp\fR 4
.IX Item "tcp"
Use TCP (interleaving within the RTSP control channel) as lower
transport protocol.
.IP \fBudp_multicast\fR 4
.IX Item "udp_multicast"
Use UDP multicast as lower transport protocol.
.IP \fBhttp\fR 4
.IX Item "http"
Use HTTP tunneling as lower transport protocol, which is useful for
passing proxies.
.RE
.RS 4
.Sp
Multiple lower transport protocols may be specified, in that case they are
tried one at a time (if the setup of one fails, the next one is tried).
For the muxer, only the \fBtcp\fR and \fBudp\fR options are supported.
.RE
.IP \fBrtsp_flags\fR 4
.IX Item "rtsp_flags"
Set RTSP flags.
.Sp
The following values are accepted:
.RS 4
.IP \fBfilter_src\fR 4
.IX Item "filter_src"
Accept packets only from negotiated peer address and port.
.IP \fBlisten\fR 4
.IX Item "listen"
Act as a server, listening for an incoming connection.
.IP \fBprefer_tcp\fR 4
.IX Item "prefer_tcp"
Try TCP for RTP transport first, if TCP is available as RTSP RTP transport.
.RE
.RS 4
.Sp
Default value is \fBnone\fR.
.RE
.IP \fBallowed_media_types\fR 4
.IX Item "allowed_media_types"
Set media types to accept from the server.
.Sp
The following flags are accepted:
.RS 4
.IP \fBvideo\fR 4
.IX Item "video"
.PD 0
.IP \fBaudio\fR 4
.IX Item "audio"
.IP \fBdata\fR 4
.IX Item "data"
.RE
.RS 4
.PD
.Sp
By default it accepts all media types.
.RE
.IP \fBmin_port\fR 4
.IX Item "min_port"
Set minimum local UDP port. Default value is 5000.
.IP \fBmax_port\fR 4
.IX Item "max_port"
Set maximum local UDP port. Default value is 65000.
.IP \fBtimeout\fR 4
.IX Item "timeout"
Set maximum timeout (in seconds) to wait for incoming connections.
.Sp
A value of \-1 means infinite (default). This option implies the
\&\fBrtsp_flags\fR set to \fBlisten\fR.
.IP \fBreorder_queue_size\fR 4
.IX Item "reorder_queue_size"
Set number of packets to buffer for handling of reordered packets.
.IP \fBstimeout\fR 4
.IX Item "stimeout"
Set socket TCP I/O timeout in microseconds.
.IP \fBuser-agent\fR 4
.IX Item "user-agent"
Override User-Agent header. If not specified, it defaults to the
libavformat identifier string.
.PP
When receiving data over UDP, the demuxer tries to reorder received packets
(since they may arrive out of order, or packets may get lost totally). This
can be disabled by setting the maximum demuxing delay to zero (via
the \f(CW\*(C`max_delay\*(C'\fR field of AVFormatContext).
.PP
When watching multi-bitrate Real-RTSP streams with \fBffplay\fR, the
streams to display can be chosen with \f(CW\*(C`\-vst\*(C'\fR \fIn\fR and
\&\f(CW\*(C`\-ast\*(C'\fR \fIn\fR for video and audio respectively, and can be switched
on the fly by pressing \f(CW\*(C`v\*(C'\fR and \f(CW\*(C`a\*(C'\fR.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.PP
The following examples all make use of the \fBffplay\fR and
\&\fBffmpeg\fR tools.
.IP \(bu 4
Watch a stream over UDP, with a max reordering delay of 0.5 seconds:
.Sp
.Vb 1
\&        ffplay \-max_delay 500000 \-rtsp_transport udp rtsp://server/video.mp4
.Ve
.IP \(bu 4
Watch a stream tunneled over HTTP:
.Sp
.Vb 1
\&        ffplay \-rtsp_transport http rtsp://server/video.mp4
.Ve
.IP \(bu 4
Send a stream in realtime to a RTSP server, for others to watch:
.Sp
.Vb 1
\&        ffmpeg \-re \-i <input> \-f rtsp \-muxdelay 0.1 rtsp://server/live.sdp
.Ve
.IP \(bu 4
Receive a stream in realtime:
.Sp
.Vb 1
\&        ffmpeg \-rtsp_flags listen \-i rtsp://ownaddress/live.sdp <output>
.Ve
.SS sap
.IX Subsection "sap"
Session Announcement Protocol (RFC 2974). This is not technically a
protocol handler in libavformat, it is a muxer and demuxer.
It is used for signalling of RTP streams, by announcing the SDP for the
streams regularly on a separate port.
.PP
\fIMuxer\fR
.IX Subsection "Muxer"
.PP
The syntax for a SAP url given to the muxer is:
.PP
.Vb 1
\&        sap://<destination>[:<port>][?<options>]
.Ve
.PP
The RTP packets are sent to \fIdestination\fR on port \fIport\fR,
or to port 5004 if no port is specified.
\&\fIoptions\fR is a \f(CW\*(C`&\*(C'\fR\-separated list. The following options
are supported:
.IP \fBannounce_addr=\fR\fIaddress\fR 4
.IX Item "announce_addr=address"
Specify the destination IP address for sending the announcements to.
If omitted, the announcements are sent to the commonly used SAP
announcement multicast address 224.2.127.254 (sap.mcast.net), or
ff0e::2:7ffe if \fIdestination\fR is an IPv6 address.
.IP \fBannounce_port=\fR\fIport\fR 4
.IX Item "announce_port=port"
Specify the port to send the announcements on, defaults to
9875 if not specified.
.IP \fBttl=\fR\fIttl\fR 4
.IX Item "ttl=ttl"
Specify the time to live value for the announcements and RTP packets,
defaults to 255.
.IP \fBsame_port=\fR\fI0|1\fR 4
.IX Item "same_port=0|1"
If set to 1, send all RTP streams on the same port pair. If zero (the
default), all streams are sent on unique ports, with each stream on a
port 2 numbers higher than the previous.
VLC/Live555 requires this to be set to 1, to be able to receive the stream.
The RTP stack in libavformat for receiving requires all streams to be sent
on unique ports.
.PP
Example command lines follow.
.PP
To broadcast a stream on the local subnet, for watching in VLC:
.PP
.Vb 1
\&        ffmpeg \-re \-i <input> \-f sap sap://224.0.0.255?same_port=1
.Ve
.PP
Similarly, for watching in \fBffplay\fR:
.PP
.Vb 1
\&        ffmpeg \-re \-i <input> \-f sap sap://224.0.0.255
.Ve
.PP
And for watching in \fBffplay\fR, over IPv6:
.PP
.Vb 1
\&        ffmpeg \-re \-i <input> \-f sap sap://[ff0e::1:2:3:4]
.Ve
.PP
\fIDemuxer\fR
.IX Subsection "Demuxer"
.PP
The syntax for a SAP url given to the demuxer is:
.PP
.Vb 1
\&        sap://[<address>][:<port>]
.Ve
.PP
\&\fIaddress\fR is the multicast address to listen for announcements on,
if omitted, the default 224.2.127.254 (sap.mcast.net) is used. \fIport\fR
is the port that is listened on, 9875 if omitted.
.PP
The demuxers listens for announcements on the given address and port.
Once an announcement is received, it tries to receive that particular stream.
.PP
Example command lines follow.
.PP
To play back the first stream announced on the normal SAP multicast address:
.PP
.Vb 1
\&        ffplay sap://
.Ve
.PP
To play back the first stream announced on one the default IPv6 SAP multicast address:
.PP
.Vb 1
\&        ffplay sap://[ff0e::2:7ffe]
.Ve
.SS sctp
.IX Subsection "sctp"
Stream Control Transmission Protocol.
.PP
The accepted URL syntax is:
.PP
.Vb 1
\&        sctp://<host>:<port>[?<options>]
.Ve
.PP
The protocol accepts the following options:
.IP \fBlisten\fR 4
.IX Item "listen"
If set to any value, listen for an incoming connection. Outgoing connection is done by default.
.IP \fBmax_streams\fR 4
.IX Item "max_streams"
Set the maximum number of streams. By default no limit is set.
.SS srt
.IX Subsection "srt"
Haivision Secure Reliable Transport Protocol via libsrt.
.PP
The supported syntax for a SRT URL is:
.PP
.Vb 1
\&        srt://<hostname>:<port>[?<options>]
.Ve
.PP
\&\fIoptions\fR contains a list of &\-separated options of the form
\&\fIkey\fR=\fIval\fR.
.PP
or
.PP
.Vb 1
\&        <options> srt://<hostname>:<port>
.Ve
.PP
\&\fIoptions\fR contains a list of '\-\fIkey\fR \fIval\fR'
options.
.PP
This protocol accepts the following options.
.IP \fBconnect_timeout=\fR\fImilliseconds\fR 4
.IX Item "connect_timeout=milliseconds"
Connection timeout; SRT cannot connect for RTT > 1500 msec
(2 handshake exchanges) with the default connect timeout of
3 seconds. This option applies to the caller and rendezvous
connection modes. The connect timeout is 10 times the value
set for the rendezvous mode (which can be used as a
workaround for this connection problem with earlier versions).
.IP \fBffs=\fR\fIbytes\fR 4
.IX Item "ffs=bytes"
Flight Flag Size (Window Size), in bytes. FFS is actually an
internal parameter and you should set it to not less than
\&\fBrecv_buffer_size\fR and \fBmss\fR. The default value
is relatively large, therefore unless you set a very large receiver buffer,
you do not need to change this option. Default value is 25600.
.IP \fBinputbw=\fR\fIbytes/seconds\fR 4
.IX Item "inputbw=bytes/seconds"
Sender nominal input rate, in bytes per seconds. Used along with
\&\fBoheadbw\fR, when \fBmaxbw\fR is set to relative (0), to
calculate maximum sending rate when recovery packets are sent
along with the main media stream:
\&\fBinputbw\fR * (100 + \fBoheadbw\fR) / 100
if \fBinputbw\fR is not set while \fBmaxbw\fR is set to
relative (0), the actual input rate is evaluated inside
the library. Default value is 0.
.IP \fBiptos=\fR\fItos\fR 4
.IX Item "iptos=tos"
IP Type of Service. Applies to sender only. Default value is 0xB8.
.IP \fBipttl=\fR\fIttl\fR 4
.IX Item "ipttl=ttl"
IP Time To Live. Applies to sender only. Default value is 64.
.IP \fBlatency=\fR\fImicroseconds\fR 4
.IX Item "latency=microseconds"
Timestamp-based Packet Delivery Delay.
Used to absorb bursts of missed packet retransmissions.
This flag sets both \fBrcvlatency\fR and \fBpeerlatency\fR
to the same value. Note that prior to version 1.3.0
this is the only flag to set the latency, however
this is effectively equivalent to setting \fBpeerlatency\fR,
when side is sender and \fBrcvlatency\fR
when side is receiver, and the bidirectional stream
sending is not supported.
.IP \fBlisten_timeout=\fR\fImicroseconds\fR 4
.IX Item "listen_timeout=microseconds"
Set socket listen timeout.
.IP \fBmaxbw=\fR\fIbytes/seconds\fR 4
.IX Item "maxbw=bytes/seconds"
Maximum sending bandwidth, in bytes per seconds.
\&\-1 infinite (CSRTCC limit is 30mbps)
0 relative to input rate (see \fBinputbw\fR)
>0 absolute limit value
Default value is 0 (relative)
.IP \fBmode=\fR\fIcaller|listener|rendezvous\fR 4
.IX Item "mode=caller|listener|rendezvous"
Connection mode.
\&\fBcaller\fR opens client connection.
\&\fBlistener\fR starts server to listen for incoming connections.
\&\fBrendezvous\fR use Rendez-Vous connection mode.
Default value is caller.
.IP \fBmss=\fR\fIbytes\fR 4
.IX Item "mss=bytes"
Maximum Segment Size, in bytes. Used for buffer allocation
and rate calculation using a packet counter assuming fully
filled packets. The smallest MSS between the peers is
used. This is 1500 by default in the overall internet.
This is the maximum size of the UDP packet and can be
only decreased, unless you have some unusual dedicated
network settings. Default value is 1500.
.IP \fBnakreport=\fR\fI1|0\fR 4
.IX Item "nakreport=1|0"
If set to 1, Receiver will send `UMSG_LOSSREPORT` messages
periodically until a lost packet is retransmitted or
intentionally dropped. Default value is 1.
.IP \fBoheadbw=\fR\fIpercents\fR 4
.IX Item "oheadbw=percents"
Recovery bandwidth overhead above input rate, in percents.
See \fBinputbw\fR. Default value is 25%.
.IP \fBpassphrase=\fR\fIstring\fR 4
.IX Item "passphrase=string"
HaiCrypt Encryption/Decryption Passphrase string, length
from 10 to 79 characters. The passphrase is the shared
secret between the sender and the receiver. It is used
to generate the Key Encrypting Key using PBKDF2
(Password-Based Key Derivation Function). It is used
only if \fBpbkeylen\fR is non-zero. It is used on
the receiver only if the received data is encrypted.
The configured passphrase cannot be recovered (write-only).
.IP \fBenforced_encryption=\fR\fI1|0\fR 4
.IX Item "enforced_encryption=1|0"
If true, both connection parties must have the same password
set (including empty, that is, with no encryption). If the
password doesn't match or only one side is unencrypted,
the connection is rejected. Default is true.
.IP \fBkmrefreshrate=\fR\fIpackets\fR 4
.IX Item "kmrefreshrate=packets"
The number of packets to be transmitted after which the
encryption key is switched to a new key. Default is \-1.
\&\-1 means auto (0x1000000 in srt library). The range for
this option is integers in the 0 \- \f(CW\*(C`INT_MAX\*(C'\fR.
.IP \fBkmpreannounce=\fR\fIpackets\fR 4
.IX Item "kmpreannounce=packets"
The interval between when a new encryption key is sent and
when switchover occurs. This value also applies to the
subsequent interval between when switchover occurs and
when the old encryption key is decommissioned. Default is \-1.
\&\-1 means auto (0x1000 in srt library). The range for
this option is integers in the 0 \- \f(CW\*(C`INT_MAX\*(C'\fR.
.IP \fBpayload_size=\fR\fIbytes\fR 4
.IX Item "payload_size=bytes"
Sets the maximum declared size of a packet transferred
during the single call to the sending function in Live
mode. Use 0 if this value isn't used (which is default in
file mode).
Default is \-1 (automatic), which typically means MPEG-TS;
if you are going to use SRT
to send any different kind of payload, such as, for example,
wrapping a live stream in very small frames, then you can
use a bigger maximum frame size, though not greater than
1456 bytes.
.IP \fBpkt_size=\fR\fIbytes\fR 4
.IX Item "pkt_size=bytes"
Alias for \fBpayload_size\fR.
.IP \fBpeerlatency=\fR\fImicroseconds\fR 4
.IX Item "peerlatency=microseconds"
The latency value (as described in \fBrcvlatency\fR) that is
set by the sender side as a minimum value for the receiver.
.IP \fBpbkeylen=\fR\fIbytes\fR 4
.IX Item "pbkeylen=bytes"
Sender encryption key length, in bytes.
Only can be set to 0, 16, 24 and 32.
Enable sender encryption if not 0.
Not required on receiver (set to 0),
key size obtained from sender in HaiCrypt handshake.
Default value is 0.
.IP \fBrcvlatency=\fR\fImicroseconds\fR 4
.IX Item "rcvlatency=microseconds"
The time that should elapse since the moment when the
packet was sent and the moment when it's delivered to
the receiver application in the receiving function.
This time should be a buffer time large enough to cover
the time spent for sending, unexpectedly extended RTT
time, and the time needed to retransmit the lost UDP
packet. The effective latency value will be the maximum
of this options' value and the value of \fBpeerlatency\fR
set by the peer side. Before version 1.3.0 this option
is only available as \fBlatency\fR.
.IP \fBrecv_buffer_size=\fR\fIbytes\fR 4
.IX Item "recv_buffer_size=bytes"
Set UDP receive buffer size, expressed in bytes.
.IP \fBsend_buffer_size=\fR\fIbytes\fR 4
.IX Item "send_buffer_size=bytes"
Set UDP send buffer size, expressed in bytes.
.IP \fBtimeout=\fR\fImicroseconds\fR 4
.IX Item "timeout=microseconds"
Set raise error timeouts for read, write and connect operations. Note that the
SRT library has internal timeouts which can be controlled separately, the
value set here is only a cap on those.
.IP \fBtlpktdrop=\fR\fI1|0\fR 4
.IX Item "tlpktdrop=1|0"
Too-late Packet Drop. When enabled on receiver, it skips
missing packets that have not been delivered in time and
delivers the following packets to the application when
their time-to-play has come. It also sends a fake ACK to
the sender. When enabled on sender and enabled on the
receiving peer, the sender drops the older packets that
have no chance of being delivered in time. It was
automatically enabled in the sender if the receiver
supports it.
.IP \fBsndbuf=\fR\fIbytes\fR 4
.IX Item "sndbuf=bytes"
Set send buffer size, expressed in bytes.
.IP \fBrcvbuf=\fR\fIbytes\fR 4
.IX Item "rcvbuf=bytes"
Set receive buffer size, expressed in bytes.
.Sp
Receive buffer must not be greater than \fBffs\fR.
.IP \fBlossmaxttl=\fR\fIpackets\fR 4
.IX Item "lossmaxttl=packets"
The value up to which the Reorder Tolerance may grow. When
Reorder Tolerance is > 0, then packet loss report is delayed
until that number of packets come in. Reorder Tolerance
increases every time a "belated" packet has come, but it
wasn't due to retransmission (that is, when UDP packets tend
to come out of order), with the difference between the latest
sequence and this packet's sequence, and not more than the
value of this option. By default it's 0, which means that this
mechanism is turned off, and the loss report is always sent
immediately upon experiencing a "gap" in sequences.
.IP \fBminversion\fR 4
.IX Item "minversion"
The minimum SRT version that is required from the peer. A connection
to a peer that does not satisfy the minimum version requirement
will be rejected.
.Sp
The version format in hex is 0xXXYYZZ for x.y.z in human readable
form.
.IP \fBstreamid=\fR\fIstring\fR 4
.IX Item "streamid=string"
A string limited to 512 characters that can be set on the socket prior
to connecting. This stream ID will be able to be retrieved by the
listener side from the socket that is returned from srt_accept and
was connected by a socket with that set stream ID. SRT does not enforce
any special interpretation of the contents of this string.
This option doesn’t make sense in Rendezvous connection; the result
might be that simply one side will override the value from the other
side and it’s the matter of luck which one would win
.IP \fBsmoother=\fR\fIlive|file\fR 4
.IX Item "smoother=live|file"
The type of Smoother used for the transmission for that socket, which
is responsible for the transmission and congestion control. The Smoother
type must be exactly the same on both connecting parties, otherwise
the connection is rejected.
.IP \fBmessageapi=\fR\fI1|0\fR 4
.IX Item "messageapi=1|0"
When set, this socket uses the Message API, otherwise it uses Buffer
API. Note that in live mode (see \fBtranstype\fR) there’s only
message API available. In File mode you can chose to use one of two modes:
.Sp
Stream API (default, when this option is false). In this mode you may
send as many data as you wish with one sending instruction, or even use
dedicated functions that read directly from a file. The internal facility
will take care of any speed and congestion control. When receiving, you
can also receive as many data as desired, the data not extracted will be
waiting for the next call. There is no boundary between data portions in
the Stream mode.
.Sp
Message API. In this mode your single sending instruction passes exactly
one piece of data that has boundaries (a message). Contrary to Live mode,
this message may span across multiple UDP packets and the only size
limitation is that it shall fit as a whole in the sending buffer. The
receiver shall use as large buffer as necessary to receive the message,
otherwise the message will not be given up. When the message is not
complete (not all packets received or there was a packet loss) it will
not be given up.
.IP \fBtranstype=\fR\fIlive|file\fR 4
.IX Item "transtype=live|file"
Sets the transmission type for the socket, in particular, setting this
option sets multiple other parameters to their default values as required
for a particular transmission type.
.Sp
live: Set options as for live transmission. In this mode, you should
send by one sending instruction only so many data that fit in one UDP packet,
and limited to the value defined first in \fBpayload_size\fR (1316 is
default in this mode). There is no speed control in this mode, only the
bandwidth control, if configured, in order to not exceed the bandwidth with
the overhead transmission (retransmitted and control packets).
.Sp
file: Set options as for non-live transmission. See \fBmessageapi\fR
for further explanations
.IP \fBlinger=\fR\fIseconds\fR 4
.IX Item "linger=seconds"
The number of seconds that the socket waits for unsent data when closing.
Default is \-1. \-1 means auto (off with 0 seconds in live mode, on with 180
seconds in file mode). The range for this option is integers in the
0 \- \f(CW\*(C`INT_MAX\*(C'\fR.
.PP
For more information see: <\fBhttps://github.com/Haivision/srt\fR>.
.SS srtp
.IX Subsection "srtp"
Secure Real-time Transport Protocol.
.PP
The accepted options are:
.IP \fBsrtp_in_suite\fR 4
.IX Item "srtp_in_suite"
.PD 0
.IP \fBsrtp_out_suite\fR 4
.IX Item "srtp_out_suite"
.PD
Select input and output encoding suites.
.Sp
Supported values:
.RS 4
.IP \fBAES_CM_128_HMAC_SHA1_80\fR 4
.IX Item "AES_CM_128_HMAC_SHA1_80"
.PD 0
.IP \fBSRTP_AES128_CM_HMAC_SHA1_80\fR 4
.IX Item "SRTP_AES128_CM_HMAC_SHA1_80"
.IP \fBAES_CM_128_HMAC_SHA1_32\fR 4
.IX Item "AES_CM_128_HMAC_SHA1_32"
.IP \fBSRTP_AES128_CM_HMAC_SHA1_32\fR 4
.IX Item "SRTP_AES128_CM_HMAC_SHA1_32"
.RE
.RS 4
.RE
.IP \fBsrtp_in_params\fR 4
.IX Item "srtp_in_params"
.IP \fBsrtp_out_params\fR 4
.IX Item "srtp_out_params"
.PD
Set input and output encoding parameters, which are expressed by a
base64\-encoded representation of a binary block. The first 16 bytes of
this binary block are used as master key, the following 14 bytes are
used as master salt.
.SS subfile
.IX Subsection "subfile"
Virtually extract a segment of a file or another stream.
The underlying stream must be seekable.
.PP
Accepted options:
.IP \fBstart\fR 4
.IX Item "start"
Start offset of the extracted segment, in bytes.
.IP \fBend\fR 4
.IX Item "end"
End offset of the extracted segment, in bytes.
If set to 0, extract till end of file.
.PP
Examples:
.PP
Extract a chapter from a DVD VOB file (start and end sectors obtained
externally and multiplied by 2048):
.PP
.Vb 1
\&        subfile,,start,153391104,end,268142592,,:/media/dvd/VIDEO_TS/VTS_08_1.VOB
.Ve
.PP
Play an AVI file directly from a TAR archive:
.PP
.Vb 1
\&        subfile,,start,183241728,end,366490624,,:archive.tar
.Ve
.PP
Play a MPEG-TS file from start offset till end:
.PP
.Vb 1
\&        subfile,,start,32815239,end,0,,:video.ts
.Ve
.SS tee
.IX Subsection "tee"
Writes the output to multiple protocols. The individual outputs are separated
by |
.PP
.Vb 1
\&        tee:file://path/to/local/this.avi|file://path/to/local/that.avi
.Ve
.SS tcp
.IX Subsection "tcp"
Transmission Control Protocol.
.PP
The required syntax for a TCP url is:
.PP
.Vb 1
\&        tcp://<hostname>:<port>[?<options>]
.Ve
.PP
\&\fIoptions\fR contains a list of &\-separated options of the form
\&\fIkey\fR=\fIval\fR.
.PP
The list of supported options follows.
.IP \fBlisten=\fR\fI2|1|0\fR 4
.IX Item "listen=2|1|0"
Listen for an incoming connection. 0 disables listen, 1 enables listen in
single client mode, 2 enables listen in multi-client mode. Default value is 0.
.IP \fBtimeout=\fR\fImicroseconds\fR 4
.IX Item "timeout=microseconds"
Set raise error timeout, expressed in microseconds.
.Sp
This option is only relevant in read mode: if no data arrived in more
than this time interval, raise error.
.IP \fBlisten_timeout=\fR\fImilliseconds\fR 4
.IX Item "listen_timeout=milliseconds"
Set listen timeout, expressed in milliseconds.
.IP \fBrecv_buffer_size=\fR\fIbytes\fR 4
.IX Item "recv_buffer_size=bytes"
Set receive buffer size, expressed bytes.
.IP \fBsend_buffer_size=\fR\fIbytes\fR 4
.IX Item "send_buffer_size=bytes"
Set send buffer size, expressed bytes.
.IP \fBtcp_nodelay=\fR\fI1|0\fR 4
.IX Item "tcp_nodelay=1|0"
Set TCP_NODELAY to disable Nagle's algorithm. Default value is 0.
.IP \fBtcp_mss=\fR\fIbytes\fR 4
.IX Item "tcp_mss=bytes"
Set maximum segment size for outgoing TCP packets, expressed in bytes.
.PP
The following example shows how to setup a listening TCP connection
with \fBffmpeg\fR, which is then accessed with \fBffplay\fR:
.PP
.Vb 2
\&        ffmpeg \-i <input> \-f <format> tcp://<hostname>:<port>?listen
\&        ffplay tcp://<hostname>:<port>
.Ve
.SS tls
.IX Subsection "tls"
Transport Layer Security (TLS) / Secure Sockets Layer (SSL)
.PP
The required syntax for a TLS/SSL url is:
.PP
.Vb 1
\&        tls://<hostname>:<port>[?<options>]
.Ve
.PP
The following parameters can be set via command line options
(or in code via \f(CW\*(C`AVOption\*(C'\fRs):
.IP "\fBca_file, cafile=\fR\fIfilename\fR" 4
.IX Item "ca_file, cafile=filename"
A file containing certificate authority (CA) root certificates to treat
as trusted. If the linked TLS library contains a default this might not
need to be specified for verification to work, but not all libraries and
setups have defaults built in.
The file must be in OpenSSL PEM format.
.IP \fBtls_verify=\fR\fI1|0\fR 4
.IX Item "tls_verify=1|0"
If enabled, try to verify the peer that we are communicating with.
Note, if using OpenSSL, this currently only makes sure that the
peer certificate is signed by one of the root certificates in the CA
database, but it does not validate that the certificate actually
matches the host name we are trying to connect to. (With other backends,
the host name is validated as well.)
.Sp
This is disabled by default since it requires a CA database to be
provided by the caller in many cases.
.IP "\fBcert_file, cert=\fR\fIfilename\fR" 4
.IX Item "cert_file, cert=filename"
A file containing a certificate to use in the handshake with the peer.
(When operating as server, in listen mode, this is more often required
by the peer, while client certificates only are mandated in certain
setups.)
.IP "\fBkey_file, key=\fR\fIfilename\fR" 4
.IX Item "key_file, key=filename"
A file containing the private key for the certificate.
.IP \fBlisten=\fR\fI1|0\fR 4
.IX Item "listen=1|0"
If enabled, listen for connections on the provided port, and assume
the server role in the handshake instead of the client role.
.IP \fBhttp_proxy\fR 4
.IX Item "http_proxy"
The HTTP proxy to tunnel through, e.g. \f(CW\*(C`http://example.com:1234\*(C'\fR.
The proxy must support the CONNECT method.
.PP
Example command lines:
.PP
To create a TLS/SSL server that serves an input stream.
.PP
.Vb 1
\&        ffmpeg \-i <input> \-f <format> tls://<hostname>:<port>?listen&cert=<server.crt>&key=<server.key>
.Ve
.PP
To play back a stream from the TLS/SSL server using \fBffplay\fR:
.PP
.Vb 1
\&        ffplay tls://<hostname>:<port>
.Ve
.SS udp
.IX Subsection "udp"
User Datagram Protocol.
.PP
The required syntax for an UDP URL is:
.PP
.Vb 1
\&        udp://<hostname>:<port>[?<options>]
.Ve
.PP
\&\fIoptions\fR contains a list of &\-separated options of the form \fIkey\fR=\fIval\fR.
.PP
In case threading is enabled on the system, a circular buffer is used
to store the incoming data, which allows one to reduce loss of data due to
UDP socket buffer overruns. The \fIfifo_size\fR and
\&\fIoverrun_nonfatal\fR options are related to this buffer.
.PP
The list of supported options follows.
.IP \fBbuffer_size=\fR\fIsize\fR 4
.IX Item "buffer_size=size"
Set the UDP maximum socket buffer size in bytes. This is used to set either
the receive or send buffer size, depending on what the socket is used for.
Default is 32 KB for output, 384 KB for input.  See also \fIfifo_size\fR.
.IP \fBbitrate=\fR\fIbitrate\fR 4
.IX Item "bitrate=bitrate"
If set to nonzero, the output will have the specified constant bitrate if the
input has enough packets to sustain it.
.IP \fBburst_bits=\fR\fIbits\fR 4
.IX Item "burst_bits=bits"
When using \fIbitrate\fR this specifies the maximum number of bits in
packet bursts.
.IP \fBlocalport=\fR\fIport\fR 4
.IX Item "localport=port"
Override the local UDP port to bind with.
.IP \fBlocaladdr=\fR\fIaddr\fR 4
.IX Item "localaddr=addr"
Local IP address of a network interface used for sending packets or joining
multicast groups.
.IP \fBpkt_size=\fR\fIsize\fR 4
.IX Item "pkt_size=size"
Set the size in bytes of UDP packets.
.IP \fBreuse=\fR\fI1|0\fR 4
.IX Item "reuse=1|0"
Explicitly allow or disallow reusing UDP sockets.
.IP \fBttl=\fR\fIttl\fR 4
.IX Item "ttl=ttl"
Set the time to live value (for multicast only).
.IP \fBconnect=\fR\fI1|0\fR 4
.IX Item "connect=1|0"
Initialize the UDP socket with \f(CWconnect()\fR. In this case, the
destination address can't be changed with ff_udp_set_remote_url later.
If the destination address isn't known at the start, this option can
be specified in ff_udp_set_remote_url, too.
This allows finding out the source address for the packets with getsockname,
and makes writes return with AVERROR(ECONNREFUSED) if "destination
unreachable" is received.
For receiving, this gives the benefit of only receiving packets from
the specified peer address/port.
.IP \fBsources=\fR\fIaddress\fR\fB[,\fR\fIaddress\fR\fB]\fR 4
.IX Item "sources=address[,address]"
Only receive packets sent from the specified addresses. In case of multicast,
also subscribe to multicast traffic coming from these addresses only.
.IP \fBblock=\fR\fIaddress\fR\fB[,\fR\fIaddress\fR\fB]\fR 4
.IX Item "block=address[,address]"
Ignore packets sent from the specified addresses. In case of multicast, also
exclude the source addresses in the multicast subscription.
.IP \fBfifo_size=\fR\fIunits\fR 4
.IX Item "fifo_size=units"
Set the UDP receiving circular buffer size, expressed as a number of
packets with size of 188 bytes. If not specified defaults to 7*4096.
.IP \fBoverrun_nonfatal=\fR\fI1|0\fR 4
.IX Item "overrun_nonfatal=1|0"
Survive in case of UDP receiving circular buffer overrun. Default
value is 0.
.IP \fBtimeout=\fR\fImicroseconds\fR 4
.IX Item "timeout=microseconds"
Set raise error timeout, expressed in microseconds.
.Sp
This option is only relevant in read mode: if no data arrived in more
than this time interval, raise error.
.IP \fBbroadcast=\fR\fI1|0\fR 4
.IX Item "broadcast=1|0"
Explicitly allow or disallow UDP broadcasting.
.Sp
Note that broadcasting may not work properly on networks having
a broadcast storm protection.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Use \fBffmpeg\fR to stream over UDP to a remote endpoint:
.Sp
.Vb 1
\&        ffmpeg \-i <input> \-f <format> udp://<hostname>:<port>
.Ve
.IP \(bu 4
Use \fBffmpeg\fR to stream in mpegts format over UDP using 188
sized UDP packets, using a large input buffer:
.Sp
.Vb 1
\&        ffmpeg \-i <input> \-f mpegts udp://<hostname>:<port>?pkt_size=188&buffer_size=65535
.Ve
.IP \(bu 4
Use \fBffmpeg\fR to receive over UDP from a remote endpoint:
.Sp
.Vb 1
\&        ffmpeg \-i udp://[<multicast\-address>]:<port> ...
.Ve
.SS unix
.IX Subsection "unix"
Unix local socket
.PP
The required syntax for a Unix socket URL is:
.PP
.Vb 1
\&        unix://<filepath>
.Ve
.PP
The following parameters can be set via command line options
(or in code via \f(CW\*(C`AVOption\*(C'\fRs):
.IP \fBtimeout\fR 4
.IX Item "timeout"
Timeout in ms.
.IP \fBlisten\fR 4
.IX Item "listen"
Create the Unix socket in listening mode.
.SS zmq
.IX Subsection "zmq"
ZeroMQ asynchronous messaging using the libzmq library.
.PP
This library supports unicast streaming to multiple clients without relying on
an external server.
.PP
The required syntax for streaming or connecting to a stream is:
.PP
.Vb 1
\&        zmq:tcp://ip\-address:port
.Ve
.PP
Example:
Create a localhost stream on port 5555:
.PP
.Vb 1
\&        ffmpeg \-re \-i input \-f mpegts zmq:tcp://127.0.0.1:5555
.Ve
.PP
Multiple clients may connect to the stream using:
.PP
.Vb 1
\&        ffplay zmq:tcp://127.0.0.1:5555
.Ve
.PP
Streaming to multiple clients is implemented using a ZeroMQ Pub-Sub pattern.
The server side binds to a port and publishes data. Clients connect to the
server (via IP address/port) and subscribe to the stream. The order in which
the server and client start generally does not matter.
.PP
ffmpeg must be compiled with the \-\-enable\-libzmq option to support
this protocol.
.PP
Options can be set on the \fBffmpeg\fR/\fBffplay\fR command
line. The following options are supported:
.IP \fBpkt_size\fR 4
.IX Item "pkt_size"
Forces the maximum packet size for sending/receiving data. The default value is
131,072 bytes. On the server side, this sets the maximum size of sent packets
via ZeroMQ. On the clients, it sets an internal buffer size for receiving
packets. Note that pkt_size on the clients should be equal to or greater than
pkt_size on the server. Otherwise the received message may be truncated causing
decoding errors.
.SH "DEVICE OPTIONS"
.IX Header "DEVICE OPTIONS"
The libavdevice library provides the same interface as
libavformat. Namely, an input device is considered like a demuxer, and
an output device like a muxer, and the interface and generic device
options are the same provided by libavformat (see the ffmpeg-formats
manual).
.PP
In addition each input or output device may support so-called private
options, which are specific for that component.
.PP
Options may be set by specifying \-\fIoption\fR \fIvalue\fR in the
FFmpeg tools, or by setting the value explicitly in the device
\&\f(CW\*(C`AVFormatContext\*(C'\fR options or using the \fIlibavutil/opt.h\fR API
for programmatic use.
.SH "INPUT DEVICES"
.IX Header "INPUT DEVICES"
Input devices are configured elements in FFmpeg which enable accessing
the data coming from a multimedia device attached to your system.
.PP
When you configure your FFmpeg build, all the supported input devices
are enabled by default. You can list all available ones using the
configure option "\-\-list\-indevs".
.PP
You can disable all the input devices using the configure option
"\-\-disable\-indevs", and selectively enable an input device using the
option "\-\-enable\-indev=\fIINDEV\fR", or you can disable a particular
input device using the option "\-\-disable\-indev=\fIINDEV\fR".
.PP
The option "\-devices" of the ff* tools will display the list of
supported input devices.
.PP
A description of the currently available input devices follows.
.SS alsa
.IX Subsection "alsa"
ALSA (Advanced Linux Sound Architecture) input device.
.PP
To enable this input device during configuration you need libasound
installed on your system.
.PP
This device allows capturing from an ALSA device. The name of the
device to capture has to be an ALSA card identifier.
.PP
An ALSA identifier has the syntax:
.PP
.Vb 1
\&        hw:<CARD>[,<DEV>[,<SUBDEV>]]
.Ve
.PP
where the \fIDEV\fR and \fISUBDEV\fR components are optional.
.PP
The three arguments (in order: \fICARD\fR,\fIDEV\fR,\fISUBDEV\fR)
specify card number or identifier, device number and subdevice number
(\-1 means any).
.PP
To see the list of cards currently recognized by your system check the
files \fI/proc/asound/cards\fR and \fI/proc/asound/devices\fR.
.PP
For example to capture with \fBffmpeg\fR from an ALSA device with
card id 0, you may run the command:
.PP
.Vb 1
\&        ffmpeg \-f alsa \-i hw:0 alsaout.wav
.Ve
.PP
For more information see:
<\fBhttp://www.alsa\-project.org/alsa\-doc/alsa\-lib/pcm.html\fR>
.PP
\fIOptions\fR
.IX Subsection "Options"
.IP \fBsample_rate\fR 4
.IX Item "sample_rate"
Set the sample rate in Hz. Default is 48000.
.IP \fBchannels\fR 4
.IX Item "channels"
Set the number of channels. Default is 2.
.SS android_camera
.IX Subsection "android_camera"
Android camera input device.
.PP
This input devices uses the Android Camera2 NDK API which is
available on devices with API level 24+. The availability of
android_camera is autodetected during configuration.
.PP
This device allows capturing from all cameras on an Android device,
which are integrated into the Camera2 NDK API.
.PP
The available cameras are enumerated internally and can be selected
with the \fIcamera_index\fR parameter. The input file string is
discarded.
.PP
Generally the back facing camera has index 0 while the front facing
camera has index 1.
.PP
\fIOptions\fR
.IX Subsection "Options"
.IP \fBvideo_size\fR 4
.IX Item "video_size"
Set the video size given as a string such as 640x480 or hd720.
Falls back to the first available configuration reported by
Android if requested video size is not available or by default.
.IP \fBframerate\fR 4
.IX Item "framerate"
Set the video framerate.
Falls back to the first available configuration reported by
Android if requested framerate is not available or by default (\-1).
.IP \fBcamera_index\fR 4
.IX Item "camera_index"
Set the index of the camera to use. Default is 0.
.IP \fBinput_queue_size\fR 4
.IX Item "input_queue_size"
Set the maximum number of frames to buffer. Default is 5.
.SS avfoundation
.IX Subsection "avfoundation"
AVFoundation input device.
.PP
AVFoundation is the currently recommended framework by Apple for streamgrabbing on OSX >= 10.7 as well as on iOS.
.PP
The input filename has to be given in the following syntax:
.PP
.Vb 1
\&        \-i "[[VIDEO]:[AUDIO]]"
.Ve
.PP
The first entry selects the video input while the latter selects the audio input.
The stream has to be specified by the device name or the device index as shown by the device list.
Alternatively, the video and/or audio input device can be chosen by index using the
.PP
.Vb 1
\&    B<\-video_device_index E<lt>INDEXE<gt>>
.Ve
.PP
and/or
.PP
.Vb 1
\&    B<\-audio_device_index E<lt>INDEXE<gt>>
.Ve
.PP
, overriding any
device name or index given in the input filename.
.PP
All available devices can be enumerated by using \fB\-list_devices true\fR, listing
all device names and corresponding indices.
.PP
There are two device name aliases:
.ie n .IP """default""" 4
.el .IP \f(CWdefault\fR 4
.IX Item "default"
Select the AVFoundation default device of the corresponding type.
.ie n .IP """none""" 4
.el .IP \f(CWnone\fR 4
.IX Item "none"
Do not record the corresponding media type.
This is equivalent to specifying an empty device name or index.
.PP
\fIOptions\fR
.IX Subsection "Options"
.PP
AVFoundation supports the following options:
.IP "\fB\-list_devices <TRUE|FALSE>\fR" 4
.IX Item "-list_devices <TRUE|FALSE>"
If set to true, a list of all available input devices is given showing all
device names and indices.
.IP "\fB\-video_device_index <INDEX>\fR" 4
.IX Item "-video_device_index <INDEX>"
Specify the video device by its index. Overrides anything given in the input filename.
.IP "\fB\-audio_device_index <INDEX>\fR" 4
.IX Item "-audio_device_index <INDEX>"
Specify the audio device by its index. Overrides anything given in the input filename.
.IP "\fB\-pixel_format <FORMAT>\fR" 4
.IX Item "-pixel_format <FORMAT>"
Request the video device to use a specific pixel format.
If the specified format is not supported, a list of available formats is given
and the first one in this list is used instead. Available pixel formats are:
\&\f(CW\*(C`monob, rgb555be, rgb555le, rgb565be, rgb565le, rgb24, bgr24, 0rgb, bgr0, 0bgr, rgb0,
 bgr48be, uyvy422, yuva444p, yuva444p16le, yuv444p, yuv422p16, yuv422p10, yuv444p10,
 yuv420p, nv12, yuyv422, gray\*(C'\fR
.IP \fB\-framerate\fR 4
.IX Item "-framerate"
Set the grabbing frame rate. Default is \f(CW\*(C`ntsc\*(C'\fR, corresponding to a
frame rate of \f(CW\*(C`30000/1001\*(C'\fR.
.IP \fB\-video_size\fR 4
.IX Item "-video_size"
Set the video frame size.
.IP \fB\-capture_cursor\fR 4
.IX Item "-capture_cursor"
Capture the mouse pointer. Default is 0.
.IP \fB\-capture_mouse_clicks\fR 4
.IX Item "-capture_mouse_clicks"
Capture the screen mouse clicks. Default is 0.
.IP \fB\-capture_raw_data\fR 4
.IX Item "-capture_raw_data"
Capture the raw device data. Default is 0.
Using this option may result in receiving the underlying data delivered to the AVFoundation framework. E.g. for muxed devices that sends raw DV data to the framework (like tape-based camcorders), setting this option to false results in extracted video frames captured in the designated pixel format only. Setting this option to true results in receiving the raw DV stream untouched.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Print the list of AVFoundation supported devices and exit:
.Sp
.Vb 1
\&        $ ffmpeg \-f avfoundation \-list_devices true \-i ""
.Ve
.IP \(bu 4
Record video from video device 0 and audio from audio device 0 into out.avi:
.Sp
.Vb 1
\&        $ ffmpeg \-f avfoundation \-i "0:0" out.avi
.Ve
.IP \(bu 4
Record video from video device 2 and audio from audio device 1 into out.avi:
.Sp
.Vb 1
\&        $ ffmpeg \-f avfoundation \-video_device_index 2 \-i ":1" out.avi
.Ve
.IP \(bu 4
Record video from the system default video device using the pixel format bgr0 and do not record any audio into out.avi:
.Sp
.Vb 1
\&        $ ffmpeg \-f avfoundation \-pixel_format bgr0 \-i "default:none" out.avi
.Ve
.IP \(bu 4
Record raw DV data from a suitable input device and write the output into out.dv:
.Sp
.Vb 1
\&        $ ffmpeg \-f avfoundation \-capture_raw_data true \-i "zr100:none" out.dv
.Ve
.SS bktr
.IX Subsection "bktr"
BSD video input device.
.PP
\fIOptions\fR
.IX Subsection "Options"
.IP \fBframerate\fR 4
.IX Item "framerate"
Set the frame rate.
.IP \fBvideo_size\fR 4
.IX Item "video_size"
Set the video frame size. Default is \f(CW\*(C`vga\*(C'\fR.
.IP \fBstandard\fR 4
.IX Item "standard"
Available values are:
.RS 4
.IP \fBpal\fR 4
.IX Item "pal"
.PD 0
.IP \fBntsc\fR 4
.IX Item "ntsc"
.IP \fBsecam\fR 4
.IX Item "secam"
.IP \fBpaln\fR 4
.IX Item "paln"
.IP \fBpalm\fR 4
.IX Item "palm"
.IP \fBntscj\fR 4
.IX Item "ntscj"
.RE
.RS 4
.RE
.PD
.SS decklink
.IX Subsection "decklink"
The decklink input device provides capture capabilities for Blackmagic
DeckLink devices.
.PP
To enable this input device, you need the Blackmagic DeckLink SDK and you
need to configure with the appropriate \f(CW\*(C`\-\-extra\-cflags\*(C'\fR
and \f(CW\*(C`\-\-extra\-ldflags\*(C'\fR.
On Windows, you need to run the IDL files through \fBwidl\fR.
.PP
DeckLink is very picky about the formats it supports. Pixel format of the
input can be set with \fBraw_format\fR.
Framerate and video size must be determined for your device with
\&\fB\-list_formats 1\fR. Audio sample rate is always 48 kHz and the number
of channels can be 2, 8 or 16. Note that all audio channels are bundled in one single
audio track.
.PP
\fIOptions\fR
.IX Subsection "Options"
.IP \fBlist_devices\fR 4
.IX Item "list_devices"
If set to \fBtrue\fR, print a list of devices and exit.
Defaults to \fBfalse\fR. This option is deprecated, please use the
\&\f(CW\*(C`\-sources\*(C'\fR option of ffmpeg to list the available input devices.
.IP \fBlist_formats\fR 4
.IX Item "list_formats"
If set to \fBtrue\fR, print a list of supported formats and exit.
Defaults to \fBfalse\fR.
.IP "\fBformat_code <FourCC>\fR" 4
.IX Item "format_code <FourCC>"
This sets the input video format to the format given by the FourCC. To see
the supported values of your device(s) use \fBlist_formats\fR.
Note that there is a FourCC \fB'pal '\fR that can also be used
as \fBpal\fR (3 letters).
Default behavior is autodetection of the input video format, if the hardware
supports it.
.IP \fBraw_format\fR 4
.IX Item "raw_format"
Set the pixel format of the captured video.
Available values are:
.RS 4
.IP \fBauto\fR 4
.IX Item "auto"
This is the default which means 8\-bit YUV 422 or 8\-bit ARGB if format
autodetection is used, 8\-bit YUV 422 otherwise.
.IP \fBuyvy422\fR 4
.IX Item "uyvy422"
8\-bit YUV 422.
.IP \fByuv422p10\fR 4
.IX Item "yuv422p10"
10\-bit YUV 422.
.IP \fBargb\fR 4
.IX Item "argb"
8\-bit RGB.
.IP \fBbgra\fR 4
.IX Item "bgra"
8\-bit RGB.
.IP \fBrgb10\fR 4
.IX Item "rgb10"
10\-bit RGB.
.RE
.RS 4
.RE
.IP \fBteletext_lines\fR 4
.IX Item "teletext_lines"
If set to nonzero, an additional teletext stream will be captured from the
vertical ancillary data. Both SD PAL (576i) and HD (1080i or 1080p)
sources are supported. In case of HD sources, OP47 packets are decoded.
.Sp
This option is a bitmask of the SD PAL VBI lines captured, specifically lines 6
to 22, and lines 318 to 335. Line 6 is the LSB in the mask. Selected lines
which do not contain teletext information will be ignored. You can use the
special \fBall\fR constant to select all possible lines, or
\&\fBstandard\fR to skip lines 6, 318 and 319, which are not compatible with
all receivers.
.Sp
For SD sources, ffmpeg needs to be compiled with \f(CW\*(C`\-\-enable\-libzvbi\*(C'\fR. For
HD sources, on older (pre\-4K) DeckLink card models you have to capture in 10
bit mode.
.IP \fBchannels\fR 4
.IX Item "channels"
Defines number of audio channels to capture. Must be \fB2\fR, \fB8\fR or \fB16\fR.
Defaults to \fB2\fR.
.IP \fBduplex_mode\fR 4
.IX Item "duplex_mode"
Sets the decklink device duplex mode. Must be \fBunset\fR, \fBhalf\fR or \fBfull\fR.
Defaults to \fBunset\fR.
.IP \fBtimecode_format\fR 4
.IX Item "timecode_format"
Timecode type to include in the frame and video stream metadata. Must be
\&\fBnone\fR, \fBrp188vitc\fR, \fBrp188vitc2\fR, \fBrp188ltc\fR,
\&\fBrp188hfr\fR, \fBrp188any\fR, \fBvitc\fR, \fBvitc2\fR, or \fBserial\fR.
Defaults to \fBnone\fR (not included).
.Sp
In order to properly support 50/60 fps timecodes, the ordering of the queried
timecode types for \fBrp188any\fR is HFR, VITC1, VITC2 and LTC for >30 fps
content. Note that this is slightly different to the ordering used by the
DeckLink API, which is HFR, VITC1, LTC, VITC2.
.IP \fBvideo_input\fR 4
.IX Item "video_input"
Sets the video input source. Must be \fBunset\fR, \fBsdi\fR, \fBhdmi\fR,
\&\fBoptical_sdi\fR, \fBcomponent\fR, \fBcomposite\fR or \fBs_video\fR.
Defaults to \fBunset\fR.
.IP \fBaudio_input\fR 4
.IX Item "audio_input"
Sets the audio input source. Must be \fBunset\fR, \fBembedded\fR,
\&\fBaes_ebu\fR, \fBanalog\fR, \fBanalog_xlr\fR, \fBanalog_rca\fR or
\&\fBmicrophone\fR. Defaults to \fBunset\fR.
.IP \fBvideo_pts\fR 4
.IX Item "video_pts"
Sets the video packet timestamp source. Must be \fBvideo\fR, \fBaudio\fR,
\&\fBreference\fR, \fBwallclock\fR or \fBabs_wallclock\fR.
Defaults to \fBvideo\fR.
.IP \fBaudio_pts\fR 4
.IX Item "audio_pts"
Sets the audio packet timestamp source. Must be \fBvideo\fR, \fBaudio\fR,
\&\fBreference\fR, \fBwallclock\fR or \fBabs_wallclock\fR.
Defaults to \fBaudio\fR.
.IP \fBdraw_bars\fR 4
.IX Item "draw_bars"
If set to \fBtrue\fR, color bars are drawn in the event of a signal loss.
Defaults to \fBtrue\fR.
.IP \fBqueue_size\fR 4
.IX Item "queue_size"
Sets maximum input buffer size in bytes. If the buffering reaches this value,
incoming frames will be dropped.
Defaults to \fB1073741824\fR.
.IP \fBaudio_depth\fR 4
.IX Item "audio_depth"
Sets the audio sample bit depth. Must be \fB16\fR or \fB32\fR.
Defaults to \fB16\fR.
.IP \fBdecklink_copyts\fR 4
.IX Item "decklink_copyts"
If set to \fBtrue\fR, timestamps are forwarded as they are without removing
the initial offset.
Defaults to \fBfalse\fR.
.IP \fBtimestamp_align\fR 4
.IX Item "timestamp_align"
Capture start time alignment in seconds. If set to nonzero, input frames are
dropped till the system timestamp aligns with configured value.
Alignment difference of up to one frame duration is tolerated.
This is useful for maintaining input synchronization across N different
hardware devices deployed for 'N\-way' redundancy. The system time of different
hardware devices should be synchronized with protocols such as NTP or PTP,
before using this option.
Note that this method is not foolproof. In some border cases input
synchronization may not happen due to thread scheduling jitters in the OS.
Either sync could go wrong by 1 frame or in a rarer case
\&\fBtimestamp_align\fR seconds.
Defaults to \fB0\fR.
.IP "\fBwait_for_tc (\fR\fIbool\fR\fB)\fR" 4
.IX Item "wait_for_tc (bool)"
Drop frames till a frame with timecode is received. Sometimes serial timecode
isn't received with the first input frame. If that happens, the stored stream
timecode will be inaccurate. If this option is set to \fBtrue\fR, input frames
are dropped till a frame with timecode is received.
Option \fItimecode_format\fR must be specified.
Defaults to \fBfalse\fR.
.IP \fBenable_klv(\fR\fIbool\fR\fB)\fR 4
.IX Item "enable_klv(bool)"
If set to \fBtrue\fR, extracts KLV data from VANC and outputs KLV packets.
KLV VANC packets are joined based on MID and PSC fields and aggregated into
one KLV packet.
Defaults to \fBfalse\fR.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
List input devices:
.Sp
.Vb 1
\&        ffmpeg \-sources decklink
.Ve
.IP \(bu 4
List supported formats:
.Sp
.Vb 1
\&        ffmpeg \-f decklink \-list_formats 1 \-i \*(AqIntensity Pro\*(Aq
.Ve
.IP \(bu 4
Capture video clip at 1080i50:
.Sp
.Vb 1
\&        ffmpeg \-format_code Hi50 \-f decklink \-i \*(AqIntensity Pro\*(Aq \-c:a copy \-c:v copy output.avi
.Ve
.IP \(bu 4
Capture video clip at 1080i50 10 bit:
.Sp
.Vb 1
\&        ffmpeg \-raw_format yuv422p10 \-format_code Hi50 \-f decklink \-i \*(AqUltraStudio Mini Recorder\*(Aq \-c:a copy \-c:v copy output.avi
.Ve
.IP \(bu 4
Capture video clip at 1080i50 with 16 audio channels:
.Sp
.Vb 1
\&        ffmpeg \-channels 16 \-format_code Hi50 \-f decklink \-i \*(AqUltraStudio Mini Recorder\*(Aq \-c:a copy \-c:v copy output.avi
.Ve
.SS dshow
.IX Subsection "dshow"
Windows DirectShow input device.
.PP
DirectShow support is enabled when FFmpeg is built with the mingw\-w64 project.
Currently only audio and video devices are supported.
.PP
Multiple devices may be opened as separate inputs, but they may also be
opened on the same input, which should improve synchronism between them.
.PP
The input name should be in the format:
.PP
.Vb 1
\&        <TYPE>=<NAME>[:<TYPE>=<NAME>]
.Ve
.PP
where \fITYPE\fR can be either \fIaudio\fR or \fIvideo\fR,
and \fINAME\fR is the device's name or alternative name..
.PP
\fIOptions\fR
.IX Subsection "Options"
.PP
If no options are specified, the device's defaults are used.
If the device does not support the requested options, it will
fail to open.
.IP \fBvideo_size\fR 4
.IX Item "video_size"
Set the video size in the captured video.
.IP \fBframerate\fR 4
.IX Item "framerate"
Set the frame rate in the captured video.
.IP \fBsample_rate\fR 4
.IX Item "sample_rate"
Set the sample rate (in Hz) of the captured audio.
.IP \fBsample_size\fR 4
.IX Item "sample_size"
Set the sample size (in bits) of the captured audio.
.IP \fBchannels\fR 4
.IX Item "channels"
Set the number of channels in the captured audio.
.IP \fBlist_devices\fR 4
.IX Item "list_devices"
If set to \fBtrue\fR, print a list of devices and exit.
.IP \fBlist_options\fR 4
.IX Item "list_options"
If set to \fBtrue\fR, print a list of selected device's options
and exit.
.IP \fBvideo_device_number\fR 4
.IX Item "video_device_number"
Set video device number for devices with the same name (starts at 0,
defaults to 0).
.IP \fBaudio_device_number\fR 4
.IX Item "audio_device_number"
Set audio device number for devices with the same name (starts at 0,
defaults to 0).
.IP \fBpixel_format\fR 4
.IX Item "pixel_format"
Select pixel format to be used by DirectShow. This may only be set when
the video codec is not set or set to rawvideo.
.IP \fBaudio_buffer_size\fR 4
.IX Item "audio_buffer_size"
Set audio device buffer size in milliseconds (which can directly
impact latency, depending on the device).
Defaults to using the audio device's
default buffer size (typically some multiple of 500ms).
Setting this value too low can degrade performance.
See also
<\fBhttp://msdn.microsoft.com/en\-us/library/windows/desktop/dd377582(v=vs.85).aspx\fR>
.IP \fBvideo_pin_name\fR 4
.IX Item "video_pin_name"
Select video capture pin to use by name or alternative name.
.IP \fBaudio_pin_name\fR 4
.IX Item "audio_pin_name"
Select audio capture pin to use by name or alternative name.
.IP \fBcrossbar_video_input_pin_number\fR 4
.IX Item "crossbar_video_input_pin_number"
Select video input pin number for crossbar device. This will be
routed to the crossbar device's Video Decoder output pin.
Note that changing this value can affect future invocations
(sets a new default) until system reboot occurs.
.IP \fBcrossbar_audio_input_pin_number\fR 4
.IX Item "crossbar_audio_input_pin_number"
Select audio input pin number for crossbar device. This will be
routed to the crossbar device's Audio Decoder output pin.
Note that changing this value can affect future invocations
(sets a new default) until system reboot occurs.
.IP \fBshow_video_device_dialog\fR 4
.IX Item "show_video_device_dialog"
If set to \fBtrue\fR, before capture starts, popup a display dialog
to the end user, allowing them to change video filter properties
and configurations manually.
Note that for crossbar devices, adjusting values in this dialog
may be needed at times to toggle between PAL (25 fps) and NTSC (29.97)
input frame rates, sizes, interlacing, etc.  Changing these values can
enable different scan rates/frame rates and avoiding green bars at
the bottom, flickering scan lines, etc.
Note that with some devices, changing these properties can also affect future
invocations (sets new defaults) until system reboot occurs.
.IP \fBshow_audio_device_dialog\fR 4
.IX Item "show_audio_device_dialog"
If set to \fBtrue\fR, before capture starts, popup a display dialog
to the end user, allowing them to change audio filter properties
and configurations manually.
.IP \fBshow_video_crossbar_connection_dialog\fR 4
.IX Item "show_video_crossbar_connection_dialog"
If set to \fBtrue\fR, before capture starts, popup a display
dialog to the end user, allowing them to manually
modify crossbar pin routings, when it opens a video device.
.IP \fBshow_audio_crossbar_connection_dialog\fR 4
.IX Item "show_audio_crossbar_connection_dialog"
If set to \fBtrue\fR, before capture starts, popup a display
dialog to the end user, allowing them to manually
modify crossbar pin routings, when it opens an audio device.
.IP \fBshow_analog_tv_tuner_dialog\fR 4
.IX Item "show_analog_tv_tuner_dialog"
If set to \fBtrue\fR, before capture starts, popup a display
dialog to the end user, allowing them to manually
modify TV channels and frequencies.
.IP \fBshow_analog_tv_tuner_audio_dialog\fR 4
.IX Item "show_analog_tv_tuner_audio_dialog"
If set to \fBtrue\fR, before capture starts, popup a display
dialog to the end user, allowing them to manually
modify TV audio (like mono vs. stereo, Language A,B or C).
.IP \fBaudio_device_load\fR 4
.IX Item "audio_device_load"
Load an audio capture filter device from file instead of searching
it by name. It may load additional parameters too, if the filter
supports the serialization of its properties to.
To use this an audio capture source has to be specified, but it can
be anything even fake one.
.IP \fBaudio_device_save\fR 4
.IX Item "audio_device_save"
Save the currently used audio capture filter device and its
parameters (if the filter supports it) to a file.
If a file with the same name exists it will be overwritten.
.IP \fBvideo_device_load\fR 4
.IX Item "video_device_load"
Load a video capture filter device from file instead of searching
it by name. It may load additional parameters too, if the filter
supports the serialization of its properties to.
To use this a video capture source has to be specified, but it can
be anything even fake one.
.IP \fBvideo_device_save\fR 4
.IX Item "video_device_save"
Save the currently used video capture filter device and its
parameters (if the filter supports it) to a file.
If a file with the same name exists it will be overwritten.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Print the list of DirectShow supported devices and exit:
.Sp
.Vb 1
\&        $ ffmpeg \-list_devices true \-f dshow \-i dummy
.Ve
.IP \(bu 4
Open video device \fICamera\fR:
.Sp
.Vb 1
\&        $ ffmpeg \-f dshow \-i video="Camera"
.Ve
.IP \(bu 4
Open second video device with name \fICamera\fR:
.Sp
.Vb 1
\&        $ ffmpeg \-f dshow \-video_device_number 1 \-i video="Camera"
.Ve
.IP \(bu 4
Open video device \fICamera\fR and audio device \fIMicrophone\fR:
.Sp
.Vb 1
\&        $ ffmpeg \-f dshow \-i video="Camera":audio="Microphone"
.Ve
.IP \(bu 4
Print the list of supported options in selected device and exit:
.Sp
.Vb 1
\&        $ ffmpeg \-list_options true \-f dshow \-i video="Camera"
.Ve
.IP \(bu 4
Specify pin names to capture by name or alternative name, specify alternative device name:
.Sp
.Vb 1
\&        $ ffmpeg \-f dshow \-audio_pin_name "Audio Out" \-video_pin_name 2 \-i video=video="@device_pnp_\e\e?\epci#ven_1a0a&dev_6200&subsys_62021461&rev_01#4&e2c7dd6&0&00e1#{65e8773d\-8f56\-11d0\-a3b9\-00a0c9223196}\e{ca465100\-deb0\-4d59\-818f\-8c477184adf6}":audio="Microphone"
.Ve
.IP \(bu 4
Configure a crossbar device, specifying crossbar pins, allow user to adjust video capture properties at startup:
.Sp
.Vb 2
\&        $ ffmpeg \-f dshow \-show_video_device_dialog true \-crossbar_video_input_pin_number 0
\&             \-crossbar_audio_input_pin_number 3 \-i video="AVerMedia BDA Analog Capture":audio="AVerMedia BDA Analog Capture"
.Ve
.SS fbdev
.IX Subsection "fbdev"
Linux framebuffer input device.
.PP
The Linux framebuffer is a graphic hardware-independent abstraction
layer to show graphics on a computer monitor, typically on the
console. It is accessed through a file device node, usually
\&\fI/dev/fb0\fR.
.PP
For more detailed information read the file
Documentation/fb/framebuffer.txt included in the Linux source tree.
.PP
See also <\fBhttp://linux\-fbdev.sourceforge.net/\fR>, and \fBfbset\fR\|(1).
.PP
To record from the framebuffer device \fI/dev/fb0\fR with
\&\fBffmpeg\fR:
.PP
.Vb 1
\&        ffmpeg \-f fbdev \-framerate 10 \-i /dev/fb0 out.avi
.Ve
.PP
You can take a single screenshot image with the command:
.PP
.Vb 1
\&        ffmpeg \-f fbdev \-framerate 1 \-i /dev/fb0 \-frames:v 1 screenshot.jpeg
.Ve
.PP
\fIOptions\fR
.IX Subsection "Options"
.IP \fBframerate\fR 4
.IX Item "framerate"
Set the frame rate. Default is 25.
.SS gdigrab
.IX Subsection "gdigrab"
Win32 GDI-based screen capture device.
.PP
This device allows you to capture a region of the display on Windows.
.PP
There are two options for the input filename:
.PP
.Vb 1
\&        desktop
.Ve
.PP
or
.PP
.Vb 1
\&        title=<window_title>
.Ve
.PP
The first option will capture the entire desktop, or a fixed region of the
desktop. The second option will instead capture the contents of a single
window, regardless of its position on the screen.
.PP
For example, to grab the entire desktop using \fBffmpeg\fR:
.PP
.Vb 1
\&        ffmpeg \-f gdigrab \-framerate 6 \-i desktop out.mpg
.Ve
.PP
Grab a 640x480 region at position \f(CW\*(C`10,20\*(C'\fR:
.PP
.Vb 1
\&        ffmpeg \-f gdigrab \-framerate 6 \-offset_x 10 \-offset_y 20 \-video_size vga \-i desktop out.mpg
.Ve
.PP
Grab the contents of the window named "Calculator"
.PP
.Vb 1
\&        ffmpeg \-f gdigrab \-framerate 6 \-i title=Calculator out.mpg
.Ve
.PP
\fIOptions\fR
.IX Subsection "Options"
.IP \fBdraw_mouse\fR 4
.IX Item "draw_mouse"
Specify whether to draw the mouse pointer. Use the value \f(CW0\fR to
not draw the pointer. Default value is \f(CW1\fR.
.IP \fBframerate\fR 4
.IX Item "framerate"
Set the grabbing frame rate. Default value is \f(CW\*(C`ntsc\*(C'\fR,
corresponding to a frame rate of \f(CW\*(C`30000/1001\*(C'\fR.
.IP \fBshow_region\fR 4
.IX Item "show_region"
Show grabbed region on screen.
.Sp
If \fIshow_region\fR is specified with \f(CW1\fR, then the grabbing
region will be indicated on screen. With this option, it is easy to
know what is being grabbed if only a portion of the screen is grabbed.
.Sp
Note that \fIshow_region\fR is incompatible with grabbing the contents
of a single window.
.Sp
For example:
.Sp
.Vb 1
\&        ffmpeg \-f gdigrab \-show_region 1 \-framerate 6 \-video_size cif \-offset_x 10 \-offset_y 20 \-i desktop out.mpg
.Ve
.IP \fBvideo_size\fR 4
.IX Item "video_size"
Set the video frame size. The default is to capture the full screen if \fIdesktop\fR is selected, or the full window size if \fItitle=window_title\fR is selected.
.IP \fBoffset_x\fR 4
.IX Item "offset_x"
When capturing a region with \fIvideo_size\fR, set the distance from the left edge of the screen or desktop.
.Sp
Note that the offset calculation is from the top left corner of the primary monitor on Windows. If you have a monitor positioned to the left of your primary monitor, you will need to use a negative \fIoffset_x\fR value to move the region to that monitor.
.IP \fBoffset_y\fR 4
.IX Item "offset_y"
When capturing a region with \fIvideo_size\fR, set the distance from the top edge of the screen or desktop.
.Sp
Note that the offset calculation is from the top left corner of the primary monitor on Windows. If you have a monitor positioned above your primary monitor, you will need to use a negative \fIoffset_y\fR value to move the region to that monitor.
.SS iec61883
.IX Subsection "iec61883"
FireWire DV/HDV input device using libiec61883.
.PP
To enable this input device, you need libiec61883, libraw1394 and
libavc1394 installed on your system. Use the configure option
\&\f(CW\*(C`\-\-enable\-libiec61883\*(C'\fR to compile with the device enabled.
.PP
The iec61883 capture device supports capturing from a video device
connected via IEEE1394 (FireWire), using libiec61883 and the new Linux
FireWire stack (juju). This is the default DV/HDV input method in Linux
Kernel 2.6.37 and later, since the old FireWire stack was removed.
.PP
Specify the FireWire port to be used as input file, or "auto"
to choose the first port connected.
.PP
\fIOptions\fR
.IX Subsection "Options"
.IP \fBdvtype\fR 4
.IX Item "dvtype"
Override autodetection of DV/HDV. This should only be used if auto
detection does not work, or if usage of a different device type
should be prohibited. Treating a DV device as HDV (or vice versa) will
not work and result in undefined behavior.
The values \fBauto\fR, \fBdv\fR and \fBhdv\fR are supported.
.IP \fBdvbuffer\fR 4
.IX Item "dvbuffer"
Set maximum size of buffer for incoming data, in frames. For DV, this
is an exact value. For HDV, it is not frame exact, since HDV does
not have a fixed frame size.
.IP \fBdvguid\fR 4
.IX Item "dvguid"
Select the capture device by specifying its GUID. Capturing will only
be performed from the specified device and fails if no device with the
given GUID is found. This is useful to select the input if multiple
devices are connected at the same time.
Look at /sys/bus/firewire/devices to find out the GUIDs.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Grab and show the input of a FireWire DV/HDV device.
.Sp
.Vb 1
\&        ffplay \-f iec61883 \-i auto
.Ve
.IP \(bu 4
Grab and record the input of a FireWire DV/HDV device,
using a packet buffer of 100000 packets if the source is HDV.
.Sp
.Vb 1
\&        ffmpeg \-f iec61883 \-i auto \-dvbuffer 100000 out.mpg
.Ve
.SS jack
.IX Subsection "jack"
JACK input device.
.PP
To enable this input device during configuration you need libjack
installed on your system.
.PP
A JACK input device creates one or more JACK writable clients, one for
each audio channel, with name \fIclient_name\fR:input_\fIN\fR, where
\&\fIclient_name\fR is the name provided by the application, and \fIN\fR
is a number which identifies the channel.
Each writable client will send the acquired data to the FFmpeg input
device.
.PP
Once you have created one or more JACK readable clients, you need to
connect them to one or more JACK writable clients.
.PP
To connect or disconnect JACK clients you can use the \fBjack_connect\fR
and \fBjack_disconnect\fR programs, or do it through a graphical interface,
for example with \fBqjackctl\fR.
.PP
To list the JACK clients and their properties you can invoke the command
\&\fBjack_lsp\fR.
.PP
Follows an example which shows how to capture a JACK readable client
with \fBffmpeg\fR.
.PP
.Vb 2
\&        # Create a JACK writable client with name "ffmpeg".
\&        $ ffmpeg \-f jack \-i ffmpeg \-y out.wav
\&        
\&        # Start the sample jack_metro readable client.
\&        $ jack_metro \-b 120 \-d 0.2 \-f 4000
\&        
\&        # List the current JACK clients.
\&        $ jack_lsp \-c
\&        system:capture_1
\&        system:capture_2
\&        system:playback_1
\&        system:playback_2
\&        ffmpeg:input_1
\&        metro:120_bpm
\&        
\&        # Connect metro to the ffmpeg writable client.
\&        $ jack_connect metro:120_bpm ffmpeg:input_1
.Ve
.PP
For more information read:
<\fBhttp://jackaudio.org/\fR>
.PP
\fIOptions\fR
.IX Subsection "Options"
.IP \fBchannels\fR 4
.IX Item "channels"
Set the number of channels. Default is 2.
.SS kmsgrab
.IX Subsection "kmsgrab"
KMS video input device.
.PP
Captures the KMS scanout framebuffer associated with a specified CRTC or plane as a
DRM object that can be passed to other hardware functions.
.PP
Requires either DRM master or CAP_SYS_ADMIN to run.
.PP
If you don't understand what all of that means, you probably don't want this.  Look at
\&\fBx11grab\fR instead.
.PP
\fIOptions\fR
.IX Subsection "Options"
.IP \fBdevice\fR 4
.IX Item "device"
DRM device to capture on.  Defaults to \fB/dev/dri/card0\fR.
.IP \fBformat\fR 4
.IX Item "format"
Pixel format of the framebuffer.  This can be autodetected if you are running Linux 5.7
or later, but needs to be provided for earlier versions.  Defaults to \fBbgr0\fR,
which is the most common format used by the Linux console and Xorg X server.
.IP \fBformat_modifier\fR 4
.IX Item "format_modifier"
Format modifier to signal on output frames.  This is necessary to import correctly into
some APIs.  It can be autodetected if you are running Linux 5.7 or later, but will need
to be provided explicitly when needed in earlier versions.  See the libdrm documentation
for possible values.
.IP \fBcrtc_id\fR 4
.IX Item "crtc_id"
KMS CRTC ID to define the capture source.  The first active plane on the given CRTC
will be used.
.IP \fBplane_id\fR 4
.IX Item "plane_id"
KMS plane ID to define the capture source.  Defaults to the first active plane found if
neither \fBcrtc_id\fR nor \fBplane_id\fR are specified.
.IP \fBframerate\fR 4
.IX Item "framerate"
Framerate to capture at.  This is not synchronised to any page flipping or framebuffer
changes \- it just defines the interval at which the framebuffer is sampled.  Sampling
faster than the framebuffer update rate will generate independent frames with the same
content.  Defaults to \f(CW30\fR.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Capture from the first active plane, download the result to normal frames and encode.
This will only work if the framebuffer is both linear and mappable \- if not, the result
may be scrambled or fail to download.
.Sp
.Vb 1
\&        ffmpeg \-f kmsgrab \-i \- \-vf \*(Aqhwdownload,format=bgr0\*(Aq output.mp4
.Ve
.IP \(bu 4
Capture from CRTC ID 42 at 60fps, map the result to VAAPI, convert to NV12 and encode as H.264.
.Sp
.Vb 1
\&        ffmpeg \-crtc_id 42 \-framerate 60 \-f kmsgrab \-i \- \-vf \*(Aqhwmap=derive_device=vaapi,scale_vaapi=w=1920:h=1080:format=nv12\*(Aq \-c:v h264_vaapi output.mp4
.Ve
.IP \(bu 4
To capture only part of a plane the output can be cropped \- this can be used to capture
a single window, as long as it has a known absolute position and size.  For example, to
capture and encode the middle quarter of a 1920x1080 plane:
.Sp
.Vb 1
\&        ffmpeg \-f kmsgrab \-i \- \-vf \*(Aqhwmap=derive_device=vaapi,crop=960:540:480:270,scale_vaapi=960:540:nv12\*(Aq \-c:v h264_vaapi output.mp4
.Ve
.SS lavfi
.IX Subsection "lavfi"
Libavfilter input virtual device.
.PP
This input device reads data from the open output pads of a libavfilter
filtergraph.
.PP
For each filtergraph open output, the input device will create a
corresponding stream which is mapped to the generated output. Currently
only video data is supported. The filtergraph is specified through the
option \fBgraph\fR.
.PP
\fIOptions\fR
.IX Subsection "Options"
.IP \fBgraph\fR 4
.IX Item "graph"
Specify the filtergraph to use as input. Each video open output must be
labelled by a unique string of the form "out\fIN\fR", where \fIN\fR is a
number starting from 0 corresponding to the mapped input stream
generated by the device.
The first unlabelled output is automatically assigned to the "out0"
label, but all the others need to be specified explicitly.
.Sp
The suffix "+subcc" can be appended to the output label to create an extra
stream with the closed captions packets attached to that output
(experimental; only for EIA\-608 / CEA\-708 for now).
The subcc streams are created after all the normal streams, in the order of
the corresponding stream.
For example, if there is "out19+subcc", "out7+subcc" and up to "out42", the
stream #43 is subcc for stream #7 and stream #44 is subcc for stream #19.
.Sp
If not specified defaults to the filename specified for the input
device.
.IP \fBgraph_file\fR 4
.IX Item "graph_file"
Set the filename of the filtergraph to be read and sent to the other
filters. Syntax of the filtergraph is the same as the one specified by
the option \fIgraph\fR.
.IP \fBdumpgraph\fR 4
.IX Item "dumpgraph"
Dump graph to stderr.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Create a color video stream and play it back with \fBffplay\fR:
.Sp
.Vb 1
\&        ffplay \-f lavfi \-graph "color=c=pink [out0]" dummy
.Ve
.IP \(bu 4
As the previous example, but use filename for specifying the graph
description, and omit the "out0" label:
.Sp
.Vb 1
\&        ffplay \-f lavfi color=c=pink
.Ve
.IP \(bu 4
Create three different video test filtered sources and play them:
.Sp
.Vb 1
\&        ffplay \-f lavfi \-graph "testsrc [out0]; testsrc,hflip [out1]; testsrc,negate [out2]" test3
.Ve
.IP \(bu 4
Read an audio stream from a file using the amovie source and play it
back with \fBffplay\fR:
.Sp
.Vb 1
\&        ffplay \-f lavfi "amovie=test.wav"
.Ve
.IP \(bu 4
Read an audio stream and a video stream and play it back with
\&\fBffplay\fR:
.Sp
.Vb 1
\&        ffplay \-f lavfi "movie=test.avi[out0];amovie=test.wav[out1]"
.Ve
.IP \(bu 4
Dump decoded frames to images and closed captions to a file (experimental):
.Sp
.Vb 1
\&        ffmpeg \-f lavfi \-i "movie=test.ts[out0+subcc]" \-map v frame%08d.png \-map s \-c copy \-f rawvideo subcc.bin
.Ve
.SS libcdio
.IX Subsection "libcdio"
Audio-CD input device based on libcdio.
.PP
To enable this input device during configuration you need libcdio
installed on your system. It requires the configure option
\&\f(CW\*(C`\-\-enable\-libcdio\*(C'\fR.
.PP
This device allows playing and grabbing from an Audio-CD.
.PP
For example to copy with \fBffmpeg\fR the entire Audio-CD in \fI/dev/sr0\fR,
you may run the command:
.PP
.Vb 1
\&        ffmpeg \-f libcdio \-i /dev/sr0 cd.wav
.Ve
.PP
\fIOptions\fR
.IX Subsection "Options"
.IP \fBspeed\fR 4
.IX Item "speed"
Set drive reading speed. Default value is 0.
.Sp
The speed is specified CD-ROM speed units. The speed is set through
the libcdio \f(CW\*(C`cdio_cddap_speed_set\*(C'\fR function. On many CD-ROM
drives, specifying a value too large will result in using the fastest
speed.
.IP \fBparanoia_mode\fR 4
.IX Item "paranoia_mode"
Set paranoia recovery mode flags. It accepts one of the following values:
.RS 4
.IP \fBdisable\fR 4
.IX Item "disable"
.PD 0
.IP \fBverify\fR 4
.IX Item "verify"
.IP \fBoverlap\fR 4
.IX Item "overlap"
.IP \fBneverskip\fR 4
.IX Item "neverskip"
.IP \fBfull\fR 4
.IX Item "full"
.RE
.RS 4
.PD
.Sp
Default value is \fBdisable\fR.
.Sp
For more information about the available recovery modes, consult the
paranoia project documentation.
.RE
.SS libdc1394
.IX Subsection "libdc1394"
IIDC1394 input device, based on libdc1394 and libraw1394.
.PP
Requires the configure option \f(CW\*(C`\-\-enable\-libdc1394\*(C'\fR.
.PP
\fIOptions\fR
.IX Subsection "Options"
.IP \fBframerate\fR 4
.IX Item "framerate"
Set the frame rate. Default is \f(CW\*(C`ntsc\*(C'\fR, corresponding to a frame
rate of \f(CW\*(C`30000/1001\*(C'\fR.
.IP \fBpixel_format\fR 4
.IX Item "pixel_format"
Select the pixel format. Default is \f(CW\*(C`uyvy422\*(C'\fR.
.IP \fBvideo_size\fR 4
.IX Item "video_size"
Set the video size given as a string such as \f(CW\*(C`640x480\*(C'\fR or \f(CW\*(C`hd720\*(C'\fR.
Default is \f(CW\*(C`qvga\*(C'\fR.
.SS openal
.IX Subsection "openal"
The OpenAL input device provides audio capture on all systems with a
working OpenAL 1.1 implementation.
.PP
To enable this input device during configuration, you need OpenAL
headers and libraries installed on your system, and need to configure
FFmpeg with \f(CW\*(C`\-\-enable\-openal\*(C'\fR.
.PP
OpenAL headers and libraries should be provided as part of your OpenAL
implementation, or as an additional download (an SDK). Depending on your
installation you may need to specify additional flags via the
\&\f(CW\*(C`\-\-extra\-cflags\*(C'\fR and \f(CW\*(C`\-\-extra\-ldflags\*(C'\fR for allowing the build
system to locate the OpenAL headers and libraries.
.PP
An incomplete list of OpenAL implementations follows:
.IP \fBCreative\fR 4
.IX Item "Creative"
The official Windows implementation, providing hardware acceleration
with supported devices and software fallback.
See <\fBhttp://openal.org/\fR>.
.IP "\fBOpenAL Soft\fR" 4
.IX Item "OpenAL Soft"
Portable, open source (LGPL) software implementation. Includes
backends for the most common sound APIs on the Windows, Linux,
Solaris, and BSD operating systems.
See <\fBhttp://kcat.strangesoft.net/openal.html\fR>.
.IP \fBApple\fR 4
.IX Item "Apple"
OpenAL is part of Core Audio, the official Mac OS X Audio interface.
See <\fBhttp://developer.apple.com/technologies/mac/audio\-and\-video.html\fR>
.PP
This device allows one to capture from an audio input device handled
through OpenAL.
.PP
You need to specify the name of the device to capture in the provided
filename. If the empty string is provided, the device will
automatically select the default device. You can get the list of the
supported devices by using the option \fIlist_devices\fR.
.PP
\fIOptions\fR
.IX Subsection "Options"
.IP \fBchannels\fR 4
.IX Item "channels"
Set the number of channels in the captured audio. Only the values
\&\fB1\fR (monaural) and \fB2\fR (stereo) are currently supported.
Defaults to \fB2\fR.
.IP \fBsample_size\fR 4
.IX Item "sample_size"
Set the sample size (in bits) of the captured audio. Only the values
\&\fB8\fR and \fB16\fR are currently supported. Defaults to
\&\fB16\fR.
.IP \fBsample_rate\fR 4
.IX Item "sample_rate"
Set the sample rate (in Hz) of the captured audio.
Defaults to \fB44.1k\fR.
.IP \fBlist_devices\fR 4
.IX Item "list_devices"
If set to \fBtrue\fR, print a list of devices and exit.
Defaults to \fBfalse\fR.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.PP
Print the list of OpenAL supported devices and exit:
.PP
.Vb 1
\&        $ ffmpeg \-list_devices true \-f openal \-i dummy out.ogg
.Ve
.PP
Capture from the OpenAL device \fIDR\-BT101 via PulseAudio\fR:
.PP
.Vb 1
\&        $ ffmpeg \-f openal \-i \*(AqDR\-BT101 via PulseAudio\*(Aq out.ogg
.Ve
.PP
Capture from the default device (note the empty string '' as filename):
.PP
.Vb 1
\&        $ ffmpeg \-f openal \-i \*(Aq\*(Aq out.ogg
.Ve
.PP
Capture from two devices simultaneously, writing to two different files,
within the same \fBffmpeg\fR command:
.PP
.Vb 1
\&        $ ffmpeg \-f openal \-i \*(AqDR\-BT101 via PulseAudio\*(Aq out1.ogg \-f openal \-i \*(AqALSA Default\*(Aq out2.ogg
.Ve
.PP
Note: not all OpenAL implementations support multiple simultaneous capture \-
try the latest OpenAL Soft if the above does not work.
.SS oss
.IX Subsection "oss"
Open Sound System input device.
.PP
The filename to provide to the input device is the device node
representing the OSS input device, and is usually set to
\&\fI/dev/dsp\fR.
.PP
For example to grab from \fI/dev/dsp\fR using \fBffmpeg\fR use the
command:
.PP
.Vb 1
\&        ffmpeg \-f oss \-i /dev/dsp /tmp/oss.wav
.Ve
.PP
For more information about OSS see:
<\fBhttp://manuals.opensound.com/usersguide/dsp.html\fR>
.PP
\fIOptions\fR
.IX Subsection "Options"
.IP \fBsample_rate\fR 4
.IX Item "sample_rate"
Set the sample rate in Hz. Default is 48000.
.IP \fBchannels\fR 4
.IX Item "channels"
Set the number of channels. Default is 2.
.SS pulse
.IX Subsection "pulse"
PulseAudio input device.
.PP
To enable this output device you need to configure FFmpeg with \f(CW\*(C`\-\-enable\-libpulse\*(C'\fR.
.PP
The filename to provide to the input device is a source device or the
string "default"
.PP
To list the PulseAudio source devices and their properties you can invoke
the command \fBpactl list sources\fR.
.PP
More information about PulseAudio can be found on <\fBhttp://www.pulseaudio.org\fR>.
.PP
\fIOptions\fR
.IX Subsection "Options"
.IP \fBserver\fR 4
.IX Item "server"
Connect to a specific PulseAudio server, specified by an IP address.
Default server is used when not provided.
.IP \fBname\fR 4
.IX Item "name"
Specify the application name PulseAudio will use when showing active clients,
by default it is the \f(CW\*(C`LIBAVFORMAT_IDENT\*(C'\fR string.
.IP \fBstream_name\fR 4
.IX Item "stream_name"
Specify the stream name PulseAudio will use when showing active streams,
by default it is "record".
.IP \fBsample_rate\fR 4
.IX Item "sample_rate"
Specify the samplerate in Hz, by default 48kHz is used.
.IP \fBchannels\fR 4
.IX Item "channels"
Specify the channels in use, by default 2 (stereo) is set.
.IP \fBframe_size\fR 4
.IX Item "frame_size"
Specify the number of bytes per frame, by default it is set to 1024.
.IP \fBfragment_size\fR 4
.IX Item "fragment_size"
Specify the minimal buffering fragment in PulseAudio, it will affect the
audio latency. By default it is unset.
.IP \fBwallclock\fR 4
.IX Item "wallclock"
Set the initial PTS using the current time. Default is 1.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.PP
Record a stream from default device:
.PP
.Vb 1
\&        ffmpeg \-f pulse \-i default /tmp/pulse.wav
.Ve
.SS sndio
.IX Subsection "sndio"
sndio input device.
.PP
To enable this input device during configuration you need libsndio
installed on your system.
.PP
The filename to provide to the input device is the device node
representing the sndio input device, and is usually set to
\&\fI/dev/audio0\fR.
.PP
For example to grab from \fI/dev/audio0\fR using \fBffmpeg\fR use the
command:
.PP
.Vb 1
\&        ffmpeg \-f sndio \-i /dev/audio0 /tmp/oss.wav
.Ve
.PP
\fIOptions\fR
.IX Subsection "Options"
.IP \fBsample_rate\fR 4
.IX Item "sample_rate"
Set the sample rate in Hz. Default is 48000.
.IP \fBchannels\fR 4
.IX Item "channels"
Set the number of channels. Default is 2.
.SS "video4linux2, v4l2"
.IX Subsection "video4linux2, v4l2"
Video4Linux2 input video device.
.PP
"v4l2" can be used as alias for "video4linux2".
.PP
If FFmpeg is built with v4l\-utils support (by using the
\&\f(CW\*(C`\-\-enable\-libv4l2\*(C'\fR configure option), it is possible to use it with the
\&\f(CW\*(C`\-use_libv4l2\*(C'\fR input device option.
.PP
The name of the device to grab is a file device node, usually Linux
systems tend to automatically create such nodes when the device
(e.g. an USB webcam) is plugged into the system, and has a name of the
kind \fI/dev/videoN\fR, where \fIN\fR is a number associated to
the device.
.PP
Video4Linux2 devices usually support a limited set of
\&\fIwidth\fRx\fIheight\fR sizes and frame rates. You can check which are
supported using \fB\-list_formats all\fR for Video4Linux2 devices.
Some devices, like TV cards, support one or more standards. It is possible
to list all the supported standards using \fB\-list_standards all\fR.
.PP
The time base for the timestamps is 1 microsecond. Depending on the kernel
version and configuration, the timestamps may be derived from the real time
clock (origin at the Unix Epoch) or the monotonic clock (origin usually at
boot time, unaffected by NTP or manual changes to the clock). The
\&\fB\-timestamps abs\fR or \fB\-ts abs\fR option can be used to force
conversion into the real time clock.
.PP
Some usage examples of the video4linux2 device with \fBffmpeg\fR
and \fBffplay\fR:
.IP \(bu 4
List supported formats for a video4linux2 device:
.Sp
.Vb 1
\&        ffplay \-f video4linux2 \-list_formats all /dev/video0
.Ve
.IP \(bu 4
Grab and show the input of a video4linux2 device:
.Sp
.Vb 1
\&        ffplay \-f video4linux2 \-framerate 30 \-video_size hd720 /dev/video0
.Ve
.IP \(bu 4
Grab and record the input of a video4linux2 device, leave the
frame rate and size as previously set:
.Sp
.Vb 1
\&        ffmpeg \-f video4linux2 \-input_format mjpeg \-i /dev/video0 out.mpeg
.Ve
.PP
For more information about Video4Linux, check <\fBhttp://linuxtv.org/\fR>.
.PP
\fIOptions\fR
.IX Subsection "Options"
.IP \fBstandard\fR 4
.IX Item "standard"
Set the standard. Must be the name of a supported standard. To get a
list of the supported standards, use the \fBlist_standards\fR
option.
.IP \fBchannel\fR 4
.IX Item "channel"
Set the input channel number. Default to \-1, which means using the
previously selected channel.
.IP \fBvideo_size\fR 4
.IX Item "video_size"
Set the video frame size. The argument must be a string in the form
\&\fIWIDTH\fRx\fIHEIGHT\fR or a valid size abbreviation.
.IP \fBpixel_format\fR 4
.IX Item "pixel_format"
Select the pixel format (only valid for raw video input).
.IP \fBinput_format\fR 4
.IX Item "input_format"
Set the preferred pixel format (for raw video) or a codec name.
This option allows one to select the input format, when several are
available.
.IP \fBframerate\fR 4
.IX Item "framerate"
Set the preferred video frame rate.
.IP \fBlist_formats\fR 4
.IX Item "list_formats"
List available formats (supported pixel formats, codecs, and frame
sizes) and exit.
.Sp
Available values are:
.RS 4
.IP \fBall\fR 4
.IX Item "all"
Show all available (compressed and non-compressed) formats.
.IP \fBraw\fR 4
.IX Item "raw"
Show only raw video (non-compressed) formats.
.IP \fBcompressed\fR 4
.IX Item "compressed"
Show only compressed formats.
.RE
.RS 4
.RE
.IP \fBlist_standards\fR 4
.IX Item "list_standards"
List supported standards and exit.
.Sp
Available values are:
.RS 4
.IP \fBall\fR 4
.IX Item "all"
Show all supported standards.
.RE
.RS 4
.RE
.IP "\fBtimestamps, ts\fR" 4
.IX Item "timestamps, ts"
Set type of timestamps for grabbed frames.
.Sp
Available values are:
.RS 4
.IP \fBdefault\fR 4
.IX Item "default"
Use timestamps from the kernel.
.IP \fBabs\fR 4
.IX Item "abs"
Use absolute timestamps (wall clock).
.IP \fBmono2abs\fR 4
.IX Item "mono2abs"
Force conversion from monotonic to absolute timestamps.
.RE
.RS 4
.Sp
Default value is \f(CW\*(C`default\*(C'\fR.
.RE
.IP \fBuse_libv4l2\fR 4
.IX Item "use_libv4l2"
Use libv4l2 (v4l\-utils) conversion functions. Default is 0.
.SS vfwcap
.IX Subsection "vfwcap"
VfW (Video for Windows) capture input device.
.PP
The filename passed as input is the capture driver number, ranging from
0 to 9. You may use "list" as filename to print a list of drivers. Any
other filename will be interpreted as device number 0.
.PP
\fIOptions\fR
.IX Subsection "Options"
.IP \fBvideo_size\fR 4
.IX Item "video_size"
Set the video frame size.
.IP \fBframerate\fR 4
.IX Item "framerate"
Set the grabbing frame rate. Default value is \f(CW\*(C`ntsc\*(C'\fR,
corresponding to a frame rate of \f(CW\*(C`30000/1001\*(C'\fR.
.SS x11grab
.IX Subsection "x11grab"
X11 video input device.
.PP
To enable this input device during configuration you need libxcb
installed on your system. It will be automatically detected during
configuration.
.PP
This device allows one to capture a region of an X11 display.
.PP
The filename passed as input has the syntax:
.PP
.Vb 1
\&        [<hostname>]:<display_number>.<screen_number>[+<x_offset>,<y_offset>]
.Ve
.PP
\&\fIhostname\fR:\fIdisplay_number\fR.\fIscreen_number\fR specifies the
X11 display name of the screen to grab from. \fIhostname\fR can be
omitted, and defaults to "localhost". The environment variable
\&\fBDISPLAY\fR contains the default display name.
.PP
\&\fIx_offset\fR and \fIy_offset\fR specify the offsets of the grabbed
area with respect to the top-left border of the X11 screen. They
default to 0.
.PP
Check the X11 documentation (e.g. \fBman X\fR) for more detailed
information.
.PP
Use the \fBxdpyinfo\fR program for getting basic information about
the properties of your X11 display (e.g. grep for "name" or
"dimensions").
.PP
For example to grab from \fI:0.0\fR using \fBffmpeg\fR:
.PP
.Vb 1
\&        ffmpeg \-f x11grab \-framerate 25 \-video_size cif \-i :0.0 out.mpg
.Ve
.PP
Grab at position \f(CW\*(C`10,20\*(C'\fR:
.PP
.Vb 1
\&        ffmpeg \-f x11grab \-framerate 25 \-video_size cif \-i :0.0+10,20 out.mpg
.Ve
.PP
\fIOptions\fR
.IX Subsection "Options"
.IP \fBselect_region\fR 4
.IX Item "select_region"
Specify whether to select the grabbing area graphically using the pointer.
A value of \f(CW1\fR prompts the user to select the grabbing area graphically
by clicking and dragging. A single click with no dragging will select the
whole screen. A region with zero width or height will also select the whole
screen. This option overwrites the \fIvideo_size\fR, \fIgrab_x\fR, and
\&\fIgrab_y\fR options. Default value is \f(CW0\fR.
.IP \fBdraw_mouse\fR 4
.IX Item "draw_mouse"
Specify whether to draw the mouse pointer. A value of \f(CW0\fR specifies
not to draw the pointer. Default value is \f(CW1\fR.
.IP \fBfollow_mouse\fR 4
.IX Item "follow_mouse"
Make the grabbed area follow the mouse. The argument can be
\&\f(CW\*(C`centered\*(C'\fR or a number of pixels \fIPIXELS\fR.
.Sp
When it is specified with "centered", the grabbing region follows the mouse
pointer and keeps the pointer at the center of region; otherwise, the region
follows only when the mouse pointer reaches within \fIPIXELS\fR (greater than
zero) to the edge of region.
.Sp
For example:
.Sp
.Vb 1
\&        ffmpeg \-f x11grab \-follow_mouse centered \-framerate 25 \-video_size cif \-i :0.0 out.mpg
.Ve
.Sp
To follow only when the mouse pointer reaches within 100 pixels to edge:
.Sp
.Vb 1
\&        ffmpeg \-f x11grab \-follow_mouse 100 \-framerate 25 \-video_size cif \-i :0.0 out.mpg
.Ve
.IP \fBframerate\fR 4
.IX Item "framerate"
Set the grabbing frame rate. Default value is \f(CW\*(C`ntsc\*(C'\fR,
corresponding to a frame rate of \f(CW\*(C`30000/1001\*(C'\fR.
.IP \fBshow_region\fR 4
.IX Item "show_region"
Show grabbed region on screen.
.Sp
If \fIshow_region\fR is specified with \f(CW1\fR, then the grabbing
region will be indicated on screen. With this option, it is easy to
know what is being grabbed if only a portion of the screen is grabbed.
.IP \fBregion_border\fR 4
.IX Item "region_border"
Set the region border thickness if \fB\-show_region 1\fR is used.
Range is 1 to 128 and default is 3 (XCB-based x11grab only).
.Sp
For example:
.Sp
.Vb 1
\&        ffmpeg \-f x11grab \-show_region 1 \-framerate 25 \-video_size cif \-i :0.0+10,20 out.mpg
.Ve
.Sp
With \fIfollow_mouse\fR:
.Sp
.Vb 1
\&        ffmpeg \-f x11grab \-follow_mouse centered \-show_region 1 \-framerate 25 \-video_size cif \-i :0.0 out.mpg
.Ve
.IP \fBwindow_id\fR 4
.IX Item "window_id"
Grab this window, instead of the whole screen. Default value is 0, which maps to
the whole screen (root window).
.Sp
The id of a window can be found using the \fBxwininfo\fR program, possibly with options \-tree and
\&\-root.
.Sp
If the window is later enlarged, the new area is not recorded. Video ends when
the window is closed, unmapped (i.e., iconified) or shrunk beyond the video
size (which defaults to the initial window size).
.Sp
This option disables options \fBfollow_mouse\fR and \fBselect_region\fR.
.IP \fBvideo_size\fR 4
.IX Item "video_size"
Set the video frame size. Default is the full desktop or window.
.IP \fBgrab_x\fR 4
.IX Item "grab_x"
.PD 0
.IP \fBgrab_y\fR 4
.IX Item "grab_y"
.PD
Set the grabbing region coordinates. They are expressed as offset from
the top left corner of the X11 window and correspond to the
\&\fIx_offset\fR and \fIy_offset\fR parameters in the device name. The
default value for both options is 0.
.SH "RESAMPLER OPTIONS"
.IX Header "RESAMPLER OPTIONS"
The audio resampler supports the following named options.
.PP
Options may be set by specifying \-\fIoption\fR \fIvalue\fR in the
FFmpeg tools, \fIoption\fR=\fIvalue\fR for the aresample filter,
by setting the value explicitly in the
\&\f(CW\*(C`SwrContext\*(C'\fR options or using the \fIlibavutil/opt.h\fR API for
programmatic use.
.IP "\fBich, in_channel_count\fR" 4
.IX Item "ich, in_channel_count"
Set the number of input channels. Default value is 0. Setting this
value is not mandatory if the corresponding channel layout
\&\fBin_channel_layout\fR is set.
.IP "\fBoch, out_channel_count\fR" 4
.IX Item "och, out_channel_count"
Set the number of output channels. Default value is 0. Setting this
value is not mandatory if the corresponding channel layout
\&\fBout_channel_layout\fR is set.
.IP "\fBuch, used_channel_count\fR" 4
.IX Item "uch, used_channel_count"
Set the number of used input channels. Default value is 0. This option is
only used for special remapping.
.IP "\fBisr, in_sample_rate\fR" 4
.IX Item "isr, in_sample_rate"
Set the input sample rate. Default value is 0.
.IP "\fBosr, out_sample_rate\fR" 4
.IX Item "osr, out_sample_rate"
Set the output sample rate. Default value is 0.
.IP "\fBisf, in_sample_fmt\fR" 4
.IX Item "isf, in_sample_fmt"
Specify the input sample format. It is set by default to \f(CW\*(C`none\*(C'\fR.
.IP "\fBosf, out_sample_fmt\fR" 4
.IX Item "osf, out_sample_fmt"
Specify the output sample format. It is set by default to \f(CW\*(C`none\*(C'\fR.
.IP "\fBtsf, internal_sample_fmt\fR" 4
.IX Item "tsf, internal_sample_fmt"
Set the internal sample format. Default value is \f(CW\*(C`none\*(C'\fR.
This will automatically be chosen when it is not explicitly set.
.IP "\fBicl, in_channel_layout\fR" 4
.IX Item "icl, in_channel_layout"
.PD 0
.IP "\fBocl, out_channel_layout\fR" 4
.IX Item "ocl, out_channel_layout"
.PD
Set the input/output channel layout.
.Sp
See \fBthe Channel Layout section in the ffmpeg\-utils\|(1) manual\fR
for the required syntax.
.IP "\fBclev, center_mix_level\fR" 4
.IX Item "clev, center_mix_level"
Set the center mix level. It is a value expressed in deciBel, and must be
in the interval [\-32,32].
.IP "\fBslev, surround_mix_level\fR" 4
.IX Item "slev, surround_mix_level"
Set the surround mix level. It is a value expressed in deciBel, and must
be in the interval [\-32,32].
.IP \fBlfe_mix_level\fR 4
.IX Item "lfe_mix_level"
Set LFE mix into non LFE level. It is used when there is a LFE input but no
LFE output. It is a value expressed in deciBel, and must
be in the interval [\-32,32].
.IP "\fBrmvol, rematrix_volume\fR" 4
.IX Item "rmvol, rematrix_volume"
Set rematrix volume. Default value is 1.0.
.IP \fBrematrix_maxval\fR 4
.IX Item "rematrix_maxval"
Set maximum output value for rematrixing.
This can be used to prevent clipping vs. preventing volume reduction.
A value of 1.0 prevents clipping.
.IP "\fBflags, swr_flags\fR" 4
.IX Item "flags, swr_flags"
Set flags used by the converter. Default value is 0.
.Sp
It supports the following individual flags:
.RS 4
.IP \fBres\fR 4
.IX Item "res"
force resampling, this flag forces resampling to be used even when the
input and output sample rates match.
.RE
.RS 4
.RE
.IP \fBdither_scale\fR 4
.IX Item "dither_scale"
Set the dither scale. Default value is 1.
.IP \fBdither_method\fR 4
.IX Item "dither_method"
Set dither method. Default value is 0.
.Sp
Supported values:
.RS 4
.IP \fBrectangular\fR 4
.IX Item "rectangular"
select rectangular dither
.IP \fBtriangular\fR 4
.IX Item "triangular"
select triangular dither
.IP \fBtriangular_hp\fR 4
.IX Item "triangular_hp"
select triangular dither with high pass
.IP \fBlipshitz\fR 4
.IX Item "lipshitz"
select Lipshitz noise shaping dither.
.IP \fBshibata\fR 4
.IX Item "shibata"
select Shibata noise shaping dither.
.IP \fBlow_shibata\fR 4
.IX Item "low_shibata"
select low Shibata noise shaping dither.
.IP \fBhigh_shibata\fR 4
.IX Item "high_shibata"
select high Shibata noise shaping dither.
.IP \fBf_weighted\fR 4
.IX Item "f_weighted"
select f\-weighted noise shaping dither
.IP \fBmodified_e_weighted\fR 4
.IX Item "modified_e_weighted"
select modified-e-weighted noise shaping dither
.IP \fBimproved_e_weighted\fR 4
.IX Item "improved_e_weighted"
select improved-e-weighted noise shaping dither
.RE
.RS 4
.RE
.IP \fBresampler\fR 4
.IX Item "resampler"
Set resampling engine. Default value is swr.
.Sp
Supported values:
.RS 4
.IP \fBswr\fR 4
.IX Item "swr"
select the native SW Resampler; filter options precision and cheby are not
applicable in this case.
.IP \fBsoxr\fR 4
.IX Item "soxr"
select the SoX Resampler (where available); compensation, and filter options
filter_size, phase_shift, exact_rational, filter_type & kaiser_beta, are not
applicable in this case.
.RE
.RS 4
.RE
.IP \fBfilter_size\fR 4
.IX Item "filter_size"
For swr only, set resampling filter size, default value is 32.
.IP \fBphase_shift\fR 4
.IX Item "phase_shift"
For swr only, set resampling phase shift, default value is 10, and must be in
the interval [0,30].
.IP \fBlinear_interp\fR 4
.IX Item "linear_interp"
Use linear interpolation when enabled (the default). Disable it if you want
to preserve speed instead of quality when exact_rational fails.
.IP \fBexact_rational\fR 4
.IX Item "exact_rational"
For swr only, when enabled, try to use exact phase_count based on input and
output sample rate. However, if it is larger than \f(CW\*(C`1 << phase_shift\*(C'\fR,
the phase_count will be \f(CW\*(C`1 << phase_shift\*(C'\fR as fallback. Default is enabled.
.IP \fBcutoff\fR 4
.IX Item "cutoff"
Set cutoff frequency (swr: 6dB point; soxr: 0dB point) ratio; must be a float
value between 0 and 1.  Default value is 0.97 with swr, and 0.91 with soxr
(which, with a sample-rate of 44100, preserves the entire audio band to 20kHz).
.IP \fBprecision\fR 4
.IX Item "precision"
For soxr only, the precision in bits to which the resampled signal will be
calculated.  The default value of 20 (which, with suitable dithering, is
appropriate for a destination bit-depth of 16) gives SoX's 'High Quality'; a
value of 28 gives SoX's 'Very High Quality'.
.IP \fBcheby\fR 4
.IX Item "cheby"
For soxr only, selects passband rolloff none (Chebyshev) & higher-precision
approximation for 'irrational' ratios. Default value is 0.
.IP \fBasync\fR 4
.IX Item "async"
For swr only, simple 1 parameter audio sync to timestamps using stretching,
squeezing, filling and trimming. Setting this to 1 will enable filling and
trimming, larger values represent the maximum amount in samples that the data
may be stretched or squeezed for each second.
Default value is 0, thus no compensation is applied to make the samples match
the audio timestamps.
.IP \fBfirst_pts\fR 4
.IX Item "first_pts"
For swr only, assume the first pts should be this value. The time unit is 1 / sample rate.
This allows for padding/trimming at the start of stream. By default, no
assumption is made about the first frame's expected pts, so no padding or
trimming is done. For example, this could be set to 0 to pad the beginning with
silence if an audio stream starts after the video stream or to trim any samples
with a negative pts due to encoder delay.
.IP \fBmin_comp\fR 4
.IX Item "min_comp"
For swr only, set the minimum difference between timestamps and audio data (in
seconds) to trigger stretching/squeezing/filling or trimming of the
data to make it match the timestamps. The default is that
stretching/squeezing/filling and trimming is disabled
(\fBmin_comp\fR = \f(CW\*(C`FLT_MAX\*(C'\fR).
.IP \fBmin_hard_comp\fR 4
.IX Item "min_hard_comp"
For swr only, set the minimum difference between timestamps and audio data (in
seconds) to trigger adding/dropping samples to make it match the
timestamps.  This option effectively is a threshold to select between
hard (trim/fill) and soft (squeeze/stretch) compensation. Note that
all compensation is by default disabled through \fBmin_comp\fR.
The default is 0.1.
.IP \fBcomp_duration\fR 4
.IX Item "comp_duration"
For swr only, set duration (in seconds) over which data is stretched/squeezed
to make it match the timestamps. Must be a non-negative double float value,
default value is 1.0.
.IP \fBmax_soft_comp\fR 4
.IX Item "max_soft_comp"
For swr only, set maximum factor by which data is stretched/squeezed to make it
match the timestamps. Must be a non-negative double float value, default value
is 0.
.IP \fBmatrix_encoding\fR 4
.IX Item "matrix_encoding"
Select matrixed stereo encoding.
.Sp
It accepts the following values:
.RS 4
.IP \fBnone\fR 4
.IX Item "none"
select none
.IP \fBdolby\fR 4
.IX Item "dolby"
select Dolby
.IP \fBdplii\fR 4
.IX Item "dplii"
select Dolby Pro Logic II
.RE
.RS 4
.Sp
Default value is \f(CW\*(C`none\*(C'\fR.
.RE
.IP \fBfilter_type\fR 4
.IX Item "filter_type"
For swr only, select resampling filter type. This only affects resampling
operations.
.Sp
It accepts the following values:
.RS 4
.IP \fBcubic\fR 4
.IX Item "cubic"
select cubic
.IP \fBblackman_nuttall\fR 4
.IX Item "blackman_nuttall"
select Blackman Nuttall windowed sinc
.IP \fBkaiser\fR 4
.IX Item "kaiser"
select Kaiser windowed sinc
.RE
.RS 4
.RE
.IP \fBkaiser_beta\fR 4
.IX Item "kaiser_beta"
For swr only, set Kaiser window beta value. Must be a double float value in the
interval [2,16], default value is 9.
.IP \fBoutput_sample_bits\fR 4
.IX Item "output_sample_bits"
For swr only, set number of used output sample bits for dithering. Must be an integer in the
interval [0,64], default value is 0, which means it's not used.
.SH "SCALER OPTIONS"
.IX Header "SCALER OPTIONS"
The video scaler supports the following named options.
.PP
Options may be set by specifying \-\fIoption\fR \fIvalue\fR in the
FFmpeg tools, with a few API-only exceptions noted below.
For programmatic use, they can be set explicitly in the
\&\f(CW\*(C`SwsContext\*(C'\fR options or through the \fIlibavutil/opt.h\fR API.
.IP \fBsws_flags\fR 4
.IX Item "sws_flags"
Set the scaler flags. This is also used to set the scaling
algorithm. Only a single algorithm should be selected. Default
value is \fBbicubic\fR.
.Sp
It accepts the following values:
.RS 4
.IP \fBfast_bilinear\fR 4
.IX Item "fast_bilinear"
Select fast bilinear scaling algorithm.
.IP \fBbilinear\fR 4
.IX Item "bilinear"
Select bilinear scaling algorithm.
.IP \fBbicubic\fR 4
.IX Item "bicubic"
Select bicubic scaling algorithm.
.IP \fBexperimental\fR 4
.IX Item "experimental"
Select experimental scaling algorithm.
.IP \fBneighbor\fR 4
.IX Item "neighbor"
Select nearest neighbor rescaling algorithm.
.IP \fBarea\fR 4
.IX Item "area"
Select averaging area rescaling algorithm.
.IP \fBbicublin\fR 4
.IX Item "bicublin"
Select bicubic scaling algorithm for the luma component, bilinear for
chroma components.
.IP \fBgauss\fR 4
.IX Item "gauss"
Select Gaussian rescaling algorithm.
.IP \fBsinc\fR 4
.IX Item "sinc"
Select sinc rescaling algorithm.
.IP \fBlanczos\fR 4
.IX Item "lanczos"
Select Lanczos rescaling algorithm. The default width (alpha) is 3 and can be
changed by setting \f(CW\*(C`param0\*(C'\fR.
.IP \fBspline\fR 4
.IX Item "spline"
Select natural bicubic spline rescaling algorithm.
.IP \fBprint_info\fR 4
.IX Item "print_info"
Enable printing/debug logging.
.IP \fBaccurate_rnd\fR 4
.IX Item "accurate_rnd"
Enable accurate rounding.
.IP \fBfull_chroma_int\fR 4
.IX Item "full_chroma_int"
Enable full chroma interpolation.
.IP \fBfull_chroma_inp\fR 4
.IX Item "full_chroma_inp"
Select full chroma input.
.IP \fBbitexact\fR 4
.IX Item "bitexact"
Enable bitexact output.
.RE
.RS 4
.RE
.IP "\fBsrcw\fR \fI(API only)\fR" 4
.IX Item "srcw (API only)"
Set source width.
.IP "\fBsrch\fR \fI(API only)\fR" 4
.IX Item "srch (API only)"
Set source height.
.IP "\fBdstw\fR \fI(API only)\fR" 4
.IX Item "dstw (API only)"
Set destination width.
.IP "\fBdsth\fR \fI(API only)\fR" 4
.IX Item "dsth (API only)"
Set destination height.
.IP "\fBsrc_format\fR \fI(API only)\fR" 4
.IX Item "src_format (API only)"
Set source pixel format (must be expressed as an integer).
.IP "\fBdst_format\fR \fI(API only)\fR" 4
.IX Item "dst_format (API only)"
Set destination pixel format (must be expressed as an integer).
.IP "\fBsrc_range\fR \fI(boolean)\fR" 4
.IX Item "src_range (boolean)"
If value is set to \f(CW1\fR, indicates source is full range. Default value is
\&\f(CW0\fR, which indicates source is limited range.
.IP "\fBdst_range\fR \fI(boolean)\fR" 4
.IX Item "dst_range (boolean)"
If value is set to \f(CW1\fR, enable full range for destination. Default value
is \f(CW0\fR, which enables limited range.
.IP "\fBparam0, param1\fR" 4
.IX Item "param0, param1"
Set scaling algorithm parameters. The specified values are specific of
some scaling algorithms and ignored by others. The specified values
are floating point number values.
.IP \fBsws_dither\fR 4
.IX Item "sws_dither"
Set the dithering algorithm. Accepts one of the following
values. Default value is \fBauto\fR.
.RS 4
.IP \fBauto\fR 4
.IX Item "auto"
automatic choice
.IP \fBnone\fR 4
.IX Item "none"
no dithering
.IP \fBbayer\fR 4
.IX Item "bayer"
bayer dither
.IP \fBed\fR 4
.IX Item "ed"
error diffusion dither
.IP \fBa_dither\fR 4
.IX Item "a_dither"
arithmetic dither, based using addition
.IP \fBx_dither\fR 4
.IX Item "x_dither"
arithmetic dither, based using xor (more random/less apparent patterning that
a_dither).
.RE
.RS 4
.RE
.IP \fBalphablend\fR 4
.IX Item "alphablend"
Set the alpha blending to use when the input has alpha but the output does not.
Default value is \fBnone\fR.
.RS 4
.IP \fBuniform_color\fR 4
.IX Item "uniform_color"
Blend onto a uniform background color
.IP \fBcheckerboard\fR 4
.IX Item "checkerboard"
Blend onto a checkerboard
.IP \fBnone\fR 4
.IX Item "none"
No blending
.RE
.RS 4
.RE
.SH "FILTERING INTRODUCTION"
.IX Header "FILTERING INTRODUCTION"
Filtering in FFmpeg is enabled through the libavfilter library.
.PP
In libavfilter, a filter can have multiple inputs and multiple
outputs.
To illustrate the sorts of things that are possible, we consider the
following filtergraph.
.PP
.Vb 5
\&                        [main]
\&        input \-\-> split \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-> overlay \-\-> output
\&                    |                             ^
\&                    |[tmp]                  [flip]|
\&                    +\-\-\-\-\-> crop \-\-> vflip \-\-\-\-\-\-\-+
.Ve
.PP
This filtergraph splits the input stream in two streams, then sends one
stream through the crop filter and the vflip filter, before merging it
back with the other stream by overlaying it on top. You can use the
following command to achieve this:
.PP
.Vb 1
\&        ffmpeg \-i INPUT \-vf "split [main][tmp]; [tmp] crop=iw:ih/2:0:0, vflip [flip]; [main][flip] overlay=0:H/2" OUTPUT
.Ve
.PP
The result will be that the top half of the video is mirrored
onto the bottom half of the output video.
.PP
Filters in the same linear chain are separated by commas, and distinct
linear chains of filters are separated by semicolons. In our example,
\&\fIcrop,vflip\fR are in one linear chain, \fIsplit\fR and
\&\fIoverlay\fR are separately in another. The points where the linear
chains join are labelled by names enclosed in square brackets. In the
example, the split filter generates two outputs that are associated to
the labels \fI[main]\fR and \fI[tmp]\fR.
.PP
The stream sent to the second output of \fIsplit\fR, labelled as
\&\fI[tmp]\fR, is processed through the \fIcrop\fR filter, which crops
away the lower half part of the video, and then vertically flipped. The
\&\fIoverlay\fR filter takes in input the first unchanged output of the
split filter (which was labelled as \fI[main]\fR), and overlay on its
lower half the output generated by the \fIcrop,vflip\fR filterchain.
.PP
Some filters take in input a list of parameters: they are specified
after the filter name and an equal sign, and are separated from each other
by a colon.
.PP
There exist so-called \fIsource filters\fR that do not have an
audio/video input, and \fIsink filters\fR that will not have audio/video
output.
.SH GRAPH
.IX Header "GRAPH"
The \fIgraph2dot\fR program included in the FFmpeg \fItools\fR
directory can be used to parse a filtergraph description and issue a
corresponding textual representation in the dot language.
.PP
Invoke the command:
.PP
.Vb 1
\&        graph2dot \-h
.Ve
.PP
to see how to use \fIgraph2dot\fR.
.PP
You can then pass the dot description to the \fIdot\fR program (from
the graphviz suite of programs) and obtain a graphical representation
of the filtergraph.
.PP
For example the sequence of commands:
.PP
.Vb 4
\&        echo <GRAPH_DESCRIPTION> | \e
\&        tools/graph2dot \-o graph.tmp && \e
\&        dot \-Tpng graph.tmp \-o graph.png && \e
\&        display graph.png
.Ve
.PP
can be used to create and display an image representing the graph
described by the \fIGRAPH_DESCRIPTION\fR string. Note that this string must be
a complete self-contained graph, with its inputs and outputs explicitly defined.
For example if your command line is of the form:
.PP
.Vb 1
\&        ffmpeg \-i infile \-vf scale=640:360 outfile
.Ve
.PP
your \fIGRAPH_DESCRIPTION\fR string will need to be of the form:
.PP
.Vb 1
\&        nullsrc,scale=640:360,nullsink
.Ve
.PP
you may also need to set the \fInullsrc\fR parameters and add a \fIformat\fR
filter in order to simulate a specific input file.
.SH "FILTERGRAPH DESCRIPTION"
.IX Header "FILTERGRAPH DESCRIPTION"
A filtergraph is a directed graph of connected filters. It can contain
cycles, and there can be multiple links between a pair of
filters. Each link has one input pad on one side connecting it to one
filter from which it takes its input, and one output pad on the other
side connecting it to one filter accepting its output.
.PP
Each filter in a filtergraph is an instance of a filter class
registered in the application, which defines the features and the
number of input and output pads of the filter.
.PP
A filter with no input pads is called a "source", and a filter with no
output pads is called a "sink".
.SS "Filtergraph syntax"
.IX Subsection "Filtergraph syntax"
A filtergraph has a textual representation, which is recognized by the
\&\fB\-filter\fR/\fB\-vf\fR/\fB\-af\fR and
\&\fB\-filter_complex\fR options in \fBffmpeg\fR and
\&\fB\-vf\fR/\fB\-af\fR in \fBffplay\fR, and by the
\&\f(CWavfilter_graph_parse_ptr()\fR function defined in
\&\fIlibavfilter/avfilter.h\fR.
.PP
A filterchain consists of a sequence of connected filters, each one
connected to the previous one in the sequence. A filterchain is
represented by a list of ","\-separated filter descriptions.
.PP
A filtergraph consists of a sequence of filterchains. A sequence of
filterchains is represented by a list of ";"\-separated filterchain
descriptions.
.PP
A filter is represented by a string of the form:
[\fIin_link_1\fR]...[\fIin_link_N\fR]\fIfilter_name\fR@\fIid\fR=\fIarguments\fR[\fIout_link_1\fR]...[\fIout_link_M\fR]
.PP
\&\fIfilter_name\fR is the name of the filter class of which the
described filter is an instance of, and has to be the name of one of
the filter classes registered in the program optionally followed by "@\fIid\fR".
The name of the filter class is optionally followed by a string
"=\fIarguments\fR".
.PP
\&\fIarguments\fR is a string which contains the parameters used to
initialize the filter instance. It may have one of two forms:
.IP \(bu 4
A ':'\-separated list of \fIkey=value\fR pairs.
.IP \(bu 4
A ':'\-separated list of \fIvalue\fR. In this case, the keys are assumed to be
the option names in the order they are declared. E.g. the \f(CW\*(C`fade\*(C'\fR filter
declares three options in this order \-\- \fBtype\fR, \fBstart_frame\fR and
\&\fBnb_frames\fR. Then the parameter list \fIin:0:30\fR means that the value
\&\fIin\fR is assigned to the option \fBtype\fR, \fI0\fR to
\&\fBstart_frame\fR and \fI30\fR to \fBnb_frames\fR.
.IP \(bu 4
A ':'\-separated list of mixed direct \fIvalue\fR and long \fIkey=value\fR
pairs. The direct \fIvalue\fR must precede the \fIkey=value\fR pairs, and
follow the same constraints order of the previous point. The following
\&\fIkey=value\fR pairs can be set in any preferred order.
.PP
If the option value itself is a list of items (e.g. the \f(CW\*(C`format\*(C'\fR filter
takes a list of pixel formats), the items in the list are usually separated by
\&\fB|\fR.
.PP
The list of arguments can be quoted using the character \fB'\fR as initial
and ending mark, and the character \fB\e\fR for escaping the characters
within the quoted text; otherwise the argument string is considered
terminated when the next special character (belonging to the set
\&\fB[]=;,\fR) is encountered.
.PP
The name and arguments of the filter are optionally preceded and
followed by a list of link labels.
A link label allows one to name a link and associate it to a filter output
or input pad. The preceding labels \fIin_link_1\fR
\&... \fIin_link_N\fR, are associated to the filter input pads,
the following labels \fIout_link_1\fR ... \fIout_link_M\fR, are
associated to the output pads.
.PP
When two link labels with the same name are found in the
filtergraph, a link between the corresponding input and output pad is
created.
.PP
If an output pad is not labelled, it is linked by default to the first
unlabelled input pad of the next filter in the filterchain.
For example in the filterchain
.PP
.Vb 1
\&        nullsrc, split[L1], [L2]overlay, nullsink
.Ve
.PP
the split filter instance has two output pads, and the overlay filter
instance two input pads. The first output pad of split is labelled
"L1", the first input pad of overlay is labelled "L2", and the second
output pad of split is linked to the second input pad of overlay,
which are both unlabelled.
.PP
In a filter description, if the input label of the first filter is not
specified, "in" is assumed; if the output label of the last filter is not
specified, "out" is assumed.
.PP
In a complete filterchain all the unlabelled filter input and output
pads must be connected. A filtergraph is considered valid if all the
filter input and output pads of all the filterchains are connected.
.PP
Libavfilter will automatically insert \fBscale\fR filters where format
conversion is required. It is possible to specify swscale flags
for those automatically inserted scalers by prepending
\&\f(CW\*(C`sws_flags=\fR\f(CIflags\fR\f(CW;\*(C'\fR
to the filtergraph description.
.PP
Here is a BNF description of the filtergraph syntax:
.PP
.Vb 8
\&        <NAME>             ::= sequence of alphanumeric characters and \*(Aq_\*(Aq
\&        <FILTER_NAME>      ::= <NAME>["@"<NAME>]
\&        <LINKLABEL>        ::= "[" <NAME> "]"
\&        <LINKLABELS>       ::= <LINKLABEL> [<LINKLABELS>]
\&        <FILTER_ARGUMENTS> ::= sequence of chars (possibly quoted)
\&        <FILTER>           ::= [<LINKLABELS>] <FILTER_NAME> ["=" <FILTER_ARGUMENTS>] [<LINKLABELS>]
\&        <FILTERCHAIN>      ::= <FILTER> [,<FILTERCHAIN>]
\&        <FILTERGRAPH>      ::= [sws_flags=<flags>;] <FILTERCHAIN> [;<FILTERGRAPH>]
.Ve
.SS "Notes on filtergraph escaping"
.IX Subsection "Notes on filtergraph escaping"
Filtergraph description composition entails several levels of
escaping. See \fBthe "Quoting and escaping"
section in the ffmpeg\-utils\|(1) manual\fR for more
information about the employed escaping procedure.
.PP
A first level escaping affects the content of each filter option
value, which may contain the special character \f(CW\*(C`:\*(C'\fR used to
separate values, or one of the escaping characters \f(CW\*(C`\e\*(Aq\*(C'\fR.
.PP
A second level escaping affects the whole filter description, which
may contain the escaping characters \f(CW\*(C`\e\*(Aq\*(C'\fR or the special
characters \f(CW\*(C`[],;\*(C'\fR used by the filtergraph description.
.PP
Finally, when you specify a filtergraph on a shell commandline, you
need to perform a third level escaping for the shell special
characters contained within it.
.PP
For example, consider the following string to be embedded in
the \fBdrawtext\fR filter description \fBtext\fR value:
.PP
.Vb 1
\&        this is a \*(Aqstring\*(Aq: may contain one, or more, special characters
.Ve
.PP
This string contains the \f(CW\*(C`\*(Aq\*(C'\fR special escaping character, and the
\&\f(CW\*(C`:\*(C'\fR special character, so it needs to be escaped in this way:
.PP
.Vb 1
\&        text=this is a \e\*(Aqstring\e\*(Aq\e: may contain one, or more, special characters
.Ve
.PP
A second level of escaping is required when embedding the filter
description in a filtergraph description, in order to escape all the
filtergraph special characters. Thus the example above becomes:
.PP
.Vb 1
\&        drawtext=text=this is a \e\e\e\*(Aqstring\e\e\e\*(Aq\e\e: may contain one\e, or more\e, special characters
.Ve
.PP
(note that in addition to the \f(CW\*(C`\e\*(Aq\*(C'\fR escaping special characters,
also \f(CW\*(C`,\*(C'\fR needs to be escaped).
.PP
Finally an additional level of escaping is needed when writing the
filtergraph description in a shell command, which depends on the
escaping rules of the adopted shell. For example, assuming that
\&\f(CW\*(C`\e\*(C'\fR is special and needs to be escaped with another \f(CW\*(C`\e\*(C'\fR, the
previous string will finally result in:
.PP
.Vb 1
\&        \-vf "drawtext=text=this is a \e\e\e\e\e\e\*(Aqstring\e\e\e\e\e\e\*(Aq\e\e\e\e: may contain one\e\e, or more\e\e, special characters"
.Ve
.SH "TIMELINE EDITING"
.IX Header "TIMELINE EDITING"
Some filters support a generic \fBenable\fR option. For the filters
supporting timeline editing, this option can be set to an expression which is
evaluated before sending a frame to the filter. If the evaluation is non-zero,
the filter will be enabled, otherwise the frame will be sent unchanged to the
next filter in the filtergraph.
.PP
The expression accepts the following values:
.IP \fBt\fR 4
.IX Item "t"
timestamp expressed in seconds, NAN if the input timestamp is unknown
.IP \fBn\fR 4
.IX Item "n"
sequential number of the input frame, starting from 0
.IP \fBpos\fR 4
.IX Item "pos"
the position in the file of the input frame, NAN if unknown
.IP \fBw\fR 4
.IX Item "w"
.PD 0
.IP \fBh\fR 4
.IX Item "h"
.PD
width and height of the input frame if video
.PP
Additionally, these filters support an \fBenable\fR command that can be used
to re-define the expression.
.PP
Like any other filtering option, the \fBenable\fR option follows the same
rules.
.PP
For example, to enable a blur filter (\fBsmartblur\fR) from 10 seconds to 3
minutes, and a \fBcurves\fR filter starting at 3 seconds:
.PP
.Vb 2
\&        smartblur = enable=\*(Aqbetween(t,10,3*60)\*(Aq,
\&        curves    = enable=\*(Aqgte(t,3)\*(Aq : preset=cross_process
.Ve
.PP
See \f(CW\*(C`ffmpeg \-filters\*(C'\fR to view which filters have timeline support.
.SH "CHANGING OPTIONS AT RUNTIME WITH A COMMAND"
.IX Header "CHANGING OPTIONS AT RUNTIME WITH A COMMAND"
Some options can be changed during the operation of the filter using
a command. These options are marked 'T' on the output of
\&\fBffmpeg\fR \fB\-h filter=<name of filter>\fR.
The name of the command is the name of the option and the argument is
the new value.
.SH "OPTIONS FOR FILTERS WITH SEVERAL INPUTS"
.IX Header "OPTIONS FOR FILTERS WITH SEVERAL INPUTS"
Some filters with several inputs support a common set of options.
These options can only be set by name, not with the short notation.
.IP \fBeof_action\fR 4
.IX Item "eof_action"
The action to take when EOF is encountered on the secondary input; it accepts
one of the following values:
.RS 4
.IP \fBrepeat\fR 4
.IX Item "repeat"
Repeat the last frame (the default).
.IP \fBendall\fR 4
.IX Item "endall"
End both streams.
.IP \fBpass\fR 4
.IX Item "pass"
Pass the main input through.
.RE
.RS 4
.RE
.IP \fBshortest\fR 4
.IX Item "shortest"
If set to 1, force the output to terminate when the shortest input
terminates. Default value is 0.
.IP \fBrepeatlast\fR 4
.IX Item "repeatlast"
If set to 1, force the filter to extend the last frame of secondary streams
until the end of the primary stream. A value of 0 disables this behavior.
Default value is 1.
.SH "AUDIO FILTERS"
.IX Header "AUDIO FILTERS"
When you configure your FFmpeg build, you can disable any of the
existing filters using \f(CW\*(C`\-\-disable\-filters\*(C'\fR.
The configure output will show the audio filters included in your
build.
.PP
Below is a description of the currently available audio filters.
.SS acompressor
.IX Subsection "acompressor"
A compressor is mainly used to reduce the dynamic range of a signal.
Especially modern music is mostly compressed at a high ratio to
improve the overall loudness. It's done to get the highest attention
of a listener, "fatten" the sound and bring more "power" to the track.
If a signal is compressed too much it may sound dull or "dead"
afterwards or it may start to "pump" (which could be a powerful effect
but can also destroy a track completely).
The right compression is the key to reach a professional sound and is
the high art of mixing and mastering. Because of its complex settings
it may take a long time to get the right feeling for this kind of effect.
.PP
Compression is done by detecting the volume above a chosen level
\&\f(CW\*(C`threshold\*(C'\fR and dividing it by the factor set with \f(CW\*(C`ratio\*(C'\fR.
So if you set the threshold to \-12dB and your signal reaches \-6dB a ratio
of 2:1 will result in a signal at \-9dB. Because an exact manipulation of
the signal would cause distortion of the waveform the reduction can be
levelled over the time. This is done by setting "Attack" and "Release".
\&\f(CW\*(C`attack\*(C'\fR determines how long the signal has to rise above the threshold
before any reduction will occur and \f(CW\*(C`release\*(C'\fR sets the time the signal
has to fall below the threshold to reduce the reduction again. Shorter signals
than the chosen attack time will be left untouched.
The overall reduction of the signal can be made up afterwards with the
\&\f(CW\*(C`makeup\*(C'\fR setting. So compressing the peaks of a signal about 6dB and
raising the makeup to this level results in a signal twice as loud than the
source. To gain a softer entry in the compression the \f(CW\*(C`knee\*(C'\fR flattens the
hard edge at the threshold in the range of the chosen decibels.
.PP
The filter accepts the following options:
.IP \fBlevel_in\fR 4
.IX Item "level_in"
Set input gain. Default is 1. Range is between 0.015625 and 64.
.IP \fBmode\fR 4
.IX Item "mode"
Set mode of compressor operation. Can be \f(CW\*(C`upward\*(C'\fR or \f(CW\*(C`downward\*(C'\fR.
Default is \f(CW\*(C`downward\*(C'\fR.
.IP \fBthreshold\fR 4
.IX Item "threshold"
If a signal of stream rises above this level it will affect the gain
reduction.
By default it is 0.125. Range is between 0.00097563 and 1.
.IP \fBratio\fR 4
.IX Item "ratio"
Set a ratio by which the signal is reduced. 1:2 means that if the level
rose 4dB above the threshold, it will be only 2dB above after the reduction.
Default is 2. Range is between 1 and 20.
.IP \fBattack\fR 4
.IX Item "attack"
Amount of milliseconds the signal has to rise above the threshold before gain
reduction starts. Default is 20. Range is between 0.01 and 2000.
.IP \fBrelease\fR 4
.IX Item "release"
Amount of milliseconds the signal has to fall below the threshold before
reduction is decreased again. Default is 250. Range is between 0.01 and 9000.
.IP \fBmakeup\fR 4
.IX Item "makeup"
Set the amount by how much signal will be amplified after processing.
Default is 1. Range is from 1 to 64.
.IP \fBknee\fR 4
.IX Item "knee"
Curve the sharp knee around the threshold to enter gain reduction more softly.
Default is 2.82843. Range is between 1 and 8.
.IP \fBlink\fR 4
.IX Item "link"
Choose if the \f(CW\*(C`average\*(C'\fR level between all channels of input stream
or the louder(\f(CW\*(C`maximum\*(C'\fR) channel of input stream affects the
reduction. Default is \f(CW\*(C`average\*(C'\fR.
.IP \fBdetection\fR 4
.IX Item "detection"
Should the exact signal be taken in case of \f(CW\*(C`peak\*(C'\fR or an RMS one in case
of \f(CW\*(C`rms\*(C'\fR. Default is \f(CW\*(C`rms\*(C'\fR which is mostly smoother.
.IP \fBmix\fR 4
.IX Item "mix"
How much to use compressed signal in output. Default is 1.
Range is between 0 and 1.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS acontrast
.IX Subsection "acontrast"
Simple audio dynamic range compression/expansion filter.
.PP
The filter accepts the following options:
.IP \fBcontrast\fR 4
.IX Item "contrast"
Set contrast. Default is 33. Allowed range is between 0 and 100.
.SS acopy
.IX Subsection "acopy"
Copy the input audio source unchanged to the output. This is mainly useful for
testing purposes.
.SS acrossfade
.IX Subsection "acrossfade"
Apply cross fade from one input audio stream to another input audio stream.
The cross fade is applied for specified duration near the end of first stream.
.PP
The filter accepts the following options:
.IP "\fBnb_samples, ns\fR" 4
.IX Item "nb_samples, ns"
Specify the number of samples for which the cross fade effect has to last.
At the end of the cross fade effect the first input audio will be completely
silent. Default is 44100.
.IP "\fBduration, d\fR" 4
.IX Item "duration, d"
Specify the duration of the cross fade effect. See
\&\fBthe Time duration section in the ffmpeg\-utils\|(1) manual\fR
for the accepted syntax.
By default the duration is determined by \fInb_samples\fR.
If set this option is used instead of \fInb_samples\fR.
.IP "\fBoverlap, o\fR" 4
.IX Item "overlap, o"
Should first stream end overlap with second stream start. Default is enabled.
.IP \fBcurve1\fR 4
.IX Item "curve1"
Set curve for cross fade transition for first stream.
.IP \fBcurve2\fR 4
.IX Item "curve2"
Set curve for cross fade transition for second stream.
.Sp
For description of available curve types see \fBafade\fR filter description.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Cross fade from one input to another:
.Sp
.Vb 1
\&        ffmpeg \-i first.flac \-i second.flac \-filter_complex acrossfade=d=10:c1=exp:c2=exp output.flac
.Ve
.IP \(bu 4
Cross fade from one input to another but without overlapping:
.Sp
.Vb 1
\&        ffmpeg \-i first.flac \-i second.flac \-filter_complex acrossfade=d=10:o=0:c1=exp:c2=exp output.flac
.Ve
.SS acrossover
.IX Subsection "acrossover"
Split audio stream into several bands.
.PP
This filter splits audio stream into two or more frequency ranges.
Summing all streams back will give flat output.
.PP
The filter accepts the following options:
.IP \fBsplit\fR 4
.IX Item "split"
Set split frequencies. Those must be positive and increasing.
.IP \fBorder\fR 4
.IX Item "order"
Set filter order for each band split. This controls filter roll-off or steepness
of filter transfer function.
Available values are:
.RS 4
.IP \fB2nd\fR 4
.IX Item "2nd"
12 dB per octave.
.IP \fB4th\fR 4
.IX Item "4th"
24 dB per octave.
.IP \fB6th\fR 4
.IX Item "6th"
36 dB per octave.
.IP \fB8th\fR 4
.IX Item "8th"
48 dB per octave.
.IP \fB10th\fR 4
.IX Item "10th"
60 dB per octave.
.IP \fB12th\fR 4
.IX Item "12th"
72 dB per octave.
.IP \fB14th\fR 4
.IX Item "14th"
84 dB per octave.
.IP \fB16th\fR 4
.IX Item "16th"
96 dB per octave.
.IP \fB18th\fR 4
.IX Item "18th"
108 dB per octave.
.IP \fB20th\fR 4
.IX Item "20th"
120 dB per octave.
.RE
.RS 4
.Sp
Default is \fI4th\fR.
.RE
.IP \fBlevel\fR 4
.IX Item "level"
Set input gain level. Allowed range is from 0 to 1. Default value is 1.
.IP \fBgains\fR 4
.IX Item "gains"
Set output gain for each band. Default value is 1 for all bands.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Split input audio stream into two bands (low and high) with split frequency of 1500 Hz,
each band will be in separate stream:
.Sp
.Vb 1
\&        ffmpeg \-i in.flac \-filter_complex \*(Aqacrossover=split=1500[LOW][HIGH]\*(Aq \-map \*(Aq[LOW]\*(Aq low.wav \-map \*(Aq[HIGH]\*(Aq high.wav
.Ve
.IP \(bu 4
Same as above, but with higher filter order:
.Sp
.Vb 1
\&        ffmpeg \-i in.flac \-filter_complex \*(Aqacrossover=split=1500:order=8th[LOW][HIGH]\*(Aq \-map \*(Aq[LOW]\*(Aq low.wav \-map \*(Aq[HIGH]\*(Aq high.wav
.Ve
.IP \(bu 4
Same as above, but also with additional middle band (frequencies between 1500 and 8000):
.Sp
.Vb 1
\&        ffmpeg \-i in.flac \-filter_complex \*(Aqacrossover=split=1500 8000:order=8th[LOW][MID][HIGH]\*(Aq \-map \*(Aq[LOW]\*(Aq low.wav \-map \*(Aq[MID]\*(Aq mid.wav \-map \*(Aq[HIGH]\*(Aq high.wav
.Ve
.SS acrusher
.IX Subsection "acrusher"
Reduce audio bit resolution.
.PP
This filter is bit crusher with enhanced functionality. A bit crusher
is used to audibly reduce number of bits an audio signal is sampled
with. This doesn't change the bit depth at all, it just produces the
effect. Material reduced in bit depth sounds more harsh and "digital".
This filter is able to even round to continuous values instead of discrete
bit depths.
Additionally it has a D/C offset which results in different crushing of
the lower and the upper half of the signal.
An Anti-Aliasing setting is able to produce "softer" crushing sounds.
.PP
Another feature of this filter is the logarithmic mode.
This setting switches from linear distances between bits to logarithmic ones.
The result is a much more "natural" sounding crusher which doesn't gate low
signals for example. The human ear has a logarithmic perception,
so this kind of crushing is much more pleasant.
Logarithmic crushing is also able to get anti-aliased.
.PP
The filter accepts the following options:
.IP \fBlevel_in\fR 4
.IX Item "level_in"
Set level in.
.IP \fBlevel_out\fR 4
.IX Item "level_out"
Set level out.
.IP \fBbits\fR 4
.IX Item "bits"
Set bit reduction.
.IP \fBmix\fR 4
.IX Item "mix"
Set mixing amount.
.IP \fBmode\fR 4
.IX Item "mode"
Can be linear: \f(CW\*(C`lin\*(C'\fR or logarithmic: \f(CW\*(C`log\*(C'\fR.
.IP \fBdc\fR 4
.IX Item "dc"
Set DC.
.IP \fBaa\fR 4
.IX Item "aa"
Set anti-aliasing.
.IP \fBsamples\fR 4
.IX Item "samples"
Set sample reduction.
.IP \fBlfo\fR 4
.IX Item "lfo"
Enable LFO. By default disabled.
.IP \fBlforange\fR 4
.IX Item "lforange"
Set LFO range.
.IP \fBlforate\fR 4
.IX Item "lforate"
Set LFO rate.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS acue
.IX Subsection "acue"
Delay audio filtering until a given wallclock timestamp. See the \fBcue\fR
filter.
.SS adeclick
.IX Subsection "adeclick"
Remove impulsive noise from input audio.
.PP
Samples detected as impulsive noise are replaced by interpolated samples using
autoregressive modelling.
.IP "\fBwindow, w\fR" 4
.IX Item "window, w"
Set window size, in milliseconds. Allowed range is from \f(CW10\fR to
\&\f(CW100\fR. Default value is \f(CW55\fR milliseconds.
This sets size of window which will be processed at once.
.IP "\fBoverlap, o\fR" 4
.IX Item "overlap, o"
Set window overlap, in percentage of window size. Allowed range is from
\&\f(CW50\fR to \f(CW95\fR. Default value is \f(CW75\fR percent.
Setting this to a very high value increases impulsive noise removal but makes
whole process much slower.
.IP "\fBarorder, a\fR" 4
.IX Item "arorder, a"
Set autoregression order, in percentage of window size. Allowed range is from
\&\f(CW0\fR to \f(CW25\fR. Default value is \f(CW2\fR percent. This option also
controls quality of interpolated samples using neighbour good samples.
.IP "\fBthreshold, t\fR" 4
.IX Item "threshold, t"
Set threshold value. Allowed range is from \f(CW1\fR to \f(CW100\fR.
Default value is \f(CW2\fR.
This controls the strength of impulsive noise which is going to be removed.
The lower value, the more samples will be detected as impulsive noise.
.IP "\fBburst, b\fR" 4
.IX Item "burst, b"
Set burst fusion, in percentage of window size. Allowed range is \f(CW0\fR to
\&\f(CW10\fR. Default value is \f(CW2\fR.
If any two samples detected as noise are spaced less than this value then any
sample between those two samples will be also detected as noise.
.IP "\fBmethod, m\fR" 4
.IX Item "method, m"
Set overlap method.
.Sp
It accepts the following values:
.RS 4
.IP "\fBadd, a\fR" 4
.IX Item "add, a"
Select overlap-add method. Even not interpolated samples are slightly
changed with this method.
.IP "\fBsave, s\fR" 4
.IX Item "save, s"
Select overlap-save method. Not interpolated samples remain unchanged.
.RE
.RS 4
.Sp
Default value is \f(CW\*(C`a\*(C'\fR.
.RE
.SS adeclip
.IX Subsection "adeclip"
Remove clipped samples from input audio.
.PP
Samples detected as clipped are replaced by interpolated samples using
autoregressive modelling.
.IP "\fBwindow, w\fR" 4
.IX Item "window, w"
Set window size, in milliseconds. Allowed range is from \f(CW10\fR to \f(CW100\fR.
Default value is \f(CW55\fR milliseconds.
This sets size of window which will be processed at once.
.IP "\fBoverlap, o\fR" 4
.IX Item "overlap, o"
Set window overlap, in percentage of window size. Allowed range is from \f(CW50\fR
to \f(CW95\fR. Default value is \f(CW75\fR percent.
.IP "\fBarorder, a\fR" 4
.IX Item "arorder, a"
Set autoregression order, in percentage of window size. Allowed range is from
\&\f(CW0\fR to \f(CW25\fR. Default value is \f(CW8\fR percent. This option also controls
quality of interpolated samples using neighbour good samples.
.IP "\fBthreshold, t\fR" 4
.IX Item "threshold, t"
Set threshold value. Allowed range is from \f(CW1\fR to \f(CW100\fR.
Default value is \f(CW10\fR. Higher values make clip detection less aggressive.
.IP "\fBhsize, n\fR" 4
.IX Item "hsize, n"
Set size of histogram used to detect clips. Allowed range is from \f(CW100\fR to \f(CW9999\fR.
Default value is \f(CW1000\fR. Higher values make clip detection less aggressive.
.IP "\fBmethod, m\fR" 4
.IX Item "method, m"
Set overlap method.
.Sp
It accepts the following values:
.RS 4
.IP "\fBadd, a\fR" 4
.IX Item "add, a"
Select overlap-add method. Even not interpolated samples are slightly changed
with this method.
.IP "\fBsave, s\fR" 4
.IX Item "save, s"
Select overlap-save method. Not interpolated samples remain unchanged.
.RE
.RS 4
.Sp
Default value is \f(CW\*(C`a\*(C'\fR.
.RE
.SS adelay
.IX Subsection "adelay"
Delay one or more audio channels.
.PP
Samples in delayed channel are filled with silence.
.PP
The filter accepts the following option:
.IP \fBdelays\fR 4
.IX Item "delays"
Set list of delays in milliseconds for each channel separated by '|'.
Unused delays will be silently ignored. If number of given delays is
smaller than number of channels all remaining channels will not be delayed.
If you want to delay exact number of samples, append 'S' to number.
If you want instead to delay in seconds, append 's' to number.
.IP \fBall\fR 4
.IX Item "all"
Use last set delay for all remaining channels. By default is disabled.
This option if enabled changes how option \f(CW\*(C`delays\*(C'\fR is interpreted.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Delay first channel by 1.5 seconds, the third channel by 0.5 seconds and leave
the second channel (and any other channels that may be present) unchanged.
.Sp
.Vb 1
\&        adelay=1500|0|500
.Ve
.IP \(bu 4
Delay second channel by 500 samples, the third channel by 700 samples and leave
the first channel (and any other channels that may be present) unchanged.
.Sp
.Vb 1
\&        adelay=0|500S|700S
.Ve
.IP \(bu 4
Delay all channels by same number of samples:
.Sp
.Vb 1
\&        adelay=delays=64S:all=1
.Ve
.SS adenorm
.IX Subsection "adenorm"
Remedy denormals in audio by adding extremely low-level noise.
.PP
This filter shall be placed before any filter that can produce denormals.
.PP
A description of the accepted parameters follows.
.IP \fBlevel\fR 4
.IX Item "level"
Set level of added noise in dB. Default is \f(CW\-351\fR.
Allowed range is from \-451 to \-90.
.IP \fBtype\fR 4
.IX Item "type"
Set type of added noise.
.RS 4
.IP \fBdc\fR 4
.IX Item "dc"
Add DC signal.
.IP \fBac\fR 4
.IX Item "ac"
Add AC signal.
.IP \fBsquare\fR 4
.IX Item "square"
Add square signal.
.IP \fBpulse\fR 4
.IX Item "pulse"
Add pulse signal.
.RE
.RS 4
.Sp
Default is \f(CW\*(C`dc\*(C'\fR.
.RE
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS "aderivative, aintegral"
.IX Subsection "aderivative, aintegral"
Compute derivative/integral of audio stream.
.PP
Applying both filters one after another produces original audio.
.SS aecho
.IX Subsection "aecho"
Apply echoing to the input audio.
.PP
Echoes are reflected sound and can occur naturally amongst mountains
(and sometimes large buildings) when talking or shouting; digital echo
effects emulate this behaviour and are often used to help fill out the
sound of a single instrument or vocal. The time difference between the
original signal and the reflection is the \f(CW\*(C`delay\*(C'\fR, and the
loudness of the reflected signal is the \f(CW\*(C`decay\*(C'\fR.
Multiple echoes can have different delays and decays.
.PP
A description of the accepted parameters follows.
.IP \fBin_gain\fR 4
.IX Item "in_gain"
Set input gain of reflected signal. Default is \f(CW0.6\fR.
.IP \fBout_gain\fR 4
.IX Item "out_gain"
Set output gain of reflected signal. Default is \f(CW0.3\fR.
.IP \fBdelays\fR 4
.IX Item "delays"
Set list of time intervals in milliseconds between original signal and reflections
separated by '|'. Allowed range for each \f(CW\*(C`delay\*(C'\fR is \f(CW\*(C`(0 \- 90000.0]\*(C'\fR.
Default is \f(CW1000\fR.
.IP \fBdecays\fR 4
.IX Item "decays"
Set list of loudness of reflected signals separated by '|'.
Allowed range for each \f(CW\*(C`decay\*(C'\fR is \f(CW\*(C`(0 \- 1.0]\*(C'\fR.
Default is \f(CW0.5\fR.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Make it sound as if there are twice as many instruments as are actually playing:
.Sp
.Vb 1
\&        aecho=0.8:0.88:60:0.4
.Ve
.IP \(bu 4
If delay is very short, then it sounds like a (metallic) robot playing music:
.Sp
.Vb 1
\&        aecho=0.8:0.88:6:0.4
.Ve
.IP \(bu 4
A longer delay will sound like an open air concert in the mountains:
.Sp
.Vb 1
\&        aecho=0.8:0.9:1000:0.3
.Ve
.IP \(bu 4
Same as above but with one more mountain:
.Sp
.Vb 1
\&        aecho=0.8:0.9:1000|1800:0.3|0.25
.Ve
.SS aemphasis
.IX Subsection "aemphasis"
Audio emphasis filter creates or restores material directly taken from LPs or
emphased CDs with different filter curves. E.g. to store music on vinyl the
signal has to be altered by a filter first to even out the disadvantages of
this recording medium.
Once the material is played back the inverse filter has to be applied to
restore the distortion of the frequency response.
.PP
The filter accepts the following options:
.IP \fBlevel_in\fR 4
.IX Item "level_in"
Set input gain.
.IP \fBlevel_out\fR 4
.IX Item "level_out"
Set output gain.
.IP \fBmode\fR 4
.IX Item "mode"
Set filter mode. For restoring material use \f(CW\*(C`reproduction\*(C'\fR mode, otherwise
use \f(CW\*(C`production\*(C'\fR mode. Default is \f(CW\*(C`reproduction\*(C'\fR mode.
.IP \fBtype\fR 4
.IX Item "type"
Set filter type. Selects medium. Can be one of the following:
.RS 4
.IP \fBcol\fR 4
.IX Item "col"
select Columbia.
.IP \fBemi\fR 4
.IX Item "emi"
select EMI.
.IP \fBbsi\fR 4
.IX Item "bsi"
select BSI (78RPM).
.IP \fBriaa\fR 4
.IX Item "riaa"
select RIAA.
.IP \fBcd\fR 4
.IX Item "cd"
select Compact Disc (CD).
.IP \fB50fm\fR 4
.IX Item "50fm"
select 50µs (FM).
.IP \fB75fm\fR 4
.IX Item "75fm"
select 75µs (FM).
.IP \fB50kf\fR 4
.IX Item "50kf"
select 50µs (FM-KF).
.IP \fB75kf\fR 4
.IX Item "75kf"
select 75µs (FM-KF).
.RE
.RS 4
.RE
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS aeval
.IX Subsection "aeval"
Modify an audio signal according to the specified expressions.
.PP
This filter accepts one or more expressions (one for each channel),
which are evaluated and used to modify a corresponding audio signal.
.PP
It accepts the following parameters:
.IP \fBexprs\fR 4
.IX Item "exprs"
Set the '|'\-separated expressions list for each separate channel. If
the number of input channels is greater than the number of
expressions, the last specified expression is used for the remaining
output channels.
.IP "\fBchannel_layout, c\fR" 4
.IX Item "channel_layout, c"
Set output channel layout. If not specified, the channel layout is
specified by the number of expressions. If set to \fBsame\fR, it will
use by default the same input channel layout.
.PP
Each expression in \fIexprs\fR can contain the following constants and functions:
.IP \fBch\fR 4
.IX Item "ch"
channel number of the current expression
.IP \fBn\fR 4
.IX Item "n"
number of the evaluated sample, starting from 0
.IP \fBs\fR 4
.IX Item "s"
sample rate
.IP \fBt\fR 4
.IX Item "t"
time of the evaluated sample expressed in seconds
.IP \fBnb_in_channels\fR 4
.IX Item "nb_in_channels"
.PD 0
.IP \fBnb_out_channels\fR 4
.IX Item "nb_out_channels"
.PD
input and output number of channels
.IP \fBval(CH)\fR 4
.IX Item "val(CH)"
the value of input channel with number \fICH\fR
.PP
Note: this filter is slow. For faster processing you should use a
dedicated filter.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Half volume:
.Sp
.Vb 1
\&        aeval=val(ch)/2:c=same
.Ve
.IP \(bu 4
Invert phase of the second channel:
.Sp
.Vb 1
\&        aeval=val(0)|\-val(1)
.Ve
.SS aexciter
.IX Subsection "aexciter"
An exciter is used to produce high sound that is not present in the
original signal. This is done by creating harmonic distortions of the
signal which are restricted in range and added to the original signal.
An Exciter raises the upper end of an audio signal without simply raising
the higher frequencies like an equalizer would do to create a more
"crisp" or "brilliant" sound.
.PP
The filter accepts the following options:
.IP \fBlevel_in\fR 4
.IX Item "level_in"
Set input level prior processing of signal.
Allowed range is from 0 to 64.
Default value is 1.
.IP \fBlevel_out\fR 4
.IX Item "level_out"
Set output level after processing of signal.
Allowed range is from 0 to 64.
Default value is 1.
.IP \fBamount\fR 4
.IX Item "amount"
Set the amount of harmonics added to original signal.
Allowed range is from 0 to 64.
Default value is 1.
.IP \fBdrive\fR 4
.IX Item "drive"
Set the amount of newly created harmonics.
Allowed range is from 0.1 to 10.
Default value is 8.5.
.IP \fBblend\fR 4
.IX Item "blend"
Set the octave of newly created harmonics.
Allowed range is from \-10 to 10.
Default value is 0.
.IP \fBfreq\fR 4
.IX Item "freq"
Set the lower frequency limit of producing harmonics in Hz.
Allowed range is from 2000 to 12000 Hz.
Default is 7500 Hz.
.IP \fBceil\fR 4
.IX Item "ceil"
Set the upper frequency limit of producing harmonics.
Allowed range is from 9999 to 20000 Hz.
If value is lower than 10000 Hz no limit is applied.
.IP \fBlisten\fR 4
.IX Item "listen"
Mute the original signal and output only added harmonics.
By default is disabled.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS afade
.IX Subsection "afade"
Apply fade\-in/out effect to input audio.
.PP
A description of the accepted parameters follows.
.IP "\fBtype, t\fR" 4
.IX Item "type, t"
Specify the effect type, can be either \f(CW\*(C`in\*(C'\fR for fade-in, or
\&\f(CW\*(C`out\*(C'\fR for a fade-out effect. Default is \f(CW\*(C`in\*(C'\fR.
.IP "\fBstart_sample, ss\fR" 4
.IX Item "start_sample, ss"
Specify the number of the start sample for starting to apply the fade
effect. Default is 0.
.IP "\fBnb_samples, ns\fR" 4
.IX Item "nb_samples, ns"
Specify the number of samples for which the fade effect has to last. At
the end of the fade-in effect the output audio will have the same
volume as the input audio, at the end of the fade-out transition
the output audio will be silence. Default is 44100.
.IP "\fBstart_time, st\fR" 4
.IX Item "start_time, st"
Specify the start time of the fade effect. Default is 0.
The value must be specified as a time duration; see
\&\fBthe Time duration section in the ffmpeg\-utils\|(1) manual\fR
for the accepted syntax.
If set this option is used instead of \fIstart_sample\fR.
.IP "\fBduration, d\fR" 4
.IX Item "duration, d"
Specify the duration of the fade effect. See
\&\fBthe Time duration section in the ffmpeg\-utils\|(1) manual\fR
for the accepted syntax.
At the end of the fade-in effect the output audio will have the same
volume as the input audio, at the end of the fade-out transition
the output audio will be silence.
By default the duration is determined by \fInb_samples\fR.
If set this option is used instead of \fInb_samples\fR.
.IP \fBcurve\fR 4
.IX Item "curve"
Set curve for fade transition.
.Sp
It accepts the following values:
.RS 4
.IP \fBtri\fR 4
.IX Item "tri"
select triangular, linear slope (default)
.IP \fBqsin\fR 4
.IX Item "qsin"
select quarter of sine wave
.IP \fBhsin\fR 4
.IX Item "hsin"
select half of sine wave
.IP \fBesin\fR 4
.IX Item "esin"
select exponential sine wave
.IP \fBlog\fR 4
.IX Item "log"
select logarithmic
.IP \fBipar\fR 4
.IX Item "ipar"
select inverted parabola
.IP \fBqua\fR 4
.IX Item "qua"
select quadratic
.IP \fBcub\fR 4
.IX Item "cub"
select cubic
.IP \fBsqu\fR 4
.IX Item "squ"
select square root
.IP \fBcbr\fR 4
.IX Item "cbr"
select cubic root
.IP \fBpar\fR 4
.IX Item "par"
select parabola
.IP \fBexp\fR 4
.IX Item "exp"
select exponential
.IP \fBiqsin\fR 4
.IX Item "iqsin"
select inverted quarter of sine wave
.IP \fBihsin\fR 4
.IX Item "ihsin"
select inverted half of sine wave
.IP \fBdese\fR 4
.IX Item "dese"
select double-exponential seat
.IP \fBdesi\fR 4
.IX Item "desi"
select double-exponential sigmoid
.IP \fBlosi\fR 4
.IX Item "losi"
select logistic sigmoid
.IP \fBsinc\fR 4
.IX Item "sinc"
select sine cardinal function
.IP \fBisinc\fR 4
.IX Item "isinc"
select inverted sine cardinal function
.IP \fBnofade\fR 4
.IX Item "nofade"
no fade applied
.RE
.RS 4
.RE
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Fade in first 15 seconds of audio:
.Sp
.Vb 1
\&        afade=t=in:ss=0:d=15
.Ve
.IP \(bu 4
Fade out last 25 seconds of a 900 seconds audio:
.Sp
.Vb 1
\&        afade=t=out:st=875:d=25
.Ve
.SS afftdn
.IX Subsection "afftdn"
Denoise audio samples with FFT.
.PP
A description of the accepted parameters follows.
.IP \fBnr\fR 4
.IX Item "nr"
Set the noise reduction in dB, allowed range is 0.01 to 97.
Default value is 12 dB.
.IP \fBnf\fR 4
.IX Item "nf"
Set the noise floor in dB, allowed range is \-80 to \-20.
Default value is \-50 dB.
.IP \fBnt\fR 4
.IX Item "nt"
Set the noise type.
.Sp
It accepts the following values:
.RS 4
.IP \fBw\fR 4
.IX Item "w"
Select white noise.
.IP \fBv\fR 4
.IX Item "v"
Select vinyl noise.
.IP \fBs\fR 4
.IX Item "s"
Select shellac noise.
.IP \fBc\fR 4
.IX Item "c"
Select custom noise, defined in \f(CW\*(C`bn\*(C'\fR option.
.Sp
Default value is white noise.
.RE
.RS 4
.RE
.IP \fBbn\fR 4
.IX Item "bn"
Set custom band noise for every one of 15 bands.
Bands are separated by ' ' or '|'.
.IP \fBrf\fR 4
.IX Item "rf"
Set the residual floor in dB, allowed range is \-80 to \-20.
Default value is \-38 dB.
.IP \fBtn\fR 4
.IX Item "tn"
Enable noise tracking. By default is disabled.
With this enabled, noise floor is automatically adjusted.
.IP \fBtr\fR 4
.IX Item "tr"
Enable residual tracking. By default is disabled.
.IP \fBom\fR 4
.IX Item "om"
Set the output mode.
.Sp
It accepts the following values:
.RS 4
.IP \fBi\fR 4
.IX Item "i"
Pass input unchanged.
.IP \fBo\fR 4
.IX Item "o"
Pass noise filtered out.
.IP \fBn\fR 4
.IX Item "n"
Pass only noise.
.Sp
Default value is \fIo\fR.
.RE
.RS 4
.RE
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the following commands:
.IP "\fBsample_noise, sn\fR" 4
.IX Item "sample_noise, sn"
Start or stop measuring noise profile.
Syntax for the command is : "start" or "stop" string.
After measuring noise profile is stopped it will be
automatically applied in filtering.
.IP "\fBnoise_reduction, nr\fR" 4
.IX Item "noise_reduction, nr"
Change noise reduction. Argument is single float number.
Syntax for the command is : "\fInoise_reduction\fR"
.IP "\fBnoise_floor, nf\fR" 4
.IX Item "noise_floor, nf"
Change noise floor. Argument is single float number.
Syntax for the command is : "\fInoise_floor\fR"
.IP "\fBoutput_mode, om\fR" 4
.IX Item "output_mode, om"
Change output mode operation.
Syntax for the command is : "i", "o" or "n" string.
.SS afftfilt
.IX Subsection "afftfilt"
Apply arbitrary expressions to samples in frequency domain.
.IP \fBreal\fR 4
.IX Item "real"
Set frequency domain real expression for each separate channel separated
by '|'. Default is "re".
If the number of input channels is greater than the number of
expressions, the last specified expression is used for the remaining
output channels.
.IP \fBimag\fR 4
.IX Item "imag"
Set frequency domain imaginary expression for each separate channel
separated by '|'. Default is "im".
.Sp
Each expression in \fIreal\fR and \fIimag\fR can contain the following
constants and functions:
.RS 4
.IP \fBsr\fR 4
.IX Item "sr"
sample rate
.IP \fBb\fR 4
.IX Item "b"
current frequency bin number
.IP \fBnb\fR 4
.IX Item "nb"
number of available bins
.IP \fBch\fR 4
.IX Item "ch"
channel number of the current expression
.IP \fBchs\fR 4
.IX Item "chs"
number of channels
.IP \fBpts\fR 4
.IX Item "pts"
current frame pts
.IP \fBre\fR 4
.IX Item "re"
current real part of frequency bin of current channel
.IP \fBim\fR 4
.IX Item "im"
current imaginary part of frequency bin of current channel
.IP "\fBreal(b, ch)\fR" 4
.IX Item "real(b, ch)"
Return the value of real part of frequency bin at location (\fIbin\fR,\fIchannel\fR)
.IP "\fBimag(b, ch)\fR" 4
.IX Item "imag(b, ch)"
Return the value of imaginary part of frequency bin at location (\fIbin\fR,\fIchannel\fR)
.RE
.RS 4
.RE
.IP \fBwin_size\fR 4
.IX Item "win_size"
Set window size. Allowed range is from 16 to 131072.
Default is \f(CW4096\fR
.IP \fBwin_func\fR 4
.IX Item "win_func"
Set window function. Default is \f(CW\*(C`hann\*(C'\fR.
.IP \fBoverlap\fR 4
.IX Item "overlap"
Set window overlap. If set to 1, the recommended overlap for selected
window function will be picked. Default is \f(CW0.75\fR.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Leave almost only low frequencies in audio:
.Sp
.Vb 1
\&        afftfilt="\*(Aqreal=re * (1\-clip((b/nb)*b,0,1))\*(Aq:imag=\*(Aqim * (1\-clip((b/nb)*b,0,1))\*(Aq"
.Ve
.IP \(bu 4
Apply robotize effect:
.Sp
.Vb 1
\&        afftfilt="real=\*(Aqhypot(re,im)*sin(0)\*(Aq:imag=\*(Aqhypot(re,im)*cos(0)\*(Aq:win_size=512:overlap=0.75"
.Ve
.IP \(bu 4
Apply whisper effect:
.Sp
.Vb 1
\&        afftfilt="real=\*(Aqhypot(re,im)*cos((random(0)*2\-1)*2*3.14)\*(Aq:imag=\*(Aqhypot(re,im)*sin((random(1)*2\-1)*2*3.14)\*(Aq:win_size=128:overlap=0.8"
.Ve
.SS afir
.IX Subsection "afir"
Apply an arbitrary Finite Impulse Response filter.
.PP
This filter is designed for applying long FIR filters,
up to 60 seconds long.
.PP
It can be used as component for digital crossover filters,
room equalization, cross talk cancellation, wavefield synthesis,
auralization, ambiophonics, ambisonics and spatialization.
.PP
This filter uses the streams higher than first one as FIR coefficients.
If the non-first stream holds a single channel, it will be used
for all input channels in the first stream, otherwise
the number of channels in the non-first stream must be same as
the number of channels in the first stream.
.PP
It accepts the following parameters:
.IP \fBdry\fR 4
.IX Item "dry"
Set dry gain. This sets input gain.
.IP \fBwet\fR 4
.IX Item "wet"
Set wet gain. This sets final output gain.
.IP \fBlength\fR 4
.IX Item "length"
Set Impulse Response filter length. Default is 1, which means whole IR is processed.
.IP \fBgtype\fR 4
.IX Item "gtype"
Enable applying gain measured from power of IR.
.Sp
Set which approach to use for auto gain measurement.
.RS 4
.IP \fBnone\fR 4
.IX Item "none"
Do not apply any gain.
.IP \fBpeak\fR 4
.IX Item "peak"
select peak gain, very conservative approach. This is default value.
.IP \fBdc\fR 4
.IX Item "dc"
select DC gain, limited application.
.IP \fBgn\fR 4
.IX Item "gn"
select gain to noise approach, this is most popular one.
.RE
.RS 4
.RE
.IP \fBirgain\fR 4
.IX Item "irgain"
Set gain to be applied to IR coefficients before filtering.
Allowed range is 0 to 1. This gain is applied after any gain applied with \fIgtype\fR option.
.IP \fBirfmt\fR 4
.IX Item "irfmt"
Set format of IR stream. Can be \f(CW\*(C`mono\*(C'\fR or \f(CW\*(C`input\*(C'\fR.
Default is \f(CW\*(C`input\*(C'\fR.
.IP \fBmaxir\fR 4
.IX Item "maxir"
Set max allowed Impulse Response filter duration in seconds. Default is 30 seconds.
Allowed range is 0.1 to 60 seconds.
.IP \fBresponse\fR 4
.IX Item "response"
Show IR frequency response, magnitude(magenta), phase(green) and group delay(yellow) in additional video stream.
By default it is disabled.
.IP \fBchannel\fR 4
.IX Item "channel"
Set for which IR channel to display frequency response. By default is first channel
displayed. This option is used only when \fIresponse\fR is enabled.
.IP \fBsize\fR 4
.IX Item "size"
Set video stream size. This option is used only when \fIresponse\fR is enabled.
.IP \fBrate\fR 4
.IX Item "rate"
Set video stream frame rate. This option is used only when \fIresponse\fR is enabled.
.IP \fBminp\fR 4
.IX Item "minp"
Set minimal partition size used for convolution. Default is \fI8192\fR.
Allowed range is from \fI1\fR to \fI32768\fR.
Lower values decreases latency at cost of higher CPU usage.
.IP \fBmaxp\fR 4
.IX Item "maxp"
Set maximal partition size used for convolution. Default is \fI8192\fR.
Allowed range is from \fI8\fR to \fI32768\fR.
Lower values may increase CPU usage.
.IP \fBnbirs\fR 4
.IX Item "nbirs"
Set number of input impulse responses streams which will be switchable at runtime.
Allowed range is from \fI1\fR to \fI32\fR. Default is \fI1\fR.
.IP \fBir\fR 4
.IX Item "ir"
Set IR stream which will be used for convolution, starting from \fI0\fR, should always be
lower than supplied value by \f(CW\*(C`nbirs\*(C'\fR option. Default is \fI0\fR.
This option can be changed at runtime via \fBcommands\fR.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Apply reverb to stream using mono IR file as second input, complete command using ffmpeg:
.Sp
.Vb 1
\&        ffmpeg \-i input.wav \-i middle_tunnel_1way_mono.wav \-lavfi afir output.wav
.Ve
.SS aformat
.IX Subsection "aformat"
Set output format constraints for the input audio. The framework will
negotiate the most appropriate format to minimize conversions.
.PP
It accepts the following parameters:
.IP "\fBsample_fmts, f\fR" 4
.IX Item "sample_fmts, f"
A '|'\-separated list of requested sample formats.
.IP "\fBsample_rates, r\fR" 4
.IX Item "sample_rates, r"
A '|'\-separated list of requested sample rates.
.IP "\fBchannel_layouts, cl\fR" 4
.IX Item "channel_layouts, cl"
A '|'\-separated list of requested channel layouts.
.Sp
See \fBthe Channel Layout section in the ffmpeg\-utils\|(1) manual\fR
for the required syntax.
.PP
If a parameter is omitted, all values are allowed.
.PP
Force the output to either unsigned 8\-bit or signed 16\-bit stereo
.PP
.Vb 1
\&        aformat=sample_fmts=u8|s16:channel_layouts=stereo
.Ve
.SS afreqshift
.IX Subsection "afreqshift"
Apply frequency shift to input audio samples.
.PP
The filter accepts the following options:
.IP \fBshift\fR 4
.IX Item "shift"
Specify frequency shift. Allowed range is \-INT_MAX to INT_MAX.
Default value is 0.0.
.IP \fBlevel\fR 4
.IX Item "level"
Set output gain applied to final output. Allowed range is from 0.0 to 1.0.
Default value is 1.0.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS agate
.IX Subsection "agate"
A gate is mainly used to reduce lower parts of a signal. This kind of signal
processing reduces disturbing noise between useful signals.
.PP
Gating is done by detecting the volume below a chosen level \fIthreshold\fR
and dividing it by the factor set with \fIratio\fR. The bottom of the noise
floor is set via \fIrange\fR. Because an exact manipulation of the signal
would cause distortion of the waveform the reduction can be levelled over
time. This is done by setting \fIattack\fR and \fIrelease\fR.
.PP
\&\fIattack\fR determines how long the signal has to fall below the threshold
before any reduction will occur and \fIrelease\fR sets the time the signal
has to rise above the threshold to reduce the reduction again.
Shorter signals than the chosen attack time will be left untouched.
.IP \fBlevel_in\fR 4
.IX Item "level_in"
Set input level before filtering.
Default is 1. Allowed range is from 0.015625 to 64.
.IP \fBmode\fR 4
.IX Item "mode"
Set the mode of operation. Can be \f(CW\*(C`upward\*(C'\fR or \f(CW\*(C`downward\*(C'\fR.
Default is \f(CW\*(C`downward\*(C'\fR. If set to \f(CW\*(C`upward\*(C'\fR mode, higher parts of signal
will be amplified, expanding dynamic range in upward direction.
Otherwise, in case of \f(CW\*(C`downward\*(C'\fR lower parts of signal will be reduced.
.IP \fBrange\fR 4
.IX Item "range"
Set the level of gain reduction when the signal is below the threshold.
Default is 0.06125. Allowed range is from 0 to 1.
Setting this to 0 disables reduction and then filter behaves like expander.
.IP \fBthreshold\fR 4
.IX Item "threshold"
If a signal rises above this level the gain reduction is released.
Default is 0.125. Allowed range is from 0 to 1.
.IP \fBratio\fR 4
.IX Item "ratio"
Set a ratio by which the signal is reduced.
Default is 2. Allowed range is from 1 to 9000.
.IP \fBattack\fR 4
.IX Item "attack"
Amount of milliseconds the signal has to rise above the threshold before gain
reduction stops.
Default is 20 milliseconds. Allowed range is from 0.01 to 9000.
.IP \fBrelease\fR 4
.IX Item "release"
Amount of milliseconds the signal has to fall below the threshold before the
reduction is increased again. Default is 250 milliseconds.
Allowed range is from 0.01 to 9000.
.IP \fBmakeup\fR 4
.IX Item "makeup"
Set amount of amplification of signal after processing.
Default is 1. Allowed range is from 1 to 64.
.IP \fBknee\fR 4
.IX Item "knee"
Curve the sharp knee around the threshold to enter gain reduction more softly.
Default is 2.828427125. Allowed range is from 1 to 8.
.IP \fBdetection\fR 4
.IX Item "detection"
Choose if exact signal should be taken for detection or an RMS like one.
Default is \f(CW\*(C`rms\*(C'\fR. Can be \f(CW\*(C`peak\*(C'\fR or \f(CW\*(C`rms\*(C'\fR.
.IP \fBlink\fR 4
.IX Item "link"
Choose if the average level between all channels or the louder channel affects
the reduction.
Default is \f(CW\*(C`average\*(C'\fR. Can be \f(CW\*(C`average\*(C'\fR or \f(CW\*(C`maximum\*(C'\fR.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS aiir
.IX Subsection "aiir"
Apply an arbitrary Infinite Impulse Response filter.
.PP
It accepts the following parameters:
.IP "\fBzeros, z\fR" 4
.IX Item "zeros, z"
Set B/numerator/zeros/reflection coefficients.
.IP "\fBpoles, p\fR" 4
.IX Item "poles, p"
Set A/denominator/poles/ladder coefficients.
.IP "\fBgains, k\fR" 4
.IX Item "gains, k"
Set channels gains.
.IP \fBdry_gain\fR 4
.IX Item "dry_gain"
Set input gain.
.IP \fBwet_gain\fR 4
.IX Item "wet_gain"
Set output gain.
.IP "\fBformat, f\fR" 4
.IX Item "format, f"
Set coefficients format.
.RS 4
.IP \fBll\fR 4
.IX Item "ll"
lattice-ladder function
.IP \fBsf\fR 4
.IX Item "sf"
analog transfer function
.IP \fBtf\fR 4
.IX Item "tf"
digital transfer function
.IP \fBzp\fR 4
.IX Item "zp"
Z\-plane zeros/poles, cartesian (default)
.IP \fBpr\fR 4
.IX Item "pr"
Z\-plane zeros/poles, polar radians
.IP \fBpd\fR 4
.IX Item "pd"
Z\-plane zeros/poles, polar degrees
.IP \fBsp\fR 4
.IX Item "sp"
S\-plane zeros/poles
.RE
.RS 4
.RE
.IP "\fBprocess, r\fR" 4
.IX Item "process, r"
Set type of processing.
.RS 4
.IP \fBd\fR 4
.IX Item "d"
direct processing
.IP \fBs\fR 4
.IX Item "s"
serial processing
.IP \fBp\fR 4
.IX Item "p"
parallel processing
.RE
.RS 4
.RE
.IP "\fBprecision, e\fR" 4
.IX Item "precision, e"
Set filtering precision.
.RS 4
.IP \fBdbl\fR 4
.IX Item "dbl"
double-precision floating-point (default)
.IP \fBflt\fR 4
.IX Item "flt"
single-precision floating-point
.IP \fBi32\fR 4
.IX Item "i32"
32\-bit integers
.IP \fBi16\fR 4
.IX Item "i16"
16\-bit integers
.RE
.RS 4
.RE
.IP "\fBnormalize, n\fR" 4
.IX Item "normalize, n"
Normalize filter coefficients, by default is enabled.
Enabling it will normalize magnitude response at DC to 0dB.
.IP \fBmix\fR 4
.IX Item "mix"
How much to use filtered signal in output. Default is 1.
Range is between 0 and 1.
.IP \fBresponse\fR 4
.IX Item "response"
Show IR frequency response, magnitude(magenta), phase(green) and group delay(yellow) in additional video stream.
By default it is disabled.
.IP \fBchannel\fR 4
.IX Item "channel"
Set for which IR channel to display frequency response. By default is first channel
displayed. This option is used only when \fIresponse\fR is enabled.
.IP \fBsize\fR 4
.IX Item "size"
Set video stream size. This option is used only when \fIresponse\fR is enabled.
.PP
Coefficients in \f(CW\*(C`tf\*(C'\fR and \f(CW\*(C`sf\*(C'\fR format are separated by spaces and are in ascending
order.
.PP
Coefficients in \f(CW\*(C`zp\*(C'\fR format are separated by spaces and order of coefficients
doesn't matter. Coefficients in \f(CW\*(C`zp\*(C'\fR format are complex numbers with \fIi\fR
imaginary unit.
.PP
Different coefficients and gains can be provided for every channel, in such case
use '|' to separate coefficients or gains. Last provided coefficients will be
used for all remaining channels.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Apply 2 pole elliptic notch at around 5000Hz for 48000 Hz sample rate:
.Sp
.Vb 1
\&        aiir=k=1:z=7.957584807809675810E\-1 \-2.575128568908332300 3.674839853930788710 \-2.57512875289799137 7.957586296317130880E\-1:p=1 \-2.86950072432325953 3.63022088054647218 \-2.28075678147272232 6.361362326477423500E\-1:f=tf:r=d
.Ve
.IP \(bu 4
Same as above but in \f(CW\*(C`zp\*(C'\fR format:
.Sp
.Vb 1
\&        aiir=k=0.79575848078096756:z=0.80918701+0.58773007i 0.80918701\-0.58773007i 0.80884700+0.58784055i 0.80884700\-0.58784055i:p=0.63892345+0.59951235i 0.63892345\-0.59951235i 0.79582691+0.44198673i 0.79582691\-0.44198673i:f=zp:r=s
.Ve
.IP \(bu 4
Apply 3\-rd order analog normalized Butterworth low-pass filter, using analog transfer function format:
.Sp
.Vb 1
\&        aiir=z=1.3057 0 0 0:p=1.3057 2.3892 2.1860 1:f=sf:r=d
.Ve
.SS alimiter
.IX Subsection "alimiter"
The limiter prevents an input signal from rising over a desired threshold.
This limiter uses lookahead technology to prevent your signal from distorting.
It means that there is a small delay after the signal is processed. Keep in mind
that the delay it produces is the attack time you set.
.PP
The filter accepts the following options:
.IP \fBlevel_in\fR 4
.IX Item "level_in"
Set input gain. Default is 1.
.IP \fBlevel_out\fR 4
.IX Item "level_out"
Set output gain. Default is 1.
.IP \fBlimit\fR 4
.IX Item "limit"
Don't let signals above this level pass the limiter. Default is 1.
.IP \fBattack\fR 4
.IX Item "attack"
The limiter will reach its attenuation level in this amount of time in
milliseconds. Default is 5 milliseconds.
.IP \fBrelease\fR 4
.IX Item "release"
Come back from limiting to attenuation 1.0 in this amount of milliseconds.
Default is 50 milliseconds.
.IP \fBasc\fR 4
.IX Item "asc"
When gain reduction is always needed ASC takes care of releasing to an
average reduction level rather than reaching a reduction of 0 in the release
time.
.IP \fBasc_level\fR 4
.IX Item "asc_level"
Select how much the release time is affected by ASC, 0 means nearly no changes
in release time while 1 produces higher release times.
.IP \fBlevel\fR 4
.IX Item "level"
Auto level output signal. Default is enabled.
This normalizes audio back to 0dB if enabled.
.PP
Depending on picked setting it is recommended to upsample input 2x or 4x times
with \fBaresample\fR before applying this filter.
.SS allpass
.IX Subsection "allpass"
Apply a two-pole all-pass filter with central frequency (in Hz)
\&\fIfrequency\fR, and filter-width \fIwidth\fR.
An all-pass filter changes the audio's frequency to phase relationship
without changing its frequency to amplitude relationship.
.PP
The filter accepts the following options:
.IP "\fBfrequency, f\fR" 4
.IX Item "frequency, f"
Set frequency in Hz.
.IP "\fBwidth_type, t\fR" 4
.IX Item "width_type, t"
Set method to specify band-width of filter.
.RS 4
.IP \fBh\fR 4
.IX Item "h"
Hz
.IP \fBq\fR 4
.IX Item "q"
Q\-Factor
.IP \fBo\fR 4
.IX Item "o"
octave
.IP \fBs\fR 4
.IX Item "s"
slope
.IP \fBk\fR 4
.IX Item "k"
kHz
.RE
.RS 4
.RE
.IP "\fBwidth, w\fR" 4
.IX Item "width, w"
Specify the band-width of a filter in width_type units.
.IP "\fBmix, m\fR" 4
.IX Item "mix, m"
How much to use filtered signal in output. Default is 1.
Range is between 0 and 1.
.IP "\fBchannels, c\fR" 4
.IX Item "channels, c"
Specify which channels to filter, by default all available are filtered.
.IP "\fBnormalize, n\fR" 4
.IX Item "normalize, n"
Normalize biquad coefficients, by default is disabled.
Enabling it will normalize magnitude response at DC to 0dB.
.IP "\fBorder, o\fR" 4
.IX Item "order, o"
Set the filter order, can be 1 or 2. Default is 2.
.IP "\fBtransform, a\fR" 4
.IX Item "transform, a"
Set transform type of IIR filter.
.RS 4
.IP \fBdi\fR 4
.IX Item "di"
.PD 0
.IP \fBdii\fR 4
.IX Item "dii"
.IP \fBtdii\fR 4
.IX Item "tdii"
.IP \fBlatt\fR 4
.IX Item "latt"
.RE
.RS 4
.RE
.IP "\fBprecision, r\fR" 4
.IX Item "precision, r"
.PD
Set precison of filtering.
.RS 4
.IP \fBauto\fR 4
.IX Item "auto"
Pick automatic sample format depending on surround filters.
.IP \fBs16\fR 4
.IX Item "s16"
Always use signed 16\-bit.
.IP \fBs32\fR 4
.IX Item "s32"
Always use signed 32\-bit.
.IP \fBf32\fR 4
.IX Item "f32"
Always use float 32\-bit.
.IP \fBf64\fR 4
.IX Item "f64"
Always use float 64\-bit.
.RE
.RS 4
.RE
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the following commands:
.IP "\fBfrequency, f\fR" 4
.IX Item "frequency, f"
Change allpass frequency.
Syntax for the command is : "\fIfrequency\fR"
.IP "\fBwidth_type, t\fR" 4
.IX Item "width_type, t"
Change allpass width_type.
Syntax for the command is : "\fIwidth_type\fR"
.IP "\fBwidth, w\fR" 4
.IX Item "width, w"
Change allpass width.
Syntax for the command is : "\fIwidth\fR"
.IP "\fBmix, m\fR" 4
.IX Item "mix, m"
Change allpass mix.
Syntax for the command is : "\fImix\fR"
.SS aloop
.IX Subsection "aloop"
Loop audio samples.
.PP
The filter accepts the following options:
.IP \fBloop\fR 4
.IX Item "loop"
Set the number of loops. Setting this value to \-1 will result in infinite loops.
Default is 0.
.IP \fBsize\fR 4
.IX Item "size"
Set maximal number of samples. Default is 0.
.IP \fBstart\fR 4
.IX Item "start"
Set first sample of loop. Default is 0.
.SS amerge
.IX Subsection "amerge"
Merge two or more audio streams into a single multi-channel stream.
.PP
The filter accepts the following options:
.IP \fBinputs\fR 4
.IX Item "inputs"
Set the number of inputs. Default is 2.
.PP
If the channel layouts of the inputs are disjoint, and therefore compatible,
the channel layout of the output will be set accordingly and the channels
will be reordered as necessary. If the channel layouts of the inputs are not
disjoint, the output will have all the channels of the first input then all
the channels of the second input, in that order, and the channel layout of
the output will be the default value corresponding to the total number of
channels.
.PP
For example, if the first input is in 2.1 (FL+FR+LF) and the second input
is FC+BL+BR, then the output will be in 5.1, with the channels in the
following order: a1, a2, b1, a3, b2, b3 (a1 is the first channel of the
first input, b1 is the first channel of the second input).
.PP
On the other hand, if both input are in stereo, the output channels will be
in the default order: a1, a2, b1, b2, and the channel layout will be
arbitrarily set to 4.0, which may or may not be the expected value.
.PP
All inputs must have the same sample rate, and format.
.PP
If inputs do not have the same duration, the output will stop with the
shortest.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Merge two mono files into a stereo stream:
.Sp
.Vb 1
\&        amovie=left.wav [l] ; amovie=right.mp3 [r] ; [l] [r] amerge
.Ve
.IP \(bu 4
Multiple merges assuming 1 video stream and 6 audio streams in \fIinput.mkv\fR:
.Sp
.Vb 1
\&        ffmpeg \-i input.mkv \-filter_complex "[0:1][0:2][0:3][0:4][0:5][0:6] amerge=inputs=6" \-c:a pcm_s16le output.mkv
.Ve
.SS amix
.IX Subsection "amix"
Mixes multiple audio inputs into a single output.
.PP
Note that this filter only supports float samples (the \fIamerge\fR
and \fIpan\fR audio filters support many formats). If the \fIamix\fR
input has integer samples then \fBaresample\fR will be automatically
inserted to perform the conversion to float samples.
.PP
For example
.PP
.Vb 1
\&        ffmpeg \-i INPUT1 \-i INPUT2 \-i INPUT3 \-filter_complex amix=inputs=3:duration=first:dropout_transition=3 OUTPUT
.Ve
.PP
will mix 3 input audio streams to a single output with the same duration as the
first input and a dropout transition time of 3 seconds.
.PP
It accepts the following parameters:
.IP \fBinputs\fR 4
.IX Item "inputs"
The number of inputs. If unspecified, it defaults to 2.
.IP \fBduration\fR 4
.IX Item "duration"
How to determine the end-of-stream.
.RS 4
.IP \fBlongest\fR 4
.IX Item "longest"
The duration of the longest input. (default)
.IP \fBshortest\fR 4
.IX Item "shortest"
The duration of the shortest input.
.IP \fBfirst\fR 4
.IX Item "first"
The duration of the first input.
.RE
.RS 4
.RE
.IP \fBdropout_transition\fR 4
.IX Item "dropout_transition"
The transition time, in seconds, for volume renormalization when an input
stream ends. The default value is 2 seconds.
.IP \fBweights\fR 4
.IX Item "weights"
Specify weight of each input audio stream as sequence.
Each weight is separated by space. By default all inputs have same weight.
.IP \fBnormalize\fR 4
.IX Item "normalize"
Always scale inputs instead of only doing summation of samples.
Beware of heavy clipping if inputs are not normalized prior or after filtering
by this filter if this option is disabled. By default is enabled.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the following commands:
.IP \fBweights\fR 4
.IX Item "weights"
.PD 0
.IP \fBsum\fR 4
.IX Item "sum"
.PD
Syntax is same as option with same name.
.SS amultiply
.IX Subsection "amultiply"
Multiply first audio stream with second audio stream and store result
in output audio stream. Multiplication is done by multiplying each
sample from first stream with sample at same position from second stream.
.PP
With this element-wise multiplication one can create amplitude fades and
amplitude modulations.
.SS anequalizer
.IX Subsection "anequalizer"
High-order parametric multiband equalizer for each channel.
.PP
It accepts the following parameters:
.IP \fBparams\fR 4
.IX Item "params"
This option string is in format:
"c\fIchn\fR f=\fIcf\fR w=\fIw\fR g=\fIg\fR t=\fIf\fR | ..."
Each equalizer band is separated by '|'.
.RS 4
.IP \fBchn\fR 4
.IX Item "chn"
Set channel number to which equalization will be applied.
If input doesn't have that channel the entry is ignored.
.IP \fBf\fR 4
.IX Item "f"
Set central frequency for band.
If input doesn't have that frequency the entry is ignored.
.IP \fBw\fR 4
.IX Item "w"
Set band width in Hertz.
.IP \fBg\fR 4
.IX Item "g"
Set band gain in dB.
.IP \fBt\fR 4
.IX Item "t"
Set filter type for band, optional, can be:
.RS 4
.IP \fB0\fR 4
.IX Item "0"
Butterworth, this is default.
.IP \fB1\fR 4
.IX Item "1"
Chebyshev type 1.
.IP \fB2\fR 4
.IX Item "2"
Chebyshev type 2.
.RE
.RS 4
.RE
.RE
.RS 4
.RE
.IP \fBcurves\fR 4
.IX Item "curves"
With this option activated frequency response of anequalizer is displayed
in video stream.
.IP \fBsize\fR 4
.IX Item "size"
Set video stream size. Only useful if curves option is activated.
.IP \fBmgain\fR 4
.IX Item "mgain"
Set max gain that will be displayed. Only useful if curves option is activated.
Setting this to a reasonable value makes it possible to display gain which is derived from
neighbour bands which are too close to each other and thus produce higher gain
when both are activated.
.IP \fBfscale\fR 4
.IX Item "fscale"
Set frequency scale used to draw frequency response in video output.
Can be linear or logarithmic. Default is logarithmic.
.IP \fBcolors\fR 4
.IX Item "colors"
Set color for each channel curve which is going to be displayed in video stream.
This is list of color names separated by space or by '|'.
Unrecognised or missing colors will be replaced by white color.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Lower gain by 10 of central frequency 200Hz and width 100 Hz
for first 2 channels using Chebyshev type 1 filter:
.Sp
.Vb 1
\&        anequalizer=c0 f=200 w=100 g=\-10 t=1|c1 f=200 w=100 g=\-10 t=1
.Ve
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the following commands:
.IP \fBchange\fR 4
.IX Item "change"
Alter existing filter parameters.
Syntax for the commands is : "\fIfN\fR|f=\fIfreq\fR|w=\fIwidth\fR|g=\fIgain\fR"
.Sp
\&\fIfN\fR is existing filter number, starting from 0, if no such filter is available
error is returned.
\&\fIfreq\fR set new frequency parameter.
\&\fIwidth\fR set new width parameter in Hertz.
\&\fIgain\fR set new gain parameter in dB.
.Sp
Full filter invocation with asendcmd may look like this:
asendcmd=c='4.0 anequalizer change 0|f=200|w=50|g=1',anequalizer=...
.SS anlmdn
.IX Subsection "anlmdn"
Reduce broadband noise in audio samples using Non-Local Means algorithm.
.PP
Each sample is adjusted by looking for other samples with similar contexts. This
context similarity is defined by comparing their surrounding patches of size
\&\fBp\fR. Patches are searched in an area of \fBr\fR around the sample.
.PP
The filter accepts the following options:
.IP \fBs\fR 4
.IX Item "s"
Set denoising strength. Allowed range is from 0.00001 to 10. Default value is 0.00001.
.IP \fBp\fR 4
.IX Item "p"
Set patch radius duration. Allowed range is from 1 to 100 milliseconds.
Default value is 2 milliseconds.
.IP \fBr\fR 4
.IX Item "r"
Set research radius duration. Allowed range is from 2 to 300 milliseconds.
Default value is 6 milliseconds.
.IP \fBo\fR 4
.IX Item "o"
Set the output mode.
.Sp
It accepts the following values:
.RS 4
.IP \fBi\fR 4
.IX Item "i"
Pass input unchanged.
.IP \fBo\fR 4
.IX Item "o"
Pass noise filtered out.
.IP \fBn\fR 4
.IX Item "n"
Pass only noise.
.Sp
Default value is \fIo\fR.
.RE
.RS 4
.RE
.IP \fBm\fR 4
.IX Item "m"
Set smooth factor. Default value is \fI11\fR. Allowed range is from \fI1\fR to \fI15\fR.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS anlms
.IX Subsection "anlms"
Apply Normalized Least-Mean-Squares algorithm to the first audio stream using the second audio stream.
.PP
This adaptive filter is used to mimic a desired filter by finding the filter coefficients that
relate to producing the least mean square of the error signal (difference between the desired,
2nd input audio stream and the actual signal, the 1st input audio stream).
.PP
A description of the accepted options follows.
.IP \fBorder\fR 4
.IX Item "order"
Set filter order.
.IP \fBmu\fR 4
.IX Item "mu"
Set filter mu.
.IP \fBeps\fR 4
.IX Item "eps"
Set the filter eps.
.IP \fBleakage\fR 4
.IX Item "leakage"
Set the filter leakage.
.IP \fBout_mode\fR 4
.IX Item "out_mode"
It accepts the following values:
.RS 4
.IP \fBi\fR 4
.IX Item "i"
Pass the 1st input.
.IP \fBd\fR 4
.IX Item "d"
Pass the 2nd input.
.IP \fBo\fR 4
.IX Item "o"
Pass filtered samples.
.IP \fBn\fR 4
.IX Item "n"
Pass difference between desired and filtered samples.
.Sp
Default value is \fIo\fR.
.RE
.RS 4
.RE
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
One of many usages of this filter is noise reduction, input audio is filtered
with same samples that are delayed by fixed amount, one such example for stereo audio is:
.Sp
.Vb 1
\&        asplit[a][b],[a]adelay=32S|32S[a],[b][a]anlms=order=128:leakage=0.0005:mu=.5:out_mode=o
.Ve
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the same commands as options, excluding option \f(CW\*(C`order\*(C'\fR.
.SS anull
.IX Subsection "anull"
Pass the audio source unchanged to the output.
.SS apad
.IX Subsection "apad"
Pad the end of an audio stream with silence.
.PP
This can be used together with \fBffmpeg\fR \fB\-shortest\fR to
extend audio streams to the same length as the video stream.
.PP
A description of the accepted options follows.
.IP \fBpacket_size\fR 4
.IX Item "packet_size"
Set silence packet size. Default value is 4096.
.IP \fBpad_len\fR 4
.IX Item "pad_len"
Set the number of samples of silence to add to the end. After the
value is reached, the stream is terminated. This option is mutually
exclusive with \fBwhole_len\fR.
.IP \fBwhole_len\fR 4
.IX Item "whole_len"
Set the minimum total number of samples in the output audio stream. If
the value is longer than the input audio length, silence is added to
the end, until the value is reached. This option is mutually exclusive
with \fBpad_len\fR.
.IP \fBpad_dur\fR 4
.IX Item "pad_dur"
Specify the duration of samples of silence to add. See
\&\fBthe Time duration section in the ffmpeg\-utils\|(1) manual\fR
for the accepted syntax. Used only if set to non-zero value.
.IP \fBwhole_dur\fR 4
.IX Item "whole_dur"
Specify the minimum total duration in the output audio stream. See
\&\fBthe Time duration section in the ffmpeg\-utils\|(1) manual\fR
for the accepted syntax. Used only if set to non-zero value. If the value is longer than
the input audio length, silence is added to the end, until the value is reached.
This option is mutually exclusive with \fBpad_dur\fR
.PP
If neither the \fBpad_len\fR nor the \fBwhole_len\fR nor \fBpad_dur\fR
nor \fBwhole_dur\fR option is set, the filter will add silence to the end of
the input stream indefinitely.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Add 1024 samples of silence to the end of the input:
.Sp
.Vb 1
\&        apad=pad_len=1024
.Ve
.IP \(bu 4
Make sure the audio output will contain at least 10000 samples, pad
the input with silence if required:
.Sp
.Vb 1
\&        apad=whole_len=10000
.Ve
.IP \(bu 4
Use \fBffmpeg\fR to pad the audio input with silence, so that the
video stream will always result the shortest and will be converted
until the end in the output file when using the \fBshortest\fR
option:
.Sp
.Vb 1
\&        ffmpeg \-i VIDEO \-i AUDIO \-filter_complex "[1:0]apad" \-shortest OUTPUT
.Ve
.SS aphaser
.IX Subsection "aphaser"
Add a phasing effect to the input audio.
.PP
A phaser filter creates series of peaks and troughs in the frequency spectrum.
The position of the peaks and troughs are modulated so that they vary over time, creating a sweeping effect.
.PP
A description of the accepted parameters follows.
.IP \fBin_gain\fR 4
.IX Item "in_gain"
Set input gain. Default is 0.4.
.IP \fBout_gain\fR 4
.IX Item "out_gain"
Set output gain. Default is 0.74
.IP \fBdelay\fR 4
.IX Item "delay"
Set delay in milliseconds. Default is 3.0.
.IP \fBdecay\fR 4
.IX Item "decay"
Set decay. Default is 0.4.
.IP \fBspeed\fR 4
.IX Item "speed"
Set modulation speed in Hz. Default is 0.5.
.IP \fBtype\fR 4
.IX Item "type"
Set modulation type. Default is triangular.
.Sp
It accepts the following values:
.RS 4
.IP "\fBtriangular, t\fR" 4
.IX Item "triangular, t"
.PD 0
.IP "\fBsinusoidal, s\fR" 4
.IX Item "sinusoidal, s"
.RE
.RS 4
.RE
.PD
.SS aphaseshift
.IX Subsection "aphaseshift"
Apply phase shift to input audio samples.
.PP
The filter accepts the following options:
.IP \fBshift\fR 4
.IX Item "shift"
Specify phase shift. Allowed range is from \-1.0 to 1.0.
Default value is 0.0.
.IP \fBlevel\fR 4
.IX Item "level"
Set output gain applied to final output. Allowed range is from 0.0 to 1.0.
Default value is 1.0.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS apulsator
.IX Subsection "apulsator"
Audio pulsator is something between an autopanner and a tremolo.
But it can produce funny stereo effects as well. Pulsator changes the volume
of the left and right channel based on a LFO (low frequency oscillator) with
different waveforms and shifted phases.
This filter have the ability to define an offset between left and right
channel. An offset of 0 means that both LFO shapes match each other.
The left and right channel are altered equally \- a conventional tremolo.
An offset of 50% means that the shape of the right channel is exactly shifted
in phase (or moved backwards about half of the frequency) \- pulsator acts as
an autopanner. At 1 both curves match again. Every setting in between moves the
phase shift gapless between all stages and produces some "bypassing" sounds with
sine and triangle waveforms. The more you set the offset near 1 (starting from
the 0.5) the faster the signal passes from the left to the right speaker.
.PP
The filter accepts the following options:
.IP \fBlevel_in\fR 4
.IX Item "level_in"
Set input gain. By default it is 1. Range is [0.015625 \- 64].
.IP \fBlevel_out\fR 4
.IX Item "level_out"
Set output gain. By default it is 1. Range is [0.015625 \- 64].
.IP \fBmode\fR 4
.IX Item "mode"
Set waveform shape the LFO will use. Can be one of: sine, triangle, square,
sawup or sawdown. Default is sine.
.IP \fBamount\fR 4
.IX Item "amount"
Set modulation. Define how much of original signal is affected by the LFO.
.IP \fBoffset_l\fR 4
.IX Item "offset_l"
Set left channel offset. Default is 0. Allowed range is [0 \- 1].
.IP \fBoffset_r\fR 4
.IX Item "offset_r"
Set right channel offset. Default is 0.5. Allowed range is [0 \- 1].
.IP \fBwidth\fR 4
.IX Item "width"
Set pulse width. Default is 1. Allowed range is [0 \- 2].
.IP \fBtiming\fR 4
.IX Item "timing"
Set possible timing mode. Can be one of: bpm, ms or hz. Default is hz.
.IP \fBbpm\fR 4
.IX Item "bpm"
Set bpm. Default is 120. Allowed range is [30 \- 300]. Only used if timing
is set to bpm.
.IP \fBms\fR 4
.IX Item "ms"
Set ms. Default is 500. Allowed range is [10 \- 2000]. Only used if timing
is set to ms.
.IP \fBhz\fR 4
.IX Item "hz"
Set frequency in Hz. Default is 2. Allowed range is [0.01 \- 100]. Only used
if timing is set to hz.
.SS aresample
.IX Subsection "aresample"
Resample the input audio to the specified parameters, using the
libswresample library. If none are specified then the filter will
automatically convert between its input and output.
.PP
This filter is also able to stretch/squeeze the audio data to make it match
the timestamps or to inject silence / cut out audio to make it match the
timestamps, do a combination of both or do neither.
.PP
The filter accepts the syntax
[\fIsample_rate\fR:]\fIresampler_options\fR, where \fIsample_rate\fR
expresses a sample rate and \fIresampler_options\fR is a list of
\&\fIkey\fR=\fIvalue\fR pairs, separated by ":". See the
\&\fB"Resampler Options" section in the
ffmpeg\-resampler\|(1) manual\fR
for the complete list of supported options.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Resample the input audio to 44100Hz:
.Sp
.Vb 1
\&        aresample=44100
.Ve
.IP \(bu 4
Stretch/squeeze samples to the given timestamps, with a maximum of 1000
samples per second compensation:
.Sp
.Vb 1
\&        aresample=async=1000
.Ve
.SS areverse
.IX Subsection "areverse"
Reverse an audio clip.
.PP
Warning: This filter requires memory to buffer the entire clip, so trimming
is suggested.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Take the first 5 seconds of a clip, and reverse it.
.Sp
.Vb 1
\&        atrim=end=5,areverse
.Ve
.SS arnndn
.IX Subsection "arnndn"
Reduce noise from speech using Recurrent Neural Networks.
.PP
This filter accepts the following options:
.IP "\fBmodel, m\fR" 4
.IX Item "model, m"
Set train model file to load. This option is always required.
.IP \fBmix\fR 4
.IX Item "mix"
Set how much to mix filtered samples into final output.
Allowed range is from \-1 to 1. Default value is 1.
Negative values are special, they set how much to keep filtered noise
in the final filter output. Set this option to \-1 to hear actual
noise removed from input signal.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS asetnsamples
.IX Subsection "asetnsamples"
Set the number of samples per each output audio frame.
.PP
The last output packet may contain a different number of samples, as
the filter will flush all the remaining samples when the input audio
signals its end.
.PP
The filter accepts the following options:
.IP "\fBnb_out_samples, n\fR" 4
.IX Item "nb_out_samples, n"
Set the number of frames per each output audio frame. The number is
intended as the number of samples \fIper each channel\fR.
Default value is 1024.
.IP "\fBpad, p\fR" 4
.IX Item "pad, p"
If set to 1, the filter will pad the last audio frame with zeroes, so
that the last frame will contain the same number of samples as the
previous ones. Default value is 1.
.PP
For example, to set the number of per-frame samples to 1234 and
disable padding for the last frame, use:
.PP
.Vb 1
\&        asetnsamples=n=1234:p=0
.Ve
.SS asetrate
.IX Subsection "asetrate"
Set the sample rate without altering the PCM data.
This will result in a change of speed and pitch.
.PP
The filter accepts the following options:
.IP "\fBsample_rate, r\fR" 4
.IX Item "sample_rate, r"
Set the output sample rate. Default is 44100 Hz.
.SS ashowinfo
.IX Subsection "ashowinfo"
Show a line containing various information for each input audio frame.
The input audio is not modified.
.PP
The shown line contains a sequence of key/value pairs of the form
\&\fIkey\fR:\fIvalue\fR.
.PP
The following values are shown in the output:
.IP \fBn\fR 4
.IX Item "n"
The (sequential) number of the input frame, starting from 0.
.IP \fBpts\fR 4
.IX Item "pts"
The presentation timestamp of the input frame, in time base units; the time base
depends on the filter input pad, and is usually 1/\fIsample_rate\fR.
.IP \fBpts_time\fR 4
.IX Item "pts_time"
The presentation timestamp of the input frame in seconds.
.IP \fBpos\fR 4
.IX Item "pos"
position of the frame in the input stream, \-1 if this information in
unavailable and/or meaningless (for example in case of synthetic audio)
.IP \fBfmt\fR 4
.IX Item "fmt"
The sample format.
.IP \fBchlayout\fR 4
.IX Item "chlayout"
The channel layout.
.IP \fBrate\fR 4
.IX Item "rate"
The sample rate for the audio frame.
.IP \fBnb_samples\fR 4
.IX Item "nb_samples"
The number of samples (per channel) in the frame.
.IP \fBchecksum\fR 4
.IX Item "checksum"
The Adler\-32 checksum (printed in hexadecimal) of the audio data. For planar
audio, the data is treated as if all the planes were concatenated.
.IP \fBplane_checksums\fR 4
.IX Item "plane_checksums"
A list of Adler\-32 checksums for each data plane.
.SS asoftclip
.IX Subsection "asoftclip"
Apply audio soft clipping.
.PP
Soft clipping is a type of distortion effect where the amplitude of a signal is saturated
along a smooth curve, rather than the abrupt shape of hard-clipping.
.PP
This filter accepts the following options:
.IP \fBtype\fR 4
.IX Item "type"
Set type of soft-clipping.
.Sp
It accepts the following values:
.RS 4
.IP \fBhard\fR 4
.IX Item "hard"
.PD 0
.IP \fBtanh\fR 4
.IX Item "tanh"
.IP \fBatan\fR 4
.IX Item "atan"
.IP \fBcubic\fR 4
.IX Item "cubic"
.IP \fBexp\fR 4
.IX Item "exp"
.IP \fBalg\fR 4
.IX Item "alg"
.IP \fBquintic\fR 4
.IX Item "quintic"
.IP \fBsin\fR 4
.IX Item "sin"
.IP \fBerf\fR 4
.IX Item "erf"
.RE
.RS 4
.RE
.IP \fBthreshold\fR 4
.IX Item "threshold"
.PD
Set threshold from where to start clipping. Default value is 0dB or 1.
.IP \fBoutput\fR 4
.IX Item "output"
Set gain applied to output. Default value is 0dB or 1.
.IP \fBparam\fR 4
.IX Item "param"
Set additional parameter which controls sigmoid function.
.IP \fBoversample\fR 4
.IX Item "oversample"
Set oversampling factor.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS asr
.IX Subsection "asr"
Automatic Speech Recognition
.PP
This filter uses PocketSphinx for speech recognition. To enable
compilation of this filter, you need to configure FFmpeg with
\&\f(CW\*(C`\-\-enable\-pocketsphinx\*(C'\fR.
.PP
It accepts the following options:
.IP \fBrate\fR 4
.IX Item "rate"
Set sampling rate of input audio. Defaults is \f(CW16000\fR.
This need to match speech models, otherwise one will get poor results.
.IP \fBhmm\fR 4
.IX Item "hmm"
Set dictionary containing acoustic model files.
.IP \fBdict\fR 4
.IX Item "dict"
Set pronunciation dictionary.
.IP \fBlm\fR 4
.IX Item "lm"
Set language model file.
.IP \fBlmctl\fR 4
.IX Item "lmctl"
Set language model set.
.IP \fBlmname\fR 4
.IX Item "lmname"
Set which language model to use.
.IP \fBlogfn\fR 4
.IX Item "logfn"
Set output for log messages.
.PP
The filter exports recognized speech as the frame metadata \f(CW\*(C`lavfi.asr.text\*(C'\fR.
.SS astats
.IX Subsection "astats"
Display time domain statistical information about the audio channels.
Statistics are calculated and displayed for each audio channel and,
where applicable, an overall figure is also given.
.PP
It accepts the following option:
.IP \fBlength\fR 4
.IX Item "length"
Short window length in seconds, used for peak and trough RMS measurement.
Default is \f(CW0.05\fR (50 milliseconds). Allowed range is \f(CW\*(C`[0.01 \- 10]\*(C'\fR.
.IP \fBmetadata\fR 4
.IX Item "metadata"
Set metadata injection. All the metadata keys are prefixed with \f(CW\*(C`lavfi.astats.X\*(C'\fR,
where \f(CW\*(C`X\*(C'\fR is channel number starting from 1 or string \f(CW\*(C`Overall\*(C'\fR. Default is
disabled.
.Sp
Available keys for each channel are:
DC_offset
Min_level
Max_level
Min_difference
Max_difference
Mean_difference
RMS_difference
Peak_level
RMS_peak
RMS_trough
Crest_factor
Flat_factor
Peak_count
Noise_floor
Noise_floor_count
Bit_depth
Dynamic_range
Zero_crossings
Zero_crossings_rate
Number_of_NaNs
Number_of_Infs
Number_of_denormals
.Sp
and for Overall:
DC_offset
Min_level
Max_level
Min_difference
Max_difference
Mean_difference
RMS_difference
Peak_level
RMS_level
RMS_peak
RMS_trough
Flat_factor
Peak_count
Noise_floor
Noise_floor_count
Bit_depth
Number_of_samples
Number_of_NaNs
Number_of_Infs
Number_of_denormals
.Sp
For example full key look like this \f(CW\*(C`lavfi.astats.1.DC_offset\*(C'\fR or
this \f(CW\*(C`lavfi.astats.Overall.Peak_count\*(C'\fR.
.Sp
For description what each key means read below.
.IP \fBreset\fR 4
.IX Item "reset"
Set number of frame after which stats are going to be recalculated.
Default is disabled.
.IP \fBmeasure_perchannel\fR 4
.IX Item "measure_perchannel"
Select the entries which need to be measured per channel. The metadata keys can
be used as flags, default is \fBall\fR which measures everything.
\&\fBnone\fR disables all per channel measurement.
.IP \fBmeasure_overall\fR 4
.IX Item "measure_overall"
Select the entries which need to be measured overall. The metadata keys can
be used as flags, default is \fBall\fR which measures everything.
\&\fBnone\fR disables all overall measurement.
.PP
A description of each shown parameter follows:
.IP "\fBDC offset\fR" 4
.IX Item "DC offset"
Mean amplitude displacement from zero.
.IP "\fBMin level\fR" 4
.IX Item "Min level"
Minimal sample level.
.IP "\fBMax level\fR" 4
.IX Item "Max level"
Maximal sample level.
.IP "\fBMin difference\fR" 4
.IX Item "Min difference"
Minimal difference between two consecutive samples.
.IP "\fBMax difference\fR" 4
.IX Item "Max difference"
Maximal difference between two consecutive samples.
.IP "\fBMean difference\fR" 4
.IX Item "Mean difference"
Mean difference between two consecutive samples.
The average of each difference between two consecutive samples.
.IP "\fBRMS difference\fR" 4
.IX Item "RMS difference"
Root Mean Square difference between two consecutive samples.
.IP "\fBPeak level dB\fR" 4
.IX Item "Peak level dB"
.PD 0
.IP "\fBRMS level dB\fR" 4
.IX Item "RMS level dB"
.PD
Standard peak and RMS level measured in dBFS.
.IP "\fBRMS peak dB\fR" 4
.IX Item "RMS peak dB"
.PD 0
.IP "\fBRMS trough dB\fR" 4
.IX Item "RMS trough dB"
.PD
Peak and trough values for RMS level measured over a short window.
.IP "\fBCrest factor\fR" 4
.IX Item "Crest factor"
Standard ratio of peak to RMS level (note: not in dB).
.IP "\fBFlat factor\fR" 4
.IX Item "Flat factor"
Flatness (i.e. consecutive samples with the same value) of the signal at its peak levels
(i.e. either \fIMin level\fR or \fIMax level\fR).
.IP "\fBPeak count\fR" 4
.IX Item "Peak count"
Number of occasions (not the number of samples) that the signal attained either
\&\fIMin level\fR or \fIMax level\fR.
.IP "\fBNoise floor dB\fR" 4
.IX Item "Noise floor dB"
Minimum local peak measured in dBFS over a short window.
.IP "\fBNoise floor count\fR" 4
.IX Item "Noise floor count"
Number of occasions (not the number of samples) that the signal attained
\&\fINoise floor\fR.
.IP "\fBBit depth\fR" 4
.IX Item "Bit depth"
Overall bit depth of audio. Number of bits used for each sample.
.IP "\fBDynamic range\fR" 4
.IX Item "Dynamic range"
Measured dynamic range of audio in dB.
.IP "\fBZero crossings\fR" 4
.IX Item "Zero crossings"
Number of points where the waveform crosses the zero level axis.
.IP "\fBZero crossings rate\fR" 4
.IX Item "Zero crossings rate"
Rate of Zero crossings and number of audio samples.
.SS asubboost
.IX Subsection "asubboost"
Boost subwoofer frequencies.
.PP
The filter accepts the following options:
.IP \fBdry\fR 4
.IX Item "dry"
Set dry gain, how much of original signal is kept. Allowed range is from 0 to 1.
Default value is 0.7.
.IP \fBwet\fR 4
.IX Item "wet"
Set wet gain, how much of filtered signal is kept. Allowed range is from 0 to 1.
Default value is 0.7.
.IP \fBdecay\fR 4
.IX Item "decay"
Set delay line decay gain value. Allowed range is from 0 to 1.
Default value is 0.7.
.IP \fBfeedback\fR 4
.IX Item "feedback"
Set delay line feedback gain value. Allowed range is from 0 to 1.
Default value is 0.9.
.IP \fBcutoff\fR 4
.IX Item "cutoff"
Set cutoff frequency in Hertz. Allowed range is 50 to 900.
Default value is 100.
.IP \fBslope\fR 4
.IX Item "slope"
Set slope amount for cutoff frequency. Allowed range is 0.0001 to 1.
Default value is 0.5.
.IP \fBdelay\fR 4
.IX Item "delay"
Set delay. Allowed range is from 1 to 100.
Default value is 20.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS asubcut
.IX Subsection "asubcut"
Cut subwoofer frequencies.
.PP
This filter allows to set custom, steeper
roll off than highpass filter, and thus is able to more attenuate
frequency content in stop-band.
.PP
The filter accepts the following options:
.IP \fBcutoff\fR 4
.IX Item "cutoff"
Set cutoff frequency in Hertz. Allowed range is 2 to 200.
Default value is 20.
.IP \fBorder\fR 4
.IX Item "order"
Set filter order. Available values are from 3 to 20.
Default value is 10.
.IP \fBlevel\fR 4
.IX Item "level"
Set input gain level. Allowed range is from 0 to 1. Default value is 1.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS asupercut
.IX Subsection "asupercut"
Cut super frequencies.
.PP
The filter accepts the following options:
.IP \fBcutoff\fR 4
.IX Item "cutoff"
Set cutoff frequency in Hertz. Allowed range is 20000 to 192000.
Default value is 20000.
.IP \fBorder\fR 4
.IX Item "order"
Set filter order. Available values are from 3 to 20.
Default value is 10.
.IP \fBlevel\fR 4
.IX Item "level"
Set input gain level. Allowed range is from 0 to 1. Default value is 1.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS asuperpass
.IX Subsection "asuperpass"
Apply high order Butterworth band-pass filter.
.PP
The filter accepts the following options:
.IP \fBcenterf\fR 4
.IX Item "centerf"
Set center frequency in Hertz. Allowed range is 2 to 999999.
Default value is 1000.
.IP \fBorder\fR 4
.IX Item "order"
Set filter order. Available values are from 4 to 20.
Default value is 4.
.IP \fBqfactor\fR 4
.IX Item "qfactor"
Set Q\-factor. Allowed range is from 0.01 to 100. Default value is 1.
.IP \fBlevel\fR 4
.IX Item "level"
Set input gain level. Allowed range is from 0 to 2. Default value is 1.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS asuperstop
.IX Subsection "asuperstop"
Apply high order Butterworth band-stop filter.
.PP
The filter accepts the following options:
.IP \fBcenterf\fR 4
.IX Item "centerf"
Set center frequency in Hertz. Allowed range is 2 to 999999.
Default value is 1000.
.IP \fBorder\fR 4
.IX Item "order"
Set filter order. Available values are from 4 to 20.
Default value is 4.
.IP \fBqfactor\fR 4
.IX Item "qfactor"
Set Q\-factor. Allowed range is from 0.01 to 100. Default value is 1.
.IP \fBlevel\fR 4
.IX Item "level"
Set input gain level. Allowed range is from 0 to 2. Default value is 1.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS atempo
.IX Subsection "atempo"
Adjust audio tempo.
.PP
The filter accepts exactly one parameter, the audio tempo. If not
specified then the filter will assume nominal 1.0 tempo. Tempo must
be in the [0.5, 100.0] range.
.PP
Note that tempo greater than 2 will skip some samples rather than
blend them in.  If for any reason this is a concern it is always
possible to daisy-chain several instances of atempo to achieve the
desired product tempo.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Slow down audio to 80% tempo:
.Sp
.Vb 1
\&        atempo=0.8
.Ve
.IP \(bu 4
To speed up audio to 300% tempo:
.Sp
.Vb 1
\&        atempo=3
.Ve
.IP \(bu 4
To speed up audio to 300% tempo by daisy-chaining two atempo instances:
.Sp
.Vb 1
\&        atempo=sqrt(3),atempo=sqrt(3)
.Ve
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the following commands:
.IP \fBtempo\fR 4
.IX Item "tempo"
Change filter tempo scale factor.
Syntax for the command is : "\fItempo\fR"
.SS atrim
.IX Subsection "atrim"
Trim the input so that the output contains one continuous subpart of the input.
.PP
It accepts the following parameters:
.IP \fBstart\fR 4
.IX Item "start"
Timestamp (in seconds) of the start of the section to keep. I.e. the audio
sample with the timestamp \fIstart\fR will be the first sample in the output.
.IP \fBend\fR 4
.IX Item "end"
Specify time of the first audio sample that will be dropped, i.e. the
audio sample immediately preceding the one with the timestamp \fIend\fR will be
the last sample in the output.
.IP \fBstart_pts\fR 4
.IX Item "start_pts"
Same as \fIstart\fR, except this option sets the start timestamp in samples
instead of seconds.
.IP \fBend_pts\fR 4
.IX Item "end_pts"
Same as \fIend\fR, except this option sets the end timestamp in samples instead
of seconds.
.IP \fBduration\fR 4
.IX Item "duration"
The maximum duration of the output in seconds.
.IP \fBstart_sample\fR 4
.IX Item "start_sample"
The number of the first sample that should be output.
.IP \fBend_sample\fR 4
.IX Item "end_sample"
The number of the first sample that should be dropped.
.PP
\&\fBstart\fR, \fBend\fR, and \fBduration\fR are expressed as time
duration specifications; see
\&\fBthe Time duration section in the ffmpeg\-utils\|(1) manual\fR.
.PP
Note that the first two sets of the start/end options and the \fBduration\fR
option look at the frame timestamp, while the _sample options simply count the
samples that pass through the filter. So start/end_pts and start/end_sample will
give different results when the timestamps are wrong, inexact or do not start at
zero. Also note that this filter does not modify the timestamps. If you wish
to have the output timestamps start at zero, insert the asetpts filter after the
atrim filter.
.PP
If multiple start or end options are set, this filter tries to be greedy and
keep all samples that match at least one of the specified constraints. To keep
only the part that matches all the constraints at once, chain multiple atrim
filters.
.PP
The defaults are such that all the input is kept. So it is possible to set e.g.
just the end values to keep everything before the specified time.
.PP
Examples:
.IP \(bu 4
Drop everything except the second minute of input:
.Sp
.Vb 1
\&        ffmpeg \-i INPUT \-af atrim=60:120
.Ve
.IP \(bu 4
Keep only the first 1000 samples:
.Sp
.Vb 1
\&        ffmpeg \-i INPUT \-af atrim=end_sample=1000
.Ve
.SS axcorrelate
.IX Subsection "axcorrelate"
Calculate normalized cross-correlation between two input audio streams.
.PP
Resulted samples are always between \-1 and 1 inclusive.
If result is 1 it means two input samples are highly correlated in that selected segment.
Result 0 means they are not correlated at all.
If result is \-1 it means two input samples are out of phase, which means they cancel each
other.
.PP
The filter accepts the following options:
.IP \fBsize\fR 4
.IX Item "size"
Set size of segment over which cross-correlation is calculated.
Default is 256. Allowed range is from 2 to 131072.
.IP \fBalgo\fR 4
.IX Item "algo"
Set algorithm for cross-correlation. Can be \f(CW\*(C`slow\*(C'\fR or \f(CW\*(C`fast\*(C'\fR.
Default is \f(CW\*(C`slow\*(C'\fR. Fast algorithm assumes mean values over any given segment
are always zero and thus need much less calculations to make.
This is generally not true, but is valid for typical audio streams.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Calculate correlation between channels in stereo audio stream:
.Sp
.Vb 1
\&        ffmpeg \-i stereo.wav \-af channelsplit,axcorrelate=size=1024:algo=fast correlation.wav
.Ve
.SS bandpass
.IX Subsection "bandpass"
Apply a two-pole Butterworth band-pass filter with central
frequency \fIfrequency\fR, and (3dB\-point) band-width width.
The \fIcsg\fR option selects a constant skirt gain (peak gain = Q)
instead of the default: constant 0dB peak gain.
The filter roll off at 6dB per octave (20dB per decade).
.PP
The filter accepts the following options:
.IP "\fBfrequency, f\fR" 4
.IX Item "frequency, f"
Set the filter's central frequency. Default is \f(CW3000\fR.
.IP \fBcsg\fR 4
.IX Item "csg"
Constant skirt gain if set to 1. Defaults to 0.
.IP "\fBwidth_type, t\fR" 4
.IX Item "width_type, t"
Set method to specify band-width of filter.
.RS 4
.IP \fBh\fR 4
.IX Item "h"
Hz
.IP \fBq\fR 4
.IX Item "q"
Q\-Factor
.IP \fBo\fR 4
.IX Item "o"
octave
.IP \fBs\fR 4
.IX Item "s"
slope
.IP \fBk\fR 4
.IX Item "k"
kHz
.RE
.RS 4
.RE
.IP "\fBwidth, w\fR" 4
.IX Item "width, w"
Specify the band-width of a filter in width_type units.
.IP "\fBmix, m\fR" 4
.IX Item "mix, m"
How much to use filtered signal in output. Default is 1.
Range is between 0 and 1.
.IP "\fBchannels, c\fR" 4
.IX Item "channels, c"
Specify which channels to filter, by default all available are filtered.
.IP "\fBnormalize, n\fR" 4
.IX Item "normalize, n"
Normalize biquad coefficients, by default is disabled.
Enabling it will normalize magnitude response at DC to 0dB.
.IP "\fBtransform, a\fR" 4
.IX Item "transform, a"
Set transform type of IIR filter.
.RS 4
.IP \fBdi\fR 4
.IX Item "di"
.PD 0
.IP \fBdii\fR 4
.IX Item "dii"
.IP \fBtdii\fR 4
.IX Item "tdii"
.IP \fBlatt\fR 4
.IX Item "latt"
.RE
.RS 4
.RE
.IP "\fBprecision, r\fR" 4
.IX Item "precision, r"
.PD
Set precison of filtering.
.RS 4
.IP \fBauto\fR 4
.IX Item "auto"
Pick automatic sample format depending on surround filters.
.IP \fBs16\fR 4
.IX Item "s16"
Always use signed 16\-bit.
.IP \fBs32\fR 4
.IX Item "s32"
Always use signed 32\-bit.
.IP \fBf32\fR 4
.IX Item "f32"
Always use float 32\-bit.
.IP \fBf64\fR 4
.IX Item "f64"
Always use float 64\-bit.
.RE
.RS 4
.RE
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the following commands:
.IP "\fBfrequency, f\fR" 4
.IX Item "frequency, f"
Change bandpass frequency.
Syntax for the command is : "\fIfrequency\fR"
.IP "\fBwidth_type, t\fR" 4
.IX Item "width_type, t"
Change bandpass width_type.
Syntax for the command is : "\fIwidth_type\fR"
.IP "\fBwidth, w\fR" 4
.IX Item "width, w"
Change bandpass width.
Syntax for the command is : "\fIwidth\fR"
.IP "\fBmix, m\fR" 4
.IX Item "mix, m"
Change bandpass mix.
Syntax for the command is : "\fImix\fR"
.SS bandreject
.IX Subsection "bandreject"
Apply a two-pole Butterworth band-reject filter with central
frequency \fIfrequency\fR, and (3dB\-point) band-width \fIwidth\fR.
The filter roll off at 6dB per octave (20dB per decade).
.PP
The filter accepts the following options:
.IP "\fBfrequency, f\fR" 4
.IX Item "frequency, f"
Set the filter's central frequency. Default is \f(CW3000\fR.
.IP "\fBwidth_type, t\fR" 4
.IX Item "width_type, t"
Set method to specify band-width of filter.
.RS 4
.IP \fBh\fR 4
.IX Item "h"
Hz
.IP \fBq\fR 4
.IX Item "q"
Q\-Factor
.IP \fBo\fR 4
.IX Item "o"
octave
.IP \fBs\fR 4
.IX Item "s"
slope
.IP \fBk\fR 4
.IX Item "k"
kHz
.RE
.RS 4
.RE
.IP "\fBwidth, w\fR" 4
.IX Item "width, w"
Specify the band-width of a filter in width_type units.
.IP "\fBmix, m\fR" 4
.IX Item "mix, m"
How much to use filtered signal in output. Default is 1.
Range is between 0 and 1.
.IP "\fBchannels, c\fR" 4
.IX Item "channels, c"
Specify which channels to filter, by default all available are filtered.
.IP "\fBnormalize, n\fR" 4
.IX Item "normalize, n"
Normalize biquad coefficients, by default is disabled.
Enabling it will normalize magnitude response at DC to 0dB.
.IP "\fBtransform, a\fR" 4
.IX Item "transform, a"
Set transform type of IIR filter.
.RS 4
.IP \fBdi\fR 4
.IX Item "di"
.PD 0
.IP \fBdii\fR 4
.IX Item "dii"
.IP \fBtdii\fR 4
.IX Item "tdii"
.IP \fBlatt\fR 4
.IX Item "latt"
.RE
.RS 4
.RE
.IP "\fBprecision, r\fR" 4
.IX Item "precision, r"
.PD
Set precison of filtering.
.RS 4
.IP \fBauto\fR 4
.IX Item "auto"
Pick automatic sample format depending on surround filters.
.IP \fBs16\fR 4
.IX Item "s16"
Always use signed 16\-bit.
.IP \fBs32\fR 4
.IX Item "s32"
Always use signed 32\-bit.
.IP \fBf32\fR 4
.IX Item "f32"
Always use float 32\-bit.
.IP \fBf64\fR 4
.IX Item "f64"
Always use float 64\-bit.
.RE
.RS 4
.RE
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the following commands:
.IP "\fBfrequency, f\fR" 4
.IX Item "frequency, f"
Change bandreject frequency.
Syntax for the command is : "\fIfrequency\fR"
.IP "\fBwidth_type, t\fR" 4
.IX Item "width_type, t"
Change bandreject width_type.
Syntax for the command is : "\fIwidth_type\fR"
.IP "\fBwidth, w\fR" 4
.IX Item "width, w"
Change bandreject width.
Syntax for the command is : "\fIwidth\fR"
.IP "\fBmix, m\fR" 4
.IX Item "mix, m"
Change bandreject mix.
Syntax for the command is : "\fImix\fR"
.SS "bass, lowshelf"
.IX Subsection "bass, lowshelf"
Boost or cut the bass (lower) frequencies of the audio using a two-pole
shelving filter with a response similar to that of a standard
hi-fi's tone-controls. This is also known as shelving equalisation (EQ).
.PP
The filter accepts the following options:
.IP "\fBgain, g\fR" 4
.IX Item "gain, g"
Give the gain at 0 Hz. Its useful range is about \-20
(for a large cut) to +20 (for a large boost).
Beware of clipping when using a positive gain.
.IP "\fBfrequency, f\fR" 4
.IX Item "frequency, f"
Set the filter's central frequency and so can be used
to extend or reduce the frequency range to be boosted or cut.
The default value is \f(CW100\fR Hz.
.IP "\fBwidth_type, t\fR" 4
.IX Item "width_type, t"
Set method to specify band-width of filter.
.RS 4
.IP \fBh\fR 4
.IX Item "h"
Hz
.IP \fBq\fR 4
.IX Item "q"
Q\-Factor
.IP \fBo\fR 4
.IX Item "o"
octave
.IP \fBs\fR 4
.IX Item "s"
slope
.IP \fBk\fR 4
.IX Item "k"
kHz
.RE
.RS 4
.RE
.IP "\fBwidth, w\fR" 4
.IX Item "width, w"
Determine how steep is the filter's shelf transition.
.IP "\fBpoles, p\fR" 4
.IX Item "poles, p"
Set number of poles. Default is 2.
.IP "\fBmix, m\fR" 4
.IX Item "mix, m"
How much to use filtered signal in output. Default is 1.
Range is between 0 and 1.
.IP "\fBchannels, c\fR" 4
.IX Item "channels, c"
Specify which channels to filter, by default all available are filtered.
.IP "\fBnormalize, n\fR" 4
.IX Item "normalize, n"
Normalize biquad coefficients, by default is disabled.
Enabling it will normalize magnitude response at DC to 0dB.
.IP "\fBtransform, a\fR" 4
.IX Item "transform, a"
Set transform type of IIR filter.
.RS 4
.IP \fBdi\fR 4
.IX Item "di"
.PD 0
.IP \fBdii\fR 4
.IX Item "dii"
.IP \fBtdii\fR 4
.IX Item "tdii"
.IP \fBlatt\fR 4
.IX Item "latt"
.RE
.RS 4
.RE
.IP "\fBprecision, r\fR" 4
.IX Item "precision, r"
.PD
Set precison of filtering.
.RS 4
.IP \fBauto\fR 4
.IX Item "auto"
Pick automatic sample format depending on surround filters.
.IP \fBs16\fR 4
.IX Item "s16"
Always use signed 16\-bit.
.IP \fBs32\fR 4
.IX Item "s32"
Always use signed 32\-bit.
.IP \fBf32\fR 4
.IX Item "f32"
Always use float 32\-bit.
.IP \fBf64\fR 4
.IX Item "f64"
Always use float 64\-bit.
.RE
.RS 4
.RE
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the following commands:
.IP "\fBfrequency, f\fR" 4
.IX Item "frequency, f"
Change bass frequency.
Syntax for the command is : "\fIfrequency\fR"
.IP "\fBwidth_type, t\fR" 4
.IX Item "width_type, t"
Change bass width_type.
Syntax for the command is : "\fIwidth_type\fR"
.IP "\fBwidth, w\fR" 4
.IX Item "width, w"
Change bass width.
Syntax for the command is : "\fIwidth\fR"
.IP "\fBgain, g\fR" 4
.IX Item "gain, g"
Change bass gain.
Syntax for the command is : "\fIgain\fR"
.IP "\fBmix, m\fR" 4
.IX Item "mix, m"
Change bass mix.
Syntax for the command is : "\fImix\fR"
.SS biquad
.IX Subsection "biquad"
Apply a biquad IIR filter with the given coefficients.
Where \fIb0\fR, \fIb1\fR, \fIb2\fR and \fIa0\fR, \fIa1\fR, \fIa2\fR
are the numerator and denominator coefficients respectively.
and \fIchannels\fR, \fIc\fR specify which channels to filter, by default all
available are filtered.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the following commands:
.IP \fBa0\fR 4
.IX Item "a0"
.PD 0
.IP \fBa1\fR 4
.IX Item "a1"
.IP \fBa2\fR 4
.IX Item "a2"
.IP \fBb0\fR 4
.IX Item "b0"
.IP \fBb1\fR 4
.IX Item "b1"
.IP \fBb2\fR 4
.IX Item "b2"
.PD
Change biquad parameter.
Syntax for the command is : "\fIvalue\fR"
.IP "\fBmix, m\fR" 4
.IX Item "mix, m"
How much to use filtered signal in output. Default is 1.
Range is between 0 and 1.
.IP "\fBchannels, c\fR" 4
.IX Item "channels, c"
Specify which channels to filter, by default all available are filtered.
.IP "\fBnormalize, n\fR" 4
.IX Item "normalize, n"
Normalize biquad coefficients, by default is disabled.
Enabling it will normalize magnitude response at DC to 0dB.
.IP "\fBtransform, a\fR" 4
.IX Item "transform, a"
Set transform type of IIR filter.
.RS 4
.IP \fBdi\fR 4
.IX Item "di"
.PD 0
.IP \fBdii\fR 4
.IX Item "dii"
.IP \fBtdii\fR 4
.IX Item "tdii"
.IP \fBlatt\fR 4
.IX Item "latt"
.RE
.RS 4
.RE
.IP "\fBprecision, r\fR" 4
.IX Item "precision, r"
.PD
Set precison of filtering.
.RS 4
.IP \fBauto\fR 4
.IX Item "auto"
Pick automatic sample format depending on surround filters.
.IP \fBs16\fR 4
.IX Item "s16"
Always use signed 16\-bit.
.IP \fBs32\fR 4
.IX Item "s32"
Always use signed 32\-bit.
.IP \fBf32\fR 4
.IX Item "f32"
Always use float 32\-bit.
.IP \fBf64\fR 4
.IX Item "f64"
Always use float 64\-bit.
.RE
.RS 4
.RE
.SS bs2b
.IX Subsection "bs2b"
Bauer stereo to binaural transformation, which improves headphone listening of
stereo audio records.
.PP
To enable compilation of this filter you need to configure FFmpeg with
\&\f(CW\*(C`\-\-enable\-libbs2b\*(C'\fR.
.PP
It accepts the following parameters:
.IP \fBprofile\fR 4
.IX Item "profile"
Pre-defined crossfeed level.
.RS 4
.IP \fBdefault\fR 4
.IX Item "default"
Default level (fcut=700, feed=50).
.IP \fBcmoy\fR 4
.IX Item "cmoy"
Chu Moy circuit (fcut=700, feed=60).
.IP \fBjmeier\fR 4
.IX Item "jmeier"
Jan Meier circuit (fcut=650, feed=95).
.RE
.RS 4
.RE
.IP \fBfcut\fR 4
.IX Item "fcut"
Cut frequency (in Hz).
.IP \fBfeed\fR 4
.IX Item "feed"
Feed level (in Hz).
.SS channelmap
.IX Subsection "channelmap"
Remap input channels to new locations.
.PP
It accepts the following parameters:
.IP \fBmap\fR 4
.IX Item "map"
Map channels from input to output. The argument is a '|'\-separated list of
mappings, each in the \f(CW\*(C`\fR\f(CIin_channel\fR\f(CW\-\fR\f(CIout_channel\fR\f(CW\*(C'\fR or
\&\fIin_channel\fR form. \fIin_channel\fR can be either the name of the input
channel (e.g. FL for front left) or its index in the input channel layout.
\&\fIout_channel\fR is the name of the output channel or its index in the output
channel layout. If \fIout_channel\fR is not given then it is implicitly an
index, starting with zero and increasing by one for each mapping.
.IP \fBchannel_layout\fR 4
.IX Item "channel_layout"
The channel layout of the output stream.
.PP
If no mapping is present, the filter will implicitly map input channels to
output channels, preserving indices.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
For example, assuming a 5.1+downmix input MOV file,
.Sp
.Vb 1
\&        ffmpeg \-i in.mov \-filter \*(Aqchannelmap=map=DL\-FL|DR\-FR\*(Aq out.wav
.Ve
.Sp
will create an output WAV file tagged as stereo from the downmix channels of
the input.
.IP \(bu 4
To fix a 5.1 WAV improperly encoded in AAC's native channel order
.Sp
.Vb 1
\&        ffmpeg \-i in.wav \-filter \*(Aqchannelmap=1|2|0|5|3|4:5.1\*(Aq out.wav
.Ve
.SS channelsplit
.IX Subsection "channelsplit"
Split each channel from an input audio stream into a separate output stream.
.PP
It accepts the following parameters:
.IP \fBchannel_layout\fR 4
.IX Item "channel_layout"
The channel layout of the input stream. The default is "stereo".
.IP \fBchannels\fR 4
.IX Item "channels"
A channel layout describing the channels to be extracted as separate output streams
or "all" to extract each input channel as a separate stream. The default is "all".
.Sp
Choosing channels not present in channel layout in the input will result in an error.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
For example, assuming a stereo input MP3 file,
.Sp
.Vb 1
\&        ffmpeg \-i in.mp3 \-filter_complex channelsplit out.mkv
.Ve
.Sp
will create an output Matroska file with two audio streams, one containing only
the left channel and the other the right channel.
.IP \(bu 4
Split a 5.1 WAV file into per-channel files:
.Sp
.Vb 5
\&        ffmpeg \-i in.wav \-filter_complex
\&        \*(Aqchannelsplit=channel_layout=5.1[FL][FR][FC][LFE][SL][SR]\*(Aq
\&        \-map \*(Aq[FL]\*(Aq front_left.wav \-map \*(Aq[FR]\*(Aq front_right.wav \-map \*(Aq[FC]\*(Aq
\&        front_center.wav \-map \*(Aq[LFE]\*(Aq lfe.wav \-map \*(Aq[SL]\*(Aq side_left.wav \-map \*(Aq[SR]\*(Aq
\&        side_right.wav
.Ve
.IP \(bu 4
Extract only LFE from a 5.1 WAV file:
.Sp
.Vb 2
\&        ffmpeg \-i in.wav \-filter_complex \*(Aqchannelsplit=channel_layout=5.1:channels=LFE[LFE]\*(Aq
\&        \-map \*(Aq[LFE]\*(Aq lfe.wav
.Ve
.SS chorus
.IX Subsection "chorus"
Add a chorus effect to the audio.
.PP
Can make a single vocal sound like a chorus, but can also be applied to instrumentation.
.PP
Chorus resembles an echo effect with a short delay, but whereas with echo the delay is
constant, with chorus, it is varied using using sinusoidal or triangular modulation.
The modulation depth defines the range the modulated delay is played before or after
the delay. Hence the delayed sound will sound slower or faster, that is the delayed
sound tuned around the original one, like in a chorus where some vocals are slightly
off key.
.PP
It accepts the following parameters:
.IP \fBin_gain\fR 4
.IX Item "in_gain"
Set input gain. Default is 0.4.
.IP \fBout_gain\fR 4
.IX Item "out_gain"
Set output gain. Default is 0.4.
.IP \fBdelays\fR 4
.IX Item "delays"
Set delays. A typical delay is around 40ms to 60ms.
.IP \fBdecays\fR 4
.IX Item "decays"
Set decays.
.IP \fBspeeds\fR 4
.IX Item "speeds"
Set speeds.
.IP \fBdepths\fR 4
.IX Item "depths"
Set depths.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
A single delay:
.Sp
.Vb 1
\&        chorus=0.7:0.9:55:0.4:0.25:2
.Ve
.IP \(bu 4
Two delays:
.Sp
.Vb 1
\&        chorus=0.6:0.9:50|60:0.4|0.32:0.25|0.4:2|1.3
.Ve
.IP \(bu 4
Fuller sounding chorus with three delays:
.Sp
.Vb 1
\&        chorus=0.5:0.9:50|60|40:0.4|0.32|0.3:0.25|0.4|0.3:2|2.3|1.3
.Ve
.SS compand
.IX Subsection "compand"
Compress or expand the audio's dynamic range.
.PP
It accepts the following parameters:
.IP \fBattacks\fR 4
.IX Item "attacks"
.PD 0
.IP \fBdecays\fR 4
.IX Item "decays"
.PD
A list of times in seconds for each channel over which the instantaneous level
of the input signal is averaged to determine its volume. \fIattacks\fR refers to
increase of volume and \fIdecays\fR refers to decrease of volume. For most
situations, the attack time (response to the audio getting louder) should be
shorter than the decay time, because the human ear is more sensitive to sudden
loud audio than sudden soft audio. A typical value for attack is 0.3 seconds and
a typical value for decay is 0.8 seconds.
If specified number of attacks & decays is lower than number of channels, the last
set attack/decay will be used for all remaining channels.
.IP \fBpoints\fR 4
.IX Item "points"
A list of points for the transfer function, specified in dB relative to the
maximum possible signal amplitude. Each key points list must be defined using
the following syntax: \f(CW\*(C`x0/y0|x1/y1|x2/y2|....\*(C'\fR or
\&\f(CW\*(C`x0/y0 x1/y1 x2/y2 ....\*(C'\fR
.Sp
The input values must be in strictly increasing order but the transfer function
does not have to be monotonically rising. The point \f(CW\*(C`0/0\*(C'\fR is assumed but
may be overridden (by \f(CW\*(C`0/out\-dBn\*(C'\fR). Typical values for the transfer
function are \f(CW\*(C`\-70/\-70|\-60/\-20|1/0\*(C'\fR.
.IP \fBsoft-knee\fR 4
.IX Item "soft-knee"
Set the curve radius in dB for all joints. It defaults to 0.01.
.IP \fBgain\fR 4
.IX Item "gain"
Set the additional gain in dB to be applied at all points on the transfer
function. This allows for easy adjustment of the overall gain.
It defaults to 0.
.IP \fBvolume\fR 4
.IX Item "volume"
Set an initial volume, in dB, to be assumed for each channel when filtering
starts. This permits the user to supply a nominal level initially, so that, for
example, a very large gain is not applied to initial signal levels before the
companding has begun to operate. A typical value for audio which is initially
quiet is \-90 dB. It defaults to 0.
.IP \fBdelay\fR 4
.IX Item "delay"
Set a delay, in seconds. The input audio is analyzed immediately, but audio is
delayed before being fed to the volume adjuster. Specifying a delay
approximately equal to the attack/decay times allows the filter to effectively
operate in predictive rather than reactive mode. It defaults to 0.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Make music with both quiet and loud passages suitable for listening to in a
noisy environment:
.Sp
.Vb 1
\&        compand=.3|.3:1|1:\-90/\-60|\-60/\-40|\-40/\-30|\-20/\-20:6:0:\-90:0.2
.Ve
.Sp
Another example for audio with whisper and explosion parts:
.Sp
.Vb 1
\&        compand=0|0:1|1:\-90/\-900|\-70/\-70|\-30/\-9|0/\-3:6:0:0:0
.Ve
.IP \(bu 4
A noise gate for when the noise is at a lower level than the signal:
.Sp
.Vb 1
\&        compand=.1|.1:.2|.2:\-900/\-900|\-50.1/\-900|\-50/\-50:.01:0:\-90:.1
.Ve
.IP \(bu 4
Here is another noise gate, this time for when the noise is at a higher level
than the signal (making it, in some ways, similar to squelch):
.Sp
.Vb 1
\&        compand=.1|.1:.1|.1:\-45.1/\-45.1|\-45/\-900|0/\-900:.01:45:\-90:.1
.Ve
.IP \(bu 4
2:1 compression starting at \-6dB:
.Sp
.Vb 1
\&        compand=points=\-80/\-80|\-6/\-6|0/\-3.8|20/3.5
.Ve
.IP \(bu 4
2:1 compression starting at \-9dB:
.Sp
.Vb 1
\&        compand=points=\-80/\-80|\-9/\-9|0/\-5.3|20/2.9
.Ve
.IP \(bu 4
2:1 compression starting at \-12dB:
.Sp
.Vb 1
\&        compand=points=\-80/\-80|\-12/\-12|0/\-6.8|20/1.9
.Ve
.IP \(bu 4
2:1 compression starting at \-18dB:
.Sp
.Vb 1
\&        compand=points=\-80/\-80|\-18/\-18|0/\-9.8|20/0.7
.Ve
.IP \(bu 4
3:1 compression starting at \-15dB:
.Sp
.Vb 1
\&        compand=points=\-80/\-80|\-15/\-15|0/\-10.8|20/\-5.2
.Ve
.IP \(bu 4
Compressor/Gate:
.Sp
.Vb 1
\&        compand=points=\-80/\-105|\-62/\-80|\-15.4/\-15.4|0/\-12|20/\-7.6
.Ve
.IP \(bu 4
Expander:
.Sp
.Vb 1
\&        compand=attacks=0:points=\-80/\-169|\-54/\-80|\-49.5/\-64.6|\-41.1/\-41.1|\-25.8/\-15|\-10.8/\-4.5|0/0|20/8.3
.Ve
.IP \(bu 4
Hard limiter at \-6dB:
.Sp
.Vb 1
\&        compand=attacks=0:points=\-80/\-80|\-6/\-6|20/\-6
.Ve
.IP \(bu 4
Hard limiter at \-12dB:
.Sp
.Vb 1
\&        compand=attacks=0:points=\-80/\-80|\-12/\-12|20/\-12
.Ve
.IP \(bu 4
Hard noise gate at \-35 dB:
.Sp
.Vb 1
\&        compand=attacks=0:points=\-80/\-115|\-35.1/\-80|\-35/\-35|20/20
.Ve
.IP \(bu 4
Soft limiter:
.Sp
.Vb 1
\&        compand=attacks=0:points=\-80/\-80|\-12.4/\-12.4|\-6/\-8|0/\-6.8|20/\-2.8
.Ve
.SS compensationdelay
.IX Subsection "compensationdelay"
Compensation Delay Line is a metric based delay to compensate differing
positions of microphones or speakers.
.PP
For example, you have recorded guitar with two microphones placed in
different locations. Because the front of sound wave has fixed speed in
normal conditions, the phasing of microphones can vary and depends on
their location and interposition. The best sound mix can be achieved when
these microphones are in phase (synchronized). Note that a distance of
~30 cm between microphones makes one microphone capture the signal in
antiphase to the other microphone. That makes the final mix sound moody.
This filter helps to solve phasing problems by adding different delays
to each microphone track and make them synchronized.
.PP
The best result can be reached when you take one track as base and
synchronize other tracks one by one with it.
Remember that synchronization/delay tolerance depends on sample rate, too.
Higher sample rates will give more tolerance.
.PP
The filter accepts the following parameters:
.IP \fBmm\fR 4
.IX Item "mm"
Set millimeters distance. This is compensation distance for fine tuning.
Default is 0.
.IP \fBcm\fR 4
.IX Item "cm"
Set cm distance. This is compensation distance for tightening distance setup.
Default is 0.
.IP \fBm\fR 4
.IX Item "m"
Set meters distance. This is compensation distance for hard distance setup.
Default is 0.
.IP \fBdry\fR 4
.IX Item "dry"
Set dry amount. Amount of unprocessed (dry) signal.
Default is 0.
.IP \fBwet\fR 4
.IX Item "wet"
Set wet amount. Amount of processed (wet) signal.
Default is 1.
.IP \fBtemp\fR 4
.IX Item "temp"
Set temperature in degrees Celsius. This is the temperature of the environment.
Default is 20.
.SS crossfeed
.IX Subsection "crossfeed"
Apply headphone crossfeed filter.
.PP
Crossfeed is the process of blending the left and right channels of stereo
audio recording.
It is mainly used to reduce extreme stereo separation of low frequencies.
.PP
The intent is to produce more speaker like sound to the listener.
.PP
The filter accepts the following options:
.IP \fBstrength\fR 4
.IX Item "strength"
Set strength of crossfeed. Default is 0.2. Allowed range is from 0 to 1.
This sets gain of low shelf filter for side part of stereo image.
Default is \-6dB. Max allowed is \-30db when strength is set to 1.
.IP \fBrange\fR 4
.IX Item "range"
Set soundstage wideness. Default is 0.5. Allowed range is from 0 to 1.
This sets cut off frequency of low shelf filter. Default is cut off near
1550 Hz. With range set to 1 cut off frequency is set to 2100 Hz.
.IP \fBslope\fR 4
.IX Item "slope"
Set curve slope of low shelf filter. Default is 0.5.
Allowed range is from 0.01 to 1.
.IP \fBlevel_in\fR 4
.IX Item "level_in"
Set input gain. Default is 0.9.
.IP \fBlevel_out\fR 4
.IX Item "level_out"
Set output gain. Default is 1.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS crystalizer
.IX Subsection "crystalizer"
Simple algorithm for audio noise sharpening.
.PP
This filter linearly increases differences betweeen each audio sample.
.PP
The filter accepts the following options:
.IP \fBi\fR 4
.IX Item "i"
Sets the intensity of effect (default: 2.0). Must be in range between \-10.0 to 0
(unchanged sound) to 10.0 (maximum effect).
To inverse filtering use negative value.
.IP \fBc\fR 4
.IX Item "c"
Enable clipping. By default is enabled.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS dcshift
.IX Subsection "dcshift"
Apply a DC shift to the audio.
.PP
This can be useful to remove a DC offset (caused perhaps by a hardware problem
in the recording chain) from the audio. The effect of a DC offset is reduced
headroom and hence volume. The \fBastats\fR filter can be used to determine if
a signal has a DC offset.
.IP \fBshift\fR 4
.IX Item "shift"
Set the DC shift, allowed range is [\-1, 1]. It indicates the amount to shift
the audio.
.IP \fBlimitergain\fR 4
.IX Item "limitergain"
Optional. It should have a value much less than 1 (e.g. 0.05 or 0.02) and is
used to prevent clipping.
.SS deesser
.IX Subsection "deesser"
Apply de-essing to the audio samples.
.IP \fBi\fR 4
.IX Item "i"
Set intensity for triggering de-essing. Allowed range is from 0 to 1.
Default is 0.
.IP \fBm\fR 4
.IX Item "m"
Set amount of ducking on treble part of sound. Allowed range is from 0 to 1.
Default is 0.5.
.IP \fBf\fR 4
.IX Item "f"
How much of original frequency content to keep when de-essing. Allowed range is from 0 to 1.
Default is 0.5.
.IP \fBs\fR 4
.IX Item "s"
Set the output mode.
.Sp
It accepts the following values:
.RS 4
.IP \fBi\fR 4
.IX Item "i"
Pass input unchanged.
.IP \fBo\fR 4
.IX Item "o"
Pass ess filtered out.
.IP \fBe\fR 4
.IX Item "e"
Pass only ess.
.Sp
Default value is \fIo\fR.
.RE
.RS 4
.RE
.SS drmeter
.IX Subsection "drmeter"
Measure audio dynamic range.
.PP
DR values of 14 and higher is found in very dynamic material. DR of 8 to 13
is found in transition material. And anything less that 8 have very poor dynamics
and is very compressed.
.PP
The filter accepts the following options:
.IP \fBlength\fR 4
.IX Item "length"
Set window length in seconds used to split audio into segments of equal length.
Default is 3 seconds.
.SS dynaudnorm
.IX Subsection "dynaudnorm"
Dynamic Audio Normalizer.
.PP
This filter applies a certain amount of gain to the input audio in order
to bring its peak magnitude to a target level (e.g. 0 dBFS). However, in
contrast to more "simple" normalization algorithms, the Dynamic Audio
Normalizer *dynamically* re-adjusts the gain factor to the input audio.
This allows for applying extra gain to the "quiet" sections of the audio
while avoiding distortions or clipping the "loud" sections. In other words:
The Dynamic Audio Normalizer will "even out" the volume of quiet and loud
sections, in the sense that the volume of each section is brought to the
same target level. Note, however, that the Dynamic Audio Normalizer achieves
this goal *without* applying "dynamic range compressing". It will retain 100%
of the dynamic range *within* each section of the audio file.
.IP "\fBframelen, f\fR" 4
.IX Item "framelen, f"
Set the frame length in milliseconds. In range from 10 to 8000 milliseconds.
Default is 500 milliseconds.
The Dynamic Audio Normalizer processes the input audio in small chunks,
referred to as frames. This is required, because a peak magnitude has no
meaning for just a single sample value. Instead, we need to determine the
peak magnitude for a contiguous sequence of sample values. While a "standard"
normalizer would simply use the peak magnitude of the complete file, the
Dynamic Audio Normalizer determines the peak magnitude individually for each
frame. The length of a frame is specified in milliseconds. By default, the
Dynamic Audio Normalizer uses a frame length of 500 milliseconds, which has
been found to give good results with most files.
Note that the exact frame length, in number of samples, will be determined
automatically, based on the sampling rate of the individual input audio file.
.IP "\fBgausssize, g\fR" 4
.IX Item "gausssize, g"
Set the Gaussian filter window size. In range from 3 to 301, must be odd
number. Default is 31.
Probably the most important parameter of the Dynamic Audio Normalizer is the
\&\f(CW\*(C`window size\*(C'\fR of the Gaussian smoothing filter. The filter's window size
is specified in frames, centered around the current frame. For the sake of
simplicity, this must be an odd number. Consequently, the default value of 31
takes into account the current frame, as well as the 15 preceding frames and
the 15 subsequent frames. Using a larger window results in a stronger
smoothing effect and thus in less gain variation, i.e. slower gain
adaptation. Conversely, using a smaller window results in a weaker smoothing
effect and thus in more gain variation, i.e. faster gain adaptation.
In other words, the more you increase this value, the more the Dynamic Audio
Normalizer will behave like a "traditional" normalization filter. On the
contrary, the more you decrease this value, the more the Dynamic Audio
Normalizer will behave like a dynamic range compressor.
.IP "\fBpeak, p\fR" 4
.IX Item "peak, p"
Set the target peak value. This specifies the highest permissible magnitude
level for the normalized audio input. This filter will try to approach the
target peak magnitude as closely as possible, but at the same time it also
makes sure that the normalized signal will never exceed the peak magnitude.
A frame's maximum local gain factor is imposed directly by the target peak
magnitude. The default value is 0.95 and thus leaves a headroom of 5%*.
It is not recommended to go above this value.
.IP "\fBmaxgain, m\fR" 4
.IX Item "maxgain, m"
Set the maximum gain factor. In range from 1.0 to 100.0. Default is 10.0.
The Dynamic Audio Normalizer determines the maximum possible (local) gain
factor for each input frame, i.e. the maximum gain factor that does not
result in clipping or distortion. The maximum gain factor is determined by
the frame's highest magnitude sample. However, the Dynamic Audio Normalizer
additionally bounds the frame's maximum gain factor by a predetermined
(global) maximum gain factor. This is done in order to avoid excessive gain
factors in "silent" or almost silent frames. By default, the maximum gain
factor is 10.0, For most inputs the default value should be sufficient and
it usually is not recommended to increase this value. Though, for input
with an extremely low overall volume level, it may be necessary to allow even
higher gain factors. Note, however, that the Dynamic Audio Normalizer does
not simply apply a "hard" threshold (i.e. cut off values above the threshold).
Instead, a "sigmoid" threshold function will be applied. This way, the
gain factors will smoothly approach the threshold value, but never exceed that
value.
.IP "\fBtargetrms, r\fR" 4
.IX Item "targetrms, r"
Set the target RMS. In range from 0.0 to 1.0. Default is 0.0 \- disabled.
By default, the Dynamic Audio Normalizer performs "peak" normalization.
This means that the maximum local gain factor for each frame is defined
(only) by the frame's highest magnitude sample. This way, the samples can
be amplified as much as possible without exceeding the maximum signal
level, i.e. without clipping. Optionally, however, the Dynamic Audio
Normalizer can also take into account the frame's root mean square,
abbreviated RMS. In electrical engineering, the RMS is commonly used to
determine the power of a time-varying signal. It is therefore considered
that the RMS is a better approximation of the "perceived loudness" than
just looking at the signal's peak magnitude. Consequently, by adjusting all
frames to a constant RMS value, a uniform "perceived loudness" can be
established. If a target RMS value has been specified, a frame's local gain
factor is defined as the factor that would result in exactly that RMS value.
Note, however, that the maximum local gain factor is still restricted by the
frame's highest magnitude sample, in order to prevent clipping.
.IP "\fBcoupling, n\fR" 4
.IX Item "coupling, n"
Enable channels coupling. By default is enabled.
By default, the Dynamic Audio Normalizer will amplify all channels by the same
amount. This means the same gain factor will be applied to all channels, i.e.
the maximum possible gain factor is determined by the "loudest" channel.
However, in some recordings, it may happen that the volume of the different
channels is uneven, e.g. one channel may be "quieter" than the other one(s).
In this case, this option can be used to disable the channel coupling. This way,
the gain factor will be determined independently for each channel, depending
only on the individual channel's highest magnitude sample. This allows for
harmonizing the volume of the different channels.
.IP "\fBcorrectdc, c\fR" 4
.IX Item "correctdc, c"
Enable DC bias correction. By default is disabled.
An audio signal (in the time domain) is a sequence of sample values.
In the Dynamic Audio Normalizer these sample values are represented in the
\&\-1.0 to 1.0 range, regardless of the original input format. Normally, the
audio signal, or "waveform", should be centered around the zero point.
That means if we calculate the mean value of all samples in a file, or in a
single frame, then the result should be 0.0 or at least very close to that
value. If, however, there is a significant deviation of the mean value from
0.0, in either positive or negative direction, this is referred to as a
DC bias or DC offset. Since a DC bias is clearly undesirable, the Dynamic
Audio Normalizer provides optional DC bias correction.
With DC bias correction enabled, the Dynamic Audio Normalizer will determine
the mean value, or "DC correction" offset, of each input frame and subtract
that value from all of the frame's sample values which ensures those samples
are centered around 0.0 again. Also, in order to avoid "gaps" at the frame
boundaries, the DC correction offset values will be interpolated smoothly
between neighbouring frames.
.IP "\fBaltboundary, b\fR" 4
.IX Item "altboundary, b"
Enable alternative boundary mode. By default is disabled.
The Dynamic Audio Normalizer takes into account a certain neighbourhood
around each frame. This includes the preceding frames as well as the
subsequent frames. However, for the "boundary" frames, located at the very
beginning and at the very end of the audio file, not all neighbouring
frames are available. In particular, for the first few frames in the audio
file, the preceding frames are not known. And, similarly, for the last few
frames in the audio file, the subsequent frames are not known. Thus, the
question arises which gain factors should be assumed for the missing frames
in the "boundary" region. The Dynamic Audio Normalizer implements two modes
to deal with this situation. The default boundary mode assumes a gain factor
of exactly 1.0 for the missing frames, resulting in a smooth "fade in" and
"fade out" at the beginning and at the end of the input, respectively.
.IP "\fBcompress, s\fR" 4
.IX Item "compress, s"
Set the compress factor. In range from 0.0 to 30.0. Default is 0.0.
By default, the Dynamic Audio Normalizer does not apply "traditional"
compression. This means that signal peaks will not be pruned and thus the
full dynamic range will be retained within each local neighbourhood. However,
in some cases it may be desirable to combine the Dynamic Audio Normalizer's
normalization algorithm with a more "traditional" compression.
For this purpose, the Dynamic Audio Normalizer provides an optional compression
(thresholding) function. If (and only if) the compression feature is enabled,
all input frames will be processed by a soft knee thresholding function prior
to the actual normalization process. Put simply, the thresholding function is
going to prune all samples whose magnitude exceeds a certain threshold value.
However, the Dynamic Audio Normalizer does not simply apply a fixed threshold
value. Instead, the threshold value will be adjusted for each individual
frame.
In general, smaller parameters result in stronger compression, and vice versa.
Values below 3.0 are not recommended, because audible distortion may appear.
.IP "\fBthreshold, t\fR" 4
.IX Item "threshold, t"
Set the target threshold value. This specifies the lowest permissible
magnitude level for the audio input which will be normalized.
If input frame volume is above this value frame will be normalized.
Otherwise frame may not be normalized at all. The default value is set
to 0, which means all input frames will be normalized.
This option is mostly useful if digital noise is not wanted to be amplified.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS earwax
.IX Subsection "earwax"
Make audio easier to listen to on headphones.
.PP
This filter adds `cues' to 44.1kHz stereo (i.e. audio CD format) audio
so that when listened to on headphones the stereo image is moved from
inside your head (standard for headphones) to outside and in front of
the listener (standard for speakers).
.PP
Ported from SoX.
.SS equalizer
.IX Subsection "equalizer"
Apply a two-pole peaking equalisation (EQ) filter. With this
filter, the signal-level at and around a selected frequency can
be increased or decreased, whilst (unlike bandpass and bandreject
filters) that at all other frequencies is unchanged.
.PP
In order to produce complex equalisation curves, this filter can
be given several times, each with a different central frequency.
.PP
The filter accepts the following options:
.IP "\fBfrequency, f\fR" 4
.IX Item "frequency, f"
Set the filter's central frequency in Hz.
.IP "\fBwidth_type, t\fR" 4
.IX Item "width_type, t"
Set method to specify band-width of filter.
.RS 4
.IP \fBh\fR 4
.IX Item "h"
Hz
.IP \fBq\fR 4
.IX Item "q"
Q\-Factor
.IP \fBo\fR 4
.IX Item "o"
octave
.IP \fBs\fR 4
.IX Item "s"
slope
.IP \fBk\fR 4
.IX Item "k"
kHz
.RE
.RS 4
.RE
.IP "\fBwidth, w\fR" 4
.IX Item "width, w"
Specify the band-width of a filter in width_type units.
.IP "\fBgain, g\fR" 4
.IX Item "gain, g"
Set the required gain or attenuation in dB.
Beware of clipping when using a positive gain.
.IP "\fBmix, m\fR" 4
.IX Item "mix, m"
How much to use filtered signal in output. Default is 1.
Range is between 0 and 1.
.IP "\fBchannels, c\fR" 4
.IX Item "channels, c"
Specify which channels to filter, by default all available are filtered.
.IP "\fBnormalize, n\fR" 4
.IX Item "normalize, n"
Normalize biquad coefficients, by default is disabled.
Enabling it will normalize magnitude response at DC to 0dB.
.IP "\fBtransform, a\fR" 4
.IX Item "transform, a"
Set transform type of IIR filter.
.RS 4
.IP \fBdi\fR 4
.IX Item "di"
.PD 0
.IP \fBdii\fR 4
.IX Item "dii"
.IP \fBtdii\fR 4
.IX Item "tdii"
.IP \fBlatt\fR 4
.IX Item "latt"
.RE
.RS 4
.RE
.IP "\fBprecision, r\fR" 4
.IX Item "precision, r"
.PD
Set precison of filtering.
.RS 4
.IP \fBauto\fR 4
.IX Item "auto"
Pick automatic sample format depending on surround filters.
.IP \fBs16\fR 4
.IX Item "s16"
Always use signed 16\-bit.
.IP \fBs32\fR 4
.IX Item "s32"
Always use signed 32\-bit.
.IP \fBf32\fR 4
.IX Item "f32"
Always use float 32\-bit.
.IP \fBf64\fR 4
.IX Item "f64"
Always use float 64\-bit.
.RE
.RS 4
.RE
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Attenuate 10 dB at 1000 Hz, with a bandwidth of 200 Hz:
.Sp
.Vb 1
\&        equalizer=f=1000:t=h:width=200:g=\-10
.Ve
.IP \(bu 4
Apply 2 dB gain at 1000 Hz with Q 1 and attenuate 5 dB at 100 Hz with Q 2:
.Sp
.Vb 1
\&        equalizer=f=1000:t=q:w=1:g=2,equalizer=f=100:t=q:w=2:g=\-5
.Ve
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the following commands:
.IP "\fBfrequency, f\fR" 4
.IX Item "frequency, f"
Change equalizer frequency.
Syntax for the command is : "\fIfrequency\fR"
.IP "\fBwidth_type, t\fR" 4
.IX Item "width_type, t"
Change equalizer width_type.
Syntax for the command is : "\fIwidth_type\fR"
.IP "\fBwidth, w\fR" 4
.IX Item "width, w"
Change equalizer width.
Syntax for the command is : "\fIwidth\fR"
.IP "\fBgain, g\fR" 4
.IX Item "gain, g"
Change equalizer gain.
Syntax for the command is : "\fIgain\fR"
.IP "\fBmix, m\fR" 4
.IX Item "mix, m"
Change equalizer mix.
Syntax for the command is : "\fImix\fR"
.SS extrastereo
.IX Subsection "extrastereo"
Linearly increases the difference between left and right channels which
adds some sort of "live" effect to playback.
.PP
The filter accepts the following options:
.IP \fBm\fR 4
.IX Item "m"
Sets the difference coefficient (default: 2.5). 0.0 means mono sound
(average of both channels), with 1.0 sound will be unchanged, with
\&\-1.0 left and right channels will be swapped.
.IP \fBc\fR 4
.IX Item "c"
Enable clipping. By default is enabled.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS firequalizer
.IX Subsection "firequalizer"
Apply FIR Equalization using arbitrary frequency response.
.PP
The filter accepts the following option:
.IP \fBgain\fR 4
.IX Item "gain"
Set gain curve equation (in dB). The expression can contain variables:
.RS 4
.IP \fBf\fR 4
.IX Item "f"
the evaluated frequency
.IP \fBsr\fR 4
.IX Item "sr"
sample rate
.IP \fBch\fR 4
.IX Item "ch"
channel number, set to 0 when multichannels evaluation is disabled
.IP \fBchid\fR 4
.IX Item "chid"
channel id, see libavutil/channel_layout.h, set to the first channel id when
multichannels evaluation is disabled
.IP \fBchs\fR 4
.IX Item "chs"
number of channels
.IP \fBchlayout\fR 4
.IX Item "chlayout"
channel_layout, see libavutil/channel_layout.h
.RE
.RS 4
.Sp
and functions:
.IP \fBgain_interpolate(f)\fR 4
.IX Item "gain_interpolate(f)"
interpolate gain on frequency f based on gain_entry
.IP \fBcubic_interpolate(f)\fR 4
.IX Item "cubic_interpolate(f)"
same as gain_interpolate, but smoother
.RE
.RS 4
.Sp
This option is also available as command. Default is \f(CWgain_interpolate(f)\fR.
.RE
.IP \fBgain_entry\fR 4
.IX Item "gain_entry"
Set gain entry for gain_interpolate function. The expression can
contain functions:
.RS 4
.IP "\fBentry(f, g)\fR" 4
.IX Item "entry(f, g)"
store gain entry at frequency f with value g
.RE
.RS 4
.Sp
This option is also available as command.
.RE
.IP \fBdelay\fR 4
.IX Item "delay"
Set filter delay in seconds. Higher value means more accurate.
Default is \f(CW0.01\fR.
.IP \fBaccuracy\fR 4
.IX Item "accuracy"
Set filter accuracy in Hz. Lower value means more accurate.
Default is \f(CW5\fR.
.IP \fBwfunc\fR 4
.IX Item "wfunc"
Set window function. Acceptable values are:
.RS 4
.IP \fBrectangular\fR 4
.IX Item "rectangular"
rectangular window, useful when gain curve is already smooth
.IP \fBhann\fR 4
.IX Item "hann"
hann window (default)
.IP \fBhamming\fR 4
.IX Item "hamming"
hamming window
.IP \fBblackman\fR 4
.IX Item "blackman"
blackman window
.IP \fBnuttall3\fR 4
.IX Item "nuttall3"
3\-terms continuous 1st derivative nuttall window
.IP \fBmnuttall3\fR 4
.IX Item "mnuttall3"
minimum 3\-terms discontinuous nuttall window
.IP \fBnuttall\fR 4
.IX Item "nuttall"
4\-terms continuous 1st derivative nuttall window
.IP \fBbnuttall\fR 4
.IX Item "bnuttall"
minimum 4\-terms discontinuous nuttall (blackman-nuttall) window
.IP \fBbharris\fR 4
.IX Item "bharris"
blackman-harris window
.IP \fBtukey\fR 4
.IX Item "tukey"
tukey window
.RE
.RS 4
.RE
.IP \fBfixed\fR 4
.IX Item "fixed"
If enabled, use fixed number of audio samples. This improves speed when
filtering with large delay. Default is disabled.
.IP \fBmulti\fR 4
.IX Item "multi"
Enable multichannels evaluation on gain. Default is disabled.
.IP \fBzero_phase\fR 4
.IX Item "zero_phase"
Enable zero phase mode by subtracting timestamp to compensate delay.
Default is disabled.
.IP \fBscale\fR 4
.IX Item "scale"
Set scale used by gain. Acceptable values are:
.RS 4
.IP \fBlinlin\fR 4
.IX Item "linlin"
linear frequency, linear gain
.IP \fBlinlog\fR 4
.IX Item "linlog"
linear frequency, logarithmic (in dB) gain (default)
.IP \fBloglin\fR 4
.IX Item "loglin"
logarithmic (in octave scale where 20 Hz is 0) frequency, linear gain
.IP \fBloglog\fR 4
.IX Item "loglog"
logarithmic frequency, logarithmic gain
.RE
.RS 4
.RE
.IP \fBdumpfile\fR 4
.IX Item "dumpfile"
Set file for dumping, suitable for gnuplot.
.IP \fBdumpscale\fR 4
.IX Item "dumpscale"
Set scale for dumpfile. Acceptable values are same with scale option.
Default is linlog.
.IP \fBfft2\fR 4
.IX Item "fft2"
Enable 2\-channel convolution using complex FFT. This improves speed significantly.
Default is disabled.
.IP \fBmin_phase\fR 4
.IX Item "min_phase"
Enable minimum phase impulse response. Default is disabled.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
lowpass at 1000 Hz:
.Sp
.Vb 1
\&        firequalizer=gain=\*(Aqif(lt(f,1000), 0, \-INF)\*(Aq
.Ve
.IP \(bu 4
lowpass at 1000 Hz with gain_entry:
.Sp
.Vb 1
\&        firequalizer=gain_entry=\*(Aqentry(1000,0); entry(1001, \-INF)\*(Aq
.Ve
.IP \(bu 4
custom equalization:
.Sp
.Vb 1
\&        firequalizer=gain_entry=\*(Aqentry(100,0); entry(400, \-4); entry(1000, \-6); entry(2000, 0)\*(Aq
.Ve
.IP \(bu 4
higher delay with zero phase to compensate delay:
.Sp
.Vb 1
\&        firequalizer=delay=0.1:fixed=on:zero_phase=on
.Ve
.IP \(bu 4
lowpass on left channel, highpass on right channel:
.Sp
.Vb 2
\&        firequalizer=gain=\*(Aqif(eq(chid,1), gain_interpolate(f), if(eq(chid,2), gain_interpolate(1e6+f), 0))\*(Aq
\&        :gain_entry=\*(Aqentry(1000, 0); entry(1001,\-INF); entry(1e6+1000,0)\*(Aq:multi=on
.Ve
.SS flanger
.IX Subsection "flanger"
Apply a flanging effect to the audio.
.PP
The filter accepts the following options:
.IP \fBdelay\fR 4
.IX Item "delay"
Set base delay in milliseconds. Range from 0 to 30. Default value is 0.
.IP \fBdepth\fR 4
.IX Item "depth"
Set added sweep delay in milliseconds. Range from 0 to 10. Default value is 2.
.IP \fBregen\fR 4
.IX Item "regen"
Set percentage regeneration (delayed signal feedback). Range from \-95 to 95.
Default value is 0.
.IP \fBwidth\fR 4
.IX Item "width"
Set percentage of delayed signal mixed with original. Range from 0 to 100.
Default value is 71.
.IP \fBspeed\fR 4
.IX Item "speed"
Set sweeps per second (Hz). Range from 0.1 to 10. Default value is 0.5.
.IP \fBshape\fR 4
.IX Item "shape"
Set swept wave shape, can be \fItriangular\fR or \fIsinusoidal\fR.
Default value is \fIsinusoidal\fR.
.IP \fBphase\fR 4
.IX Item "phase"
Set swept wave percentage-shift for multi channel. Range from 0 to 100.
Default value is 25.
.IP \fBinterp\fR 4
.IX Item "interp"
Set delay-line interpolation, \fIlinear\fR or \fIquadratic\fR.
Default is \fIlinear\fR.
.SS haas
.IX Subsection "haas"
Apply Haas effect to audio.
.PP
Note that this makes most sense to apply on mono signals.
With this filter applied to mono signals it give some directionality and
stretches its stereo image.
.PP
The filter accepts the following options:
.IP \fBlevel_in\fR 4
.IX Item "level_in"
Set input level. By default is \fI1\fR, or 0dB
.IP \fBlevel_out\fR 4
.IX Item "level_out"
Set output level. By default is \fI1\fR, or 0dB.
.IP \fBside_gain\fR 4
.IX Item "side_gain"
Set gain applied to side part of signal. By default is \fI1\fR.
.IP \fBmiddle_source\fR 4
.IX Item "middle_source"
Set kind of middle source. Can be one of the following:
.RS 4
.IP \fBleft\fR 4
.IX Item "left"
Pick left channel.
.IP \fBright\fR 4
.IX Item "right"
Pick right channel.
.IP \fBmid\fR 4
.IX Item "mid"
Pick middle part signal of stereo image.
.IP \fBside\fR 4
.IX Item "side"
Pick side part signal of stereo image.
.RE
.RS 4
.RE
.IP \fBmiddle_phase\fR 4
.IX Item "middle_phase"
Change middle phase. By default is disabled.
.IP \fBleft_delay\fR 4
.IX Item "left_delay"
Set left channel delay. By default is \fI2.05\fR milliseconds.
.IP \fBleft_balance\fR 4
.IX Item "left_balance"
Set left channel balance. By default is \fI\-1\fR.
.IP \fBleft_gain\fR 4
.IX Item "left_gain"
Set left channel gain. By default is \fI1\fR.
.IP \fBleft_phase\fR 4
.IX Item "left_phase"
Change left phase. By default is disabled.
.IP \fBright_delay\fR 4
.IX Item "right_delay"
Set right channel delay. By defaults is \fI2.12\fR milliseconds.
.IP \fBright_balance\fR 4
.IX Item "right_balance"
Set right channel balance. By default is \fI1\fR.
.IP \fBright_gain\fR 4
.IX Item "right_gain"
Set right channel gain. By default is \fI1\fR.
.IP \fBright_phase\fR 4
.IX Item "right_phase"
Change right phase. By default is enabled.
.SS hdcd
.IX Subsection "hdcd"
Decodes High Definition Compatible Digital (HDCD) data. A 16\-bit PCM stream with
embedded HDCD codes is expanded into a 20\-bit PCM stream.
.PP
The filter supports the Peak Extend and Low-level Gain Adjustment features
of HDCD, and detects the Transient Filter flag.
.PP
.Vb 1
\&        ffmpeg \-i HDCD16.flac \-af hdcd OUT24.flac
.Ve
.PP
When using the filter with wav, note the default encoding for wav is 16\-bit,
so the resulting 20\-bit stream will be truncated back to 16\-bit. Use something
like \fB\-acodec pcm_s24le\fR after the filter to get 24\-bit PCM output.
.PP
.Vb 2
\&        ffmpeg \-i HDCD16.wav \-af hdcd OUT16.wav
\&        ffmpeg \-i HDCD16.wav \-af hdcd \-c:a pcm_s24le OUT24.wav
.Ve
.PP
The filter accepts the following options:
.IP \fBdisable_autoconvert\fR 4
.IX Item "disable_autoconvert"
Disable any automatic format conversion or resampling in the filter graph.
.IP \fBprocess_stereo\fR 4
.IX Item "process_stereo"
Process the stereo channels together. If target_gain does not match between
channels, consider it invalid and use the last valid target_gain.
.IP \fBcdt_ms\fR 4
.IX Item "cdt_ms"
Set the code detect timer period in ms.
.IP \fBforce_pe\fR 4
.IX Item "force_pe"
Always extend peaks above \-3dBFS even if PE isn't signaled.
.IP \fBanalyze_mode\fR 4
.IX Item "analyze_mode"
Replace audio with a solid tone and adjust the amplitude to signal some
specific aspect of the decoding process. The output file can be loaded in
an audio editor alongside the original to aid analysis.
.Sp
\&\f(CW\*(C`analyze_mode=pe:force_pe=true\*(C'\fR can be used to see all samples above the PE level.
.Sp
Modes are:
.RS 4
.IP "\fB0, off\fR" 4
.IX Item "0, off"
Disabled
.IP "\fB1, lle\fR" 4
.IX Item "1, lle"
Gain adjustment level at each sample
.IP "\fB2, pe\fR" 4
.IX Item "2, pe"
Samples where peak extend occurs
.IP "\fB3, cdt\fR" 4
.IX Item "3, cdt"
Samples where the code detect timer is active
.IP "\fB4, tgm\fR" 4
.IX Item "4, tgm"
Samples where the target gain does not match between channels
.RE
.RS 4
.RE
.SS headphone
.IX Subsection "headphone"
Apply head-related transfer functions (HRTFs) to create virtual
loudspeakers around the user for binaural listening via headphones.
The HRIRs are provided via additional streams, for each channel
one stereo input stream is needed.
.PP
The filter accepts the following options:
.IP \fBmap\fR 4
.IX Item "map"
Set mapping of input streams for convolution.
The argument is a '|'\-separated list of channel names in order as they
are given as additional stream inputs for filter.
This also specify number of input streams. Number of input streams
must be not less than number of channels in first stream plus one.
.IP \fBgain\fR 4
.IX Item "gain"
Set gain applied to audio. Value is in dB. Default is 0.
.IP \fBtype\fR 4
.IX Item "type"
Set processing type. Can be \fItime\fR or \fIfreq\fR. \fItime\fR is
processing audio in time domain which is slow.
\&\fIfreq\fR is processing audio in frequency domain which is fast.
Default is \fIfreq\fR.
.IP \fBlfe\fR 4
.IX Item "lfe"
Set custom gain for LFE channels. Value is in dB. Default is 0.
.IP \fBsize\fR 4
.IX Item "size"
Set size of frame in number of samples which will be processed at once.
Default value is \fI1024\fR. Allowed range is from 1024 to 96000.
.IP \fBhrir\fR 4
.IX Item "hrir"
Set format of hrir stream.
Default value is \fIstereo\fR. Alternative value is \fImultich\fR.
If value is set to \fIstereo\fR, number of additional streams should
be greater or equal to number of input channels in first input stream.
Also each additional stream should have stereo number of channels.
If value is set to \fImultich\fR, number of additional streams should
be exactly one. Also number of input channels of additional stream
should be equal or greater than twice number of channels of first input
stream.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Full example using wav files as coefficients with amovie filters for 7.1 downmix,
each amovie filter use stereo file with IR coefficients as input.
The files give coefficients for each position of virtual loudspeaker:
.Sp
.Vb 3
\&        ffmpeg \-i input.wav
\&        \-filter_complex "amovie=azi_270_ele_0_DFC.wav[sr];amovie=azi_90_ele_0_DFC.wav[sl];amovie=azi_225_ele_0_DFC.wav[br];amovie=azi_135_ele_0_DFC.wav[bl];amovie=azi_0_ele_0_DFC.wav,asplit[fc][lfe];amovie=azi_35_ele_0_DFC.wav[fl];amovie=azi_325_ele_0_DFC.wav[fr];[0:a][fl][fr][fc][lfe][bl][br][sl][sr]headphone=FL|FR|FC|LFE|BL|BR|SL|SR"
\&        output.wav
.Ve
.IP \(bu 4
Full example using wav files as coefficients with amovie filters for 7.1 downmix,
but now in \fImultich\fR \fIhrir\fR format.
.Sp
.Vb 2
\&        ffmpeg \-i input.wav \-filter_complex "amovie=minp.wav[hrirs];[0:a][hrirs]headphone=map=FL|FR|FC|LFE|BL|BR|SL|SR:hrir=multich"
\&        output.wav
.Ve
.SS highpass
.IX Subsection "highpass"
Apply a high-pass filter with 3dB point frequency.
The filter can be either single-pole, or double-pole (the default).
The filter roll off at 6dB per pole per octave (20dB per pole per decade).
.PP
The filter accepts the following options:
.IP "\fBfrequency, f\fR" 4
.IX Item "frequency, f"
Set frequency in Hz. Default is 3000.
.IP "\fBpoles, p\fR" 4
.IX Item "poles, p"
Set number of poles. Default is 2.
.IP "\fBwidth_type, t\fR" 4
.IX Item "width_type, t"
Set method to specify band-width of filter.
.RS 4
.IP \fBh\fR 4
.IX Item "h"
Hz
.IP \fBq\fR 4
.IX Item "q"
Q\-Factor
.IP \fBo\fR 4
.IX Item "o"
octave
.IP \fBs\fR 4
.IX Item "s"
slope
.IP \fBk\fR 4
.IX Item "k"
kHz
.RE
.RS 4
.RE
.IP "\fBwidth, w\fR" 4
.IX Item "width, w"
Specify the band-width of a filter in width_type units.
Applies only to double-pole filter.
The default is 0.707q and gives a Butterworth response.
.IP "\fBmix, m\fR" 4
.IX Item "mix, m"
How much to use filtered signal in output. Default is 1.
Range is between 0 and 1.
.IP "\fBchannels, c\fR" 4
.IX Item "channels, c"
Specify which channels to filter, by default all available are filtered.
.IP "\fBnormalize, n\fR" 4
.IX Item "normalize, n"
Normalize biquad coefficients, by default is disabled.
Enabling it will normalize magnitude response at DC to 0dB.
.IP "\fBtransform, a\fR" 4
.IX Item "transform, a"
Set transform type of IIR filter.
.RS 4
.IP \fBdi\fR 4
.IX Item "di"
.PD 0
.IP \fBdii\fR 4
.IX Item "dii"
.IP \fBtdii\fR 4
.IX Item "tdii"
.IP \fBlatt\fR 4
.IX Item "latt"
.RE
.RS 4
.RE
.IP "\fBprecision, r\fR" 4
.IX Item "precision, r"
.PD
Set precison of filtering.
.RS 4
.IP \fBauto\fR 4
.IX Item "auto"
Pick automatic sample format depending on surround filters.
.IP \fBs16\fR 4
.IX Item "s16"
Always use signed 16\-bit.
.IP \fBs32\fR 4
.IX Item "s32"
Always use signed 32\-bit.
.IP \fBf32\fR 4
.IX Item "f32"
Always use float 32\-bit.
.IP \fBf64\fR 4
.IX Item "f64"
Always use float 64\-bit.
.RE
.RS 4
.RE
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the following commands:
.IP "\fBfrequency, f\fR" 4
.IX Item "frequency, f"
Change highpass frequency.
Syntax for the command is : "\fIfrequency\fR"
.IP "\fBwidth_type, t\fR" 4
.IX Item "width_type, t"
Change highpass width_type.
Syntax for the command is : "\fIwidth_type\fR"
.IP "\fBwidth, w\fR" 4
.IX Item "width, w"
Change highpass width.
Syntax for the command is : "\fIwidth\fR"
.IP "\fBmix, m\fR" 4
.IX Item "mix, m"
Change highpass mix.
Syntax for the command is : "\fImix\fR"
.SS join
.IX Subsection "join"
Join multiple input streams into one multi-channel stream.
.PP
It accepts the following parameters:
.IP \fBinputs\fR 4
.IX Item "inputs"
The number of input streams. It defaults to 2.
.IP \fBchannel_layout\fR 4
.IX Item "channel_layout"
The desired output channel layout. It defaults to stereo.
.IP \fBmap\fR 4
.IX Item "map"
Map channels from inputs to output. The argument is a '|'\-separated list of
mappings, each in the \f(CW\*(C`\fR\f(CIinput_idx\fR\f(CW.\fR\f(CIin_channel\fR\f(CW\-\fR\f(CIout_channel\fR\f(CW\*(C'\fR
form. \fIinput_idx\fR is the 0\-based index of the input stream. \fIin_channel\fR
can be either the name of the input channel (e.g. FL for front left) or its
index in the specified input stream. \fIout_channel\fR is the name of the output
channel.
.PP
The filter will attempt to guess the mappings when they are not specified
explicitly. It does so by first trying to find an unused matching input channel
and if that fails it picks the first unused input channel.
.PP
Join 3 inputs (with properly set channel layouts):
.PP
.Vb 1
\&        ffmpeg \-i INPUT1 \-i INPUT2 \-i INPUT3 \-filter_complex join=inputs=3 OUTPUT
.Ve
.PP
Build a 5.1 output from 6 single-channel streams:
.PP
.Vb 3
\&        ffmpeg \-i fl \-i fr \-i fc \-i sl \-i sr \-i lfe \-filter_complex
\&        \*(Aqjoin=inputs=6:channel_layout=5.1:map=0.0\-FL|1.0\-FR|2.0\-FC|3.0\-SL|4.0\-SR|5.0\-LFE\*(Aq
\&        out
.Ve
.SS ladspa
.IX Subsection "ladspa"
Load a LADSPA (Linux Audio Developer's Simple Plugin API) plugin.
.PP
To enable compilation of this filter you need to configure FFmpeg with
\&\f(CW\*(C`\-\-enable\-ladspa\*(C'\fR.
.IP "\fBfile, f\fR" 4
.IX Item "file, f"
Specifies the name of LADSPA plugin library to load. If the environment
variable \fBLADSPA_PATH\fR is defined, the LADSPA plugin is searched in
each one of the directories specified by the colon separated list in
\&\fBLADSPA_PATH\fR, otherwise in the standard LADSPA paths, which are in
this order: \fIHOME/.ladspa/lib/\fR, \fI/usr/local/lib/ladspa/\fR,
\&\fI/usr/lib/ladspa/\fR.
.IP "\fBplugin, p\fR" 4
.IX Item "plugin, p"
Specifies the plugin within the library. Some libraries contain only
one plugin, but others contain many of them. If this is not set filter
will list all available plugins within the specified library.
.IP "\fBcontrols, c\fR" 4
.IX Item "controls, c"
Set the '|' separated list of controls which are zero or more floating point
values that determine the behavior of the loaded plugin (for example delay,
threshold or gain).
Controls need to be defined using the following syntax:
c0=\fIvalue0\fR|c1=\fIvalue1\fR|c2=\fIvalue2\fR|..., where
\&\fIvaluei\fR is the value set on the \fIi\fR\-th control.
Alternatively they can be also defined using the following syntax:
\&\fIvalue0\fR|\fIvalue1\fR|\fIvalue2\fR|..., where
\&\fIvaluei\fR is the value set on the \fIi\fR\-th control.
If \fBcontrols\fR is set to \f(CW\*(C`help\*(C'\fR, all available controls and
their valid ranges are printed.
.IP "\fBsample_rate, s\fR" 4
.IX Item "sample_rate, s"
Specify the sample rate, default to 44100. Only used if plugin have
zero inputs.
.IP "\fBnb_samples, n\fR" 4
.IX Item "nb_samples, n"
Set the number of samples per channel per each output frame, default
is 1024. Only used if plugin have zero inputs.
.IP "\fBduration, d\fR" 4
.IX Item "duration, d"
Set the minimum duration of the sourced audio. See
\&\fBthe Time duration section in the ffmpeg\-utils\|(1) manual\fR
for the accepted syntax.
Note that the resulting duration may be greater than the specified duration,
as the generated audio is always cut at the end of a complete frame.
If not specified, or the expressed duration is negative, the audio is
supposed to be generated forever.
Only used if plugin have zero inputs.
.IP "\fBlatency, l\fR" 4
.IX Item "latency, l"
Enable latency compensation, by default is disabled.
Only used if plugin have inputs.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
List all available plugins within amp (LADSPA example plugin) library:
.Sp
.Vb 1
\&        ladspa=file=amp
.Ve
.IP \(bu 4
List all available controls and their valid ranges for \f(CW\*(C`vcf_notch\*(C'\fR
plugin from \f(CW\*(C`VCF\*(C'\fR library:
.Sp
.Vb 1
\&        ladspa=f=vcf:p=vcf_notch:c=help
.Ve
.IP \(bu 4
Simulate low quality audio equipment using \f(CW\*(C`Computer Music Toolkit\*(C'\fR (CMT)
plugin library:
.Sp
.Vb 1
\&        ladspa=file=cmt:plugin=lofi:controls=c0=22|c1=12|c2=12
.Ve
.IP \(bu 4
Add reverberation to the audio using TAP-plugins
(Tom's Audio Processing plugins):
.Sp
.Vb 1
\&        ladspa=file=tap_reverb:tap_reverb
.Ve
.IP \(bu 4
Generate white noise, with 0.2 amplitude:
.Sp
.Vb 1
\&        ladspa=file=cmt:noise_source_white:c=c0=.2
.Ve
.IP \(bu 4
Generate 20 bpm clicks using plugin \f(CW\*(C`C* Click \- Metronome\*(C'\fR from the
\&\f(CW\*(C`C* Audio Plugin Suite\*(C'\fR (CAPS) library:
.Sp
.Vb 1
\&        ladspa=file=caps:Click:c=c1=20\*(Aq
.Ve
.IP \(bu 4
Apply \f(CW\*(C`C* Eq10X2 \- Stereo 10\-band equaliser\*(C'\fR effect:
.Sp
.Vb 1
\&        ladspa=caps:Eq10X2:c=c0=\-48|c9=\-24|c3=12|c4=2
.Ve
.IP \(bu 4
Increase volume by 20dB using fast lookahead limiter from Steve Harris
\&\f(CW\*(C`SWH Plugins\*(C'\fR collection:
.Sp
.Vb 1
\&        ladspa=fast_lookahead_limiter_1913:fastLookaheadLimiter:20|0|2
.Ve
.IP \(bu 4
Attenuate low frequencies using Multiband EQ from Steve Harris
\&\f(CW\*(C`SWH Plugins\*(C'\fR collection:
.Sp
.Vb 1
\&        ladspa=mbeq_1197:mbeq:\-24|\-24|\-24|0|0|0|0|0|0|0|0|0|0|0|0
.Ve
.IP \(bu 4
Reduce stereo image using \f(CW\*(C`Narrower\*(C'\fR from the \f(CW\*(C`C* Audio Plugin Suite\*(C'\fR
(CAPS) library:
.Sp
.Vb 1
\&        ladspa=caps:Narrower
.Ve
.IP \(bu 4
Another white noise, now using \f(CW\*(C`C* Audio Plugin Suite\*(C'\fR (CAPS) library:
.Sp
.Vb 1
\&        ladspa=caps:White:.2
.Ve
.IP \(bu 4
Some fractal noise, using \f(CW\*(C`C* Audio Plugin Suite\*(C'\fR (CAPS) library:
.Sp
.Vb 1
\&        ladspa=caps:Fractal:c=c1=1
.Ve
.IP \(bu 4
Dynamic volume normalization using \f(CW\*(C`VLevel\*(C'\fR plugin:
.Sp
.Vb 1
\&        ladspa=vlevel\-ladspa:vlevel_mono
.Ve
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the following commands:
.IP \fBcN\fR 4
.IX Item "cN"
Modify the \fIN\fR\-th control value.
.Sp
If the specified value is not valid, it is ignored and prior one is kept.
.SS loudnorm
.IX Subsection "loudnorm"
EBU R128 loudness normalization. Includes both dynamic and linear normalization modes.
Support for both single pass (livestreams, files) and double pass (files) modes.
This algorithm can target IL, LRA, and maximum true peak. In dynamic mode, to accurately
detect true peaks, the audio stream will be upsampled to 192 kHz.
Use the \f(CW\*(C`\-ar\*(C'\fR option or \f(CW\*(C`aresample\*(C'\fR filter to explicitly set an output sample rate.
.PP
The filter accepts the following options:
.IP "\fBI, i\fR" 4
.IX Item "I, i"
Set integrated loudness target.
Range is \-70.0 \- \-5.0. Default value is \-24.0.
.IP "\fBLRA, lra\fR" 4
.IX Item "LRA, lra"
Set loudness range target.
Range is 1.0 \- 20.0. Default value is 7.0.
.IP "\fBTP, tp\fR" 4
.IX Item "TP, tp"
Set maximum true peak.
Range is \-9.0 \- +0.0. Default value is \-2.0.
.IP "\fBmeasured_I, measured_i\fR" 4
.IX Item "measured_I, measured_i"
Measured IL of input file.
Range is \-99.0 \- +0.0.
.IP "\fBmeasured_LRA, measured_lra\fR" 4
.IX Item "measured_LRA, measured_lra"
Measured LRA of input file.
Range is  0.0 \- 99.0.
.IP "\fBmeasured_TP, measured_tp\fR" 4
.IX Item "measured_TP, measured_tp"
Measured true peak of input file.
Range is  \-99.0 \- +99.0.
.IP \fBmeasured_thresh\fR 4
.IX Item "measured_thresh"
Measured threshold of input file.
Range is \-99.0 \- +0.0.
.IP \fBoffset\fR 4
.IX Item "offset"
Set offset gain. Gain is applied before the true-peak limiter.
Range is  \-99.0 \- +99.0. Default is +0.0.
.IP \fBlinear\fR 4
.IX Item "linear"
Normalize by linearly scaling the source audio.
\&\f(CW\*(C`measured_I\*(C'\fR, \f(CW\*(C`measured_LRA\*(C'\fR, \f(CW\*(C`measured_TP\*(C'\fR,
and \f(CW\*(C`measured_thresh\*(C'\fR must all be specified. Target LRA shouldn't
be lower than source LRA and the change in integrated loudness shouldn't
result in a true peak which exceeds the target TP. If any of these
conditions aren't met, normalization mode will revert to \fIdynamic\fR.
Options are \f(CW\*(C`true\*(C'\fR or \f(CW\*(C`false\*(C'\fR. Default is \f(CW\*(C`true\*(C'\fR.
.IP \fBdual_mono\fR 4
.IX Item "dual_mono"
Treat mono input files as "dual-mono". If a mono file is intended for playback
on a stereo system, its EBU R128 measurement will be perceptually incorrect.
If set to \f(CW\*(C`true\*(C'\fR, this option will compensate for this effect.
Multi-channel input files are not affected by this option.
Options are true or false. Default is false.
.IP \fBprint_format\fR 4
.IX Item "print_format"
Set print format for stats. Options are summary, json, or none.
Default value is none.
.SS lowpass
.IX Subsection "lowpass"
Apply a low-pass filter with 3dB point frequency.
The filter can be either single-pole or double-pole (the default).
The filter roll off at 6dB per pole per octave (20dB per pole per decade).
.PP
The filter accepts the following options:
.IP "\fBfrequency, f\fR" 4
.IX Item "frequency, f"
Set frequency in Hz. Default is 500.
.IP "\fBpoles, p\fR" 4
.IX Item "poles, p"
Set number of poles. Default is 2.
.IP "\fBwidth_type, t\fR" 4
.IX Item "width_type, t"
Set method to specify band-width of filter.
.RS 4
.IP \fBh\fR 4
.IX Item "h"
Hz
.IP \fBq\fR 4
.IX Item "q"
Q\-Factor
.IP \fBo\fR 4
.IX Item "o"
octave
.IP \fBs\fR 4
.IX Item "s"
slope
.IP \fBk\fR 4
.IX Item "k"
kHz
.RE
.RS 4
.RE
.IP "\fBwidth, w\fR" 4
.IX Item "width, w"
Specify the band-width of a filter in width_type units.
Applies only to double-pole filter.
The default is 0.707q and gives a Butterworth response.
.IP "\fBmix, m\fR" 4
.IX Item "mix, m"
How much to use filtered signal in output. Default is 1.
Range is between 0 and 1.
.IP "\fBchannels, c\fR" 4
.IX Item "channels, c"
Specify which channels to filter, by default all available are filtered.
.IP "\fBnormalize, n\fR" 4
.IX Item "normalize, n"
Normalize biquad coefficients, by default is disabled.
Enabling it will normalize magnitude response at DC to 0dB.
.IP "\fBtransform, a\fR" 4
.IX Item "transform, a"
Set transform type of IIR filter.
.RS 4
.IP \fBdi\fR 4
.IX Item "di"
.PD 0
.IP \fBdii\fR 4
.IX Item "dii"
.IP \fBtdii\fR 4
.IX Item "tdii"
.IP \fBlatt\fR 4
.IX Item "latt"
.RE
.RS 4
.RE
.IP "\fBprecision, r\fR" 4
.IX Item "precision, r"
.PD
Set precison of filtering.
.RS 4
.IP \fBauto\fR 4
.IX Item "auto"
Pick automatic sample format depending on surround filters.
.IP \fBs16\fR 4
.IX Item "s16"
Always use signed 16\-bit.
.IP \fBs32\fR 4
.IX Item "s32"
Always use signed 32\-bit.
.IP \fBf32\fR 4
.IX Item "f32"
Always use float 32\-bit.
.IP \fBf64\fR 4
.IX Item "f64"
Always use float 64\-bit.
.RE
.RS 4
.RE
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Lowpass only LFE channel, it LFE is not present it does nothing:
.Sp
.Vb 1
\&        lowpass=c=LFE
.Ve
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the following commands:
.IP "\fBfrequency, f\fR" 4
.IX Item "frequency, f"
Change lowpass frequency.
Syntax for the command is : "\fIfrequency\fR"
.IP "\fBwidth_type, t\fR" 4
.IX Item "width_type, t"
Change lowpass width_type.
Syntax for the command is : "\fIwidth_type\fR"
.IP "\fBwidth, w\fR" 4
.IX Item "width, w"
Change lowpass width.
Syntax for the command is : "\fIwidth\fR"
.IP "\fBmix, m\fR" 4
.IX Item "mix, m"
Change lowpass mix.
Syntax for the command is : "\fImix\fR"
.SS lv2
.IX Subsection "lv2"
Load a LV2 (LADSPA Version 2) plugin.
.PP
To enable compilation of this filter you need to configure FFmpeg with
\&\f(CW\*(C`\-\-enable\-lv2\*(C'\fR.
.IP "\fBplugin, p\fR" 4
.IX Item "plugin, p"
Specifies the plugin URI. You may need to escape ':'.
.IP "\fBcontrols, c\fR" 4
.IX Item "controls, c"
Set the '|' separated list of controls which are zero or more floating point
values that determine the behavior of the loaded plugin (for example delay,
threshold or gain).
If \fBcontrols\fR is set to \f(CW\*(C`help\*(C'\fR, all available controls and
their valid ranges are printed.
.IP "\fBsample_rate, s\fR" 4
.IX Item "sample_rate, s"
Specify the sample rate, default to 44100. Only used if plugin have
zero inputs.
.IP "\fBnb_samples, n\fR" 4
.IX Item "nb_samples, n"
Set the number of samples per channel per each output frame, default
is 1024. Only used if plugin have zero inputs.
.IP "\fBduration, d\fR" 4
.IX Item "duration, d"
Set the minimum duration of the sourced audio. See
\&\fBthe Time duration section in the ffmpeg\-utils\|(1) manual\fR
for the accepted syntax.
Note that the resulting duration may be greater than the specified duration,
as the generated audio is always cut at the end of a complete frame.
If not specified, or the expressed duration is negative, the audio is
supposed to be generated forever.
Only used if plugin have zero inputs.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Apply bass enhancer plugin from Calf:
.Sp
.Vb 1
\&        lv2=p=http\e\e\e\e://calf.sourceforge.net/plugins/BassEnhancer:c=amount=2
.Ve
.IP \(bu 4
Apply vinyl plugin from Calf:
.Sp
.Vb 1
\&        lv2=p=http\e\e\e\e://calf.sourceforge.net/plugins/Vinyl:c=drone=0.2|aging=0.5
.Ve
.IP \(bu 4
Apply bit crusher plugin from ArtyFX:
.Sp
.Vb 1
\&        lv2=p=http\e\e\e\e://www.openavproductions.com/artyfx#bitta:c=crush=0.3
.Ve
.SS mcompand
.IX Subsection "mcompand"
Multiband Compress or expand the audio's dynamic range.
.PP
The input audio is divided into bands using 4th order Linkwitz-Riley IIRs.
This is akin to the crossover of a loudspeaker, and results in flat frequency
response when absent compander action.
.PP
It accepts the following parameters:
.IP \fBargs\fR 4
.IX Item "args"
This option syntax is:
attack,decay,[attack,decay..] soft-knee points crossover_frequency [delay [initial_volume [gain]]] | attack,decay ...
For explanation of each item refer to compand filter documentation.
.SS pan
.IX Subsection "pan"
Mix channels with specific gain levels. The filter accepts the output
channel layout followed by a set of channels definitions.
.PP
This filter is also designed to efficiently remap the channels of an audio
stream.
.PP
The filter accepts parameters of the form:
"\fIl\fR|\fIoutdef\fR|\fIoutdef\fR|..."
.IP \fBl\fR 4
.IX Item "l"
output channel layout or number of channels
.IP \fBoutdef\fR 4
.IX Item "outdef"
output channel specification, of the form:
"\fIout_name\fR=[\fIgain\fR*]\fIin_name\fR[(+\-)[\fIgain\fR*]\fIin_name\fR...]"
.IP \fBout_name\fR 4
.IX Item "out_name"
output channel to define, either a channel name (FL, FR, etc.) or a channel
number (c0, c1, etc.)
.IP \fBgain\fR 4
.IX Item "gain"
multiplicative coefficient for the channel, 1 leaving the volume unchanged
.IP \fBin_name\fR 4
.IX Item "in_name"
input channel to use, see out_name for details; it is not possible to mix
named and numbered input channels
.PP
If the `=' in a channel specification is replaced by `<', then the gains for
that specification will be renormalized so that the total is 1, thus
avoiding clipping noise.
.PP
\fIMixing examples\fR
.IX Subsection "Mixing examples"
.PP
For example, if you want to down-mix from stereo to mono, but with a bigger
factor for the left channel:
.PP
.Vb 1
\&        pan=1c|c0=0.9*c0+0.1*c1
.Ve
.PP
A customized down-mix to stereo that works automatically for 3\-, 4\-, 5\- and
7\-channels surround:
.PP
.Vb 1
\&        pan=stereo| FL < FL + 0.5*FC + 0.6*BL + 0.6*SL | FR < FR + 0.5*FC + 0.6*BR + 0.6*SR
.Ve
.PP
Note that \fBffmpeg\fR integrates a default down-mix (and up-mix) system
that should be preferred (see "\-ac" option) unless you have very specific
needs.
.PP
\fIRemapping examples\fR
.IX Subsection "Remapping examples"
.PP
The channel remapping will be effective if, and only if:
.IP "*<gain coefficients are zeroes or ones,>" 4
.IX Item "*<gain coefficients are zeroes or ones,>"
.PD 0
.IP "*<only one input per channel output,>" 4
.IX Item "*<only one input per channel output,>"
.PD
.PP
If all these conditions are satisfied, the filter will notify the user ("Pure
channel mapping detected"), and use an optimized and lossless method to do the
remapping.
.PP
For example, if you have a 5.1 source and want a stereo audio stream by
dropping the extra channels:
.PP
.Vb 1
\&        pan="stereo| c0=FL | c1=FR"
.Ve
.PP
Given the same source, you can also switch front left and front right channels
and keep the input channel layout:
.PP
.Vb 1
\&        pan="5.1| c0=c1 | c1=c0 | c2=c2 | c3=c3 | c4=c4 | c5=c5"
.Ve
.PP
If the input is a stereo audio stream, you can mute the front left channel (and
still keep the stereo channel layout) with:
.PP
.Vb 1
\&        pan="stereo|c1=c1"
.Ve
.PP
Still with a stereo audio stream input, you can copy the right channel in both
front left and right:
.PP
.Vb 1
\&        pan="stereo| c0=FR | c1=FR"
.Ve
.SS replaygain
.IX Subsection "replaygain"
ReplayGain scanner filter. This filter takes an audio stream as an input and
outputs it unchanged.
At end of filtering it displays \f(CW\*(C`track_gain\*(C'\fR and \f(CW\*(C`track_peak\*(C'\fR.
.SS resample
.IX Subsection "resample"
Convert the audio sample format, sample rate and channel layout. It is
not meant to be used directly.
.SS rubberband
.IX Subsection "rubberband"
Apply time-stretching and pitch-shifting with librubberband.
.PP
To enable compilation of this filter, you need to configure FFmpeg with
\&\f(CW\*(C`\-\-enable\-librubberband\*(C'\fR.
.PP
The filter accepts the following options:
.IP \fBtempo\fR 4
.IX Item "tempo"
Set tempo scale factor.
.IP \fBpitch\fR 4
.IX Item "pitch"
Set pitch scale factor.
.IP \fBtransients\fR 4
.IX Item "transients"
Set transients detector.
Possible values are:
.RS 4
.IP \fIcrisp\fR 4
.IX Item "crisp"
.PD 0
.IP \fImixed\fR 4
.IX Item "mixed"
.IP \fIsmooth\fR 4
.IX Item "smooth"
.RE
.RS 4
.RE
.IP \fBdetector\fR 4
.IX Item "detector"
.PD
Set detector.
Possible values are:
.RS 4
.IP \fIcompound\fR 4
.IX Item "compound"
.PD 0
.IP \fIpercussive\fR 4
.IX Item "percussive"
.IP \fIsoft\fR 4
.IX Item "soft"
.RE
.RS 4
.RE
.IP \fBphase\fR 4
.IX Item "phase"
.PD
Set phase.
Possible values are:
.RS 4
.IP \fIlaminar\fR 4
.IX Item "laminar"
.PD 0
.IP \fIindependent\fR 4
.IX Item "independent"
.RE
.RS 4
.RE
.IP \fBwindow\fR 4
.IX Item "window"
.PD
Set processing window size.
Possible values are:
.RS 4
.IP \fIstandard\fR 4
.IX Item "standard"
.PD 0
.IP \fIshort\fR 4
.IX Item "short"
.IP \fIlong\fR 4
.IX Item "long"
.RE
.RS 4
.RE
.IP \fBsmoothing\fR 4
.IX Item "smoothing"
.PD
Set smoothing.
Possible values are:
.RS 4
.IP \fIoff\fR 4
.IX Item "off"
.PD 0
.IP \fIon\fR 4
.IX Item "on"
.RE
.RS 4
.RE
.IP \fBformant\fR 4
.IX Item "formant"
.PD
Enable formant preservation when shift pitching.
Possible values are:
.RS 4
.IP \fIshifted\fR 4
.IX Item "shifted"
.PD 0
.IP \fIpreserved\fR 4
.IX Item "preserved"
.RE
.RS 4
.RE
.IP \fBpitchq\fR 4
.IX Item "pitchq"
.PD
Set pitch quality.
Possible values are:
.RS 4
.IP \fIquality\fR 4
.IX Item "quality"
.PD 0
.IP \fIspeed\fR 4
.IX Item "speed"
.IP \fIconsistency\fR 4
.IX Item "consistency"
.RE
.RS 4
.RE
.IP \fBchannels\fR 4
.IX Item "channels"
.PD
Set channels.
Possible values are:
.RS 4
.IP \fIapart\fR 4
.IX Item "apart"
.PD 0
.IP \fItogether\fR 4
.IX Item "together"
.RE
.RS 4
.RE
.PD
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the following commands:
.IP \fBtempo\fR 4
.IX Item "tempo"
Change filter tempo scale factor.
Syntax for the command is : "\fItempo\fR"
.IP \fBpitch\fR 4
.IX Item "pitch"
Change filter pitch scale factor.
Syntax for the command is : "\fIpitch\fR"
.SS sidechaincompress
.IX Subsection "sidechaincompress"
This filter acts like normal compressor but has the ability to compress
detected signal using second input signal.
It needs two input streams and returns one output stream.
First input stream will be processed depending on second stream signal.
The filtered signal then can be filtered with other filters in later stages of
processing. See \fBpan\fR and \fBamerge\fR filter.
.PP
The filter accepts the following options:
.IP \fBlevel_in\fR 4
.IX Item "level_in"
Set input gain. Default is 1. Range is between 0.015625 and 64.
.IP \fBmode\fR 4
.IX Item "mode"
Set mode of compressor operation. Can be \f(CW\*(C`upward\*(C'\fR or \f(CW\*(C`downward\*(C'\fR.
Default is \f(CW\*(C`downward\*(C'\fR.
.IP \fBthreshold\fR 4
.IX Item "threshold"
If a signal of second stream raises above this level it will affect the gain
reduction of first stream.
By default is 0.125. Range is between 0.00097563 and 1.
.IP \fBratio\fR 4
.IX Item "ratio"
Set a ratio about which the signal is reduced. 1:2 means that if the level
raised 4dB above the threshold, it will be only 2dB above after the reduction.
Default is 2. Range is between 1 and 20.
.IP \fBattack\fR 4
.IX Item "attack"
Amount of milliseconds the signal has to rise above the threshold before gain
reduction starts. Default is 20. Range is between 0.01 and 2000.
.IP \fBrelease\fR 4
.IX Item "release"
Amount of milliseconds the signal has to fall below the threshold before
reduction is decreased again. Default is 250. Range is between 0.01 and 9000.
.IP \fBmakeup\fR 4
.IX Item "makeup"
Set the amount by how much signal will be amplified after processing.
Default is 1. Range is from 1 to 64.
.IP \fBknee\fR 4
.IX Item "knee"
Curve the sharp knee around the threshold to enter gain reduction more softly.
Default is 2.82843. Range is between 1 and 8.
.IP \fBlink\fR 4
.IX Item "link"
Choose if the \f(CW\*(C`average\*(C'\fR level between all channels of side-chain stream
or the louder(\f(CW\*(C`maximum\*(C'\fR) channel of side-chain stream affects the
reduction. Default is \f(CW\*(C`average\*(C'\fR.
.IP \fBdetection\fR 4
.IX Item "detection"
Should the exact signal be taken in case of \f(CW\*(C`peak\*(C'\fR or an RMS one in case
of \f(CW\*(C`rms\*(C'\fR. Default is \f(CW\*(C`rms\*(C'\fR which is mainly smoother.
.IP \fBlevel_sc\fR 4
.IX Item "level_sc"
Set sidechain gain. Default is 1. Range is between 0.015625 and 64.
.IP \fBmix\fR 4
.IX Item "mix"
How much to use compressed signal in output. Default is 1.
Range is between 0 and 1.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Full ffmpeg example taking 2 audio inputs, 1st input to be compressed
depending on the signal of 2nd input and later compressed signal to be
merged with 2nd input:
.Sp
.Vb 1
\&        ffmpeg \-i main.flac \-i sidechain.flac \-filter_complex "[1:a]asplit=2[sc][mix];[0:a][sc]sidechaincompress[compr];[compr][mix]amerge"
.Ve
.SS sidechaingate
.IX Subsection "sidechaingate"
A sidechain gate acts like a normal (wideband) gate but has the ability to
filter the detected signal before sending it to the gain reduction stage.
Normally a gate uses the full range signal to detect a level above the
threshold.
For example: If you cut all lower frequencies from your sidechain signal
the gate will decrease the volume of your track only if not enough highs
appear. With this technique you are able to reduce the resonation of a
natural drum or remove "rumbling" of muted strokes from a heavily distorted
guitar.
It needs two input streams and returns one output stream.
First input stream will be processed depending on second stream signal.
.PP
The filter accepts the following options:
.IP \fBlevel_in\fR 4
.IX Item "level_in"
Set input level before filtering.
Default is 1. Allowed range is from 0.015625 to 64.
.IP \fBmode\fR 4
.IX Item "mode"
Set the mode of operation. Can be \f(CW\*(C`upward\*(C'\fR or \f(CW\*(C`downward\*(C'\fR.
Default is \f(CW\*(C`downward\*(C'\fR. If set to \f(CW\*(C`upward\*(C'\fR mode, higher parts of signal
will be amplified, expanding dynamic range in upward direction.
Otherwise, in case of \f(CW\*(C`downward\*(C'\fR lower parts of signal will be reduced.
.IP \fBrange\fR 4
.IX Item "range"
Set the level of gain reduction when the signal is below the threshold.
Default is 0.06125. Allowed range is from 0 to 1.
Setting this to 0 disables reduction and then filter behaves like expander.
.IP \fBthreshold\fR 4
.IX Item "threshold"
If a signal rises above this level the gain reduction is released.
Default is 0.125. Allowed range is from 0 to 1.
.IP \fBratio\fR 4
.IX Item "ratio"
Set a ratio about which the signal is reduced.
Default is 2. Allowed range is from 1 to 9000.
.IP \fBattack\fR 4
.IX Item "attack"
Amount of milliseconds the signal has to rise above the threshold before gain
reduction stops.
Default is 20 milliseconds. Allowed range is from 0.01 to 9000.
.IP \fBrelease\fR 4
.IX Item "release"
Amount of milliseconds the signal has to fall below the threshold before the
reduction is increased again. Default is 250 milliseconds.
Allowed range is from 0.01 to 9000.
.IP \fBmakeup\fR 4
.IX Item "makeup"
Set amount of amplification of signal after processing.
Default is 1. Allowed range is from 1 to 64.
.IP \fBknee\fR 4
.IX Item "knee"
Curve the sharp knee around the threshold to enter gain reduction more softly.
Default is 2.828427125. Allowed range is from 1 to 8.
.IP \fBdetection\fR 4
.IX Item "detection"
Choose if exact signal should be taken for detection or an RMS like one.
Default is rms. Can be peak or rms.
.IP \fBlink\fR 4
.IX Item "link"
Choose if the average level between all channels or the louder channel affects
the reduction.
Default is average. Can be average or maximum.
.IP \fBlevel_sc\fR 4
.IX Item "level_sc"
Set sidechain gain. Default is 1. Range is from 0.015625 to 64.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS silencedetect
.IX Subsection "silencedetect"
Detect silence in an audio stream.
.PP
This filter logs a message when it detects that the input audio volume is less
or equal to a noise tolerance value for a duration greater or equal to the
minimum detected noise duration.
.PP
The printed times and duration are expressed in seconds. The
\&\f(CW\*(C`lavfi.silence_start\*(C'\fR or \f(CW\*(C`lavfi.silence_start.X\*(C'\fR metadata key
is set on the first frame whose timestamp equals or exceeds the detection
duration and it contains the timestamp of the first frame of the silence.
.PP
The \f(CW\*(C`lavfi.silence_duration\*(C'\fR or \f(CW\*(C`lavfi.silence_duration.X\*(C'\fR
and \f(CW\*(C`lavfi.silence_end\*(C'\fR or \f(CW\*(C`lavfi.silence_end.X\*(C'\fR metadata
keys are set on the first frame after the silence. If \fBmono\fR is
enabled, and each channel is evaluated separately, the \f(CW\*(C`.X\*(C'\fR
suffixed keys are used, and \f(CW\*(C`X\*(C'\fR corresponds to the channel number.
.PP
The filter accepts the following options:
.IP "\fBnoise, n\fR" 4
.IX Item "noise, n"
Set noise tolerance. Can be specified in dB (in case "dB" is appended to the
specified value) or amplitude ratio. Default is \-60dB, or 0.001.
.IP "\fBduration, d\fR" 4
.IX Item "duration, d"
Set silence duration until notification (default is 2 seconds). See
\&\fBthe Time duration section in the ffmpeg\-utils\|(1) manual\fR
for the accepted syntax.
.IP "\fBmono, m\fR" 4
.IX Item "mono, m"
Process each channel separately, instead of combined. By default is disabled.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Detect 5 seconds of silence with \-50dB noise tolerance:
.Sp
.Vb 1
\&        silencedetect=n=\-50dB:d=5
.Ve
.IP \(bu 4
Complete example with \fBffmpeg\fR to detect silence with 0.0001 noise
tolerance in \fIsilence.mp3\fR:
.Sp
.Vb 1
\&        ffmpeg \-i silence.mp3 \-af silencedetect=noise=0.0001 \-f null \-
.Ve
.SS silenceremove
.IX Subsection "silenceremove"
Remove silence from the beginning, middle or end of the audio.
.PP
The filter accepts the following options:
.IP \fBstart_periods\fR 4
.IX Item "start_periods"
This value is used to indicate if audio should be trimmed at beginning of
the audio. A value of zero indicates no silence should be trimmed from the
beginning. When specifying a non-zero value, it trims audio up until it
finds non-silence. Normally, when trimming silence from beginning of audio
the \fIstart_periods\fR will be \f(CW1\fR but it can be increased to higher
values to trim all audio up to specific count of non-silence periods.
Default value is \f(CW0\fR.
.IP \fBstart_duration\fR 4
.IX Item "start_duration"
Specify the amount of time that non-silence must be detected before it stops
trimming audio. By increasing the duration, bursts of noises can be treated
as silence and trimmed off. Default value is \f(CW0\fR.
.IP \fBstart_threshold\fR 4
.IX Item "start_threshold"
This indicates what sample value should be treated as silence. For digital
audio, a value of \f(CW0\fR may be fine but for audio recorded from analog,
you may wish to increase the value to account for background noise.
Can be specified in dB (in case "dB" is appended to the specified value)
or amplitude ratio. Default value is \f(CW0\fR.
.IP \fBstart_silence\fR 4
.IX Item "start_silence"
Specify max duration of silence at beginning that will be kept after
trimming. Default is 0, which is equal to trimming all samples detected
as silence.
.IP \fBstart_mode\fR 4
.IX Item "start_mode"
Specify mode of detection of silence end in start of multi-channel audio.
Can be \fIany\fR or \fIall\fR. Default is \fIany\fR.
With \fIany\fR, any sample that is detected as non-silence will cause
stopped trimming of silence.
With \fIall\fR, only if all channels are detected as non-silence will cause
stopped trimming of silence.
.IP \fBstop_periods\fR 4
.IX Item "stop_periods"
Set the count for trimming silence from the end of audio.
To remove silence from the middle of a file, specify a \fIstop_periods\fR
that is negative. This value is then treated as a positive value and is
used to indicate the effect should restart processing as specified by
\&\fIstart_periods\fR, making it suitable for removing periods of silence
in the middle of the audio.
Default value is \f(CW0\fR.
.IP \fBstop_duration\fR 4
.IX Item "stop_duration"
Specify a duration of silence that must exist before audio is not copied any
more. By specifying a higher duration, silence that is wanted can be left in
the audio.
Default value is \f(CW0\fR.
.IP \fBstop_threshold\fR 4
.IX Item "stop_threshold"
This is the same as \fBstart_threshold\fR but for trimming silence from
the end of audio.
Can be specified in dB (in case "dB" is appended to the specified value)
or amplitude ratio. Default value is \f(CW0\fR.
.IP \fBstop_silence\fR 4
.IX Item "stop_silence"
Specify max duration of silence at end that will be kept after
trimming. Default is 0, which is equal to trimming all samples detected
as silence.
.IP \fBstop_mode\fR 4
.IX Item "stop_mode"
Specify mode of detection of silence start in end of multi-channel audio.
Can be \fIany\fR or \fIall\fR. Default is \fIany\fR.
With \fIany\fR, any sample that is detected as non-silence will cause
stopped trimming of silence.
With \fIall\fR, only if all channels are detected as non-silence will cause
stopped trimming of silence.
.IP \fBdetection\fR 4
.IX Item "detection"
Set how is silence detected. Can be \f(CW\*(C`rms\*(C'\fR or \f(CW\*(C`peak\*(C'\fR. Second is faster
and works better with digital silence which is exactly 0.
Default value is \f(CW\*(C`rms\*(C'\fR.
.IP \fBwindow\fR 4
.IX Item "window"
Set duration in number of seconds used to calculate size of window in number
of samples for detecting silence.
Default value is \f(CW0.02\fR. Allowed range is from \f(CW0\fR to \f(CW10\fR.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
The following example shows how this filter can be used to start a recording
that does not contain the delay at the start which usually occurs between
pressing the record button and the start of the performance:
.Sp
.Vb 1
\&        silenceremove=start_periods=1:start_duration=5:start_threshold=0.02
.Ve
.IP \(bu 4
Trim all silence encountered from beginning to end where there is more than 1
second of silence in audio:
.Sp
.Vb 1
\&        silenceremove=stop_periods=\-1:stop_duration=1:stop_threshold=\-90dB
.Ve
.IP \(bu 4
Trim all digital silence samples, using peak detection, from beginning to end
where there is more than 0 samples of digital silence in audio and digital
silence is detected in all channels at same positions in stream:
.Sp
.Vb 1
\&        silenceremove=window=0:detection=peak:stop_mode=all:start_mode=all:stop_periods=\-1:stop_threshold=0
.Ve
.SS sofalizer
.IX Subsection "sofalizer"
SOFAlizer uses head-related transfer functions (HRTFs) to create virtual
loudspeakers around the user for binaural listening via headphones (audio
formats up to 9 channels supported).
The HRTFs are stored in SOFA files (see <\fBhttp://www.sofacoustics.org/\fR> for a database).
SOFAlizer is developed at the Acoustics Research Institute (ARI) of the
Austrian Academy of Sciences.
.PP
To enable compilation of this filter you need to configure FFmpeg with
\&\f(CW\*(C`\-\-enable\-libmysofa\*(C'\fR.
.PP
The filter accepts the following options:
.IP \fBsofa\fR 4
.IX Item "sofa"
Set the SOFA file used for rendering.
.IP \fBgain\fR 4
.IX Item "gain"
Set gain applied to audio. Value is in dB. Default is 0.
.IP \fBrotation\fR 4
.IX Item "rotation"
Set rotation of virtual loudspeakers in deg. Default is 0.
.IP \fBelevation\fR 4
.IX Item "elevation"
Set elevation of virtual speakers in deg. Default is 0.
.IP \fBradius\fR 4
.IX Item "radius"
Set distance in meters between loudspeakers and the listener with near-field
HRTFs. Default is 1.
.IP \fBtype\fR 4
.IX Item "type"
Set processing type. Can be \fItime\fR or \fIfreq\fR. \fItime\fR is
processing audio in time domain which is slow.
\&\fIfreq\fR is processing audio in frequency domain which is fast.
Default is \fIfreq\fR.
.IP \fBspeakers\fR 4
.IX Item "speakers"
Set custom positions of virtual loudspeakers. Syntax for this option is:
<CH> <AZIM> <ELEV>[|<CH> <AZIM> <ELEV>|...].
Each virtual loudspeaker is described with short channel name following with
azimuth and elevation in degrees.
Each virtual loudspeaker description is separated by '|'.
For example to override front left and front right channel positions use:
\&'speakers=FL 45 15|FR 345 15'.
Descriptions with unrecognised channel names are ignored.
.IP \fBlfegain\fR 4
.IX Item "lfegain"
Set custom gain for LFE channels. Value is in dB. Default is 0.
.IP \fBframesize\fR 4
.IX Item "framesize"
Set custom frame size in number of samples. Default is 1024.
Allowed range is from 1024 to 96000. Only used if option \fBtype\fR
is set to \fIfreq\fR.
.IP \fBnormalize\fR 4
.IX Item "normalize"
Should all IRs be normalized upon importing SOFA file.
By default is enabled.
.IP \fBinterpolate\fR 4
.IX Item "interpolate"
Should nearest IRs be interpolated with neighbor IRs if exact position
does not match. By default is disabled.
.IP \fBminphase\fR 4
.IX Item "minphase"
Minphase all IRs upon loading of SOFA file. By default is disabled.
.IP \fBanglestep\fR 4
.IX Item "anglestep"
Set neighbor search angle step. Only used if option \fIinterpolate\fR is enabled.
.IP \fBradstep\fR 4
.IX Item "radstep"
Set neighbor search radius step. Only used if option \fIinterpolate\fR is enabled.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Using ClubFritz6 sofa file:
.Sp
.Vb 1
\&        sofalizer=sofa=/path/to/ClubFritz6.sofa:type=freq:radius=1
.Ve
.IP \(bu 4
Using ClubFritz12 sofa file and bigger radius with small rotation:
.Sp
.Vb 1
\&        sofalizer=sofa=/path/to/ClubFritz12.sofa:type=freq:radius=2:rotation=5
.Ve
.IP \(bu 4
Similar as above but with custom speaker positions for front left, front right, back left and back right
and also with custom gain:
.Sp
.Vb 1
\&        "sofalizer=sofa=/path/to/ClubFritz6.sofa:type=freq:radius=2:speakers=FL 45|FR 315|BL 135|BR 225:gain=28"
.Ve
.SS speechnorm
.IX Subsection "speechnorm"
Speech Normalizer.
.PP
This filter expands or compresses each half-cycle of audio samples
(local set of samples all above or all below zero and between two nearest zero crossings) depending
on threshold value, so audio reaches target peak value under conditions controlled by below options.
.PP
The filter accepts the following options:
.IP "\fBpeak, p\fR" 4
.IX Item "peak, p"
Set the expansion target peak value. This specifies the highest allowed absolute amplitude
level for the normalized audio input. Default value is 0.95. Allowed range is from 0.0 to 1.0.
.IP "\fBexpansion, e\fR" 4
.IX Item "expansion, e"
Set the maximum expansion factor. Allowed range is from 1.0 to 50.0. Default value is 2.0.
This option controls maximum local half-cycle of samples expansion. The maximum expansion
would be such that local peak value reaches target peak value but never to surpass it and that
ratio between new and previous peak value does not surpass this option value.
.IP "\fBcompression, c\fR" 4
.IX Item "compression, c"
Set the maximum compression factor. Allowed range is from 1.0 to 50.0. Default value is 2.0.
This option controls maximum local half-cycle of samples compression. This option is used
only if \fBthreshold\fR option is set to value greater than 0.0, then in such cases
when local peak is lower or same as value set by \fBthreshold\fR all samples belonging to
that peak's half-cycle will be compressed by current compression factor.
.IP "\fBthreshold, t\fR" 4
.IX Item "threshold, t"
Set the threshold value. Default value is 0.0. Allowed range is from 0.0 to 1.0.
This option specifies which half-cycles of samples will be compressed and which will be expanded.
Any half-cycle samples with their local peak value below or same as this option value will be
compressed by current compression factor, otherwise, if greater than threshold value they will be
expanded with expansion factor so that it could reach peak target value but never surpass it.
.IP "\fBraise, r\fR" 4
.IX Item "raise, r"
Set the expansion raising amount per each half-cycle of samples. Default value is 0.001.
Allowed range is from 0.0 to 1.0. This controls how fast expansion factor is raised per
each new half-cycle until it reaches \fBexpansion\fR value.
Setting this options too high may lead to distortions.
.IP "\fBfall, f\fR" 4
.IX Item "fall, f"
Set the compression raising amount per each half-cycle of samples. Default value is 0.001.
Allowed range is from 0.0 to 1.0. This controls how fast compression factor is raised per
each new half-cycle until it reaches \fBcompression\fR value.
.IP "\fBchannels, h\fR" 4
.IX Item "channels, h"
Specify which channels to filter, by default all available channels are filtered.
.IP "\fBinvert, i\fR" 4
.IX Item "invert, i"
Enable inverted filtering, by default is disabled. This inverts interpretation of \fBthreshold\fR
option. When enabled any half-cycle of samples with their local peak value below or same as
\&\fBthreshold\fR option will be expanded otherwise it will be compressed.
.IP "\fBlink, l\fR" 4
.IX Item "link, l"
Link channels when calculating gain applied to each filtered channel sample, by default is disabled.
When disabled each filtered channel gain calculation is independent, otherwise when this option
is enabled the minimum of all possible gains for each filtered channel is used.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS stereotools
.IX Subsection "stereotools"
This filter has some handy utilities to manage stereo signals, for converting
M/S stereo recordings to L/R signal while having control over the parameters
or spreading the stereo image of master track.
.PP
The filter accepts the following options:
.IP \fBlevel_in\fR 4
.IX Item "level_in"
Set input level before filtering for both channels. Defaults is 1.
Allowed range is from 0.015625 to 64.
.IP \fBlevel_out\fR 4
.IX Item "level_out"
Set output level after filtering for both channels. Defaults is 1.
Allowed range is from 0.015625 to 64.
.IP \fBbalance_in\fR 4
.IX Item "balance_in"
Set input balance between both channels. Default is 0.
Allowed range is from \-1 to 1.
.IP \fBbalance_out\fR 4
.IX Item "balance_out"
Set output balance between both channels. Default is 0.
Allowed range is from \-1 to 1.
.IP \fBsoftclip\fR 4
.IX Item "softclip"
Enable softclipping. Results in analog distortion instead of harsh digital 0dB
clipping. Disabled by default.
.IP \fBmutel\fR 4
.IX Item "mutel"
Mute the left channel. Disabled by default.
.IP \fBmuter\fR 4
.IX Item "muter"
Mute the right channel. Disabled by default.
.IP \fBphasel\fR 4
.IX Item "phasel"
Change the phase of the left channel. Disabled by default.
.IP \fBphaser\fR 4
.IX Item "phaser"
Change the phase of the right channel. Disabled by default.
.IP \fBmode\fR 4
.IX Item "mode"
Set stereo mode. Available values are:
.RS 4
.IP \fBlr>lr\fR 4
.IX Item "lr>lr"
Left/Right to Left/Right, this is default.
.IP \fBlr>ms\fR 4
.IX Item "lr>ms"
Left/Right to Mid/Side.
.IP \fBms>lr\fR 4
.IX Item "ms>lr"
Mid/Side to Left/Right.
.IP \fBlr>ll\fR 4
.IX Item "lr>ll"
Left/Right to Left/Left.
.IP \fBlr>rr\fR 4
.IX Item "lr>rr"
Left/Right to Right/Right.
.IP \fBlr>l+r\fR 4
.IX Item "lr>l+r"
Left/Right to Left + Right.
.IP \fBlr>rl\fR 4
.IX Item "lr>rl"
Left/Right to Right/Left.
.IP \fBms>ll\fR 4
.IX Item "ms>ll"
Mid/Side to Left/Left.
.IP \fBms>rr\fR 4
.IX Item "ms>rr"
Mid/Side to Right/Right.
.IP \fBms>rl\fR 4
.IX Item "ms>rl"
Mid/Side to Right/Left.
.IP \fBlr>l\-r\fR 4
.IX Item "lr>l-r"
Left/Right to Left \- Right.
.RE
.RS 4
.RE
.IP \fBslev\fR 4
.IX Item "slev"
Set level of side signal. Default is 1.
Allowed range is from 0.015625 to 64.
.IP \fBsbal\fR 4
.IX Item "sbal"
Set balance of side signal. Default is 0.
Allowed range is from \-1 to 1.
.IP \fBmlev\fR 4
.IX Item "mlev"
Set level of the middle signal. Default is 1.
Allowed range is from 0.015625 to 64.
.IP \fBmpan\fR 4
.IX Item "mpan"
Set middle signal pan. Default is 0. Allowed range is from \-1 to 1.
.IP \fBbase\fR 4
.IX Item "base"
Set stereo base between mono and inversed channels. Default is 0.
Allowed range is from \-1 to 1.
.IP \fBdelay\fR 4
.IX Item "delay"
Set delay in milliseconds how much to delay left from right channel and
vice versa. Default is 0. Allowed range is from \-20 to 20.
.IP \fBsclevel\fR 4
.IX Item "sclevel"
Set S/C level. Default is 1. Allowed range is from 1 to 100.
.IP \fBphase\fR 4
.IX Item "phase"
Set the stereo phase in degrees. Default is 0. Allowed range is from 0 to 360.
.IP "\fBbmode_in, bmode_out\fR" 4
.IX Item "bmode_in, bmode_out"
Set balance mode for balance_in/balance_out option.
.Sp
Can be one of the following:
.RS 4
.IP \fBbalance\fR 4
.IX Item "balance"
Classic balance mode. Attenuate one channel at time.
Gain is raised up to 1.
.IP \fBamplitude\fR 4
.IX Item "amplitude"
Similar as classic mode above but gain is raised up to 2.
.IP \fBpower\fR 4
.IX Item "power"
Equal power distribution, from \-6dB to +6dB range.
.RE
.RS 4
.RE
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Apply karaoke like effect:
.Sp
.Vb 1
\&        stereotools=mlev=0.015625
.Ve
.IP \(bu 4
Convert M/S signal to L/R:
.Sp
.Vb 1
\&        "stereotools=mode=ms>lr"
.Ve
.SS stereowiden
.IX Subsection "stereowiden"
This filter enhance the stereo effect by suppressing signal common to both
channels and by delaying the signal of left into right and vice versa,
thereby widening the stereo effect.
.PP
The filter accepts the following options:
.IP \fBdelay\fR 4
.IX Item "delay"
Time in milliseconds of the delay of left signal into right and vice versa.
Default is 20 milliseconds.
.IP \fBfeedback\fR 4
.IX Item "feedback"
Amount of gain in delayed signal into right and vice versa. Gives a delay
effect of left signal in right output and vice versa which gives widening
effect. Default is 0.3.
.IP \fBcrossfeed\fR 4
.IX Item "crossfeed"
Cross feed of left into right with inverted phase. This helps in suppressing
the mono. If the value is 1 it will cancel all the signal common to both
channels. Default is 0.3.
.IP \fBdrymix\fR 4
.IX Item "drymix"
Set level of input signal of original channel. Default is 0.8.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options except \f(CW\*(C`delay\*(C'\fR as \fBcommands\fR.
.SS superequalizer
.IX Subsection "superequalizer"
Apply 18 band equalizer.
.PP
The filter accepts the following options:
.IP \fB1b\fR 4
.IX Item "1b"
Set 65Hz band gain.
.IP \fB2b\fR 4
.IX Item "2b"
Set 92Hz band gain.
.IP \fB3b\fR 4
.IX Item "3b"
Set 131Hz band gain.
.IP \fB4b\fR 4
.IX Item "4b"
Set 185Hz band gain.
.IP \fB5b\fR 4
.IX Item "5b"
Set 262Hz band gain.
.IP \fB6b\fR 4
.IX Item "6b"
Set 370Hz band gain.
.IP \fB7b\fR 4
.IX Item "7b"
Set 523Hz band gain.
.IP \fB8b\fR 4
.IX Item "8b"
Set 740Hz band gain.
.IP \fB9b\fR 4
.IX Item "9b"
Set 1047Hz band gain.
.IP \fB10b\fR 4
.IX Item "10b"
Set 1480Hz band gain.
.IP \fB11b\fR 4
.IX Item "11b"
Set 2093Hz band gain.
.IP \fB12b\fR 4
.IX Item "12b"
Set 2960Hz band gain.
.IP \fB13b\fR 4
.IX Item "13b"
Set 4186Hz band gain.
.IP \fB14b\fR 4
.IX Item "14b"
Set 5920Hz band gain.
.IP \fB15b\fR 4
.IX Item "15b"
Set 8372Hz band gain.
.IP \fB16b\fR 4
.IX Item "16b"
Set 11840Hz band gain.
.IP \fB17b\fR 4
.IX Item "17b"
Set 16744Hz band gain.
.IP \fB18b\fR 4
.IX Item "18b"
Set 20000Hz band gain.
.SS surround
.IX Subsection "surround"
Apply audio surround upmix filter.
.PP
This filter allows to produce multichannel output from audio stream.
.PP
The filter accepts the following options:
.IP \fBchl_out\fR 4
.IX Item "chl_out"
Set output channel layout. By default, this is \fI5.1\fR.
.Sp
See \fBthe Channel Layout section in the ffmpeg\-utils\|(1) manual\fR
for the required syntax.
.IP \fBchl_in\fR 4
.IX Item "chl_in"
Set input channel layout. By default, this is \fIstereo\fR.
.Sp
See \fBthe Channel Layout section in the ffmpeg\-utils\|(1) manual\fR
for the required syntax.
.IP \fBlevel_in\fR 4
.IX Item "level_in"
Set input volume level. By default, this is \fI1\fR.
.IP \fBlevel_out\fR 4
.IX Item "level_out"
Set output volume level. By default, this is \fI1\fR.
.IP \fBlfe\fR 4
.IX Item "lfe"
Enable LFE channel output if output channel layout has it. By default, this is enabled.
.IP \fBlfe_low\fR 4
.IX Item "lfe_low"
Set LFE low cut off frequency. By default, this is \fI128\fR Hz.
.IP \fBlfe_high\fR 4
.IX Item "lfe_high"
Set LFE high cut off frequency. By default, this is \fI256\fR Hz.
.IP \fBlfe_mode\fR 4
.IX Item "lfe_mode"
Set LFE mode, can be \fIadd\fR or \fIsub\fR. Default is \fIadd\fR.
In \fIadd\fR mode, LFE channel is created from input audio and added to output.
In \fIsub\fR mode, LFE channel is created from input audio and added to output but
also all non-LFE output channels are subtracted with output LFE channel.
.IP \fBangle\fR 4
.IX Item "angle"
Set angle of stereo surround transform, Allowed range is from \fI0\fR to \fI360\fR.
Default is \fI90\fR.
.IP \fBfc_in\fR 4
.IX Item "fc_in"
Set front center input volume. By default, this is \fI1\fR.
.IP \fBfc_out\fR 4
.IX Item "fc_out"
Set front center output volume. By default, this is \fI1\fR.
.IP \fBfl_in\fR 4
.IX Item "fl_in"
Set front left input volume. By default, this is \fI1\fR.
.IP \fBfl_out\fR 4
.IX Item "fl_out"
Set front left output volume. By default, this is \fI1\fR.
.IP \fBfr_in\fR 4
.IX Item "fr_in"
Set front right input volume. By default, this is \fI1\fR.
.IP \fBfr_out\fR 4
.IX Item "fr_out"
Set front right output volume. By default, this is \fI1\fR.
.IP \fBsl_in\fR 4
.IX Item "sl_in"
Set side left input volume. By default, this is \fI1\fR.
.IP \fBsl_out\fR 4
.IX Item "sl_out"
Set side left output volume. By default, this is \fI1\fR.
.IP \fBsr_in\fR 4
.IX Item "sr_in"
Set side right input volume. By default, this is \fI1\fR.
.IP \fBsr_out\fR 4
.IX Item "sr_out"
Set side right output volume. By default, this is \fI1\fR.
.IP \fBbl_in\fR 4
.IX Item "bl_in"
Set back left input volume. By default, this is \fI1\fR.
.IP \fBbl_out\fR 4
.IX Item "bl_out"
Set back left output volume. By default, this is \fI1\fR.
.IP \fBbr_in\fR 4
.IX Item "br_in"
Set back right input volume. By default, this is \fI1\fR.
.IP \fBbr_out\fR 4
.IX Item "br_out"
Set back right output volume. By default, this is \fI1\fR.
.IP \fBbc_in\fR 4
.IX Item "bc_in"
Set back center input volume. By default, this is \fI1\fR.
.IP \fBbc_out\fR 4
.IX Item "bc_out"
Set back center output volume. By default, this is \fI1\fR.
.IP \fBlfe_in\fR 4
.IX Item "lfe_in"
Set LFE input volume. By default, this is \fI1\fR.
.IP \fBlfe_out\fR 4
.IX Item "lfe_out"
Set LFE output volume. By default, this is \fI1\fR.
.IP \fBallx\fR 4
.IX Item "allx"
Set spread usage of stereo image across X axis for all channels.
.IP \fBally\fR 4
.IX Item "ally"
Set spread usage of stereo image across Y axis for all channels.
.IP "\fBfcx, flx, frx, blx, brx, slx, srx, bcx\fR" 4
.IX Item "fcx, flx, frx, blx, brx, slx, srx, bcx"
Set spread usage of stereo image across X axis for each channel.
.IP "\fBfcy, fly, fry, bly, bry, sly, sry, bcy\fR" 4
.IX Item "fcy, fly, fry, bly, bry, sly, sry, bcy"
Set spread usage of stereo image across Y axis for each channel.
.IP \fBwin_size\fR 4
.IX Item "win_size"
Set window size. Allowed range is from \fI1024\fR to \fI65536\fR. Default size is \fI4096\fR.
.IP \fBwin_func\fR 4
.IX Item "win_func"
Set window function.
.Sp
It accepts the following values:
.RS 4
.IP \fBrect\fR 4
.IX Item "rect"
.PD 0
.IP \fBbartlett\fR 4
.IX Item "bartlett"
.IP "\fBhann, hanning\fR" 4
.IX Item "hann, hanning"
.IP \fBhamming\fR 4
.IX Item "hamming"
.IP \fBblackman\fR 4
.IX Item "blackman"
.IP \fBwelch\fR 4
.IX Item "welch"
.IP \fBflattop\fR 4
.IX Item "flattop"
.IP \fBbharris\fR 4
.IX Item "bharris"
.IP \fBbnuttall\fR 4
.IX Item "bnuttall"
.IP \fBbhann\fR 4
.IX Item "bhann"
.IP \fBsine\fR 4
.IX Item "sine"
.IP \fBnuttall\fR 4
.IX Item "nuttall"
.IP \fBlanczos\fR 4
.IX Item "lanczos"
.IP \fBgauss\fR 4
.IX Item "gauss"
.IP \fBtukey\fR 4
.IX Item "tukey"
.IP \fBdolph\fR 4
.IX Item "dolph"
.IP \fBcauchy\fR 4
.IX Item "cauchy"
.IP \fBparzen\fR 4
.IX Item "parzen"
.IP \fBpoisson\fR 4
.IX Item "poisson"
.IP \fBbohman\fR 4
.IX Item "bohman"
.RE
.RS 4
.PD
.Sp
Default is \f(CW\*(C`hann\*(C'\fR.
.RE
.IP \fBoverlap\fR 4
.IX Item "overlap"
Set window overlap. If set to 1, the recommended overlap for selected
window function will be picked. Default is \f(CW0.5\fR.
.SS "treble, highshelf"
.IX Subsection "treble, highshelf"
Boost or cut treble (upper) frequencies of the audio using a two-pole
shelving filter with a response similar to that of a standard
hi-fi's tone-controls. This is also known as shelving equalisation (EQ).
.PP
The filter accepts the following options:
.IP "\fBgain, g\fR" 4
.IX Item "gain, g"
Give the gain at whichever is the lower of ~22 kHz and the
Nyquist frequency. Its useful range is about \-20 (for a large cut)
to +20 (for a large boost). Beware of clipping when using a positive gain.
.IP "\fBfrequency, f\fR" 4
.IX Item "frequency, f"
Set the filter's central frequency and so can be used
to extend or reduce the frequency range to be boosted or cut.
The default value is \f(CW3000\fR Hz.
.IP "\fBwidth_type, t\fR" 4
.IX Item "width_type, t"
Set method to specify band-width of filter.
.RS 4
.IP \fBh\fR 4
.IX Item "h"
Hz
.IP \fBq\fR 4
.IX Item "q"
Q\-Factor
.IP \fBo\fR 4
.IX Item "o"
octave
.IP \fBs\fR 4
.IX Item "s"
slope
.IP \fBk\fR 4
.IX Item "k"
kHz
.RE
.RS 4
.RE
.IP "\fBwidth, w\fR" 4
.IX Item "width, w"
Determine how steep is the filter's shelf transition.
.IP "\fBpoles, p\fR" 4
.IX Item "poles, p"
Set number of poles. Default is 2.
.IP "\fBmix, m\fR" 4
.IX Item "mix, m"
How much to use filtered signal in output. Default is 1.
Range is between 0 and 1.
.IP "\fBchannels, c\fR" 4
.IX Item "channels, c"
Specify which channels to filter, by default all available are filtered.
.IP "\fBnormalize, n\fR" 4
.IX Item "normalize, n"
Normalize biquad coefficients, by default is disabled.
Enabling it will normalize magnitude response at DC to 0dB.
.IP "\fBtransform, a\fR" 4
.IX Item "transform, a"
Set transform type of IIR filter.
.RS 4
.IP \fBdi\fR 4
.IX Item "di"
.PD 0
.IP \fBdii\fR 4
.IX Item "dii"
.IP \fBtdii\fR 4
.IX Item "tdii"
.IP \fBlatt\fR 4
.IX Item "latt"
.RE
.RS 4
.RE
.IP "\fBprecision, r\fR" 4
.IX Item "precision, r"
.PD
Set precison of filtering.
.RS 4
.IP \fBauto\fR 4
.IX Item "auto"
Pick automatic sample format depending on surround filters.
.IP \fBs16\fR 4
.IX Item "s16"
Always use signed 16\-bit.
.IP \fBs32\fR 4
.IX Item "s32"
Always use signed 32\-bit.
.IP \fBf32\fR 4
.IX Item "f32"
Always use float 32\-bit.
.IP \fBf64\fR 4
.IX Item "f64"
Always use float 64\-bit.
.RE
.RS 4
.RE
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the following commands:
.IP "\fBfrequency, f\fR" 4
.IX Item "frequency, f"
Change treble frequency.
Syntax for the command is : "\fIfrequency\fR"
.IP "\fBwidth_type, t\fR" 4
.IX Item "width_type, t"
Change treble width_type.
Syntax for the command is : "\fIwidth_type\fR"
.IP "\fBwidth, w\fR" 4
.IX Item "width, w"
Change treble width.
Syntax for the command is : "\fIwidth\fR"
.IP "\fBgain, g\fR" 4
.IX Item "gain, g"
Change treble gain.
Syntax for the command is : "\fIgain\fR"
.IP "\fBmix, m\fR" 4
.IX Item "mix, m"
Change treble mix.
Syntax for the command is : "\fImix\fR"
.SS tremolo
.IX Subsection "tremolo"
Sinusoidal amplitude modulation.
.PP
The filter accepts the following options:
.IP \fBf\fR 4
.IX Item "f"
Modulation frequency in Hertz. Modulation frequencies in the subharmonic range
(20 Hz or lower) will result in a tremolo effect.
This filter may also be used as a ring modulator by specifying
a modulation frequency higher than 20 Hz.
Range is 0.1 \- 20000.0. Default value is 5.0 Hz.
.IP \fBd\fR 4
.IX Item "d"
Depth of modulation as a percentage. Range is 0.0 \- 1.0.
Default value is 0.5.
.SS vibrato
.IX Subsection "vibrato"
Sinusoidal phase modulation.
.PP
The filter accepts the following options:
.IP \fBf\fR 4
.IX Item "f"
Modulation frequency in Hertz.
Range is 0.1 \- 20000.0. Default value is 5.0 Hz.
.IP \fBd\fR 4
.IX Item "d"
Depth of modulation as a percentage. Range is 0.0 \- 1.0.
Default value is 0.5.
.SS volume
.IX Subsection "volume"
Adjust the input audio volume.
.PP
It accepts the following parameters:
.IP \fBvolume\fR 4
.IX Item "volume"
Set audio volume expression.
.Sp
Output values are clipped to the maximum value.
.Sp
The output audio volume is given by the relation:
.Sp
.Vb 1
\&        <output_volume> = <volume> * <input_volume>
.Ve
.Sp
The default value for \fIvolume\fR is "1.0".
.IP \fBprecision\fR 4
.IX Item "precision"
This parameter represents the mathematical precision.
.Sp
It determines which input sample formats will be allowed, which affects the
precision of the volume scaling.
.RS 4
.IP \fBfixed\fR 4
.IX Item "fixed"
8\-bit fixed-point; this limits input sample format to U8, S16, and S32.
.IP \fBfloat\fR 4
.IX Item "float"
32\-bit floating-point; this limits input sample format to FLT. (default)
.IP \fBdouble\fR 4
.IX Item "double"
64\-bit floating-point; this limits input sample format to DBL.
.RE
.RS 4
.RE
.IP \fBreplaygain\fR 4
.IX Item "replaygain"
Choose the behaviour on encountering ReplayGain side data in input frames.
.RS 4
.IP \fBdrop\fR 4
.IX Item "drop"
Remove ReplayGain side data, ignoring its contents (the default).
.IP \fBignore\fR 4
.IX Item "ignore"
Ignore ReplayGain side data, but leave it in the frame.
.IP \fBtrack\fR 4
.IX Item "track"
Prefer the track gain, if present.
.IP \fBalbum\fR 4
.IX Item "album"
Prefer the album gain, if present.
.RE
.RS 4
.RE
.IP \fBreplaygain_preamp\fR 4
.IX Item "replaygain_preamp"
Pre-amplification gain in dB to apply to the selected replaygain gain.
.Sp
Default value for \fIreplaygain_preamp\fR is 0.0.
.IP \fBreplaygain_noclip\fR 4
.IX Item "replaygain_noclip"
Prevent clipping by limiting the gain applied.
.Sp
Default value for \fIreplaygain_noclip\fR is 1.
.IP \fBeval\fR 4
.IX Item "eval"
Set when the volume expression is evaluated.
.Sp
It accepts the following values:
.RS 4
.IP \fBonce\fR 4
.IX Item "once"
only evaluate expression once during the filter initialization, or
when the \fBvolume\fR command is sent
.IP \fBframe\fR 4
.IX Item "frame"
evaluate expression for each incoming frame
.RE
.RS 4
.Sp
Default value is \fBonce\fR.
.RE
.PP
The volume expression can contain the following parameters.
.IP \fBn\fR 4
.IX Item "n"
frame number (starting at zero)
.IP \fBnb_channels\fR 4
.IX Item "nb_channels"
number of channels
.IP \fBnb_consumed_samples\fR 4
.IX Item "nb_consumed_samples"
number of samples consumed by the filter
.IP \fBnb_samples\fR 4
.IX Item "nb_samples"
number of samples in the current frame
.IP \fBpos\fR 4
.IX Item "pos"
original frame position in the file
.IP \fBpts\fR 4
.IX Item "pts"
frame PTS
.IP \fBsample_rate\fR 4
.IX Item "sample_rate"
sample rate
.IP \fBstartpts\fR 4
.IX Item "startpts"
PTS at start of stream
.IP \fBstartt\fR 4
.IX Item "startt"
time at start of stream
.IP \fBt\fR 4
.IX Item "t"
frame time
.IP \fBtb\fR 4
.IX Item "tb"
timestamp timebase
.IP \fBvolume\fR 4
.IX Item "volume"
last set volume value
.PP
Note that when \fBeval\fR is set to \fBonce\fR only the
\&\fIsample_rate\fR and \fItb\fR variables are available, all other
variables will evaluate to NAN.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the following commands:
.IP \fBvolume\fR 4
.IX Item "volume"
Modify the volume expression.
The command accepts the same syntax of the corresponding option.
.Sp
If the specified expression is not valid, it is kept at its current
value.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Halve the input audio volume:
.Sp
.Vb 3
\&        volume=volume=0.5
\&        volume=volume=1/2
\&        volume=volume=\-6.0206dB
.Ve
.Sp
In all the above example the named key for \fBvolume\fR can be
omitted, for example like in:
.Sp
.Vb 1
\&        volume=0.5
.Ve
.IP \(bu 4
Increase input audio power by 6 decibels using fixed-point precision:
.Sp
.Vb 1
\&        volume=volume=6dB:precision=fixed
.Ve
.IP \(bu 4
Fade volume after time 10 with an annihilation period of 5 seconds:
.Sp
.Vb 1
\&        volume=\*(Aqif(lt(t,10),1,max(1\-(t\-10)/5,0))\*(Aq:eval=frame
.Ve
.SS volumedetect
.IX Subsection "volumedetect"
Detect the volume of the input video.
.PP
The filter has no parameters. The input is not modified. Statistics about
the volume will be printed in the log when the input stream end is reached.
.PP
In particular it will show the mean volume (root mean square), maximum
volume (on a per-sample basis), and the beginning of a histogram of the
registered volume values (from the maximum value to a cumulated 1/1000 of
the samples).
.PP
All volumes are in decibels relative to the maximum PCM value.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.PP
Here is an excerpt of the output:
.PP
.Vb 9
\&        [Parsed_volumedetect_0  0xa23120] mean_volume: \-27 dB
\&        [Parsed_volumedetect_0  0xa23120] max_volume: \-4 dB
\&        [Parsed_volumedetect_0  0xa23120] histogram_4db: 6
\&        [Parsed_volumedetect_0  0xa23120] histogram_5db: 62
\&        [Parsed_volumedetect_0  0xa23120] histogram_6db: 286
\&        [Parsed_volumedetect_0  0xa23120] histogram_7db: 1042
\&        [Parsed_volumedetect_0  0xa23120] histogram_8db: 2551
\&        [Parsed_volumedetect_0  0xa23120] histogram_9db: 4609
\&        [Parsed_volumedetect_0  0xa23120] histogram_10db: 8409
.Ve
.PP
It means that:
.IP \(bu 4
The mean square energy is approximately \-27 dB, or 10^\-2.7.
.IP \(bu 4
The largest sample is at \-4 dB, or more precisely between \-4 dB and \-5 dB.
.IP \(bu 4
There are 6 samples at \-4 dB, 62 at \-5 dB, 286 at \-6 dB, etc.
.PP
In other words, raising the volume by +4 dB does not cause any clipping,
raising it by +5 dB causes clipping for 6 samples, etc.
.SH "AUDIO SOURCES"
.IX Header "AUDIO SOURCES"
Below is a description of the currently available audio sources.
.SS abuffer
.IX Subsection "abuffer"
Buffer audio frames, and make them available to the filter chain.
.PP
This source is mainly intended for a programmatic use, in particular
through the interface defined in \fIlibavfilter/buffersrc.h\fR.
.PP
It accepts the following parameters:
.IP \fBtime_base\fR 4
.IX Item "time_base"
The timebase which will be used for timestamps of submitted frames. It must be
either a floating-point number or in \fInumerator\fR/\fIdenominator\fR form.
.IP \fBsample_rate\fR 4
.IX Item "sample_rate"
The sample rate of the incoming audio buffers.
.IP \fBsample_fmt\fR 4
.IX Item "sample_fmt"
The sample format of the incoming audio buffers.
Either a sample format name or its corresponding integer representation from
the enum AVSampleFormat in \fIlibavutil/samplefmt.h\fR
.IP \fBchannel_layout\fR 4
.IX Item "channel_layout"
The channel layout of the incoming audio buffers.
Either a channel layout name from channel_layout_map in
\&\fIlibavutil/channel_layout.c\fR or its corresponding integer representation
from the AV_CH_LAYOUT_* macros in \fIlibavutil/channel_layout.h\fR
.IP \fBchannels\fR 4
.IX Item "channels"
The number of channels of the incoming audio buffers.
If both \fIchannels\fR and \fIchannel_layout\fR are specified, then they
must be consistent.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.PP
.Vb 1
\&        abuffer=sample_rate=44100:sample_fmt=s16p:channel_layout=stereo
.Ve
.PP
will instruct the source to accept planar 16bit signed stereo at 44100Hz.
Since the sample format with name "s16p" corresponds to the number
6 and the "stereo" channel layout corresponds to the value 0x3, this is
equivalent to:
.PP
.Vb 1
\&        abuffer=sample_rate=44100:sample_fmt=6:channel_layout=0x3
.Ve
.SS aevalsrc
.IX Subsection "aevalsrc"
Generate an audio signal specified by an expression.
.PP
This source accepts in input one or more expressions (one for each
channel), which are evaluated and used to generate a corresponding
audio signal.
.PP
This source accepts the following options:
.IP \fBexprs\fR 4
.IX Item "exprs"
Set the '|'\-separated expressions list for each separate channel. In case the
\&\fBchannel_layout\fR option is not specified, the selected channel layout
depends on the number of provided expressions. Otherwise the last
specified expression is applied to the remaining output channels.
.IP "\fBchannel_layout, c\fR" 4
.IX Item "channel_layout, c"
Set the channel layout. The number of channels in the specified layout
must be equal to the number of specified expressions.
.IP "\fBduration, d\fR" 4
.IX Item "duration, d"
Set the minimum duration of the sourced audio. See
\&\fBthe Time duration section in the ffmpeg\-utils\|(1) manual\fR
for the accepted syntax.
Note that the resulting duration may be greater than the specified
duration, as the generated audio is always cut at the end of a
complete frame.
.Sp
If not specified, or the expressed duration is negative, the audio is
supposed to be generated forever.
.IP "\fBnb_samples, n\fR" 4
.IX Item "nb_samples, n"
Set the number of samples per channel per each output frame,
default to 1024.
.IP "\fBsample_rate, s\fR" 4
.IX Item "sample_rate, s"
Specify the sample rate, default to 44100.
.PP
Each expression in \fIexprs\fR can contain the following constants:
.IP \fBn\fR 4
.IX Item "n"
number of the evaluated sample, starting from 0
.IP \fBt\fR 4
.IX Item "t"
time of the evaluated sample expressed in seconds, starting from 0
.IP \fBs\fR 4
.IX Item "s"
sample rate
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Generate silence:
.Sp
.Vb 1
\&        aevalsrc=0
.Ve
.IP \(bu 4
Generate a sin signal with frequency of 440 Hz, set sample rate to
8000 Hz:
.Sp
.Vb 1
\&        aevalsrc="sin(440*2*PI*t):s=8000"
.Ve
.IP \(bu 4
Generate a two channels signal, specify the channel layout (Front
Center + Back Center) explicitly:
.Sp
.Vb 1
\&        aevalsrc="sin(420*2*PI*t)|cos(430*2*PI*t):c=FC|BC"
.Ve
.IP \(bu 4
Generate white noise:
.Sp
.Vb 1
\&        aevalsrc="\-2+random(0)"
.Ve
.IP \(bu 4
Generate an amplitude modulated signal:
.Sp
.Vb 1
\&        aevalsrc="sin(10*2*PI*t)*sin(880*2*PI*t)"
.Ve
.IP \(bu 4
Generate 2.5 Hz binaural beats on a 360 Hz carrier:
.Sp
.Vb 1
\&        aevalsrc="0.1*sin(2*PI*(360\-2.5/2)*t) | 0.1*sin(2*PI*(360+2.5/2)*t)"
.Ve
.SS afirsrc
.IX Subsection "afirsrc"
Generate a FIR coefficients using frequency sampling method.
.PP
The resulting stream can be used with \fBafir\fR filter for filtering the audio signal.
.PP
The filter accepts the following options:
.IP "\fBtaps, t\fR" 4
.IX Item "taps, t"
Set number of filter coefficents in output audio stream.
Default value is 1025.
.IP "\fBfrequency, f\fR" 4
.IX Item "frequency, f"
Set frequency points from where magnitude and phase are set.
This must be in non decreasing order, and first element must be 0, while last element
must be 1. Elements are separated by white spaces.
.IP "\fBmagnitude, m\fR" 4
.IX Item "magnitude, m"
Set magnitude value for every frequency point set by \fBfrequency\fR.
Number of values must be same as number of frequency points.
Values are separated by white spaces.
.IP "\fBphase, p\fR" 4
.IX Item "phase, p"
Set phase value for every frequency point set by \fBfrequency\fR.
Number of values must be same as number of frequency points.
Values are separated by white spaces.
.IP "\fBsample_rate, r\fR" 4
.IX Item "sample_rate, r"
Set sample rate, default is 44100.
.IP "\fBnb_samples, n\fR" 4
.IX Item "nb_samples, n"
Set number of samples per each frame. Default is 1024.
.IP "\fBwin_func, w\fR" 4
.IX Item "win_func, w"
Set window function. Default is blackman.
.SS anullsrc
.IX Subsection "anullsrc"
The null audio source, return unprocessed audio frames. It is mainly useful
as a template and to be employed in analysis / debugging tools, or as
the source for filters which ignore the input data (for example the sox
synth filter).
.PP
This source accepts the following options:
.IP "\fBchannel_layout, cl\fR" 4
.IX Item "channel_layout, cl"
Specifies the channel layout, and can be either an integer or a string
representing a channel layout. The default value of \fIchannel_layout\fR
is "stereo".
.Sp
Check the channel_layout_map definition in
\&\fIlibavutil/channel_layout.c\fR for the mapping between strings and
channel layout values.
.IP "\fBsample_rate, r\fR" 4
.IX Item "sample_rate, r"
Specifies the sample rate, and defaults to 44100.
.IP "\fBnb_samples, n\fR" 4
.IX Item "nb_samples, n"
Set the number of samples per requested frames.
.IP "\fBduration, d\fR" 4
.IX Item "duration, d"
Set the duration of the sourced audio. See
\&\fBthe Time duration section in the ffmpeg\-utils\|(1) manual\fR
for the accepted syntax.
.Sp
If not specified, or the expressed duration is negative, the audio is
supposed to be generated forever.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Set the sample rate to 48000 Hz and the channel layout to AV_CH_LAYOUT_MONO.
.Sp
.Vb 1
\&        anullsrc=r=48000:cl=4
.Ve
.IP \(bu 4
Do the same operation with a more obvious syntax:
.Sp
.Vb 1
\&        anullsrc=r=48000:cl=mono
.Ve
.PP
All the parameters need to be explicitly defined.
.SS flite
.IX Subsection "flite"
Synthesize a voice utterance using the libflite library.
.PP
To enable compilation of this filter you need to configure FFmpeg with
\&\f(CW\*(C`\-\-enable\-libflite\*(C'\fR.
.PP
Note that versions of the flite library prior to 2.0 are not thread-safe.
.PP
The filter accepts the following options:
.IP \fBlist_voices\fR 4
.IX Item "list_voices"
If set to 1, list the names of the available voices and exit
immediately. Default value is 0.
.IP "\fBnb_samples, n\fR" 4
.IX Item "nb_samples, n"
Set the maximum number of samples per frame. Default value is 512.
.IP \fBtextfile\fR 4
.IX Item "textfile"
Set the filename containing the text to speak.
.IP \fBtext\fR 4
.IX Item "text"
Set the text to speak.
.IP "\fBvoice, v\fR" 4
.IX Item "voice, v"
Set the voice to use for the speech synthesis. Default value is
\&\f(CW\*(C`kal\*(C'\fR. See also the \fIlist_voices\fR option.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Read from file \fIspeech.txt\fR, and synthesize the text using the
standard flite voice:
.Sp
.Vb 1
\&        flite=textfile=speech.txt
.Ve
.IP \(bu 4
Read the specified text selecting the \f(CW\*(C`slt\*(C'\fR voice:
.Sp
.Vb 1
\&        flite=text=\*(AqSo fare thee well, poor devil of a Sub\-Sub, whose commentator I am\*(Aq:voice=slt
.Ve
.IP \(bu 4
Input text to ffmpeg:
.Sp
.Vb 1
\&        ffmpeg \-f lavfi \-i flite=text=\*(AqSo fare thee well, poor devil of a Sub\-Sub, whose commentator I am\*(Aq:voice=slt
.Ve
.IP \(bu 4
Make \fIffplay\fR speak the specified text, using \f(CW\*(C`flite\*(C'\fR and
the \f(CW\*(C`lavfi\*(C'\fR device:
.Sp
.Vb 1
\&        ffplay \-f lavfi flite=text=\*(AqNo more be grieved for which that thou hast done.\*(Aq
.Ve
.PP
For more information about libflite, check:
<\fBhttp://www.festvox.org/flite/\fR>
.SS anoisesrc
.IX Subsection "anoisesrc"
Generate a noise audio signal.
.PP
The filter accepts the following options:
.IP "\fBsample_rate, r\fR" 4
.IX Item "sample_rate, r"
Specify the sample rate. Default value is 48000 Hz.
.IP "\fBamplitude, a\fR" 4
.IX Item "amplitude, a"
Specify the amplitude (0.0 \- 1.0) of the generated audio stream. Default value
is 1.0.
.IP "\fBduration, d\fR" 4
.IX Item "duration, d"
Specify the duration of the generated audio stream. Not specifying this option
results in noise with an infinite length.
.IP "\fBcolor, colour, c\fR" 4
.IX Item "color, colour, c"
Specify the color of noise. Available noise colors are white, pink, brown,
blue, violet and velvet. Default color is white.
.IP "\fBseed, s\fR" 4
.IX Item "seed, s"
Specify a value used to seed the PRNG.
.IP "\fBnb_samples, n\fR" 4
.IX Item "nb_samples, n"
Set the number of samples per each output frame, default is 1024.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Generate 60 seconds of pink noise, with a 44.1 kHz sampling rate and an amplitude of 0.5:
.Sp
.Vb 1
\&        anoisesrc=d=60:c=pink:r=44100:a=0.5
.Ve
.SS hilbert
.IX Subsection "hilbert"
Generate odd-tap Hilbert transform FIR coefficients.
.PP
The resulting stream can be used with \fBafir\fR filter for phase-shifting
the signal by 90 degrees.
.PP
This is used in many matrix coding schemes and for analytic signal generation.
The process is often written as a multiplication by i (or j), the imaginary unit.
.PP
The filter accepts the following options:
.IP "\fBsample_rate, s\fR" 4
.IX Item "sample_rate, s"
Set sample rate, default is 44100.
.IP "\fBtaps, t\fR" 4
.IX Item "taps, t"
Set length of FIR filter, default is 22051.
.IP "\fBnb_samples, n\fR" 4
.IX Item "nb_samples, n"
Set number of samples per each frame.
.IP "\fBwin_func, w\fR" 4
.IX Item "win_func, w"
Set window function to be used when generating FIR coefficients.
.SS sinc
.IX Subsection "sinc"
Generate a sinc kaiser-windowed low-pass, high-pass, band-pass, or band-reject FIR coefficients.
.PP
The resulting stream can be used with \fBafir\fR filter for filtering the audio signal.
.PP
The filter accepts the following options:
.IP "\fBsample_rate, r\fR" 4
.IX Item "sample_rate, r"
Set sample rate, default is 44100.
.IP "\fBnb_samples, n\fR" 4
.IX Item "nb_samples, n"
Set number of samples per each frame. Default is 1024.
.IP \fBhp\fR 4
.IX Item "hp"
Set high-pass frequency. Default is 0.
.IP \fBlp\fR 4
.IX Item "lp"
Set low-pass frequency. Default is 0.
If high-pass frequency is lower than low-pass frequency and low-pass frequency
is higher than 0 then filter will create band-pass filter coefficients,
otherwise band-reject filter coefficients.
.IP \fBphase\fR 4
.IX Item "phase"
Set filter phase response. Default is 50. Allowed range is from 0 to 100.
.IP \fBbeta\fR 4
.IX Item "beta"
Set Kaiser window beta.
.IP \fBatt\fR 4
.IX Item "att"
Set stop-band attenuation. Default is 120dB, allowed range is from 40 to 180 dB.
.IP \fBround\fR 4
.IX Item "round"
Enable rounding, by default is disabled.
.IP \fBhptaps\fR 4
.IX Item "hptaps"
Set number of taps for high-pass filter.
.IP \fBlptaps\fR 4
.IX Item "lptaps"
Set number of taps for low-pass filter.
.SS sine
.IX Subsection "sine"
Generate an audio signal made of a sine wave with amplitude 1/8.
.PP
The audio signal is bit-exact.
.PP
The filter accepts the following options:
.IP "\fBfrequency, f\fR" 4
.IX Item "frequency, f"
Set the carrier frequency. Default is 440 Hz.
.IP "\fBbeep_factor, b\fR" 4
.IX Item "beep_factor, b"
Enable a periodic beep every second with frequency \fIbeep_factor\fR times
the carrier frequency. Default is 0, meaning the beep is disabled.
.IP "\fBsample_rate, r\fR" 4
.IX Item "sample_rate, r"
Specify the sample rate, default is 44100.
.IP "\fBduration, d\fR" 4
.IX Item "duration, d"
Specify the duration of the generated audio stream.
.IP \fBsamples_per_frame\fR 4
.IX Item "samples_per_frame"
Set the number of samples per output frame.
.Sp
The expression can contain the following constants:
.RS 4
.IP \fBn\fR 4
.IX Item "n"
The (sequential) number of the output audio frame, starting from 0.
.IP \fBpts\fR 4
.IX Item "pts"
The PTS (Presentation TimeStamp) of the output audio frame,
expressed in \fITB\fR units.
.IP \fBt\fR 4
.IX Item "t"
The PTS of the output audio frame, expressed in seconds.
.IP \fBTB\fR 4
.IX Item "TB"
The timebase of the output audio frames.
.RE
.RS 4
.Sp
Default is \f(CW1024\fR.
.RE
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Generate a simple 440 Hz sine wave:
.Sp
.Vb 1
\&        sine
.Ve
.IP \(bu 4
Generate a 220 Hz sine wave with a 880 Hz beep each second, for 5 seconds:
.Sp
.Vb 3
\&        sine=220:4:d=5
\&        sine=f=220:b=4:d=5
\&        sine=frequency=220:beep_factor=4:duration=5
.Ve
.IP \(bu 4
Generate a 1 kHz sine wave following \f(CW\*(C`1602,1601,1602,1601,1602\*(C'\fR NTSC
pattern:
.Sp
.Vb 1
\&        sine=1000:samples_per_frame=\*(Aqst(0,mod(n,5)); 1602\-not(not(eq(ld(0),1)+eq(ld(0),3)))\*(Aq
.Ve
.SH "AUDIO SINKS"
.IX Header "AUDIO SINKS"
Below is a description of the currently available audio sinks.
.SS abuffersink
.IX Subsection "abuffersink"
Buffer audio frames, and make them available to the end of filter chain.
.PP
This sink is mainly intended for programmatic use, in particular
through the interface defined in \fIlibavfilter/buffersink.h\fR
or the options system.
.PP
It accepts a pointer to an AVABufferSinkContext structure, which
defines the incoming buffers' formats, to be passed as the opaque
parameter to \f(CW\*(C`avfilter_init_filter\*(C'\fR for initialization.
.SS anullsink
.IX Subsection "anullsink"
Null audio sink; do absolutely nothing with the input audio. It is
mainly useful as a template and for use in analysis / debugging
tools.
.SH "VIDEO FILTERS"
.IX Header "VIDEO FILTERS"
When you configure your FFmpeg build, you can disable any of the
existing filters using \f(CW\*(C`\-\-disable\-filters\*(C'\fR.
The configure output will show the video filters included in your
build.
.PP
Below is a description of the currently available video filters.
.SS addroi
.IX Subsection "addroi"
Mark a region of interest in a video frame.
.PP
The frame data is passed through unchanged, but metadata is attached
to the frame indicating regions of interest which can affect the
behaviour of later encoding.  Multiple regions can be marked by
applying the filter multiple times.
.IP \fBx\fR 4
.IX Item "x"
Region distance in pixels from the left edge of the frame.
.IP \fBy\fR 4
.IX Item "y"
Region distance in pixels from the top edge of the frame.
.IP \fBw\fR 4
.IX Item "w"
Region width in pixels.
.IP \fBh\fR 4
.IX Item "h"
Region height in pixels.
.Sp
The parameters \fIx\fR, \fIy\fR, \fIw\fR and \fIh\fR are expressions,
and may contain the following variables:
.RS 4
.IP \fBiw\fR 4
.IX Item "iw"
Width of the input frame.
.IP \fBih\fR 4
.IX Item "ih"
Height of the input frame.
.RE
.RS 4
.RE
.IP \fBqoffset\fR 4
.IX Item "qoffset"
Quantisation offset to apply within the region.
.Sp
This must be a real value in the range \-1 to +1.  A value of zero
indicates no quality change.  A negative value asks for better quality
(less quantisation), while a positive value asks for worse quality
(greater quantisation).
.Sp
The range is calibrated so that the extreme values indicate the
largest possible offset \- if the rest of the frame is encoded with the
worst possible quality, an offset of \-1 indicates that this region
should be encoded with the best possible quality anyway.  Intermediate
values are then interpolated in some codec-dependent way.
.Sp
For example, in 10\-bit H.264 the quantisation parameter varies between
\&\-12 and 51.  A typical qoffset value of \-1/10 therefore indicates that
this region should be encoded with a QP around one-tenth of the full
range better than the rest of the frame.  So, if most of the frame
were to be encoded with a QP of around 30, this region would get a QP
of around 24 (an offset of approximately \-1/10 * (51 \- \-12) = \-6.3).
An extreme value of \-1 would indicate that this region should be
encoded with the best possible quality regardless of the treatment of
the rest of the frame \- that is, should be encoded at a QP of \-12.
.IP \fBclear\fR 4
.IX Item "clear"
If set to true, remove any existing regions of interest marked on the
frame before adding the new one.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Mark the centre quarter of the frame as interesting.
.Sp
.Vb 1
\&        addroi=iw/4:ih/4:iw/2:ih/2:\-1/10
.Ve
.IP \(bu 4
Mark the 100\-pixel\-wide region on the left edge of the frame as very
uninteresting (to be encoded at much lower quality than the rest of
the frame).
.Sp
.Vb 1
\&        addroi=0:0:100:ih:+1/5
.Ve
.SS alphaextract
.IX Subsection "alphaextract"
Extract the alpha component from the input as a grayscale video. This
is especially useful with the \fIalphamerge\fR filter.
.SS alphamerge
.IX Subsection "alphamerge"
Add or replace the alpha component of the primary input with the
grayscale value of a second input. This is intended for use with
\&\fIalphaextract\fR to allow the transmission or storage of frame
sequences that have alpha in a format that doesn't support an alpha
channel.
.PP
For example, to reconstruct full frames from a normal YUV-encoded video
and a separate video created with \fIalphaextract\fR, you might use:
.PP
.Vb 1
\&        movie=in_alpha.mkv [alpha]; [in][alpha] alphamerge [out]
.Ve
.SS amplify
.IX Subsection "amplify"
Amplify differences between current pixel and pixels of adjacent frames in
same pixel location.
.PP
This filter accepts the following options:
.IP \fBradius\fR 4
.IX Item "radius"
Set frame radius. Default is 2. Allowed range is from 1 to 63.
For example radius of 3 will instruct filter to calculate average of 7 frames.
.IP \fBfactor\fR 4
.IX Item "factor"
Set factor to amplify difference. Default is 2. Allowed range is from 0 to 65535.
.IP \fBthreshold\fR 4
.IX Item "threshold"
Set threshold for difference amplification. Any difference greater or equal to
this value will not alter source pixel. Default is 10.
Allowed range is from 0 to 65535.
.IP \fBtolerance\fR 4
.IX Item "tolerance"
Set tolerance for difference amplification. Any difference lower to
this value will not alter source pixel. Default is 0.
Allowed range is from 0 to 65535.
.IP \fBlow\fR 4
.IX Item "low"
Set lower limit for changing source pixel. Default is 65535. Allowed range is from 0 to 65535.
This option controls maximum possible value that will decrease source pixel value.
.IP \fBhigh\fR 4
.IX Item "high"
Set high limit for changing source pixel. Default is 65535. Allowed range is from 0 to 65535.
This option controls maximum possible value that will increase source pixel value.
.IP \fBplanes\fR 4
.IX Item "planes"
Set which planes to filter. Default is all. Allowed range is from 0 to 15.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the following \fBcommands\fR that corresponds to option of same name:
.IP \fBfactor\fR 4
.IX Item "factor"
.PD 0
.IP \fBthreshold\fR 4
.IX Item "threshold"
.IP \fBtolerance\fR 4
.IX Item "tolerance"
.IP \fBlow\fR 4
.IX Item "low"
.IP \fBhigh\fR 4
.IX Item "high"
.IP \fBplanes\fR 4
.IX Item "planes"
.PD
.SS ass
.IX Subsection "ass"
Same as the \fBsubtitles\fR filter, except that it doesn't require libavcodec
and libavformat to work. On the other hand, it is limited to ASS (Advanced
Substation Alpha) subtitles files.
.PP
This filter accepts the following option in addition to the common options from
the \fBsubtitles\fR filter:
.IP \fBshaping\fR 4
.IX Item "shaping"
Set the shaping engine
.Sp
Available values are:
.RS 4
.IP \fBauto\fR 4
.IX Item "auto"
The default libass shaping engine, which is the best available.
.IP \fBsimple\fR 4
.IX Item "simple"
Fast, font-agnostic shaper that can do only substitutions
.IP \fBcomplex\fR 4
.IX Item "complex"
Slower shaper using OpenType for substitutions and positioning
.RE
.RS 4
.Sp
The default is \f(CW\*(C`auto\*(C'\fR.
.RE
.SS atadenoise
.IX Subsection "atadenoise"
Apply an Adaptive Temporal Averaging Denoiser to the video input.
.PP
The filter accepts the following options:
.IP \fB0a\fR 4
.IX Item "0a"
Set threshold A for 1st plane. Default is 0.02.
Valid range is 0 to 0.3.
.IP \fB0b\fR 4
.IX Item "0b"
Set threshold B for 1st plane. Default is 0.04.
Valid range is 0 to 5.
.IP \fB1a\fR 4
.IX Item "1a"
Set threshold A for 2nd plane. Default is 0.02.
Valid range is 0 to 0.3.
.IP \fB1b\fR 4
.IX Item "1b"
Set threshold B for 2nd plane. Default is 0.04.
Valid range is 0 to 5.
.IP \fB2a\fR 4
.IX Item "2a"
Set threshold A for 3rd plane. Default is 0.02.
Valid range is 0 to 0.3.
.IP \fB2b\fR 4
.IX Item "2b"
Set threshold B for 3rd plane. Default is 0.04.
Valid range is 0 to 5.
.Sp
Threshold A is designed to react on abrupt changes in the input signal and
threshold B is designed to react on continuous changes in the input signal.
.IP \fBs\fR 4
.IX Item "s"
Set number of frames filter will use for averaging. Default is 9. Must be odd
number in range [5, 129].
.IP \fBp\fR 4
.IX Item "p"
Set what planes of frame filter will use for averaging. Default is all.
.IP \fBa\fR 4
.IX Item "a"
Set what variant of algorithm filter will use for averaging. Default is \f(CW\*(C`p\*(C'\fR parallel.
Alternatively can be set to \f(CW\*(C`s\*(C'\fR serial.
.Sp
Parallel can be faster then serial, while other way around is never true.
Parallel will abort early on first change being greater then thresholds, while serial
will continue processing other side of frames if they are equal or below thresholds.
.IP \fB0s\fR 4
.IX Item "0s"
.PD 0
.IP \fB1s\fR 4
.IX Item "1s"
.IP \fB2s\fR 4
.IX Item "2s"
.PD
Set sigma for 1st plane, 2nd plane or 3rd plane. Default is 32767.
Valid range is from 0 to 32767.
This options controls weight for each pixel in radius defined by size.
Default value means every pixel have same weight.
Setting this option to 0 effectively disables filtering.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports same \fBcommands\fR as options except option \f(CW\*(C`s\*(C'\fR.
The command accepts the same syntax of the corresponding option.
.SS avgblur
.IX Subsection "avgblur"
Apply average blur filter.
.PP
The filter accepts the following options:
.IP \fBsizeX\fR 4
.IX Item "sizeX"
Set horizontal radius size.
.IP \fBplanes\fR 4
.IX Item "planes"
Set which planes to filter. By default all planes are filtered.
.IP \fBsizeY\fR 4
.IX Item "sizeY"
Set vertical radius size, if zero it will be same as \f(CW\*(C`sizeX\*(C'\fR.
Default is \f(CW0\fR.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports same commands as options.
The command accepts the same syntax of the corresponding option.
.PP
If the specified expression is not valid, it is kept at its current
value.
.SS bbox
.IX Subsection "bbox"
Compute the bounding box for the non-black pixels in the input frame
luminance plane.
.PP
This filter computes the bounding box containing all the pixels with a
luminance value greater than the minimum allowed value.
The parameters describing the bounding box are printed on the filter
log.
.PP
The filter accepts the following option:
.IP \fBmin_val\fR 4
.IX Item "min_val"
Set the minimal luminance value. Default is \f(CW16\fR.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS bilateral
.IX Subsection "bilateral"
Apply bilateral filter, spatial smoothing while preserving edges.
.PP
The filter accepts the following options:
.IP \fBsigmaS\fR 4
.IX Item "sigmaS"
Set sigma of gaussian function to calculate spatial weight.
Allowed range is 0 to 512. Default is 0.1.
.IP \fBsigmaR\fR 4
.IX Item "sigmaR"
Set sigma of gaussian function to calculate range weight.
Allowed range is 0 to 1. Default is 0.1.
.IP \fBplanes\fR 4
.IX Item "planes"
Set planes to filter. Default is first only.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS bitplanenoise
.IX Subsection "bitplanenoise"
Show and measure bit plane noise.
.PP
The filter accepts the following options:
.IP \fBbitplane\fR 4
.IX Item "bitplane"
Set which plane to analyze. Default is \f(CW1\fR.
.IP \fBfilter\fR 4
.IX Item "filter"
Filter out noisy pixels from \f(CW\*(C`bitplane\*(C'\fR set above.
Default is disabled.
.SS blackdetect
.IX Subsection "blackdetect"
Detect video intervals that are (almost) completely black. Can be
useful to detect chapter transitions, commercials, or invalid
recordings.
.PP
The filter outputs its detection analysis to both the log as well as
frame metadata. If a black segment of at least the specified minimum
duration is found, a line with the start and end timestamps as well
as duration is printed to the log with level \f(CW\*(C`info\*(C'\fR. In addition,
a log line with level \f(CW\*(C`debug\*(C'\fR is printed per frame showing the
black amount detected for that frame.
.PP
The filter also attaches metadata to the first frame of a black
segment with key \f(CW\*(C`lavfi.black_start\*(C'\fR and to the first frame
after the black segment ends with key \f(CW\*(C`lavfi.black_end\*(C'\fR. The
value is the frame's timestamp. This metadata is added regardless
of the minimum duration specified.
.PP
The filter accepts the following options:
.IP "\fBblack_min_duration, d\fR" 4
.IX Item "black_min_duration, d"
Set the minimum detected black duration expressed in seconds. It must
be a non-negative floating point number.
.Sp
Default value is 2.0.
.IP "\fBpicture_black_ratio_th, pic_th\fR" 4
.IX Item "picture_black_ratio_th, pic_th"
Set the threshold for considering a picture "black".
Express the minimum value for the ratio:
.Sp
.Vb 1
\&        <nb_black_pixels> / <nb_pixels>
.Ve
.Sp
for which a picture is considered black.
Default value is 0.98.
.IP "\fBpixel_black_th, pix_th\fR" 4
.IX Item "pixel_black_th, pix_th"
Set the threshold for considering a pixel "black".
.Sp
The threshold expresses the maximum pixel luminance value for which a
pixel is considered "black". The provided value is scaled according to
the following equation:
.Sp
.Vb 1
\&        <absolute_threshold> = <luminance_minimum_value> + <pixel_black_th> * <luminance_range_size>
.Ve
.Sp
\&\fIluminance_range_size\fR and \fIluminance_minimum_value\fR depend on
the input video format, the range is [0\-255] for YUV full-range
formats and [16\-235] for YUV non full-range formats.
.Sp
Default value is 0.10.
.PP
The following example sets the maximum pixel threshold to the minimum
value, and detects only black intervals of 2 or more seconds:
.PP
.Vb 1
\&        blackdetect=d=2:pix_th=0.00
.Ve
.SS blackframe
.IX Subsection "blackframe"
Detect frames that are (almost) completely black. Can be useful to
detect chapter transitions or commercials. Output lines consist of
the frame number of the detected frame, the percentage of blackness,
the position in the file if known or \-1 and the timestamp in seconds.
.PP
In order to display the output lines, you need to set the loglevel at
least to the AV_LOG_INFO value.
.PP
This filter exports frame metadata \f(CW\*(C`lavfi.blackframe.pblack\*(C'\fR.
The value represents the percentage of pixels in the picture that
are below the threshold value.
.PP
It accepts the following parameters:
.IP \fBamount\fR 4
.IX Item "amount"
The percentage of the pixels that have to be below the threshold; it defaults to
\&\f(CW98\fR.
.IP "\fBthreshold, thresh\fR" 4
.IX Item "threshold, thresh"
The threshold below which a pixel value is considered black; it defaults to
\&\f(CW32\fR.
.SS blend
.IX Subsection "blend"
Blend two video frames into each other.
.PP
The \f(CW\*(C`blend\*(C'\fR filter takes two input streams and outputs one
stream, the first input is the "top" layer and second input is
"bottom" layer.  By default, the output terminates when the longest input terminates.
.PP
The \f(CW\*(C`tblend\*(C'\fR (time blend) filter takes two consecutive frames
from one single stream, and outputs the result obtained by blending
the new frame on top of the old frame.
.PP
A description of the accepted options follows.
.IP \fBc0_mode\fR 4
.IX Item "c0_mode"
.PD 0
.IP \fBc1_mode\fR 4
.IX Item "c1_mode"
.IP \fBc2_mode\fR 4
.IX Item "c2_mode"
.IP \fBc3_mode\fR 4
.IX Item "c3_mode"
.IP \fBall_mode\fR 4
.IX Item "all_mode"
.PD
Set blend mode for specific pixel component or all pixel components in case
of \fIall_mode\fR. Default value is \f(CW\*(C`normal\*(C'\fR.
.Sp
Available values for component modes are:
.RS 4
.IP \fBaddition\fR 4
.IX Item "addition"
.PD 0
.IP \fBgrainmerge\fR 4
.IX Item "grainmerge"
.IP \fBand\fR 4
.IX Item "and"
.IP \fBaverage\fR 4
.IX Item "average"
.IP \fBburn\fR 4
.IX Item "burn"
.IP \fBdarken\fR 4
.IX Item "darken"
.IP \fBdifference\fR 4
.IX Item "difference"
.IP \fBgrainextract\fR 4
.IX Item "grainextract"
.IP \fBdivide\fR 4
.IX Item "divide"
.IP \fBdodge\fR 4
.IX Item "dodge"
.IP \fBfreeze\fR 4
.IX Item "freeze"
.IP \fBexclusion\fR 4
.IX Item "exclusion"
.IP \fBextremity\fR 4
.IX Item "extremity"
.IP \fBglow\fR 4
.IX Item "glow"
.IP \fBhardlight\fR 4
.IX Item "hardlight"
.IP \fBhardmix\fR 4
.IX Item "hardmix"
.IP \fBheat\fR 4
.IX Item "heat"
.IP \fBlighten\fR 4
.IX Item "lighten"
.IP \fBlinearlight\fR 4
.IX Item "linearlight"
.IP \fBmultiply\fR 4
.IX Item "multiply"
.IP \fBmultiply128\fR 4
.IX Item "multiply128"
.IP \fBnegation\fR 4
.IX Item "negation"
.IP \fBnormal\fR 4
.IX Item "normal"
.IP \fBor\fR 4
.IX Item "or"
.IP \fBoverlay\fR 4
.IX Item "overlay"
.IP \fBphoenix\fR 4
.IX Item "phoenix"
.IP \fBpinlight\fR 4
.IX Item "pinlight"
.IP \fBreflect\fR 4
.IX Item "reflect"
.IP \fBscreen\fR 4
.IX Item "screen"
.IP \fBsoftlight\fR 4
.IX Item "softlight"
.IP \fBsubtract\fR 4
.IX Item "subtract"
.IP \fBvividlight\fR 4
.IX Item "vividlight"
.IP \fBxor\fR 4
.IX Item "xor"
.RE
.RS 4
.RE
.IP \fBc0_opacity\fR 4
.IX Item "c0_opacity"
.IP \fBc1_opacity\fR 4
.IX Item "c1_opacity"
.IP \fBc2_opacity\fR 4
.IX Item "c2_opacity"
.IP \fBc3_opacity\fR 4
.IX Item "c3_opacity"
.IP \fBall_opacity\fR 4
.IX Item "all_opacity"
.PD
Set blend opacity for specific pixel component or all pixel components in case
of \fIall_opacity\fR. Only used in combination with pixel component blend modes.
.IP \fBc0_expr\fR 4
.IX Item "c0_expr"
.PD 0
.IP \fBc1_expr\fR 4
.IX Item "c1_expr"
.IP \fBc2_expr\fR 4
.IX Item "c2_expr"
.IP \fBc3_expr\fR 4
.IX Item "c3_expr"
.IP \fBall_expr\fR 4
.IX Item "all_expr"
.PD
Set blend expression for specific pixel component or all pixel components in case
of \fIall_expr\fR. Note that related mode options will be ignored if those are set.
.Sp
The expressions can use the following variables:
.RS 4
.IP \fBN\fR 4
.IX Item "N"
The sequential number of the filtered frame, starting from \f(CW0\fR.
.IP \fBX\fR 4
.IX Item "X"
.PD 0
.IP \fBY\fR 4
.IX Item "Y"
.PD
the coordinates of the current sample
.IP \fBW\fR 4
.IX Item "W"
.PD 0
.IP \fBH\fR 4
.IX Item "H"
.PD
the width and height of currently filtered plane
.IP \fBSW\fR 4
.IX Item "SW"
.PD 0
.IP \fBSH\fR 4
.IX Item "SH"
.PD
Width and height scale for the plane being filtered. It is the
ratio between the dimensions of the current plane to the luma plane,
e.g. for a \f(CW\*(C`yuv420p\*(C'\fR frame, the values are \f(CW\*(C`1,1\*(C'\fR for
the luma plane and \f(CW\*(C`0.5,0.5\*(C'\fR for the chroma planes.
.IP \fBT\fR 4
.IX Item "T"
Time of the current frame, expressed in seconds.
.IP "\fBTOP, A\fR" 4
.IX Item "TOP, A"
Value of pixel component at current location for first video frame (top layer).
.IP "\fBBOTTOM, B\fR" 4
.IX Item "BOTTOM, B"
Value of pixel component at current location for second video frame (bottom layer).
.RE
.RS 4
.RE
.PP
The \f(CW\*(C`blend\*(C'\fR filter also supports the \fBframesync\fR options.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Apply transition from bottom layer to top layer in first 10 seconds:
.Sp
.Vb 1
\&        blend=all_expr=\*(AqA*(if(gte(T,10),1,T/10))+B*(1\-(if(gte(T,10),1,T/10)))\*(Aq
.Ve
.IP \(bu 4
Apply linear horizontal transition from top layer to bottom layer:
.Sp
.Vb 1
\&        blend=all_expr=\*(AqA*(X/W)+B*(1\-X/W)\*(Aq
.Ve
.IP \(bu 4
Apply 1x1 checkerboard effect:
.Sp
.Vb 1
\&        blend=all_expr=\*(Aqif(eq(mod(X,2),mod(Y,2)),A,B)\*(Aq
.Ve
.IP \(bu 4
Apply uncover left effect:
.Sp
.Vb 1
\&        blend=all_expr=\*(Aqif(gte(N*SW+X,W),A,B)\*(Aq
.Ve
.IP \(bu 4
Apply uncover down effect:
.Sp
.Vb 1
\&        blend=all_expr=\*(Aqif(gte(Y\-N*SH,0),A,B)\*(Aq
.Ve
.IP \(bu 4
Apply uncover up-left effect:
.Sp
.Vb 1
\&        blend=all_expr=\*(Aqif(gte(T*SH*40+Y,H)*gte((T*40*SW+X)*W/H,W),A,B)\*(Aq
.Ve
.IP \(bu 4
Split diagonally video and shows top and bottom layer on each side:
.Sp
.Vb 1
\&        blend=all_expr=\*(Aqif(gt(X,Y*(W/H)),A,B)\*(Aq
.Ve
.IP \(bu 4
Display differences between the current and the previous frame:
.Sp
.Vb 1
\&        tblend=all_mode=grainextract
.Ve
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports same \fBcommands\fR as options.
.SS bm3d
.IX Subsection "bm3d"
Denoise frames using Block-Matching 3D algorithm.
.PP
The filter accepts the following options.
.IP \fBsigma\fR 4
.IX Item "sigma"
Set denoising strength. Default value is 1.
Allowed range is from 0 to 999.9.
The denoising algorithm is very sensitive to sigma, so adjust it
according to the source.
.IP \fBblock\fR 4
.IX Item "block"
Set local patch size. This sets dimensions in 2D.
.IP \fBbstep\fR 4
.IX Item "bstep"
Set sliding step for processing blocks. Default value is 4.
Allowed range is from 1 to 64.
Smaller values allows processing more reference blocks and is slower.
.IP \fBgroup\fR 4
.IX Item "group"
Set maximal number of similar blocks for 3rd dimension. Default value is 1.
When set to 1, no block matching is done. Larger values allows more blocks
in single group.
Allowed range is from 1 to 256.
.IP \fBrange\fR 4
.IX Item "range"
Set radius for search block matching. Default is 9.
Allowed range is from 1 to INT32_MAX.
.IP \fBmstep\fR 4
.IX Item "mstep"
Set step between two search locations for block matching. Default is 1.
Allowed range is from 1 to 64. Smaller is slower.
.IP \fBthmse\fR 4
.IX Item "thmse"
Set threshold of mean square error for block matching. Valid range is 0 to
INT32_MAX.
.IP \fBhdthr\fR 4
.IX Item "hdthr"
Set thresholding parameter for hard thresholding in 3D transformed domain.
Larger values results in stronger hard-thresholding filtering in frequency
domain.
.IP \fBestim\fR 4
.IX Item "estim"
Set filtering estimation mode. Can be \f(CW\*(C`basic\*(C'\fR or \f(CW\*(C`final\*(C'\fR.
Default is \f(CW\*(C`basic\*(C'\fR.
.IP \fBref\fR 4
.IX Item "ref"
If enabled, filter will use 2nd stream for block matching.
Default is disabled for \f(CW\*(C`basic\*(C'\fR value of \fIestim\fR option,
and always enabled if value of \fIestim\fR is \f(CW\*(C`final\*(C'\fR.
.IP \fBplanes\fR 4
.IX Item "planes"
Set planes to filter. Default is all available except alpha.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Basic filtering with bm3d:
.Sp
.Vb 1
\&        bm3d=sigma=3:block=4:bstep=2:group=1:estim=basic
.Ve
.IP \(bu 4
Same as above, but filtering only luma:
.Sp
.Vb 1
\&        bm3d=sigma=3:block=4:bstep=2:group=1:estim=basic:planes=1
.Ve
.IP \(bu 4
Same as above, but with both estimation modes:
.Sp
.Vb 1
\&        split[a][b],[a]bm3d=sigma=3:block=4:bstep=2:group=1:estim=basic[a],[b][a]bm3d=sigma=3:block=4:bstep=2:group=16:estim=final:ref=1
.Ve
.IP \(bu 4
Same as above, but prefilter with \fBnlmeans\fR filter instead:
.Sp
.Vb 1
\&        split[a][b],[a]nlmeans=s=3:r=7:p=3[a],[b][a]bm3d=sigma=3:block=4:bstep=2:group=16:estim=final:ref=1
.Ve
.SS boxblur
.IX Subsection "boxblur"
Apply a boxblur algorithm to the input video.
.PP
It accepts the following parameters:
.IP "\fBluma_radius, lr\fR" 4
.IX Item "luma_radius, lr"
.PD 0
.IP "\fBluma_power, lp\fR" 4
.IX Item "luma_power, lp"
.IP "\fBchroma_radius, cr\fR" 4
.IX Item "chroma_radius, cr"
.IP "\fBchroma_power, cp\fR" 4
.IX Item "chroma_power, cp"
.IP "\fBalpha_radius, ar\fR" 4
.IX Item "alpha_radius, ar"
.IP "\fBalpha_power, ap\fR" 4
.IX Item "alpha_power, ap"
.PD
.PP
A description of the accepted options follows.
.IP "\fBluma_radius, lr\fR" 4
.IX Item "luma_radius, lr"
.PD 0
.IP "\fBchroma_radius, cr\fR" 4
.IX Item "chroma_radius, cr"
.IP "\fBalpha_radius, ar\fR" 4
.IX Item "alpha_radius, ar"
.PD
Set an expression for the box radius in pixels used for blurring the
corresponding input plane.
.Sp
The radius value must be a non-negative number, and must not be
greater than the value of the expression \f(CW\*(C`min(w,h)/2\*(C'\fR for the
luma and alpha planes, and of \f(CW\*(C`min(cw,ch)/2\*(C'\fR for the chroma
planes.
.Sp
Default value for \fBluma_radius\fR is "2". If not specified,
\&\fBchroma_radius\fR and \fBalpha_radius\fR default to the
corresponding value set for \fBluma_radius\fR.
.Sp
The expressions can contain the following constants:
.RS 4
.IP \fBw\fR 4
.IX Item "w"
.PD 0
.IP \fBh\fR 4
.IX Item "h"
.PD
The input width and height in pixels.
.IP \fBcw\fR 4
.IX Item "cw"
.PD 0
.IP \fBch\fR 4
.IX Item "ch"
.PD
The input chroma image width and height in pixels.
.IP \fBhsub\fR 4
.IX Item "hsub"
.PD 0
.IP \fBvsub\fR 4
.IX Item "vsub"
.PD
The horizontal and vertical chroma subsample values. For example, for the
pixel format "yuv422p", \fIhsub\fR is 2 and \fIvsub\fR is 1.
.RE
.RS 4
.RE
.IP "\fBluma_power, lp\fR" 4
.IX Item "luma_power, lp"
.PD 0
.IP "\fBchroma_power, cp\fR" 4
.IX Item "chroma_power, cp"
.IP "\fBalpha_power, ap\fR" 4
.IX Item "alpha_power, ap"
.PD
Specify how many times the boxblur filter is applied to the
corresponding plane.
.Sp
Default value for \fBluma_power\fR is 2. If not specified,
\&\fBchroma_power\fR and \fBalpha_power\fR default to the
corresponding value set for \fBluma_power\fR.
.Sp
A value of 0 will disable the effect.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Apply a boxblur filter with the luma, chroma, and alpha radii
set to 2:
.Sp
.Vb 2
\&        boxblur=luma_radius=2:luma_power=1
\&        boxblur=2:1
.Ve
.IP \(bu 4
Set the luma radius to 2, and alpha and chroma radius to 0:
.Sp
.Vb 1
\&        boxblur=2:1:cr=0:ar=0
.Ve
.IP \(bu 4
Set the luma and chroma radii to a fraction of the video dimension:
.Sp
.Vb 1
\&        boxblur=luma_radius=min(h\e,w)/10:luma_power=1:chroma_radius=min(cw\e,ch)/10:chroma_power=1
.Ve
.SS bwdif
.IX Subsection "bwdif"
Deinterlace the input video ("bwdif" stands for "Bob Weaver
Deinterlacing Filter").
.PP
Motion adaptive deinterlacing based on yadif with the use of w3fdif and cubic
interpolation algorithms.
It accepts the following parameters:
.IP \fBmode\fR 4
.IX Item "mode"
The interlacing mode to adopt. It accepts one of the following values:
.RS 4
.IP "\fB0, send_frame\fR" 4
.IX Item "0, send_frame"
Output one frame for each frame.
.IP "\fB1, send_field\fR" 4
.IX Item "1, send_field"
Output one frame for each field.
.RE
.RS 4
.Sp
The default value is \f(CW\*(C`send_field\*(C'\fR.
.RE
.IP \fBparity\fR 4
.IX Item "parity"
The picture field parity assumed for the input interlaced video. It accepts one
of the following values:
.RS 4
.IP "\fB0, tff\fR" 4
.IX Item "0, tff"
Assume the top field is first.
.IP "\fB1, bff\fR" 4
.IX Item "1, bff"
Assume the bottom field is first.
.IP "\fB\-1, auto\fR" 4
.IX Item "-1, auto"
Enable automatic detection of field parity.
.RE
.RS 4
.Sp
The default value is \f(CW\*(C`auto\*(C'\fR.
If the interlacing is unknown or the decoder does not export this information,
top field first will be assumed.
.RE
.IP \fBdeint\fR 4
.IX Item "deint"
Specify which frames to deinterlace. Accepts one of the following
values:
.RS 4
.IP "\fB0, all\fR" 4
.IX Item "0, all"
Deinterlace all frames.
.IP "\fB1, interlaced\fR" 4
.IX Item "1, interlaced"
Only deinterlace frames marked as interlaced.
.RE
.RS 4
.Sp
The default value is \f(CW\*(C`all\*(C'\fR.
.RE
.SS cas
.IX Subsection "cas"
Apply Contrast Adaptive Sharpen filter to video stream.
.PP
The filter accepts the following options:
.IP \fBstrength\fR 4
.IX Item "strength"
Set the sharpening strength. Default value is 0.
.IP \fBplanes\fR 4
.IX Item "planes"
Set planes to filter. Default value is to filter all
planes except alpha plane.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports same \fBcommands\fR as options.
.SS chromahold
.IX Subsection "chromahold"
Remove all color information for all colors except for certain one.
.PP
The filter accepts the following options:
.IP \fBcolor\fR 4
.IX Item "color"
The color which will not be replaced with neutral chroma.
.IP \fBsimilarity\fR 4
.IX Item "similarity"
Similarity percentage with the above color.
0.01 matches only the exact key color, while 1.0 matches everything.
.IP \fBblend\fR 4
.IX Item "blend"
Blend percentage.
0.0 makes pixels either fully gray, or not gray at all.
Higher values result in more preserved color.
.IP \fByuv\fR 4
.IX Item "yuv"
Signals that the color passed is already in YUV instead of RGB.
.Sp
Literal colors like "green" or "red" don't make sense with this enabled anymore.
This can be used to pass exact YUV values as hexadecimal numbers.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports same \fBcommands\fR as options.
The command accepts the same syntax of the corresponding option.
.PP
If the specified expression is not valid, it is kept at its current
value.
.SS chromakey
.IX Subsection "chromakey"
YUV colorspace color/chroma keying.
.PP
The filter accepts the following options:
.IP \fBcolor\fR 4
.IX Item "color"
The color which will be replaced with transparency.
.IP \fBsimilarity\fR 4
.IX Item "similarity"
Similarity percentage with the key color.
.Sp
0.01 matches only the exact key color, while 1.0 matches everything.
.IP \fBblend\fR 4
.IX Item "blend"
Blend percentage.
.Sp
0.0 makes pixels either fully transparent, or not transparent at all.
.Sp
Higher values result in semi-transparent pixels, with a higher transparency
the more similar the pixels color is to the key color.
.IP \fByuv\fR 4
.IX Item "yuv"
Signals that the color passed is already in YUV instead of RGB.
.Sp
Literal colors like "green" or "red" don't make sense with this enabled anymore.
This can be used to pass exact YUV values as hexadecimal numbers.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports same \fBcommands\fR as options.
The command accepts the same syntax of the corresponding option.
.PP
If the specified expression is not valid, it is kept at its current
value.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Make every green pixel in the input image transparent:
.Sp
.Vb 1
\&        ffmpeg \-i input.png \-vf chromakey=green out.png
.Ve
.IP \(bu 4
Overlay a greenscreen-video on top of a static black background.
.Sp
.Vb 1
\&        ffmpeg \-f lavfi \-i color=c=black:s=1280x720 \-i video.mp4 \-shortest \-filter_complex "[1:v]chromakey=0x70de77:0.1:0.2[ckout];[0:v][ckout]overlay[out]" \-map "[out]" output.mkv
.Ve
.SS chromanr
.IX Subsection "chromanr"
Reduce chrominance noise.
.PP
The filter accepts the following options:
.IP \fBthres\fR 4
.IX Item "thres"
Set threshold for averaging chrominance values.
Sum of absolute difference of Y, U and V pixel components of current
pixel and neighbour pixels lower than this threshold will be used in
averaging. Luma component is left unchanged and is copied to output.
Default value is 30. Allowed range is from 1 to 200.
.IP \fBsizew\fR 4
.IX Item "sizew"
Set horizontal radius of rectangle used for averaging.
Allowed range is from 1 to 100. Default value is 5.
.IP \fBsizeh\fR 4
.IX Item "sizeh"
Set vertical radius of rectangle used for averaging.
Allowed range is from 1 to 100. Default value is 5.
.IP \fBstepw\fR 4
.IX Item "stepw"
Set horizontal step when averaging. Default value is 1.
Allowed range is from 1 to 50.
Mostly useful to speed-up filtering.
.IP \fBsteph\fR 4
.IX Item "steph"
Set vertical step when averaging. Default value is 1.
Allowed range is from 1 to 50.
Mostly useful to speed-up filtering.
.IP \fBthrey\fR 4
.IX Item "threy"
Set Y threshold for averaging chrominance values.
Set finer control for max allowed difference between Y components
of current pixel and neigbour pixels.
Default value is 200. Allowed range is from 1 to 200.
.IP \fBthreu\fR 4
.IX Item "threu"
Set U threshold for averaging chrominance values.
Set finer control for max allowed difference between U components
of current pixel and neigbour pixels.
Default value is 200. Allowed range is from 1 to 200.
.IP \fBthrev\fR 4
.IX Item "threv"
Set V threshold for averaging chrominance values.
Set finer control for max allowed difference between V components
of current pixel and neigbour pixels.
Default value is 200. Allowed range is from 1 to 200.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports same \fBcommands\fR as options.
The command accepts the same syntax of the corresponding option.
.SS chromashift
.IX Subsection "chromashift"
Shift chroma pixels horizontally and/or vertically.
.PP
The filter accepts the following options:
.IP \fBcbh\fR 4
.IX Item "cbh"
Set amount to shift chroma-blue horizontally.
.IP \fBcbv\fR 4
.IX Item "cbv"
Set amount to shift chroma-blue vertically.
.IP \fBcrh\fR 4
.IX Item "crh"
Set amount to shift chroma-red horizontally.
.IP \fBcrv\fR 4
.IX Item "crv"
Set amount to shift chroma-red vertically.
.IP \fBedge\fR 4
.IX Item "edge"
Set edge mode, can be \fIsmear\fR, default, or \fIwarp\fR.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS ciescope
.IX Subsection "ciescope"
Display CIE color diagram with pixels overlaid onto it.
.PP
The filter accepts the following options:
.IP \fBsystem\fR 4
.IX Item "system"
Set color system.
.RS 4
.IP "\fBntsc, 470m\fR" 4
.IX Item "ntsc, 470m"
.PD 0
.IP "\fBebu, 470bg\fR" 4
.IX Item "ebu, 470bg"
.IP \fBsmpte\fR 4
.IX Item "smpte"
.IP \fB240m\fR 4
.IX Item "240m"
.IP \fBapple\fR 4
.IX Item "apple"
.IP \fBwidergb\fR 4
.IX Item "widergb"
.IP \fBcie1931\fR 4
.IX Item "cie1931"
.IP "\fBrec709, hdtv\fR" 4
.IX Item "rec709, hdtv"
.IP "\fBuhdtv, rec2020\fR" 4
.IX Item "uhdtv, rec2020"
.IP \fBdcip3\fR 4
.IX Item "dcip3"
.RE
.RS 4
.RE
.IP \fBcie\fR 4
.IX Item "cie"
.PD
Set CIE system.
.RS 4
.IP \fBxyy\fR 4
.IX Item "xyy"
.PD 0
.IP \fBucs\fR 4
.IX Item "ucs"
.IP \fBluv\fR 4
.IX Item "luv"
.RE
.RS 4
.RE
.IP \fBgamuts\fR 4
.IX Item "gamuts"
.PD
Set what gamuts to draw.
.Sp
See \f(CW\*(C`system\*(C'\fR option for available values.
.IP "\fBsize, s\fR" 4
.IX Item "size, s"
Set ciescope size, by default set to 512.
.IP "\fBintensity, i\fR" 4
.IX Item "intensity, i"
Set intensity used to map input pixel values to CIE diagram.
.IP \fBcontrast\fR 4
.IX Item "contrast"
Set contrast used to draw tongue colors that are out of active color system gamut.
.IP \fBcorrgamma\fR 4
.IX Item "corrgamma"
Correct gamma displayed on scope, by default enabled.
.IP \fBshowwhite\fR 4
.IX Item "showwhite"
Show white point on CIE diagram, by default disabled.
.IP \fBgamma\fR 4
.IX Item "gamma"
Set input gamma. Used only with XYZ input color space.
.SS codecview
.IX Subsection "codecview"
Visualize information exported by some codecs.
.PP
Some codecs can export information through frames using side-data or other
means. For example, some MPEG based codecs export motion vectors through the
\&\fIexport_mvs\fR flag in the codec \fBflags2\fR option.
.PP
The filter accepts the following option:
.IP \fBmv\fR 4
.IX Item "mv"
Set motion vectors to visualize.
.Sp
Available flags for \fImv\fR are:
.RS 4
.IP \fBpf\fR 4
.IX Item "pf"
forward predicted MVs of P\-frames
.IP \fBbf\fR 4
.IX Item "bf"
forward predicted MVs of B\-frames
.IP \fBbb\fR 4
.IX Item "bb"
backward predicted MVs of B\-frames
.RE
.RS 4
.RE
.IP \fBqp\fR 4
.IX Item "qp"
Display quantization parameters using the chroma planes.
.IP "\fBmv_type, mvt\fR" 4
.IX Item "mv_type, mvt"
Set motion vectors type to visualize. Includes MVs from all frames unless specified by \fIframe_type\fR option.
.Sp
Available flags for \fImv_type\fR are:
.RS 4
.IP \fBfp\fR 4
.IX Item "fp"
forward predicted MVs
.IP \fBbp\fR 4
.IX Item "bp"
backward predicted MVs
.RE
.RS 4
.RE
.IP "\fBframe_type, ft\fR" 4
.IX Item "frame_type, ft"
Set frame type to visualize motion vectors of.
.Sp
Available flags for \fIframe_type\fR are:
.RS 4
.IP \fBif\fR 4
.IX Item "if"
intra-coded frames (I\-frames)
.IP \fBpf\fR 4
.IX Item "pf"
predicted frames (P\-frames)
.IP \fBbf\fR 4
.IX Item "bf"
bi-directionally predicted frames (B\-frames)
.RE
.RS 4
.RE
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Visualize forward predicted MVs of all frames using \fBffplay\fR:
.Sp
.Vb 1
\&        ffplay \-flags2 +export_mvs input.mp4 \-vf codecview=mv_type=fp
.Ve
.IP \(bu 4
Visualize multi-directionals MVs of P and B\-Frames using \fBffplay\fR:
.Sp
.Vb 1
\&        ffplay \-flags2 +export_mvs input.mp4 \-vf codecview=mv=pf+bf+bb
.Ve
.SS colorbalance
.IX Subsection "colorbalance"
Modify intensity of primary colors (red, green and blue) of input frames.
.PP
The filter allows an input frame to be adjusted in the shadows, midtones or highlights
regions for the red-cyan, green-magenta or blue-yellow balance.
.PP
A positive adjustment value shifts the balance towards the primary color, a negative
value towards the complementary color.
.PP
The filter accepts the following options:
.IP \fBrs\fR 4
.IX Item "rs"
.PD 0
.IP \fBgs\fR 4
.IX Item "gs"
.IP \fBbs\fR 4
.IX Item "bs"
.PD
Adjust red, green and blue shadows (darkest pixels).
.IP \fBrm\fR 4
.IX Item "rm"
.PD 0
.IP \fBgm\fR 4
.IX Item "gm"
.IP \fBbm\fR 4
.IX Item "bm"
.PD
Adjust red, green and blue midtones (medium pixels).
.IP \fBrh\fR 4
.IX Item "rh"
.PD 0
.IP \fBgh\fR 4
.IX Item "gh"
.IP \fBbh\fR 4
.IX Item "bh"
.PD
Adjust red, green and blue highlights (brightest pixels).
.Sp
Allowed ranges for options are \f(CW\*(C`[\-1.0, 1.0]\*(C'\fR. Defaults are \f(CW0\fR.
.IP \fBpl\fR 4
.IX Item "pl"
Preserve lightness when changing color balance. Default is disabled.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Add red color cast to shadows:
.Sp
.Vb 1
\&        colorbalance=rs=.3
.Ve
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS colorcontrast
.IX Subsection "colorcontrast"
Adjust color contrast between RGB components.
.PP
The filter accepts the following options:
.IP \fBrc\fR 4
.IX Item "rc"
Set the red-cyan contrast. Defaults is 0.0. Allowed range is from \-1.0 to 1.0.
.IP \fBgm\fR 4
.IX Item "gm"
Set the green-magenta contrast. Defaults is 0.0. Allowed range is from \-1.0 to 1.0.
.IP \fBby\fR 4
.IX Item "by"
Set the blue-yellow contrast. Defaults is 0.0. Allowed range is from \-1.0 to 1.0.
.IP \fBrcw\fR 4
.IX Item "rcw"
.PD 0
.IP \fBgmw\fR 4
.IX Item "gmw"
.IP \fBbyw\fR 4
.IX Item "byw"
.PD
Set the weight of each \f(CW\*(C`rc\*(C'\fR, \f(CW\*(C`gm\*(C'\fR, \f(CW\*(C`by\*(C'\fR option value. Default value is 0.0.
Allowed range is from 0.0 to 1.0. If all weights are 0.0 filtering is disabled.
.IP \fBpl\fR 4
.IX Item "pl"
Set the amount of preserving lightness. Default value is 0.0. Allowed range is from 0.0 to 1.0.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS colorcorrect
.IX Subsection "colorcorrect"
Adjust color white balance selectively for blacks and whites.
This filter operates in YUV colorspace.
.PP
The filter accepts the following options:
.IP \fBrl\fR 4
.IX Item "rl"
Set the red shadow spot. Allowed range is from \-1.0 to 1.0.
Default value is 0.
.IP \fBbl\fR 4
.IX Item "bl"
Set the blue shadow spot. Allowed range is from \-1.0 to 1.0.
Default value is 0.
.IP \fBrh\fR 4
.IX Item "rh"
Set the red highlight spot. Allowed range is from \-1.0 to 1.0.
Default value is 0.
.IP \fBbh\fR 4
.IX Item "bh"
Set the red highlight spot. Allowed range is from \-1.0 to 1.0.
Default value is 0.
.IP \fBsaturation\fR 4
.IX Item "saturation"
Set the amount of saturation. Allowed range is from \-3.0 to 3.0.
Default value is 1.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS colorchannelmixer
.IX Subsection "colorchannelmixer"
Adjust video input frames by re-mixing color channels.
.PP
This filter modifies a color channel by adding the values associated to
the other channels of the same pixels. For example if the value to
modify is red, the output value will be:
.PP
.Vb 1
\&        <red>=<red>*<rr> + <blue>*<rb> + <green>*<rg> + <alpha>*<ra>
.Ve
.PP
The filter accepts the following options:
.IP \fBrr\fR 4
.IX Item "rr"
.PD 0
.IP \fBrg\fR 4
.IX Item "rg"
.IP \fBrb\fR 4
.IX Item "rb"
.IP \fBra\fR 4
.IX Item "ra"
.PD
Adjust contribution of input red, green, blue and alpha channels for output red channel.
Default is \f(CW1\fR for \fIrr\fR, and \f(CW0\fR for \fIrg\fR, \fIrb\fR and \fIra\fR.
.IP \fBgr\fR 4
.IX Item "gr"
.PD 0
.IP \fBgg\fR 4
.IX Item "gg"
.IP \fBgb\fR 4
.IX Item "gb"
.IP \fBga\fR 4
.IX Item "ga"
.PD
Adjust contribution of input red, green, blue and alpha channels for output green channel.
Default is \f(CW1\fR for \fIgg\fR, and \f(CW0\fR for \fIgr\fR, \fIgb\fR and \fIga\fR.
.IP \fBbr\fR 4
.IX Item "br"
.PD 0
.IP \fBbg\fR 4
.IX Item "bg"
.IP \fBbb\fR 4
.IX Item "bb"
.IP \fBba\fR 4
.IX Item "ba"
.PD
Adjust contribution of input red, green, blue and alpha channels for output blue channel.
Default is \f(CW1\fR for \fIbb\fR, and \f(CW0\fR for \fIbr\fR, \fIbg\fR and \fIba\fR.
.IP \fBar\fR 4
.IX Item "ar"
.PD 0
.IP \fBag\fR 4
.IX Item "ag"
.IP \fBab\fR 4
.IX Item "ab"
.IP \fBaa\fR 4
.IX Item "aa"
.PD
Adjust contribution of input red, green, blue and alpha channels for output alpha channel.
Default is \f(CW1\fR for \fIaa\fR, and \f(CW0\fR for \fIar\fR, \fIag\fR and \fIab\fR.
.Sp
Allowed ranges for options are \f(CW\*(C`[\-2.0, 2.0]\*(C'\fR.
.IP \fBpl\fR 4
.IX Item "pl"
Preserve lightness when changing colors. Allowed range is from \f(CW\*(C`[0.0, 1.0]\*(C'\fR.
Default is \f(CW0.0\fR, thus disabled.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Convert source to grayscale:
.Sp
.Vb 1
\&        colorchannelmixer=.3:.4:.3:0:.3:.4:.3:0:.3:.4:.3
.Ve
.IP \(bu 4
Simulate sepia tones:
.Sp
.Vb 1
\&        colorchannelmixer=.393:.769:.189:0:.349:.686:.168:0:.272:.534:.131
.Ve
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS colorize
.IX Subsection "colorize"
Overlay a solid color on the video stream.
.PP
The filter accepts the following options:
.IP \fBhue\fR 4
.IX Item "hue"
Set the color hue. Allowed range is from 0 to 360.
Default value is 0.
.IP \fBsaturation\fR 4
.IX Item "saturation"
Set the color saturation. Allowed range is from 0 to 1.
Default value is 0.5.
.IP \fBlightness\fR 4
.IX Item "lightness"
Set the color lightness. Allowed range is from 0 to 1.
Default value is 0.5.
.IP \fBmix\fR 4
.IX Item "mix"
Set the mix of source lightness. By default is set to 1.0.
Allowed range is from 0.0 to 1.0.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS colorkey
.IX Subsection "colorkey"
RGB colorspace color keying.
.PP
The filter accepts the following options:
.IP \fBcolor\fR 4
.IX Item "color"
The color which will be replaced with transparency.
.IP \fBsimilarity\fR 4
.IX Item "similarity"
Similarity percentage with the key color.
.Sp
0.01 matches only the exact key color, while 1.0 matches everything.
.IP \fBblend\fR 4
.IX Item "blend"
Blend percentage.
.Sp
0.0 makes pixels either fully transparent, or not transparent at all.
.Sp
Higher values result in semi-transparent pixels, with a higher transparency
the more similar the pixels color is to the key color.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Make every green pixel in the input image transparent:
.Sp
.Vb 1
\&        ffmpeg \-i input.png \-vf colorkey=green out.png
.Ve
.IP \(bu 4
Overlay a greenscreen-video on top of a static background image.
.Sp
.Vb 1
\&        ffmpeg \-i background.png \-i video.mp4 \-filter_complex "[1:v]colorkey=0x3BBD1E:0.3:0.2[ckout];[0:v][ckout]overlay[out]" \-map "[out]" output.flv
.Ve
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports same \fBcommands\fR as options.
The command accepts the same syntax of the corresponding option.
.PP
If the specified expression is not valid, it is kept at its current
value.
.SS colorhold
.IX Subsection "colorhold"
Remove all color information for all RGB colors except for certain one.
.PP
The filter accepts the following options:
.IP \fBcolor\fR 4
.IX Item "color"
The color which will not be replaced with neutral gray.
.IP \fBsimilarity\fR 4
.IX Item "similarity"
Similarity percentage with the above color.
0.01 matches only the exact key color, while 1.0 matches everything.
.IP \fBblend\fR 4
.IX Item "blend"
Blend percentage. 0.0 makes pixels fully gray.
Higher values result in more preserved color.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports same \fBcommands\fR as options.
The command accepts the same syntax of the corresponding option.
.PP
If the specified expression is not valid, it is kept at its current
value.
.SS colorlevels
.IX Subsection "colorlevels"
Adjust video input frames using levels.
.PP
The filter accepts the following options:
.IP \fBrimin\fR 4
.IX Item "rimin"
.PD 0
.IP \fBgimin\fR 4
.IX Item "gimin"
.IP \fBbimin\fR 4
.IX Item "bimin"
.IP \fBaimin\fR 4
.IX Item "aimin"
.PD
Adjust red, green, blue and alpha input black point.
Allowed ranges for options are \f(CW\*(C`[\-1.0, 1.0]\*(C'\fR. Defaults are \f(CW0\fR.
.IP \fBrimax\fR 4
.IX Item "rimax"
.PD 0
.IP \fBgimax\fR 4
.IX Item "gimax"
.IP \fBbimax\fR 4
.IX Item "bimax"
.IP \fBaimax\fR 4
.IX Item "aimax"
.PD
Adjust red, green, blue and alpha input white point.
Allowed ranges for options are \f(CW\*(C`[\-1.0, 1.0]\*(C'\fR. Defaults are \f(CW1\fR.
.Sp
Input levels are used to lighten highlights (bright tones), darken shadows
(dark tones), change the balance of bright and dark tones.
.IP \fBromin\fR 4
.IX Item "romin"
.PD 0
.IP \fBgomin\fR 4
.IX Item "gomin"
.IP \fBbomin\fR 4
.IX Item "bomin"
.IP \fBaomin\fR 4
.IX Item "aomin"
.PD
Adjust red, green, blue and alpha output black point.
Allowed ranges for options are \f(CW\*(C`[0, 1.0]\*(C'\fR. Defaults are \f(CW0\fR.
.IP \fBromax\fR 4
.IX Item "romax"
.PD 0
.IP \fBgomax\fR 4
.IX Item "gomax"
.IP \fBbomax\fR 4
.IX Item "bomax"
.IP \fBaomax\fR 4
.IX Item "aomax"
.PD
Adjust red, green, blue and alpha output white point.
Allowed ranges for options are \f(CW\*(C`[0, 1.0]\*(C'\fR. Defaults are \f(CW1\fR.
.Sp
Output levels allows manual selection of a constrained output level range.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Make video output darker:
.Sp
.Vb 1
\&        colorlevels=rimin=0.058:gimin=0.058:bimin=0.058
.Ve
.IP \(bu 4
Increase contrast:
.Sp
.Vb 1
\&        colorlevels=rimin=0.039:gimin=0.039:bimin=0.039:rimax=0.96:gimax=0.96:bimax=0.96
.Ve
.IP \(bu 4
Make video output lighter:
.Sp
.Vb 1
\&        colorlevels=rimax=0.902:gimax=0.902:bimax=0.902
.Ve
.IP \(bu 4
Increase brightness:
.Sp
.Vb 1
\&        colorlevels=romin=0.5:gomin=0.5:bomin=0.5
.Ve
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS colormatrix
.IX Subsection "colormatrix"
Convert color matrix.
.PP
The filter accepts the following options:
.IP \fBsrc\fR 4
.IX Item "src"
.PD 0
.IP \fBdst\fR 4
.IX Item "dst"
.PD
Specify the source and destination color matrix. Both values must be
specified.
.Sp
The accepted values are:
.RS 4
.IP \fBbt709\fR 4
.IX Item "bt709"
BT.709
.IP \fBfcc\fR 4
.IX Item "fcc"
FCC
.IP \fBbt601\fR 4
.IX Item "bt601"
BT.601
.IP \fBbt470\fR 4
.IX Item "bt470"
BT.470
.IP \fBbt470bg\fR 4
.IX Item "bt470bg"
BT.470BG
.IP \fBsmpte170m\fR 4
.IX Item "smpte170m"
SMPTE\-170M
.IP \fBsmpte240m\fR 4
.IX Item "smpte240m"
SMPTE\-240M
.IP \fBbt2020\fR 4
.IX Item "bt2020"
BT.2020
.RE
.RS 4
.RE
.PP
For example to convert from BT.601 to SMPTE\-240M, use the command:
.PP
.Vb 1
\&        colormatrix=bt601:smpte240m
.Ve
.SS colorspace
.IX Subsection "colorspace"
Convert colorspace, transfer characteristics or color primaries.
Input video needs to have an even size.
.PP
The filter accepts the following options:
.IP \fBall\fR 4
.IX Item "all"
Specify all color properties at once.
.Sp
The accepted values are:
.RS 4
.IP \fBbt470m\fR 4
.IX Item "bt470m"
BT.470M
.IP \fBbt470bg\fR 4
.IX Item "bt470bg"
BT.470BG
.IP \fBbt601\-6\-525\fR 4
.IX Item "bt601-6-525"
BT.601\-6 525
.IP \fBbt601\-6\-625\fR 4
.IX Item "bt601-6-625"
BT.601\-6 625
.IP \fBbt709\fR 4
.IX Item "bt709"
BT.709
.IP \fBsmpte170m\fR 4
.IX Item "smpte170m"
SMPTE\-170M
.IP \fBsmpte240m\fR 4
.IX Item "smpte240m"
SMPTE\-240M
.IP \fBbt2020\fR 4
.IX Item "bt2020"
BT.2020
.RE
.RS 4
.RE
.IP \fBspace\fR 4
.IX Item "space"
Specify output colorspace.
.Sp
The accepted values are:
.RS 4
.IP \fBbt709\fR 4
.IX Item "bt709"
BT.709
.IP \fBfcc\fR 4
.IX Item "fcc"
FCC
.IP \fBbt470bg\fR 4
.IX Item "bt470bg"
BT.470BG or BT.601\-6 625
.IP \fBsmpte170m\fR 4
.IX Item "smpte170m"
SMPTE\-170M or BT.601\-6 525
.IP \fBsmpte240m\fR 4
.IX Item "smpte240m"
SMPTE\-240M
.IP \fBycgco\fR 4
.IX Item "ycgco"
YCgCo
.IP \fBbt2020ncl\fR 4
.IX Item "bt2020ncl"
BT.2020 with non-constant luminance
.RE
.RS 4
.RE
.IP \fBtrc\fR 4
.IX Item "trc"
Specify output transfer characteristics.
.Sp
The accepted values are:
.RS 4
.IP \fBbt709\fR 4
.IX Item "bt709"
BT.709
.IP \fBbt470m\fR 4
.IX Item "bt470m"
BT.470M
.IP \fBbt470bg\fR 4
.IX Item "bt470bg"
BT.470BG
.IP \fBgamma22\fR 4
.IX Item "gamma22"
Constant gamma of 2.2
.IP \fBgamma28\fR 4
.IX Item "gamma28"
Constant gamma of 2.8
.IP \fBsmpte170m\fR 4
.IX Item "smpte170m"
SMPTE\-170M, BT.601\-6 625 or BT.601\-6 525
.IP \fBsmpte240m\fR 4
.IX Item "smpte240m"
SMPTE\-240M
.IP \fBsrgb\fR 4
.IX Item "srgb"
SRGB
.IP \fBiec61966\-2\-1\fR 4
.IX Item "iec61966-2-1"
iec61966\-2\-1
.IP \fBiec61966\-2\-4\fR 4
.IX Item "iec61966-2-4"
iec61966\-2\-4
.IP \fBxvycc\fR 4
.IX Item "xvycc"
xvycc
.IP \fBbt2020\-10\fR 4
.IX Item "bt2020-10"
BT.2020 for 10\-bits content
.IP \fBbt2020\-12\fR 4
.IX Item "bt2020-12"
BT.2020 for 12\-bits content
.RE
.RS 4
.RE
.IP \fBprimaries\fR 4
.IX Item "primaries"
Specify output color primaries.
.Sp
The accepted values are:
.RS 4
.IP \fBbt709\fR 4
.IX Item "bt709"
BT.709
.IP \fBbt470m\fR 4
.IX Item "bt470m"
BT.470M
.IP \fBbt470bg\fR 4
.IX Item "bt470bg"
BT.470BG or BT.601\-6 625
.IP \fBsmpte170m\fR 4
.IX Item "smpte170m"
SMPTE\-170M or BT.601\-6 525
.IP \fBsmpte240m\fR 4
.IX Item "smpte240m"
SMPTE\-240M
.IP \fBfilm\fR 4
.IX Item "film"
film
.IP \fBsmpte431\fR 4
.IX Item "smpte431"
SMPTE\-431
.IP \fBsmpte432\fR 4
.IX Item "smpte432"
SMPTE\-432
.IP \fBbt2020\fR 4
.IX Item "bt2020"
BT.2020
.IP \fBjedec\-p22\fR 4
.IX Item "jedec-p22"
JEDEC P22 phosphors
.RE
.RS 4
.RE
.IP \fBrange\fR 4
.IX Item "range"
Specify output color range.
.Sp
The accepted values are:
.RS 4
.IP \fBtv\fR 4
.IX Item "tv"
TV (restricted) range
.IP \fBmpeg\fR 4
.IX Item "mpeg"
MPEG (restricted) range
.IP \fBpc\fR 4
.IX Item "pc"
PC (full) range
.IP \fBjpeg\fR 4
.IX Item "jpeg"
JPEG (full) range
.RE
.RS 4
.RE
.IP \fBformat\fR 4
.IX Item "format"
Specify output color format.
.Sp
The accepted values are:
.RS 4
.IP \fByuv420p\fR 4
.IX Item "yuv420p"
YUV 4:2:0 planar 8\-bits
.IP \fByuv420p10\fR 4
.IX Item "yuv420p10"
YUV 4:2:0 planar 10\-bits
.IP \fByuv420p12\fR 4
.IX Item "yuv420p12"
YUV 4:2:0 planar 12\-bits
.IP \fByuv422p\fR 4
.IX Item "yuv422p"
YUV 4:2:2 planar 8\-bits
.IP \fByuv422p10\fR 4
.IX Item "yuv422p10"
YUV 4:2:2 planar 10\-bits
.IP \fByuv422p12\fR 4
.IX Item "yuv422p12"
YUV 4:2:2 planar 12\-bits
.IP \fByuv444p\fR 4
.IX Item "yuv444p"
YUV 4:4:4 planar 8\-bits
.IP \fByuv444p10\fR 4
.IX Item "yuv444p10"
YUV 4:4:4 planar 10\-bits
.IP \fByuv444p12\fR 4
.IX Item "yuv444p12"
YUV 4:4:4 planar 12\-bits
.RE
.RS 4
.RE
.IP \fBfast\fR 4
.IX Item "fast"
Do a fast conversion, which skips gamma/primary correction. This will take
significantly less CPU, but will be mathematically incorrect. To get output
compatible with that produced by the colormatrix filter, use fast=1.
.IP \fBdither\fR 4
.IX Item "dither"
Specify dithering mode.
.Sp
The accepted values are:
.RS 4
.IP \fBnone\fR 4
.IX Item "none"
No dithering
.IP \fBfsb\fR 4
.IX Item "fsb"
Floyd-Steinberg dithering
.RE
.RS 4
.RE
.IP \fBwpadapt\fR 4
.IX Item "wpadapt"
Whitepoint adaptation mode.
.Sp
The accepted values are:
.RS 4
.IP \fBbradford\fR 4
.IX Item "bradford"
Bradford whitepoint adaptation
.IP \fBvonkries\fR 4
.IX Item "vonkries"
von Kries whitepoint adaptation
.IP \fBidentity\fR 4
.IX Item "identity"
identity whitepoint adaptation (i.e. no whitepoint adaptation)
.RE
.RS 4
.RE
.IP \fBiall\fR 4
.IX Item "iall"
Override all input properties at once. Same accepted values as \fBall\fR.
.IP \fBispace\fR 4
.IX Item "ispace"
Override input colorspace. Same accepted values as \fBspace\fR.
.IP \fBiprimaries\fR 4
.IX Item "iprimaries"
Override input color primaries. Same accepted values as \fBprimaries\fR.
.IP \fBitrc\fR 4
.IX Item "itrc"
Override input transfer characteristics. Same accepted values as \fBtrc\fR.
.IP \fBirange\fR 4
.IX Item "irange"
Override input color range. Same accepted values as \fBrange\fR.
.PP
The filter converts the transfer characteristics, color space and color
primaries to the specified user values. The output value, if not specified,
is set to a default value based on the "all" property. If that property is
also not specified, the filter will log an error. The output color range and
format default to the same value as the input color range and format. The
input transfer characteristics, color space, color primaries and color range
should be set on the input data. If any of these are missing, the filter will
log an error and no conversion will take place.
.PP
For example to convert the input to SMPTE\-240M, use the command:
.PP
.Vb 1
\&        colorspace=smpte240m
.Ve
.SS colortemperature
.IX Subsection "colortemperature"
Adjust color temperature in video to simulate variations in ambient color temperature.
.PP
The filter accepts the following options:
.IP \fBtemperature\fR 4
.IX Item "temperature"
Set the temperature in Kelvin. Allowed range is from 1000 to 40000.
Default value is 6500 K.
.IP \fBmix\fR 4
.IX Item "mix"
Set mixing with filtered output. Allowed range is from 0 to 1.
Default value is 1.
.IP \fBpl\fR 4
.IX Item "pl"
Set the amount of preserving lightness. Allowed range is from 0 to 1.
Default value is 0.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports same \fBcommands\fR as options.
.SS convolution
.IX Subsection "convolution"
Apply convolution of 3x3, 5x5, 7x7 or horizontal/vertical up to 49 elements.
.PP
The filter accepts the following options:
.IP \fB0m\fR 4
.IX Item "0m"
.PD 0
.IP \fB1m\fR 4
.IX Item "1m"
.IP \fB2m\fR 4
.IX Item "2m"
.IP \fB3m\fR 4
.IX Item "3m"
.PD
Set matrix for each plane.
Matrix is sequence of 9, 25 or 49 signed integers in \fIsquare\fR mode,
and from 1 to 49 odd number of signed integers in \fIrow\fR mode.
.IP \fB0rdiv\fR 4
.IX Item "0rdiv"
.PD 0
.IP \fB1rdiv\fR 4
.IX Item "1rdiv"
.IP \fB2rdiv\fR 4
.IX Item "2rdiv"
.IP \fB3rdiv\fR 4
.IX Item "3rdiv"
.PD
Set multiplier for calculated value for each plane.
If unset or 0, it will be sum of all matrix elements.
.IP \fB0bias\fR 4
.IX Item "0bias"
.PD 0
.IP \fB1bias\fR 4
.IX Item "1bias"
.IP \fB2bias\fR 4
.IX Item "2bias"
.IP \fB3bias\fR 4
.IX Item "3bias"
.PD
Set bias for each plane. This value is added to the result of the multiplication.
Useful for making the overall image brighter or darker. Default is 0.0.
.IP \fB0mode\fR 4
.IX Item "0mode"
.PD 0
.IP \fB1mode\fR 4
.IX Item "1mode"
.IP \fB2mode\fR 4
.IX Item "2mode"
.IP \fB3mode\fR 4
.IX Item "3mode"
.PD
Set matrix mode for each plane. Can be \fIsquare\fR, \fIrow\fR or \fIcolumn\fR.
Default is \fIsquare\fR.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Apply sharpen:
.Sp
.Vb 1
\&        convolution="0 \-1 0 \-1 5 \-1 0 \-1 0:0 \-1 0 \-1 5 \-1 0 \-1 0:0 \-1 0 \-1 5 \-1 0 \-1 0:0 \-1 0 \-1 5 \-1 0 \-1 0"
.Ve
.IP \(bu 4
Apply blur:
.Sp
.Vb 1
\&        convolution="1 1 1 1 1 1 1 1 1:1 1 1 1 1 1 1 1 1:1 1 1 1 1 1 1 1 1:1 1 1 1 1 1 1 1 1:1/9:1/9:1/9:1/9"
.Ve
.IP \(bu 4
Apply edge enhance:
.Sp
.Vb 1
\&        convolution="0 0 0 \-1 1 0 0 0 0:0 0 0 \-1 1 0 0 0 0:0 0 0 \-1 1 0 0 0 0:0 0 0 \-1 1 0 0 0 0:5:1:1:1:0:128:128:128"
.Ve
.IP \(bu 4
Apply edge detect:
.Sp
.Vb 1
\&        convolution="0 1 0 1 \-4 1 0 1 0:0 1 0 1 \-4 1 0 1 0:0 1 0 1 \-4 1 0 1 0:0 1 0 1 \-4 1 0 1 0:5:5:5:1:0:128:128:128"
.Ve
.IP \(bu 4
Apply laplacian edge detector which includes diagonals:
.Sp
.Vb 1
\&        convolution="1 1 1 1 \-8 1 1 1 1:1 1 1 1 \-8 1 1 1 1:1 1 1 1 \-8 1 1 1 1:1 1 1 1 \-8 1 1 1 1:5:5:5:1:0:128:128:0"
.Ve
.IP \(bu 4
Apply emboss:
.Sp
.Vb 1
\&        convolution="\-2 \-1 0 \-1 1 1 0 1 2:\-2 \-1 0 \-1 1 1 0 1 2:\-2 \-1 0 \-1 1 1 0 1 2:\-2 \-1 0 \-1 1 1 0 1 2"
.Ve
.SS convolve
.IX Subsection "convolve"
Apply 2D convolution of video stream in frequency domain using second stream
as impulse.
.PP
The filter accepts the following options:
.IP \fBplanes\fR 4
.IX Item "planes"
Set which planes to process.
.IP \fBimpulse\fR 4
.IX Item "impulse"
Set which impulse video frames will be processed, can be \fIfirst\fR
or \fIall\fR. Default is \fIall\fR.
.PP
The \f(CW\*(C`convolve\*(C'\fR filter also supports the \fBframesync\fR options.
.SS copy
.IX Subsection "copy"
Copy the input video source unchanged to the output. This is mainly useful for
testing purposes.
.SS coreimage
.IX Subsection "coreimage"
Video filtering on GPU using Apple's CoreImage API on OSX.
.PP
Hardware acceleration is based on an OpenGL context. Usually, this means it is
processed by video hardware. However, software-based OpenGL implementations
exist which means there is no guarantee for hardware processing. It depends on
the respective OSX.
.PP
There are many filters and image generators provided by Apple that come with a
large variety of options. The filter has to be referenced by its name along
with its options.
.PP
The coreimage filter accepts the following options:
.IP \fBlist_filters\fR 4
.IX Item "list_filters"
List all available filters and generators along with all their respective
options as well as possible minimum and maximum values along with the default
values.
.Sp
.Vb 1
\&        list_filters=true
.Ve
.IP \fBfilter\fR 4
.IX Item "filter"
Specify all filters by their respective name and options.
Use \fIlist_filters\fR to determine all valid filter names and options.
Numerical options are specified by a float value and are automatically clamped
to their respective value range.  Vector and color options have to be specified
by a list of space separated float values. Character escaping has to be done.
A special option name \f(CW\*(C`default\*(C'\fR is available to use default options for a
filter.
.Sp
It is required to specify either \f(CW\*(C`default\*(C'\fR or at least one of the filter options.
All omitted options are used with their default values.
The syntax of the filter string is as follows:
.Sp
.Vb 1
\&        filter=<NAME>@<OPTION>=<VALUE>[@<OPTION>=<VALUE>][@...][#<NAME>@<OPTION>=<VALUE>[@<OPTION>=<VALUE>][@...]][#...]
.Ve
.IP \fBoutput_rect\fR 4
.IX Item "output_rect"
Specify a rectangle where the output of the filter chain is copied into the
input image. It is given by a list of space separated float values:
.Sp
.Vb 1
\&        output_rect=x\e y\e width\e height
.Ve
.Sp
If not given, the output rectangle equals the dimensions of the input image.
The output rectangle is automatically cropped at the borders of the input
image. Negative values are valid for each component.
.Sp
.Vb 1
\&        output_rect=25\e 25\e 100\e 100
.Ve
.PP
Several filters can be chained for successive processing without GPU-HOST
transfers allowing for fast processing of complex filter chains.
Currently, only filters with zero (generators) or exactly one (filters) input
image and one output image are supported. Also, transition filters are not yet
usable as intended.
.PP
Some filters generate output images with additional padding depending on the
respective filter kernel. The padding is automatically removed to ensure the
filter output has the same size as the input image.
.PP
For image generators, the size of the output image is determined by the
previous output image of the filter chain or the input image of the whole
filterchain, respectively. The generators do not use the pixel information of
this image to generate their output. However, the generated output is
blended onto this image, resulting in partial or complete coverage of the
output image.
.PP
The \fBcoreimagesrc\fR video source can be used for generating input images
which are directly fed into the filter chain. By using it, providing input
images by another video source or an input video is not required.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
List all filters available:
.Sp
.Vb 1
\&        coreimage=list_filters=true
.Ve
.IP \(bu 4
Use the CIBoxBlur filter with default options to blur an image:
.Sp
.Vb 1
\&        coreimage=filter=CIBoxBlur@default
.Ve
.IP \(bu 4
Use a filter chain with CISepiaTone at default values and CIVignetteEffect with
its center at 100x100 and a radius of 50 pixels:
.Sp
.Vb 1
\&        coreimage=filter=CIBoxBlur@default#CIVignetteEffect@inputCenter=100\e 100@inputRadius=50
.Ve
.IP \(bu 4
Use nullsrc and CIQRCodeGenerator to create a QR code for the FFmpeg homepage,
given as complete and escaped command-line for Apple's standard bash shell:
.Sp
.Vb 1
\&        ffmpeg \-f lavfi \-i nullsrc=s=100x100,coreimage=filter=CIQRCodeGenerator@inputMessage=https\e\e\e\e\e://FFmpeg.org/@inputCorrectionLevel=H \-frames:v 1 QRCode.png
.Ve
.SS cover_rect
.IX Subsection "cover_rect"
Cover a rectangular object
.PP
It accepts the following options:
.IP \fBcover\fR 4
.IX Item "cover"
Filepath of the optional cover image, needs to be in yuv420.
.IP \fBmode\fR 4
.IX Item "mode"
Set covering mode.
.Sp
It accepts the following values:
.RS 4
.IP \fBcover\fR 4
.IX Item "cover"
cover it by the supplied image
.IP \fBblur\fR 4
.IX Item "blur"
cover it by interpolating the surrounding pixels
.RE
.RS 4
.Sp
Default value is \fIblur\fR.
.RE
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Cover a rectangular object by the supplied image of a given video using \fBffmpeg\fR:
.Sp
.Vb 1
\&        ffmpeg \-i file.ts \-vf find_rect=newref.pgm,cover_rect=cover.jpg:mode=cover new.mkv
.Ve
.SS crop
.IX Subsection "crop"
Crop the input video to given dimensions.
.PP
It accepts the following parameters:
.IP "\fBw, out_w\fR" 4
.IX Item "w, out_w"
The width of the output video. It defaults to \f(CW\*(C`iw\*(C'\fR.
This expression is evaluated only once during the filter
configuration, or when the \fBw\fR or \fBout_w\fR command is sent.
.IP "\fBh, out_h\fR" 4
.IX Item "h, out_h"
The height of the output video. It defaults to \f(CW\*(C`ih\*(C'\fR.
This expression is evaluated only once during the filter
configuration, or when the \fBh\fR or \fBout_h\fR command is sent.
.IP \fBx\fR 4
.IX Item "x"
The horizontal position, in the input video, of the left edge of the output
video. It defaults to \f(CW\*(C`(in_w\-out_w)/2\*(C'\fR.
This expression is evaluated per-frame.
.IP \fBy\fR 4
.IX Item "y"
The vertical position, in the input video, of the top edge of the output video.
It defaults to \f(CW\*(C`(in_h\-out_h)/2\*(C'\fR.
This expression is evaluated per-frame.
.IP \fBkeep_aspect\fR 4
.IX Item "keep_aspect"
If set to 1 will force the output display aspect ratio
to be the same of the input, by changing the output sample aspect
ratio. It defaults to 0.
.IP \fBexact\fR 4
.IX Item "exact"
Enable exact cropping. If enabled, subsampled videos will be cropped at exact
width/height/x/y as specified and will not be rounded to nearest smaller value.
It defaults to 0.
.PP
The \fIout_w\fR, \fIout_h\fR, \fIx\fR, \fIy\fR parameters are
expressions containing the following constants:
.IP \fBx\fR 4
.IX Item "x"
.PD 0
.IP \fBy\fR 4
.IX Item "y"
.PD
The computed values for \fIx\fR and \fIy\fR. They are evaluated for
each new frame.
.IP \fBin_w\fR 4
.IX Item "in_w"
.PD 0
.IP \fBin_h\fR 4
.IX Item "in_h"
.PD
The input width and height.
.IP \fBiw\fR 4
.IX Item "iw"
.PD 0
.IP \fBih\fR 4
.IX Item "ih"
.PD
These are the same as \fIin_w\fR and \fIin_h\fR.
.IP \fBout_w\fR 4
.IX Item "out_w"
.PD 0
.IP \fBout_h\fR 4
.IX Item "out_h"
.PD
The output (cropped) width and height.
.IP \fBow\fR 4
.IX Item "ow"
.PD 0
.IP \fBoh\fR 4
.IX Item "oh"
.PD
These are the same as \fIout_w\fR and \fIout_h\fR.
.IP \fBa\fR 4
.IX Item "a"
same as \fIiw\fR / \fIih\fR
.IP \fBsar\fR 4
.IX Item "sar"
input sample aspect ratio
.IP \fBdar\fR 4
.IX Item "dar"
input display aspect ratio, it is the same as (\fIiw\fR / \fIih\fR) * \fIsar\fR
.IP \fBhsub\fR 4
.IX Item "hsub"
.PD 0
.IP \fBvsub\fR 4
.IX Item "vsub"
.PD
horizontal and vertical chroma subsample values. For example for the
pixel format "yuv422p" \fIhsub\fR is 2 and \fIvsub\fR is 1.
.IP \fBn\fR 4
.IX Item "n"
The number of the input frame, starting from 0.
.IP \fBpos\fR 4
.IX Item "pos"
the position in the file of the input frame, NAN if unknown
.IP \fBt\fR 4
.IX Item "t"
The timestamp expressed in seconds. It's NAN if the input timestamp is unknown.
.PP
The expression for \fIout_w\fR may depend on the value of \fIout_h\fR,
and the expression for \fIout_h\fR may depend on \fIout_w\fR, but they
cannot depend on \fIx\fR and \fIy\fR, as \fIx\fR and \fIy\fR are
evaluated after \fIout_w\fR and \fIout_h\fR.
.PP
The \fIx\fR and \fIy\fR parameters specify the expressions for the
position of the top-left corner of the output (non-cropped) area. They
are evaluated for each frame. If the evaluated value is not valid, it
is approximated to the nearest valid value.
.PP
The expression for \fIx\fR may depend on \fIy\fR, and the expression
for \fIy\fR may depend on \fIx\fR.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Crop area with size 100x100 at position (12,34).
.Sp
.Vb 1
\&        crop=100:100:12:34
.Ve
.Sp
Using named options, the example above becomes:
.Sp
.Vb 1
\&        crop=w=100:h=100:x=12:y=34
.Ve
.IP \(bu 4
Crop the central input area with size 100x100:
.Sp
.Vb 1
\&        crop=100:100
.Ve
.IP \(bu 4
Crop the central input area with size 2/3 of the input video:
.Sp
.Vb 1
\&        crop=2/3*in_w:2/3*in_h
.Ve
.IP \(bu 4
Crop the input video central square:
.Sp
.Vb 2
\&        crop=out_w=in_h
\&        crop=in_h
.Ve
.IP \(bu 4
Delimit the rectangle with the top-left corner placed at position
100:100 and the right-bottom corner corresponding to the right-bottom
corner of the input image.
.Sp
.Vb 1
\&        crop=in_w\-100:in_h\-100:100:100
.Ve
.IP \(bu 4
Crop 10 pixels from the left and right borders, and 20 pixels from
the top and bottom borders
.Sp
.Vb 1
\&        crop=in_w\-2*10:in_h\-2*20
.Ve
.IP \(bu 4
Keep only the bottom right quarter of the input image:
.Sp
.Vb 1
\&        crop=in_w/2:in_h/2:in_w/2:in_h/2
.Ve
.IP \(bu 4
Crop height for getting Greek harmony:
.Sp
.Vb 1
\&        crop=in_w:1/PHI*in_w
.Ve
.IP \(bu 4
Apply trembling effect:
.Sp
.Vb 1
\&        crop=in_w/2:in_h/2:(in_w\-out_w)/2+((in_w\-out_w)/2)*sin(n/10):(in_h\-out_h)/2 +((in_h\-out_h)/2)*sin(n/7)
.Ve
.IP \(bu 4
Apply erratic camera effect depending on timestamp:
.Sp
.Vb 1
\&        crop=in_w/2:in_h/2:(in_w\-out_w)/2+((in_w\-out_w)/2)*sin(t*10):(in_h\-out_h)/2 +((in_h\-out_h)/2)*sin(t*13)"
.Ve
.IP \(bu 4
Set x depending on the value of y:
.Sp
.Vb 1
\&        crop=in_w/2:in_h/2:y:10+10*sin(n/10)
.Ve
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the following commands:
.IP "\fBw, out_w\fR" 4
.IX Item "w, out_w"
.PD 0
.IP "\fBh, out_h\fR" 4
.IX Item "h, out_h"
.IP \fBx\fR 4
.IX Item "x"
.IP \fBy\fR 4
.IX Item "y"
.PD
Set width/height of the output video and the horizontal/vertical position
in the input video.
The command accepts the same syntax of the corresponding option.
.Sp
If the specified expression is not valid, it is kept at its current
value.
.SS cropdetect
.IX Subsection "cropdetect"
Auto-detect the crop size.
.PP
It calculates the necessary cropping parameters and prints the
recommended parameters via the logging system. The detected dimensions
correspond to the non-black area of the input video.
.PP
It accepts the following parameters:
.IP \fBlimit\fR 4
.IX Item "limit"
Set higher black value threshold, which can be optionally specified
from nothing (0) to everything (255 for 8\-bit based formats). An intensity
value greater to the set value is considered non-black. It defaults to 24.
You can also specify a value between 0.0 and 1.0 which will be scaled depending
on the bitdepth of the pixel format.
.IP \fBround\fR 4
.IX Item "round"
The value which the width/height should be divisible by. It defaults to
16. The offset is automatically adjusted to center the video. Use 2 to
get only even dimensions (needed for 4:2:2 video). 16 is best when
encoding to most video codecs.
.IP \fBskip\fR 4
.IX Item "skip"
Set the number of initial frames for which evaluation is skipped.
Default is 2. Range is 0 to INT_MAX.
.IP "\fBreset_count, reset\fR" 4
.IX Item "reset_count, reset"
Set the counter that determines after how many frames cropdetect will
reset the previously detected largest video area and start over to
detect the current optimal crop area. Default value is 0.
.Sp
This can be useful when channel logos distort the video area. 0
indicates 'never reset', and returns the largest area encountered during
playback.
.SS cue
.IX Subsection "cue"
Delay video filtering until a given wallclock timestamp. The filter first
passes on \fBpreroll\fR amount of frames, then it buffers at most
\&\fBbuffer\fR amount of frames and waits for the cue. After reaching the cue
it forwards the buffered frames and also any subsequent frames coming in its
input.
.PP
The filter can be used synchronize the output of multiple ffmpeg processes for
realtime output devices like decklink. By putting the delay in the filtering
chain and pre-buffering frames the process can pass on data to output almost
immediately after the target wallclock timestamp is reached.
.PP
Perfect frame accuracy cannot be guaranteed, but the result is good enough for
some use cases.
.IP \fBcue\fR 4
.IX Item "cue"
The cue timestamp expressed in a UNIX timestamp in microseconds. Default is 0.
.IP \fBpreroll\fR 4
.IX Item "preroll"
The duration of content to pass on as preroll expressed in seconds. Default is 0.
.IP \fBbuffer\fR 4
.IX Item "buffer"
The maximum duration of content to buffer before waiting for the cue expressed
in seconds. Default is 0.
.SS curves
.IX Subsection "curves"
Apply color adjustments using curves.
.PP
This filter is similar to the Adobe Photoshop and GIMP curves tools. Each
component (red, green and blue) has its values defined by \fIN\fR key points
tied from each other using a smooth curve. The x\-axis represents the pixel
values from the input frame, and the y\-axis the new pixel values to be set for
the output frame.
.PP
By default, a component curve is defined by the two points \fI(0;0)\fR and
\&\fI(1;1)\fR. This creates a straight line where each original pixel value is
"adjusted" to its own value, which means no change to the image.
.PP
The filter allows you to redefine these two points and add some more. A new
curve (using a natural cubic spline interpolation) will be define to pass
smoothly through all these new coordinates. The new defined points needs to be
strictly increasing over the x\-axis, and their \fIx\fR and \fIy\fR values must
be in the \fI[0;1]\fR interval.  If the computed curves happened to go outside
the vector spaces, the values will be clipped accordingly.
.PP
The filter accepts the following options:
.IP \fBpreset\fR 4
.IX Item "preset"
Select one of the available color presets. This option can be used in addition
to the \fBr\fR, \fBg\fR, \fBb\fR parameters; in this case, the later
options takes priority on the preset values.
Available presets are:
.RS 4
.IP \fBnone\fR 4
.IX Item "none"
.PD 0
.IP \fBcolor_negative\fR 4
.IX Item "color_negative"
.IP \fBcross_process\fR 4
.IX Item "cross_process"
.IP \fBdarker\fR 4
.IX Item "darker"
.IP \fBincrease_contrast\fR 4
.IX Item "increase_contrast"
.IP \fBlighter\fR 4
.IX Item "lighter"
.IP \fBlinear_contrast\fR 4
.IX Item "linear_contrast"
.IP \fBmedium_contrast\fR 4
.IX Item "medium_contrast"
.IP \fBnegative\fR 4
.IX Item "negative"
.IP \fBstrong_contrast\fR 4
.IX Item "strong_contrast"
.IP \fBvintage\fR 4
.IX Item "vintage"
.RE
.RS 4
.PD
.Sp
Default is \f(CW\*(C`none\*(C'\fR.
.RE
.IP "\fBmaster, m\fR" 4
.IX Item "master, m"
Set the master key points. These points will define a second pass mapping. It
is sometimes called a "luminance" or "value" mapping. It can be used with
\&\fBr\fR, \fBg\fR, \fBb\fR or \fBall\fR since it acts like a
post-processing LUT.
.IP "\fBred, r\fR" 4
.IX Item "red, r"
Set the key points for the red component.
.IP "\fBgreen, g\fR" 4
.IX Item "green, g"
Set the key points for the green component.
.IP "\fBblue, b\fR" 4
.IX Item "blue, b"
Set the key points for the blue component.
.IP \fBall\fR 4
.IX Item "all"
Set the key points for all components (not including master).
Can be used in addition to the other key points component
options. In this case, the unset component(s) will fallback on this
\&\fBall\fR setting.
.IP \fBpsfile\fR 4
.IX Item "psfile"
Specify a Photoshop curves file (\f(CW\*(C`.acv\*(C'\fR) to import the settings from.
.IP \fBplot\fR 4
.IX Item "plot"
Save Gnuplot script of the curves in specified file.
.PP
To avoid some filtergraph syntax conflicts, each key points list need to be
defined using the following syntax: \f(CW\*(C`x0/y0 x1/y1 x2/y2 ...\*(C'\fR.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports same \fBcommands\fR as options.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Increase slightly the middle level of blue:
.Sp
.Vb 1
\&        curves=blue=\*(Aq0/0 0.5/0.58 1/1\*(Aq
.Ve
.IP \(bu 4
Vintage effect:
.Sp
.Vb 1
\&        curves=r=\*(Aq0/0.11 .42/.51 1/0.95\*(Aq:g=\*(Aq0/0 0.50/0.48 1/1\*(Aq:b=\*(Aq0/0.22 .49/.44 1/0.8\*(Aq
.Ve
.Sp
Here we obtain the following coordinates for each components:
.RS 4
.IP \fIred\fR 4
.IX Item "red"
\&\f(CW\*(C`(0;0.11) (0.42;0.51) (1;0.95)\*(C'\fR
.IP \fIgreen\fR 4
.IX Item "green"
\&\f(CW\*(C`(0;0) (0.50;0.48) (1;1)\*(C'\fR
.IP \fIblue\fR 4
.IX Item "blue"
\&\f(CW\*(C`(0;0.22) (0.49;0.44) (1;0.80)\*(C'\fR
.RE
.RS 4
.RE
.IP \(bu 4
The previous example can also be achieved with the associated built-in preset:
.Sp
.Vb 1
\&        curves=preset=vintage
.Ve
.IP \(bu 4
Or simply:
.Sp
.Vb 1
\&        curves=vintage
.Ve
.IP \(bu 4
Use a Photoshop preset and redefine the points of the green component:
.Sp
.Vb 1
\&        curves=psfile=\*(AqMyCurvesPresets/purple.acv\*(Aq:green=\*(Aq0/0 0.45/0.53 1/1\*(Aq
.Ve
.IP \(bu 4
Check out the curves of the \f(CW\*(C`cross_process\*(C'\fR profile using \fBffmpeg\fR
and \fBgnuplot\fR:
.Sp
.Vb 2
\&        ffmpeg \-f lavfi \-i color \-vf curves=cross_process:plot=/tmp/curves.plt \-frames:v 1 \-f null \-
\&        gnuplot \-p /tmp/curves.plt
.Ve
.SS datascope
.IX Subsection "datascope"
Video data analysis filter.
.PP
This filter shows hexadecimal pixel values of part of video.
.PP
The filter accepts the following options:
.IP "\fBsize, s\fR" 4
.IX Item "size, s"
Set output video size.
.IP \fBx\fR 4
.IX Item "x"
Set x offset from where to pick pixels.
.IP \fBy\fR 4
.IX Item "y"
Set y offset from where to pick pixels.
.IP \fBmode\fR 4
.IX Item "mode"
Set scope mode, can be one of the following:
.RS 4
.IP \fBmono\fR 4
.IX Item "mono"
Draw hexadecimal pixel values with white color on black background.
.IP \fBcolor\fR 4
.IX Item "color"
Draw hexadecimal pixel values with input video pixel color on black
background.
.IP \fBcolor2\fR 4
.IX Item "color2"
Draw hexadecimal pixel values on color background picked from input video,
the text color is picked in such way so its always visible.
.RE
.RS 4
.RE
.IP \fBaxis\fR 4
.IX Item "axis"
Draw rows and columns numbers on left and top of video.
.IP \fBopacity\fR 4
.IX Item "opacity"
Set background opacity.
.IP \fBformat\fR 4
.IX Item "format"
Set display number format. Can be \f(CW\*(C`hex\*(C'\fR, or \f(CW\*(C`dec\*(C'\fR. Default is \f(CW\*(C`hex\*(C'\fR.
.IP \fBcomponents\fR 4
.IX Item "components"
Set pixel components to display. By default all pixel components are displayed.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports same \fBcommands\fR as options excluding \f(CW\*(C`size\*(C'\fR option.
.SS dblur
.IX Subsection "dblur"
Apply Directional blur filter.
.PP
The filter accepts the following options:
.IP \fBangle\fR 4
.IX Item "angle"
Set angle of directional blur. Default is \f(CW45\fR.
.IP \fBradius\fR 4
.IX Item "radius"
Set radius of directional blur. Default is \f(CW5\fR.
.IP \fBplanes\fR 4
.IX Item "planes"
Set which planes to filter. By default all planes are filtered.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports same \fBcommands\fR as options.
The command accepts the same syntax of the corresponding option.
.PP
If the specified expression is not valid, it is kept at its current
value.
.SS dctdnoiz
.IX Subsection "dctdnoiz"
Denoise frames using 2D DCT (frequency domain filtering).
.PP
This filter is not designed for real time.
.PP
The filter accepts the following options:
.IP "\fBsigma, s\fR" 4
.IX Item "sigma, s"
Set the noise sigma constant.
.Sp
This \fIsigma\fR defines a hard threshold of \f(CW\*(C`3 * sigma\*(C'\fR; every DCT
coefficient (absolute value) below this threshold with be dropped.
.Sp
If you need a more advanced filtering, see \fBexpr\fR.
.Sp
Default is \f(CW0\fR.
.IP \fBoverlap\fR 4
.IX Item "overlap"
Set number overlapping pixels for each block. Since the filter can be slow, you
may want to reduce this value, at the cost of a less effective filter and the
risk of various artefacts.
.Sp
If the overlapping value doesn't permit processing the whole input width or
height, a warning will be displayed and according borders won't be denoised.
.Sp
Default value is \fIblocksize\fR\-1, which is the best possible setting.
.IP "\fBexpr, e\fR" 4
.IX Item "expr, e"
Set the coefficient factor expression.
.Sp
For each coefficient of a DCT block, this expression will be evaluated as a
multiplier value for the coefficient.
.Sp
If this is option is set, the \fBsigma\fR option will be ignored.
.Sp
The absolute value of the coefficient can be accessed through the \fIc\fR
variable.
.IP \fBn\fR 4
.IX Item "n"
Set the \fIblocksize\fR using the number of bits. \f(CW\*(C`1<<\fR\f(CIn\fR\f(CW\*(C'\fR defines the
\&\fIblocksize\fR, which is the width and height of the processed blocks.
.Sp
The default value is \fI3\fR (8x8) and can be raised to \fI4\fR for a
\&\fIblocksize\fR of 16x16. Note that changing this setting has huge consequences
on the speed processing. Also, a larger block size does not necessarily means a
better de-noising.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.PP
Apply a denoise with a \fBsigma\fR of \f(CW4.5\fR:
.PP
.Vb 1
\&        dctdnoiz=4.5
.Ve
.PP
The same operation can be achieved using the expression system:
.PP
.Vb 1
\&        dctdnoiz=e=\*(Aqgte(c, 4.5*3)\*(Aq
.Ve
.PP
Violent denoise using a block size of \f(CW\*(C`16x16\*(C'\fR:
.PP
.Vb 1
\&        dctdnoiz=15:n=4
.Ve
.SS deband
.IX Subsection "deband"
Remove banding artifacts from input video.
It works by replacing banded pixels with average value of referenced pixels.
.PP
The filter accepts the following options:
.IP \fB1thr\fR 4
.IX Item "1thr"
.PD 0
.IP \fB2thr\fR 4
.IX Item "2thr"
.IP \fB3thr\fR 4
.IX Item "3thr"
.IP \fB4thr\fR 4
.IX Item "4thr"
.PD
Set banding detection threshold for each plane. Default is 0.02.
Valid range is 0.00003 to 0.5.
If difference between current pixel and reference pixel is less than threshold,
it will be considered as banded.
.IP "\fBrange, r\fR" 4
.IX Item "range, r"
Banding detection range in pixels. Default is 16. If positive, random number
in range 0 to set value will be used. If negative, exact absolute value
will be used.
The range defines square of four pixels around current pixel.
.IP "\fBdirection, d\fR" 4
.IX Item "direction, d"
Set direction in radians from which four pixel will be compared. If positive,
random direction from 0 to set direction will be picked. If negative, exact of
absolute value will be picked. For example direction 0, \-PI or \-2*PI radians
will pick only pixels on same row and \-PI/2 will pick only pixels on same
column.
.IP "\fBblur, b\fR" 4
.IX Item "blur, b"
If enabled, current pixel is compared with average value of all four
surrounding pixels. The default is enabled. If disabled current pixel is
compared with all four surrounding pixels. The pixel is considered banded
if only all four differences with surrounding pixels are less than threshold.
.IP "\fBcoupling, c\fR" 4
.IX Item "coupling, c"
If enabled, current pixel is changed if and only if all pixel components are banded,
e.g. banding detection threshold is triggered for all color components.
The default is disabled.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS deblock
.IX Subsection "deblock"
Remove blocking artifacts from input video.
.PP
The filter accepts the following options:
.IP \fBfilter\fR 4
.IX Item "filter"
Set filter type, can be \fIweak\fR or \fIstrong\fR. Default is \fIstrong\fR.
This controls what kind of deblocking is applied.
.IP \fBblock\fR 4
.IX Item "block"
Set size of block, allowed range is from 4 to 512. Default is \fI8\fR.
.IP \fBalpha\fR 4
.IX Item "alpha"
.PD 0
.IP \fBbeta\fR 4
.IX Item "beta"
.IP \fBgamma\fR 4
.IX Item "gamma"
.IP \fBdelta\fR 4
.IX Item "delta"
.PD
Set blocking detection thresholds. Allowed range is 0 to 1.
Defaults are: \fI0.098\fR for \fIalpha\fR and \fI0.05\fR for the rest.
Using higher threshold gives more deblocking strength.
Setting \fIalpha\fR controls threshold detection at exact edge of block.
Remaining options controls threshold detection near the edge. Each one for
below/above or left/right. Setting any of those to \fI0\fR disables
deblocking.
.IP \fBplanes\fR 4
.IX Item "planes"
Set planes to filter. Default is to filter all available planes.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Deblock using weak filter and block size of 4 pixels.
.Sp
.Vb 1
\&        deblock=filter=weak:block=4
.Ve
.IP \(bu 4
Deblock using strong filter, block size of 4 pixels and custom thresholds for
deblocking more edges.
.Sp
.Vb 1
\&        deblock=filter=strong:block=4:alpha=0.12:beta=0.07:gamma=0.06:delta=0.05
.Ve
.IP \(bu 4
Similar as above, but filter only first plane.
.Sp
.Vb 1
\&        deblock=filter=strong:block=4:alpha=0.12:beta=0.07:gamma=0.06:delta=0.05:planes=1
.Ve
.IP \(bu 4
Similar as above, but filter only second and third plane.
.Sp
.Vb 1
\&        deblock=filter=strong:block=4:alpha=0.12:beta=0.07:gamma=0.06:delta=0.05:planes=6
.Ve
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS decimate
.IX Subsection "decimate"
Drop duplicated frames at regular intervals.
.PP
The filter accepts the following options:
.IP \fBcycle\fR 4
.IX Item "cycle"
Set the number of frames from which one will be dropped. Setting this to
\&\fIN\fR means one frame in every batch of \fIN\fR frames will be dropped.
Default is \f(CW5\fR.
.IP \fBdupthresh\fR 4
.IX Item "dupthresh"
Set the threshold for duplicate detection. If the difference metric for a frame
is less than or equal to this value, then it is declared as duplicate. Default
is \f(CW1.1\fR
.IP \fBscthresh\fR 4
.IX Item "scthresh"
Set scene change threshold. Default is \f(CW15\fR.
.IP \fBblockx\fR 4
.IX Item "blockx"
.PD 0
.IP \fBblocky\fR 4
.IX Item "blocky"
.PD
Set the size of the x and y\-axis blocks used during metric calculations.
Larger blocks give better noise suppression, but also give worse detection of
small movements. Must be a power of two. Default is \f(CW32\fR.
.IP \fBppsrc\fR 4
.IX Item "ppsrc"
Mark main input as a pre-processed input and activate clean source input
stream. This allows the input to be pre-processed with various filters to help
the metrics calculation while keeping the frame selection lossless. When set to
\&\f(CW1\fR, the first stream is for the pre-processed input, and the second
stream is the clean source from where the kept frames are chosen. Default is
\&\f(CW0\fR.
.IP \fBchroma\fR 4
.IX Item "chroma"
Set whether or not chroma is considered in the metric calculations. Default is
\&\f(CW1\fR.
.SS deconvolve
.IX Subsection "deconvolve"
Apply 2D deconvolution of video stream in frequency domain using second stream
as impulse.
.PP
The filter accepts the following options:
.IP \fBplanes\fR 4
.IX Item "planes"
Set which planes to process.
.IP \fBimpulse\fR 4
.IX Item "impulse"
Set which impulse video frames will be processed, can be \fIfirst\fR
or \fIall\fR. Default is \fIall\fR.
.IP \fBnoise\fR 4
.IX Item "noise"
Set noise when doing divisions. Default is \fI0.0000001\fR. Useful when width
and height are not same and not power of 2 or if stream prior to convolving
had noise.
.PP
The \f(CW\*(C`deconvolve\*(C'\fR filter also supports the \fBframesync\fR options.
.SS dedot
.IX Subsection "dedot"
Reduce cross-luminance (dot-crawl) and cross-color (rainbows) from video.
.PP
It accepts the following options:
.IP \fBm\fR 4
.IX Item "m"
Set mode of operation. Can be combination of \fIdotcrawl\fR for cross-luminance reduction and/or
\&\fIrainbows\fR for cross-color reduction.
.IP \fBlt\fR 4
.IX Item "lt"
Set spatial luma threshold. Lower values increases reduction of cross-luminance.
.IP \fBtl\fR 4
.IX Item "tl"
Set tolerance for temporal luma. Higher values increases reduction of cross-luminance.
.IP \fBtc\fR 4
.IX Item "tc"
Set tolerance for chroma temporal variation. Higher values increases reduction of cross-color.
.IP \fBct\fR 4
.IX Item "ct"
Set temporal chroma threshold. Lower values increases reduction of cross-color.
.SS deflate
.IX Subsection "deflate"
Apply deflate effect to the video.
.PP
This filter replaces the pixel by the local(3x3) average by taking into account
only values lower than the pixel.
.PP
It accepts the following options:
.IP \fBthreshold0\fR 4
.IX Item "threshold0"
.PD 0
.IP \fBthreshold1\fR 4
.IX Item "threshold1"
.IP \fBthreshold2\fR 4
.IX Item "threshold2"
.IP \fBthreshold3\fR 4
.IX Item "threshold3"
.PD
Limit the maximum change for each plane, default is 65535.
If 0, plane will remain unchanged.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS deflicker
.IX Subsection "deflicker"
Remove temporal frame luminance variations.
.PP
It accepts the following options:
.IP "\fBsize, s\fR" 4
.IX Item "size, s"
Set moving-average filter size in frames. Default is 5. Allowed range is 2 \- 129.
.IP "\fBmode, m\fR" 4
.IX Item "mode, m"
Set averaging mode to smooth temporal luminance variations.
.Sp
Available values are:
.RS 4
.IP \fBam\fR 4
.IX Item "am"
Arithmetic mean
.IP \fBgm\fR 4
.IX Item "gm"
Geometric mean
.IP \fBhm\fR 4
.IX Item "hm"
Harmonic mean
.IP \fBqm\fR 4
.IX Item "qm"
Quadratic mean
.IP \fBcm\fR 4
.IX Item "cm"
Cubic mean
.IP \fBpm\fR 4
.IX Item "pm"
Power mean
.IP \fBmedian\fR 4
.IX Item "median"
Median
.RE
.RS 4
.RE
.IP \fBbypass\fR 4
.IX Item "bypass"
Do not actually modify frame. Useful when one only wants metadata.
.SS dejudder
.IX Subsection "dejudder"
Remove judder produced by partially interlaced telecined content.
.PP
Judder can be introduced, for instance, by \fBpullup\fR filter. If the original
source was partially telecined content then the output of \f(CW\*(C`pullup,dejudder\*(C'\fR
will have a variable frame rate. May change the recorded frame rate of the
container. Aside from that change, this filter will not affect constant frame
rate video.
.PP
The option available in this filter is:
.IP \fBcycle\fR 4
.IX Item "cycle"
Specify the length of the window over which the judder repeats.
.Sp
Accepts any integer greater than 1. Useful values are:
.RS 4
.IP \fB4\fR 4
.IX Item "4"
If the original was telecined from 24 to 30 fps (Film to NTSC).
.IP \fB5\fR 4
.IX Item "5"
If the original was telecined from 25 to 30 fps (PAL to NTSC).
.IP \fB20\fR 4
.IX Item "20"
If a mixture of the two.
.RE
.RS 4
.Sp
The default is \fB4\fR.
.RE
.SS delogo
.IX Subsection "delogo"
Suppress a TV station logo by a simple interpolation of the surrounding
pixels. Just set a rectangle covering the logo and watch it disappear
(and sometimes something even uglier appear \- your mileage may vary).
.PP
It accepts the following parameters:
.IP \fBx\fR 4
.IX Item "x"
.PD 0
.IP \fBy\fR 4
.IX Item "y"
.PD
Specify the top left corner coordinates of the logo. They must be
specified.
.IP \fBw\fR 4
.IX Item "w"
.PD 0
.IP \fBh\fR 4
.IX Item "h"
.PD
Specify the width and height of the logo to clear. They must be
specified.
.IP \fBshow\fR 4
.IX Item "show"
When set to 1, a green rectangle is drawn on the screen to simplify
finding the right \fIx\fR, \fIy\fR, \fIw\fR, and \fIh\fR parameters.
The default value is 0.
.Sp
The rectangle is drawn on the outermost pixels which will be (partly)
replaced with interpolated values. The values of the next pixels
immediately outside this rectangle in each direction will be used to
compute the interpolated pixel values inside the rectangle.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Set a rectangle covering the area with top left corner coordinates 0,0
and size 100x77:
.Sp
.Vb 1
\&        delogo=x=0:y=0:w=100:h=77
.Ve
.SS derain
.IX Subsection "derain"
Remove the rain in the input image/video by applying the derain methods based on
convolutional neural networks. Supported models:
.IP \(bu 4
Recurrent Squeeze-and-Excitation Context Aggregation Net (RESCAN).
See <\fBhttp://openaccess.thecvf.com/content_ECCV_2018/papers/Xia_Li_Recurrent_Squeeze\-and\-Excitation_Context_ECCV_2018_paper.pdf\fR>.
.PP
Training as well as model generation scripts are provided in
the repository at <\fBhttps://github.com/XueweiMeng/derain_filter.git\fR>.
.PP
Native model files (.model) can be generated from TensorFlow model
files (.pb) by using tools/python/convert.py
.PP
The filter accepts the following options:
.IP \fBfilter_type\fR 4
.IX Item "filter_type"
Specify which filter to use. This option accepts the following values:
.RS 4
.IP \fBderain\fR 4
.IX Item "derain"
Derain filter. To conduct derain filter, you need to use a derain model.
.IP \fBdehaze\fR 4
.IX Item "dehaze"
Dehaze filter. To conduct dehaze filter, you need to use a dehaze model.
.RE
.RS 4
.Sp
Default value is \fBderain\fR.
.RE
.IP \fBdnn_backend\fR 4
.IX Item "dnn_backend"
Specify which DNN backend to use for model loading and execution. This option accepts
the following values:
.RS 4
.IP \fBnative\fR 4
.IX Item "native"
Native implementation of DNN loading and execution.
.IP \fBtensorflow\fR 4
.IX Item "tensorflow"
TensorFlow backend. To enable this backend you
need to install the TensorFlow for C library (see
<\fBhttps://www.tensorflow.org/install/install_c\fR>) and configure FFmpeg with
\&\f(CW\*(C`\-\-enable\-libtensorflow\*(C'\fR
.RE
.RS 4
.Sp
Default value is \fBnative\fR.
.RE
.IP \fBmodel\fR 4
.IX Item "model"
Set path to model file specifying network architecture and its parameters.
Note that different backends use different file formats. TensorFlow and native
backend can load files for only its format.
.PP
It can also be finished with \fBdnn_processing\fR filter.
.SS deshake
.IX Subsection "deshake"
Attempt to fix small changes in horizontal and/or vertical shift. This
filter helps remove camera shake from hand-holding a camera, bumping a
tripod, moving on a vehicle, etc.
.PP
The filter accepts the following options:
.IP \fBx\fR 4
.IX Item "x"
.PD 0
.IP \fBy\fR 4
.IX Item "y"
.IP \fBw\fR 4
.IX Item "w"
.IP \fBh\fR 4
.IX Item "h"
.PD
Specify a rectangular area where to limit the search for motion
vectors.
If desired the search for motion vectors can be limited to a
rectangular area of the frame defined by its top left corner, width
and height. These parameters have the same meaning as the drawbox
filter which can be used to visualise the position of the bounding
box.
.Sp
This is useful when simultaneous movement of subjects within the frame
might be confused for camera motion by the motion vector search.
.Sp
If any or all of \fIx\fR, \fIy\fR, \fIw\fR and \fIh\fR are set to \-1
then the full frame is used. This allows later options to be set
without specifying the bounding box for the motion vector search.
.Sp
Default \- search the whole frame.
.IP \fBrx\fR 4
.IX Item "rx"
.PD 0
.IP \fBry\fR 4
.IX Item "ry"
.PD
Specify the maximum extent of movement in x and y directions in the
range 0\-64 pixels. Default 16.
.IP \fBedge\fR 4
.IX Item "edge"
Specify how to generate pixels to fill blanks at the edge of the
frame. Available values are:
.RS 4
.IP "\fBblank, 0\fR" 4
.IX Item "blank, 0"
Fill zeroes at blank locations
.IP "\fBoriginal, 1\fR" 4
.IX Item "original, 1"
Original image at blank locations
.IP "\fBclamp, 2\fR" 4
.IX Item "clamp, 2"
Extruded edge value at blank locations
.IP "\fBmirror, 3\fR" 4
.IX Item "mirror, 3"
Mirrored edge at blank locations
.RE
.RS 4
.Sp
Default value is \fBmirror\fR.
.RE
.IP \fBblocksize\fR 4
.IX Item "blocksize"
Specify the blocksize to use for motion search. Range 4\-128 pixels,
default 8.
.IP \fBcontrast\fR 4
.IX Item "contrast"
Specify the contrast threshold for blocks. Only blocks with more than
the specified contrast (difference between darkest and lightest
pixels) will be considered. Range 1\-255, default 125.
.IP \fBsearch\fR 4
.IX Item "search"
Specify the search strategy. Available values are:
.RS 4
.IP "\fBexhaustive, 0\fR" 4
.IX Item "exhaustive, 0"
Set exhaustive search
.IP "\fBless, 1\fR" 4
.IX Item "less, 1"
Set less exhaustive search.
.RE
.RS 4
.Sp
Default value is \fBexhaustive\fR.
.RE
.IP \fBfilename\fR 4
.IX Item "filename"
If set then a detailed log of the motion search is written to the
specified file.
.SS despill
.IX Subsection "despill"
Remove unwanted contamination of foreground colors, caused by reflected color of
greenscreen or bluescreen.
.PP
This filter accepts the following options:
.IP \fBtype\fR 4
.IX Item "type"
Set what type of despill to use.
.IP \fBmix\fR 4
.IX Item "mix"
Set how spillmap will be generated.
.IP \fBexpand\fR 4
.IX Item "expand"
Set how much to get rid of still remaining spill.
.IP \fBred\fR 4
.IX Item "red"
Controls amount of red in spill area.
.IP \fBgreen\fR 4
.IX Item "green"
Controls amount of green in spill area.
Should be \-1 for greenscreen.
.IP \fBblue\fR 4
.IX Item "blue"
Controls amount of blue in spill area.
Should be \-1 for bluescreen.
.IP \fBbrightness\fR 4
.IX Item "brightness"
Controls brightness of spill area, preserving colors.
.IP \fBalpha\fR 4
.IX Item "alpha"
Modify alpha from generated spillmap.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS detelecine
.IX Subsection "detelecine"
Apply an exact inverse of the telecine operation. It requires a predefined
pattern specified using the pattern option which must be the same as that passed
to the telecine filter.
.PP
This filter accepts the following options:
.IP \fBfirst_field\fR 4
.IX Item "first_field"
.RS 4
.PD 0
.IP "\fBtop, t\fR" 4
.IX Item "top, t"
.PD
top field first
.IP "\fBbottom, b\fR" 4
.IX Item "bottom, b"
bottom field first
The default value is \f(CW\*(C`top\*(C'\fR.
.RE
.RS 4
.RE
.IP \fBpattern\fR 4
.IX Item "pattern"
A string of numbers representing the pulldown pattern you wish to apply.
The default value is \f(CW23\fR.
.IP \fBstart_frame\fR 4
.IX Item "start_frame"
A number representing position of the first frame with respect to the telecine
pattern. This is to be used if the stream is cut. The default value is \f(CW0\fR.
.SS dilation
.IX Subsection "dilation"
Apply dilation effect to the video.
.PP
This filter replaces the pixel by the local(3x3) maximum.
.PP
It accepts the following options:
.IP \fBthreshold0\fR 4
.IX Item "threshold0"
.PD 0
.IP \fBthreshold1\fR 4
.IX Item "threshold1"
.IP \fBthreshold2\fR 4
.IX Item "threshold2"
.IP \fBthreshold3\fR 4
.IX Item "threshold3"
.PD
Limit the maximum change for each plane, default is 65535.
If 0, plane will remain unchanged.
.IP \fBcoordinates\fR 4
.IX Item "coordinates"
Flag which specifies the pixel to refer to. Default is 255 i.e. all eight
pixels are used.
.Sp
Flags to local 3x3 coordinates maps like this:
.Sp
.Vb 3
\&    1 2 3
\&    4   5
\&    6 7 8
.Ve
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS displace
.IX Subsection "displace"
Displace pixels as indicated by second and third input stream.
.PP
It takes three input streams and outputs one stream, the first input is the
source, and second and third input are displacement maps.
.PP
The second input specifies how much to displace pixels along the
x\-axis, while the third input specifies how much to displace pixels
along the y\-axis.
If one of displacement map streams terminates, last frame from that
displacement map will be used.
.PP
Note that once generated, displacements maps can be reused over and over again.
.PP
A description of the accepted options follows.
.IP \fBedge\fR 4
.IX Item "edge"
Set displace behavior for pixels that are out of range.
.Sp
Available values are:
.RS 4
.IP \fBblank\fR 4
.IX Item "blank"
Missing pixels are replaced by black pixels.
.IP \fBsmear\fR 4
.IX Item "smear"
Adjacent pixels will spread out to replace missing pixels.
.IP \fBwrap\fR 4
.IX Item "wrap"
Out of range pixels are wrapped so they point to pixels of other side.
.IP \fBmirror\fR 4
.IX Item "mirror"
Out of range pixels will be replaced with mirrored pixels.
.RE
.RS 4
.Sp
Default is \fBsmear\fR.
.RE
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Add ripple effect to rgb input of video size hd720:
.Sp
.Vb 1
\&        ffmpeg \-i INPUT \-f lavfi \-i nullsrc=s=hd720,lutrgb=128:128:128 \-f lavfi \-i nullsrc=s=hd720,geq=\*(Aqr=128+30*sin(2*PI*X/400+T):g=128+30*sin(2*PI*X/400+T):b=128+30*sin(2*PI*X/400+T)\*(Aq \-lavfi \*(Aq[0][1][2]displace\*(Aq OUTPUT
.Ve
.IP \(bu 4
Add wave effect to rgb input of video size hd720:
.Sp
.Vb 1
\&        ffmpeg \-i INPUT \-f lavfi \-i nullsrc=hd720,geq=\*(Aqr=128+80*(sin(sqrt((X\-W/2)*(X\-W/2)+(Y\-H/2)*(Y\-H/2))/220*2*PI+T)):g=128+80*(sin(sqrt((X\-W/2)*(X\-W/2)+(Y\-H/2)*(Y\-H/2))/220*2*PI+T)):b=128+80*(sin(sqrt((X\-W/2)*(X\-W/2)+(Y\-H/2)*(Y\-H/2))/220*2*PI+T))\*(Aq \-lavfi \*(Aq[1]split[x][y],[0][x][y]displace\*(Aq OUTPUT
.Ve
.SS dnn_processing
.IX Subsection "dnn_processing"
Do image processing with deep neural networks. It works together with another filter
which converts the pixel format of the Frame to what the dnn network requires.
.PP
The filter accepts the following options:
.IP \fBdnn_backend\fR 4
.IX Item "dnn_backend"
Specify which DNN backend to use for model loading and execution. This option accepts
the following values:
.RS 4
.IP \fBnative\fR 4
.IX Item "native"
Native implementation of DNN loading and execution.
.IP \fBtensorflow\fR 4
.IX Item "tensorflow"
TensorFlow backend. To enable this backend you
need to install the TensorFlow for C library (see
<\fBhttps://www.tensorflow.org/install/install_c\fR>) and configure FFmpeg with
\&\f(CW\*(C`\-\-enable\-libtensorflow\*(C'\fR
.IP \fBopenvino\fR 4
.IX Item "openvino"
OpenVINO backend. To enable this backend you
need to build and install the OpenVINO for C library (see
<\fBhttps://github.com/openvinotoolkit/openvino/blob/master/build\-instruction.md\fR>) and configure FFmpeg with
\&\f(CW\*(C`\-\-enable\-libopenvino\*(C'\fR (\-\-extra\-cflags=\-I... \-\-extra\-ldflags=\-L... might
be needed if the header files and libraries are not installed into system path)
.RE
.RS 4
.Sp
Default value is \fBnative\fR.
.RE
.IP \fBmodel\fR 4
.IX Item "model"
Set path to model file specifying network architecture and its parameters.
Note that different backends use different file formats. TensorFlow, OpenVINO and native
backend can load files for only its format.
.Sp
Native model file (.model) can be generated from TensorFlow model file (.pb) by using tools/python/convert.py
.IP \fBinput\fR 4
.IX Item "input"
Set the input name of the dnn network.
.IP \fBoutput\fR 4
.IX Item "output"
Set the output name of the dnn network.
.IP \fBasync\fR 4
.IX Item "async"
use DNN async execution if set (default: set),
roll back to sync execution if the backend does not support async.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Remove rain in rgb24 frame with can.pb (see \fBderain\fR filter):
.Sp
.Vb 1
\&        ./ffmpeg \-i rain.jpg \-vf format=rgb24,dnn_processing=dnn_backend=tensorflow:model=can.pb:input=x:output=y derain.jpg
.Ve
.IP \(bu 4
Halve the pixel value of the frame with format gray32f:
.Sp
.Vb 1
\&        ffmpeg \-i input.jpg \-vf format=grayf32,dnn_processing=model=halve_gray_float.model:input=dnn_in:output=dnn_out:dnn_backend=native \-y out.native.png
.Ve
.IP \(bu 4
Handle the Y channel with srcnn.pb (see \fBsr\fR filter) for frame with yuv420p (planar YUV formats supported):
.Sp
.Vb 1
\&        ./ffmpeg \-i 480p.jpg \-vf format=yuv420p,scale=w=iw*2:h=ih*2,dnn_processing=dnn_backend=tensorflow:model=srcnn.pb:input=x:output=y \-y srcnn.jpg
.Ve
.IP \(bu 4
Handle the Y channel with espcn.pb (see \fBsr\fR filter), which changes frame size, for format yuv420p (planar YUV formats supported):
.Sp
.Vb 1
\&        ./ffmpeg \-i 480p.jpg \-vf format=yuv420p,dnn_processing=dnn_backend=tensorflow:model=espcn.pb:input=x:output=y \-y tmp.espcn.jpg
.Ve
.SS drawbox
.IX Subsection "drawbox"
Draw a colored box on the input image.
.PP
It accepts the following parameters:
.IP \fBx\fR 4
.IX Item "x"
.PD 0
.IP \fBy\fR 4
.IX Item "y"
.PD
The expressions which specify the top left corner coordinates of the box. It defaults to 0.
.IP "\fBwidth, w\fR" 4
.IX Item "width, w"
.PD 0
.IP "\fBheight, h\fR" 4
.IX Item "height, h"
.PD
The expressions which specify the width and height of the box; if 0 they are interpreted as
the input width and height. It defaults to 0.
.IP "\fBcolor, c\fR" 4
.IX Item "color, c"
Specify the color of the box to write. For the general syntax of this option,
check the \fB"Color" section in the ffmpeg-utils manual\fR. If the special
value \f(CW\*(C`invert\*(C'\fR is used, the box edge color is the same as the
video with inverted luma.
.IP "\fBthickness, t\fR" 4
.IX Item "thickness, t"
The expression which sets the thickness of the box edge.
A value of \f(CW\*(C`fill\*(C'\fR will create a filled box. Default value is \f(CW3\fR.
.Sp
See below for the list of accepted constants.
.IP \fBreplace\fR 4
.IX Item "replace"
Applicable if the input has alpha. With value \f(CW1\fR, the pixels of the painted box
will overwrite the video's color and alpha pixels.
Default is \f(CW0\fR, which composites the box onto the input, leaving the video's alpha intact.
.PP
The parameters for \fIx\fR, \fIy\fR, \fIw\fR and \fIh\fR and \fIt\fR are expressions containing the
following constants:
.IP \fBdar\fR 4
.IX Item "dar"
The input display aspect ratio, it is the same as (\fIw\fR / \fIh\fR) * \fIsar\fR.
.IP \fBhsub\fR 4
.IX Item "hsub"
.PD 0
.IP \fBvsub\fR 4
.IX Item "vsub"
.PD
horizontal and vertical chroma subsample values. For example for the
pixel format "yuv422p" \fIhsub\fR is 2 and \fIvsub\fR is 1.
.IP "\fBin_h, ih\fR" 4
.IX Item "in_h, ih"
.PD 0
.IP "\fBin_w, iw\fR" 4
.IX Item "in_w, iw"
.PD
The input width and height.
.IP \fBsar\fR 4
.IX Item "sar"
The input sample aspect ratio.
.IP \fBx\fR 4
.IX Item "x"
.PD 0
.IP \fBy\fR 4
.IX Item "y"
.PD
The x and y offset coordinates where the box is drawn.
.IP \fBw\fR 4
.IX Item "w"
.PD 0
.IP \fBh\fR 4
.IX Item "h"
.PD
The width and height of the drawn box.
.IP \fBt\fR 4
.IX Item "t"
The thickness of the drawn box.
.Sp
These constants allow the \fIx\fR, \fIy\fR, \fIw\fR, \fIh\fR and \fIt\fR expressions to refer to
each other, so you may for example specify \f(CW\*(C`y=x/dar\*(C'\fR or \f(CW\*(C`h=w/dar\*(C'\fR.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Draw a black box around the edge of the input image:
.Sp
.Vb 1
\&        drawbox
.Ve
.IP \(bu 4
Draw a box with color red and an opacity of 50%:
.Sp
.Vb 1
\&        drawbox=10:20:200:60:red@0.5
.Ve
.Sp
The previous example can be specified as:
.Sp
.Vb 1
\&        drawbox=x=10:y=20:w=200:h=60:color=red@0.5
.Ve
.IP \(bu 4
Fill the box with pink color:
.Sp
.Vb 1
\&        drawbox=x=10:y=10:w=100:h=100:color=pink@0.5:t=fill
.Ve
.IP \(bu 4
Draw a 2\-pixel red 2.40:1 mask:
.Sp
.Vb 1
\&        drawbox=x=\-t:y=0.5*(ih\-iw/2.4)\-t:w=iw+t*2:h=iw/2.4+t*2:t=2:c=red
.Ve
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports same commands as options.
The command accepts the same syntax of the corresponding option.
.PP
If the specified expression is not valid, it is kept at its current
value.
.SS drawgraph
.IX Subsection "drawgraph"
Draw a graph using input video metadata.
.PP
It accepts the following parameters:
.IP \fBm1\fR 4
.IX Item "m1"
Set 1st frame metadata key from which metadata values will be used to draw a graph.
.IP \fBfg1\fR 4
.IX Item "fg1"
Set 1st foreground color expression.
.IP \fBm2\fR 4
.IX Item "m2"
Set 2nd frame metadata key from which metadata values will be used to draw a graph.
.IP \fBfg2\fR 4
.IX Item "fg2"
Set 2nd foreground color expression.
.IP \fBm3\fR 4
.IX Item "m3"
Set 3rd frame metadata key from which metadata values will be used to draw a graph.
.IP \fBfg3\fR 4
.IX Item "fg3"
Set 3rd foreground color expression.
.IP \fBm4\fR 4
.IX Item "m4"
Set 4th frame metadata key from which metadata values will be used to draw a graph.
.IP \fBfg4\fR 4
.IX Item "fg4"
Set 4th foreground color expression.
.IP \fBmin\fR 4
.IX Item "min"
Set minimal value of metadata value.
.IP \fBmax\fR 4
.IX Item "max"
Set maximal value of metadata value.
.IP \fBbg\fR 4
.IX Item "bg"
Set graph background color. Default is white.
.IP \fBmode\fR 4
.IX Item "mode"
Set graph mode.
.Sp
Available values for mode is:
.RS 4
.IP \fBbar\fR 4
.IX Item "bar"
.PD 0
.IP \fBdot\fR 4
.IX Item "dot"
.IP \fBline\fR 4
.IX Item "line"
.RE
.RS 4
.PD
.Sp
Default is \f(CW\*(C`line\*(C'\fR.
.RE
.IP \fBslide\fR 4
.IX Item "slide"
Set slide mode.
.Sp
Available values for slide is:
.RS 4
.IP \fBframe\fR 4
.IX Item "frame"
Draw new frame when right border is reached.
.IP \fBreplace\fR 4
.IX Item "replace"
Replace old columns with new ones.
.IP \fBscroll\fR 4
.IX Item "scroll"
Scroll from right to left.
.IP \fBrscroll\fR 4
.IX Item "rscroll"
Scroll from left to right.
.IP \fBpicture\fR 4
.IX Item "picture"
Draw single picture.
.RE
.RS 4
.Sp
Default is \f(CW\*(C`frame\*(C'\fR.
.RE
.IP \fBsize\fR 4
.IX Item "size"
Set size of graph video. For the syntax of this option, check the
\&\fB"Video size" section in the ffmpeg-utils manual\fR.
The default value is \f(CW\*(C`900x256\*(C'\fR.
.IP "\fBrate, r\fR" 4
.IX Item "rate, r"
Set the output frame rate. Default value is \f(CW25\fR.
.Sp
The foreground color expressions can use the following variables:
.RS 4
.IP \fBMIN\fR 4
.IX Item "MIN"
Minimal value of metadata value.
.IP \fBMAX\fR 4
.IX Item "MAX"
Maximal value of metadata value.
.IP \fBVAL\fR 4
.IX Item "VAL"
Current metadata key value.
.RE
.RS 4
.Sp
The color is defined as 0xAABBGGRR.
.RE
.PP
Example using metadata from \fBsignalstats\fR filter:
.PP
.Vb 1
\&        signalstats,drawgraph=lavfi.signalstats.YAVG:min=0:max=255
.Ve
.PP
Example using metadata from \fBebur128\fR filter:
.PP
.Vb 1
\&        ebur128=metadata=1,adrawgraph=lavfi.r128.M:min=\-120:max=5
.Ve
.SS drawgrid
.IX Subsection "drawgrid"
Draw a grid on the input image.
.PP
It accepts the following parameters:
.IP \fBx\fR 4
.IX Item "x"
.PD 0
.IP \fBy\fR 4
.IX Item "y"
.PD
The expressions which specify the coordinates of some point of grid intersection (meant to configure offset). Both default to 0.
.IP "\fBwidth, w\fR" 4
.IX Item "width, w"
.PD 0
.IP "\fBheight, h\fR" 4
.IX Item "height, h"
.PD
The expressions which specify the width and height of the grid cell, if 0 they are interpreted as the
input width and height, respectively, minus \f(CW\*(C`thickness\*(C'\fR, so image gets
framed. Default to 0.
.IP "\fBcolor, c\fR" 4
.IX Item "color, c"
Specify the color of the grid. For the general syntax of this option,
check the \fB"Color" section in the ffmpeg-utils manual\fR. If the special
value \f(CW\*(C`invert\*(C'\fR is used, the grid color is the same as the
video with inverted luma.
.IP "\fBthickness, t\fR" 4
.IX Item "thickness, t"
The expression which sets the thickness of the grid line. Default value is \f(CW1\fR.
.Sp
See below for the list of accepted constants.
.IP \fBreplace\fR 4
.IX Item "replace"
Applicable if the input has alpha. With \f(CW1\fR the pixels of the painted grid
will overwrite the video's color and alpha pixels.
Default is \f(CW0\fR, which composites the grid onto the input, leaving the video's alpha intact.
.PP
The parameters for \fIx\fR, \fIy\fR, \fIw\fR and \fIh\fR and \fIt\fR are expressions containing the
following constants:
.IP \fBdar\fR 4
.IX Item "dar"
The input display aspect ratio, it is the same as (\fIw\fR / \fIh\fR) * \fIsar\fR.
.IP \fBhsub\fR 4
.IX Item "hsub"
.PD 0
.IP \fBvsub\fR 4
.IX Item "vsub"
.PD
horizontal and vertical chroma subsample values. For example for the
pixel format "yuv422p" \fIhsub\fR is 2 and \fIvsub\fR is 1.
.IP "\fBin_h, ih\fR" 4
.IX Item "in_h, ih"
.PD 0
.IP "\fBin_w, iw\fR" 4
.IX Item "in_w, iw"
.PD
The input grid cell width and height.
.IP \fBsar\fR 4
.IX Item "sar"
The input sample aspect ratio.
.IP \fBx\fR 4
.IX Item "x"
.PD 0
.IP \fBy\fR 4
.IX Item "y"
.PD
The x and y coordinates of some point of grid intersection (meant to configure offset).
.IP \fBw\fR 4
.IX Item "w"
.PD 0
.IP \fBh\fR 4
.IX Item "h"
.PD
The width and height of the drawn cell.
.IP \fBt\fR 4
.IX Item "t"
The thickness of the drawn cell.
.Sp
These constants allow the \fIx\fR, \fIy\fR, \fIw\fR, \fIh\fR and \fIt\fR expressions to refer to
each other, so you may for example specify \f(CW\*(C`y=x/dar\*(C'\fR or \f(CW\*(C`h=w/dar\*(C'\fR.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Draw a grid with cell 100x100 pixels, thickness 2 pixels, with color red and an opacity of 50%:
.Sp
.Vb 1
\&        drawgrid=width=100:height=100:thickness=2:color=red@0.5
.Ve
.IP \(bu 4
Draw a white 3x3 grid with an opacity of 50%:
.Sp
.Vb 1
\&        drawgrid=w=iw/3:h=ih/3:t=2:c=white@0.5
.Ve
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports same commands as options.
The command accepts the same syntax of the corresponding option.
.PP
If the specified expression is not valid, it is kept at its current
value.
.SS drawtext
.IX Subsection "drawtext"
Draw a text string or text from a specified file on top of a video, using the
libfreetype library.
.PP
To enable compilation of this filter, you need to configure FFmpeg with
\&\f(CW\*(C`\-\-enable\-libfreetype\*(C'\fR.
To enable default font fallback and the \fIfont\fR option you need to
configure FFmpeg with \f(CW\*(C`\-\-enable\-libfontconfig\*(C'\fR.
To enable the \fItext_shaping\fR option, you need to configure FFmpeg with
\&\f(CW\*(C`\-\-enable\-libfribidi\*(C'\fR.
.PP
\fISyntax\fR
.IX Subsection "Syntax"
.PP
It accepts the following parameters:
.IP \fBbox\fR 4
.IX Item "box"
Used to draw a box around text using the background color.
The value must be either 1 (enable) or 0 (disable).
The default value of \fIbox\fR is 0.
.IP \fBboxborderw\fR 4
.IX Item "boxborderw"
Set the width of the border to be drawn around the box using \fIboxcolor\fR.
The default value of \fIboxborderw\fR is 0.
.IP \fBboxcolor\fR 4
.IX Item "boxcolor"
The color to be used for drawing box around text. For the syntax of this
option, check the \fB"Color" section in the ffmpeg-utils manual\fR.
.Sp
The default value of \fIboxcolor\fR is "white".
.IP \fBline_spacing\fR 4
.IX Item "line_spacing"
Set the line spacing in pixels of the border to be drawn around the box using \fIbox\fR.
The default value of \fIline_spacing\fR is 0.
.IP \fBborderw\fR 4
.IX Item "borderw"
Set the width of the border to be drawn around the text using \fIbordercolor\fR.
The default value of \fIborderw\fR is 0.
.IP \fBbordercolor\fR 4
.IX Item "bordercolor"
Set the color to be used for drawing border around text. For the syntax of this
option, check the \fB"Color" section in the ffmpeg-utils manual\fR.
.Sp
The default value of \fIbordercolor\fR is "black".
.IP \fBexpansion\fR 4
.IX Item "expansion"
Select how the \fItext\fR is expanded. Can be either \f(CW\*(C`none\*(C'\fR,
\&\f(CW\*(C`strftime\*(C'\fR (deprecated) or
\&\f(CW\*(C`normal\*(C'\fR (default). See the \fBdrawtext_expansion, Text expansion\fR section
below for details.
.IP \fBbasetime\fR 4
.IX Item "basetime"
Set a start time for the count. Value is in microseconds. Only applied
in the deprecated strftime expansion mode. To emulate in normal expansion
mode use the \f(CW\*(C`pts\*(C'\fR function, supplying the start time (in seconds)
as the second argument.
.IP \fBfix_bounds\fR 4
.IX Item "fix_bounds"
If true, check and fix text coords to avoid clipping.
.IP \fBfontcolor\fR 4
.IX Item "fontcolor"
The color to be used for drawing fonts. For the syntax of this option, check
the \fB"Color" section in the ffmpeg-utils manual\fR.
.Sp
The default value of \fIfontcolor\fR is "black".
.IP \fBfontcolor_expr\fR 4
.IX Item "fontcolor_expr"
String which is expanded the same way as \fItext\fR to obtain dynamic
\&\fIfontcolor\fR value. By default this option has empty value and is not
processed. When this option is set, it overrides \fIfontcolor\fR option.
.IP \fBfont\fR 4
.IX Item "font"
The font family to be used for drawing text. By default Sans.
.IP \fBfontfile\fR 4
.IX Item "fontfile"
The font file to be used for drawing text. The path must be included.
This parameter is mandatory if the fontconfig support is disabled.
.IP \fBalpha\fR 4
.IX Item "alpha"
Draw the text applying alpha blending. The value can
be a number between 0.0 and 1.0.
The expression accepts the same variables \fIx, y\fR as well.
The default value is 1.
Please see \fIfontcolor_expr\fR.
.IP \fBfontsize\fR 4
.IX Item "fontsize"
The font size to be used for drawing text.
The default value of \fIfontsize\fR is 16.
.IP \fBtext_shaping\fR 4
.IX Item "text_shaping"
If set to 1, attempt to shape the text (for example, reverse the order of
right-to-left text and join Arabic characters) before drawing it.
Otherwise, just draw the text exactly as given.
By default 1 (if supported).
.IP \fBft_load_flags\fR 4
.IX Item "ft_load_flags"
The flags to be used for loading the fonts.
.Sp
The flags map the corresponding flags supported by libfreetype, and are
a combination of the following values:
.RS 4
.IP \fIdefault\fR 4
.IX Item "default"
.PD 0
.IP \fIno_scale\fR 4
.IX Item "no_scale"
.IP \fIno_hinting\fR 4
.IX Item "no_hinting"
.IP \fIrender\fR 4
.IX Item "render"
.IP \fIno_bitmap\fR 4
.IX Item "no_bitmap"
.IP \fIvertical_layout\fR 4
.IX Item "vertical_layout"
.IP \fIforce_autohint\fR 4
.IX Item "force_autohint"
.IP \fIcrop_bitmap\fR 4
.IX Item "crop_bitmap"
.IP \fIpedantic\fR 4
.IX Item "pedantic"
.IP \fIignore_global_advance_width\fR 4
.IX Item "ignore_global_advance_width"
.IP \fIno_recurse\fR 4
.IX Item "no_recurse"
.IP \fIignore_transform\fR 4
.IX Item "ignore_transform"
.IP \fImonochrome\fR 4
.IX Item "monochrome"
.IP \fIlinear_design\fR 4
.IX Item "linear_design"
.IP \fIno_autohint\fR 4
.IX Item "no_autohint"
.RE
.RS 4
.PD
.Sp
Default value is "default".
.Sp
For more information consult the documentation for the FT_LOAD_*
libfreetype flags.
.RE
.IP \fBshadowcolor\fR 4
.IX Item "shadowcolor"
The color to be used for drawing a shadow behind the drawn text. For the
syntax of this option, check the \fB"Color" section in the
ffmpeg-utils manual\fR.
.Sp
The default value of \fIshadowcolor\fR is "black".
.IP \fBshadowx\fR 4
.IX Item "shadowx"
.PD 0
.IP \fBshadowy\fR 4
.IX Item "shadowy"
.PD
The x and y offsets for the text shadow position with respect to the
position of the text. They can be either positive or negative
values. The default value for both is "0".
.IP \fBstart_number\fR 4
.IX Item "start_number"
The starting frame number for the n/frame_num variable. The default value
is "0".
.IP \fBtabsize\fR 4
.IX Item "tabsize"
The size in number of spaces to use for rendering the tab.
Default value is 4.
.IP \fBtimecode\fR 4
.IX Item "timecode"
Set the initial timecode representation in "hh:mm:ss[:;.]ff"
format. It can be used with or without text parameter. \fItimecode_rate\fR
option must be specified.
.IP "\fBtimecode_rate, rate, r\fR" 4
.IX Item "timecode_rate, rate, r"
Set the timecode frame rate (timecode only). Value will be rounded to nearest
integer. Minimum value is "1".
Drop-frame timecode is supported for frame rates 30 & 60.
.IP \fBtc24hmax\fR 4
.IX Item "tc24hmax"
If set to 1, the output of the timecode option will wrap around at 24 hours.
Default is 0 (disabled).
.IP \fBtext\fR 4
.IX Item "text"
The text string to be drawn. The text must be a sequence of UTF\-8
encoded characters.
This parameter is mandatory if no file is specified with the parameter
\&\fItextfile\fR.
.IP \fBtextfile\fR 4
.IX Item "textfile"
A text file containing text to be drawn. The text must be a sequence
of UTF\-8 encoded characters.
.Sp
This parameter is mandatory if no text string is specified with the
parameter \fItext\fR.
.Sp
If both \fItext\fR and \fItextfile\fR are specified, an error is thrown.
.IP \fBreload\fR 4
.IX Item "reload"
If set to 1, the \fItextfile\fR will be reloaded before each frame.
Be sure to update it atomically, or it may be read partially, or even fail.
.IP \fBx\fR 4
.IX Item "x"
.PD 0
.IP \fBy\fR 4
.IX Item "y"
.PD
The expressions which specify the offsets where text will be drawn
within the video frame. They are relative to the top/left border of the
output image.
.Sp
The default value of \fIx\fR and \fIy\fR is "0".
.Sp
See below for the list of accepted constants and functions.
.PP
The parameters for \fIx\fR and \fIy\fR are expressions containing the
following constants and functions:
.IP \fBdar\fR 4
.IX Item "dar"
input display aspect ratio, it is the same as (\fIw\fR / \fIh\fR) * \fIsar\fR
.IP \fBhsub\fR 4
.IX Item "hsub"
.PD 0
.IP \fBvsub\fR 4
.IX Item "vsub"
.PD
horizontal and vertical chroma subsample values. For example for the
pixel format "yuv422p" \fIhsub\fR is 2 and \fIvsub\fR is 1.
.IP "\fBline_h, lh\fR" 4
.IX Item "line_h, lh"
the height of each text line
.IP "\fBmain_h, h, H\fR" 4
.IX Item "main_h, h, H"
the input height
.IP "\fBmain_w, w, W\fR" 4
.IX Item "main_w, w, W"
the input width
.IP "\fBmax_glyph_a, ascent\fR" 4
.IX Item "max_glyph_a, ascent"
the maximum distance from the baseline to the highest/upper grid
coordinate used to place a glyph outline point, for all the rendered
glyphs.
It is a positive value, due to the grid's orientation with the Y axis
upwards.
.IP "\fBmax_glyph_d, descent\fR" 4
.IX Item "max_glyph_d, descent"
the maximum distance from the baseline to the lowest grid coordinate
used to place a glyph outline point, for all the rendered glyphs.
This is a negative value, due to the grid's orientation, with the Y axis
upwards.
.IP \fBmax_glyph_h\fR 4
.IX Item "max_glyph_h"
maximum glyph height, that is the maximum height for all the glyphs
contained in the rendered text, it is equivalent to \fIascent\fR \-
\&\fIdescent\fR.
.IP \fBmax_glyph_w\fR 4
.IX Item "max_glyph_w"
maximum glyph width, that is the maximum width for all the glyphs
contained in the rendered text
.IP \fBn\fR 4
.IX Item "n"
the number of input frame, starting from 0
.IP "\fBrand(min, max)\fR" 4
.IX Item "rand(min, max)"
return a random number included between \fImin\fR and \fImax\fR
.IP \fBsar\fR 4
.IX Item "sar"
The input sample aspect ratio.
.IP \fBt\fR 4
.IX Item "t"
timestamp expressed in seconds, NAN if the input timestamp is unknown
.IP "\fBtext_h, th\fR" 4
.IX Item "text_h, th"
the height of the rendered text
.IP "\fBtext_w, tw\fR" 4
.IX Item "text_w, tw"
the width of the rendered text
.IP \fBx\fR 4
.IX Item "x"
.PD 0
.IP \fBy\fR 4
.IX Item "y"
.PD
the x and y offset coordinates where the text is drawn.
.Sp
These parameters allow the \fIx\fR and \fIy\fR expressions to refer
to each other, so you can for example specify \f(CW\*(C`y=x/dar\*(C'\fR.
.IP \fBpict_type\fR 4
.IX Item "pict_type"
A one character description of the current frame's picture type.
.IP \fBpkt_pos\fR 4
.IX Item "pkt_pos"
The current packet's position in the input file or stream
(in bytes, from the start of the input). A value of \-1 indicates
this info is not available.
.IP \fBpkt_duration\fR 4
.IX Item "pkt_duration"
The current packet's duration, in seconds.
.IP \fBpkt_size\fR 4
.IX Item "pkt_size"
The current packet's size (in bytes).
.PP
\fIText expansion\fR
.IX Subsection "Text expansion"
.PP
If \fBexpansion\fR is set to \f(CW\*(C`strftime\*(C'\fR,
the filter recognizes \fBstrftime()\fR sequences in the provided text and
expands them accordingly. Check the documentation of \fBstrftime()\fR. This
feature is deprecated.
.PP
If \fBexpansion\fR is set to \f(CW\*(C`none\*(C'\fR, the text is printed verbatim.
.PP
If \fBexpansion\fR is set to \f(CW\*(C`normal\*(C'\fR (which is the default),
the following expansion mechanism is used.
.PP
The backslash character \fB\e\fR, followed by any character, always expands to
the second character.
.PP
Sequences of the form \f(CW\*(C`%{...}\*(C'\fR are expanded. The text between the
braces is a function name, possibly followed by arguments separated by ':'.
If the arguments contain special characters or delimiters (':' or '}'),
they should be escaped.
.PP
Note that they probably must also be escaped as the value for the
\&\fBtext\fR option in the filter argument string and as the filter
argument in the filtergraph description, and possibly also for the shell,
that makes up to four levels of escaping; using a text file avoids these
problems.
.PP
The following functions are available:
.IP "\fBexpr, e\fR" 4
.IX Item "expr, e"
The expression evaluation result.
.Sp
It must take one argument specifying the expression to be evaluated,
which accepts the same constants and functions as the \fIx\fR and
\&\fIy\fR values. Note that not all constants should be used, for
example the text size is not known when evaluating the expression, so
the constants \fItext_w\fR and \fItext_h\fR will have an undefined
value.
.IP "\fBexpr_int_format, eif\fR" 4
.IX Item "expr_int_format, eif"
Evaluate the expression's value and output as formatted integer.
.Sp
The first argument is the expression to be evaluated, just as for the \fIexpr\fR function.
The second argument specifies the output format. Allowed values are \fBx\fR,
\&\fBX\fR, \fBd\fR and \fBu\fR. They are treated exactly as in the
\&\f(CW\*(C`printf\*(C'\fR function.
The third parameter is optional and sets the number of positions taken by the output.
It can be used to add padding with zeros from the left.
.IP \fBgmtime\fR 4
.IX Item "gmtime"
The time at which the filter is running, expressed in UTC.
It can accept an argument: a \fBstrftime()\fR format string.
.IP \fBlocaltime\fR 4
.IX Item "localtime"
The time at which the filter is running, expressed in the local time zone.
It can accept an argument: a \fBstrftime()\fR format string.
.IP \fBmetadata\fR 4
.IX Item "metadata"
Frame metadata. Takes one or two arguments.
.Sp
The first argument is mandatory and specifies the metadata key.
.Sp
The second argument is optional and specifies a default value, used when the
metadata key is not found or empty.
.Sp
Available metadata can be identified by inspecting entries
starting with TAG included within each frame section
printed by running \f(CW\*(C`ffprobe \-show_frames\*(C'\fR.
.Sp
String metadata generated in filters leading to
the drawtext filter are also available.
.IP "\fBn, frame_num\fR" 4
.IX Item "n, frame_num"
The frame number, starting from 0.
.IP \fBpict_type\fR 4
.IX Item "pict_type"
A one character description of the current picture type.
.IP \fBpts\fR 4
.IX Item "pts"
The timestamp of the current frame.
It can take up to three arguments.
.Sp
The first argument is the format of the timestamp; it defaults to \f(CW\*(C`flt\*(C'\fR
for seconds as a decimal number with microsecond accuracy; \f(CW\*(C`hms\*(C'\fR stands
for a formatted \fI[\-]HH:MM:SS.mmm\fR timestamp with millisecond accuracy.
\&\f(CW\*(C`gmtime\*(C'\fR stands for the timestamp of the frame formatted as UTC time;
\&\f(CW\*(C`localtime\*(C'\fR stands for the timestamp of the frame formatted as
local time zone time.
.Sp
The second argument is an offset added to the timestamp.
.Sp
If the format is set to \f(CW\*(C`hms\*(C'\fR, a third argument \f(CW\*(C`24HH\*(C'\fR may be
supplied to present the hour part of the formatted timestamp in 24h format
(00\-23).
.Sp
If the format is set to \f(CW\*(C`localtime\*(C'\fR or \f(CW\*(C`gmtime\*(C'\fR,
a third argument may be supplied: a \fBstrftime()\fR format string.
By default, \fIYYYY-MM-DD HH:MM:SS\fR format will be used.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports altering parameters via commands:
.IP \fBreinit\fR 4
.IX Item "reinit"
Alter existing filter parameters.
.Sp
Syntax for the argument is the same as for filter invocation, e.g.
.Sp
.Vb 1
\&        fontsize=56:fontcolor=green:text=\*(AqHello World\*(Aq
.Ve
.Sp
Full filter invocation with sendcmd would look like this:
.Sp
.Vb 1
\&        sendcmd=c=\*(Aq56.0 drawtext reinit fontsize=56\e:fontcolor=green\e:text=Hello\e\e World\*(Aq
.Ve
.PP
If the entire argument can't be parsed or applied as valid values then the filter will
continue with its existing parameters.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Draw "Test Text" with font FreeSerif, using the default values for the
optional parameters.
.Sp
.Vb 1
\&        drawtext="fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf: text=\*(AqTest Text\*(Aq"
.Ve
.IP \(bu 4
Draw 'Test Text' with font FreeSerif of size 24 at position x=100
and y=50 (counting from the top-left corner of the screen), text is
yellow with a red box around it. Both the text and the box have an
opacity of 20%.
.Sp
.Vb 2
\&        drawtext="fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf: text=\*(AqTest Text\*(Aq:\e
\&                  x=100: y=50: fontsize=24: fontcolor=yellow@0.2: box=1: boxcolor=red@0.2"
.Ve
.Sp
Note that the double quotes are not necessary if spaces are not used
within the parameter list.
.IP \(bu 4
Show the text at the center of the video frame:
.Sp
.Vb 1
\&        drawtext="fontsize=30:fontfile=FreeSerif.ttf:text=\*(Aqhello world\*(Aq:x=(w\-text_w)/2:y=(h\-text_h)/2"
.Ve
.IP \(bu 4
Show the text at a random position, switching to a new position every 30 seconds:
.Sp
.Vb 1
\&        drawtext="fontsize=30:fontfile=FreeSerif.ttf:text=\*(Aqhello world\*(Aq:x=if(eq(mod(t\e,30)\e,0)\e,rand(0\e,(w\-text_w))\e,x):y=if(eq(mod(t\e,30)\e,0)\e,rand(0\e,(h\-text_h))\e,y)"
.Ve
.IP \(bu 4
Show a text line sliding from right to left in the last row of the video
frame. The file \fILONG_LINE\fR is assumed to contain a single line
with no newlines.
.Sp
.Vb 1
\&        drawtext="fontsize=15:fontfile=FreeSerif.ttf:text=LONG_LINE:y=h\-line_h:x=\-50*t"
.Ve
.IP \(bu 4
Show the content of file \fICREDITS\fR off the bottom of the frame and scroll up.
.Sp
.Vb 1
\&        drawtext="fontsize=20:fontfile=FreeSerif.ttf:textfile=CREDITS:y=h\-20*t"
.Ve
.IP \(bu 4
Draw a single green letter "g", at the center of the input video.
The glyph baseline is placed at half screen height.
.Sp
.Vb 1
\&        drawtext="fontsize=60:fontfile=FreeSerif.ttf:fontcolor=green:text=g:x=(w\-max_glyph_w)/2:y=h/2\-ascent"
.Ve
.IP \(bu 4
Show text for 1 second every 3 seconds:
.Sp
.Vb 1
\&        drawtext="fontfile=FreeSerif.ttf:fontcolor=white:x=100:y=x/dar:enable=lt(mod(t\e,3)\e,1):text=\*(Aqblink\*(Aq"
.Ve
.IP \(bu 4
Use fontconfig to set the font. Note that the colons need to be escaped.
.Sp
.Vb 1
\&        drawtext=\*(Aqfontfile=Linux Libertine O\-40\e:style=Semibold:text=FFmpeg\*(Aq
.Ve
.IP \(bu 4
Draw "Test Text" with font size dependent on height of the video.
.Sp
.Vb 1
\&        drawtext="text=\*(AqTest Text\*(Aq: fontsize=h/30: x=(w\-text_w)/2: y=(h\-text_h*2)"
.Ve
.IP \(bu 4
Print the date of a real-time encoding (see \fBstrftime\fR\|(3)):
.Sp
.Vb 1
\&        drawtext=\*(Aqfontfile=FreeSans.ttf:text=%{localtime\e:%a %b %d %Y}\*(Aq
.Ve
.IP \(bu 4
Show text fading in and out (appearing/disappearing):
.Sp
.Vb 6
\&        #!/bin/sh
\&        DS=1.0 # display start
\&        DE=10.0 # display end
\&        FID=1.5 # fade in duration
\&        FOD=5 # fade out duration
\&        ffplay \-f lavfi "color,drawtext=text=TEST:fontsize=50:fontfile=FreeSerif.ttf:fontcolor_expr=ff0000%{eif\e\e\e\e: clip(255*(1*between(t\e\e, $DS + $FID\e\e, $DE \- $FOD) + ((t \- $DS)/$FID)*between(t\e\e, $DS\e\e, $DS + $FID) + (\-(t \- $DE)/$FOD)*between(t\e\e, $DE \- $FOD\e\e, $DE) )\e\e, 0\e\e, 255) \e\e\e\e: x\e\e\e\e: 2 }"
.Ve
.IP \(bu 4
Horizontally align multiple separate texts. Note that \fBmax_glyph_a\fR
and the \fBfontsize\fR value are included in the \fBy\fR offset.
.Sp
.Vb 2
\&        drawtext=fontfile=FreeSans.ttf:text=DOG:fontsize=24:x=10:y=20+24\-max_glyph_a,
\&        drawtext=fontfile=FreeSans.ttf:text=cow:fontsize=24:x=80:y=20+24\-max_glyph_a
.Ve
.IP \(bu 4
Plot special \fIlavf.image2dec.source_basename\fR metadata onto each frame if
such metadata exists. Otherwise, plot the string "NA". Note that image2 demuxer
must have option \fB\-export_path_metadata 1\fR for the special metadata fields
to be available for filters.
.Sp
.Vb 1
\&        drawtext="fontsize=20:fontcolor=white:fontfile=FreeSans.ttf:text=\*(Aq%{metadata\e:lavf.image2dec.source_basename\e:NA}\*(Aq:x=10:y=10"
.Ve
.PP
For more information about libfreetype, check:
<\fBhttp://www.freetype.org/\fR>.
.PP
For more information about fontconfig, check:
<\fBhttp://freedesktop.org/software/fontconfig/fontconfig\-user.html\fR>.
.PP
For more information about libfribidi, check:
<\fBhttp://fribidi.org/\fR>.
.SS edgedetect
.IX Subsection "edgedetect"
Detect and draw edges. The filter uses the Canny Edge Detection algorithm.
.PP
The filter accepts the following options:
.IP \fBlow\fR 4
.IX Item "low"
.PD 0
.IP \fBhigh\fR 4
.IX Item "high"
.PD
Set low and high threshold values used by the Canny thresholding
algorithm.
.Sp
The high threshold selects the "strong" edge pixels, which are then
connected through 8\-connectivity with the "weak" edge pixels selected
by the low threshold.
.Sp
\&\fIlow\fR and \fIhigh\fR threshold values must be chosen in the range
[0,1], and \fIlow\fR should be lesser or equal to \fIhigh\fR.
.Sp
Default value for \fIlow\fR is \f(CW\*(C`20/255\*(C'\fR, and default value for \fIhigh\fR
is \f(CW\*(C`50/255\*(C'\fR.
.IP \fBmode\fR 4
.IX Item "mode"
Define the drawing mode.
.RS 4
.IP \fBwires\fR 4
.IX Item "wires"
Draw white/gray wires on black background.
.IP \fBcolormix\fR 4
.IX Item "colormix"
Mix the colors to create a paint/cartoon effect.
.IP \fBcanny\fR 4
.IX Item "canny"
Apply Canny edge detector on all selected planes.
.RE
.RS 4
.Sp
Default value is \fIwires\fR.
.RE
.IP \fBplanes\fR 4
.IX Item "planes"
Select planes for filtering. By default all available planes are filtered.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Standard edge detection with custom values for the hysteresis thresholding:
.Sp
.Vb 1
\&        edgedetect=low=0.1:high=0.4
.Ve
.IP \(bu 4
Painting effect without thresholding:
.Sp
.Vb 1
\&        edgedetect=mode=colormix:high=0
.Ve
.SS elbg
.IX Subsection "elbg"
Apply a posterize effect using the ELBG (Enhanced LBG) algorithm.
.PP
For each input image, the filter will compute the optimal mapping from
the input to the output given the codebook length, that is the number
of distinct output colors.
.PP
This filter accepts the following options.
.IP "\fBcodebook_length, l\fR" 4
.IX Item "codebook_length, l"
Set codebook length. The value must be a positive integer, and
represents the number of distinct output colors. Default value is 256.
.IP "\fBnb_steps, n\fR" 4
.IX Item "nb_steps, n"
Set the maximum number of iterations to apply for computing the optimal
mapping. The higher the value the better the result and the higher the
computation time. Default value is 1.
.IP "\fBseed, s\fR" 4
.IX Item "seed, s"
Set a random seed, must be an integer included between 0 and
UINT32_MAX. If not specified, or if explicitly set to \-1, the filter
will try to use a good random seed on a best effort basis.
.IP \fBpal8\fR 4
.IX Item "pal8"
Set pal8 output pixel format. This option does not work with codebook
length greater than 256.
.SS entropy
.IX Subsection "entropy"
Measure graylevel entropy in histogram of color channels of video frames.
.PP
It accepts the following parameters:
.IP \fBmode\fR 4
.IX Item "mode"
Can be either \fInormal\fR or \fIdiff\fR. Default is \fInormal\fR.
.Sp
\&\fIdiff\fR mode measures entropy of histogram delta values, absolute differences
between neighbour histogram values.
.SS epx
.IX Subsection "epx"
Apply the EPX magnification filter which is designed for pixel art.
.PP
It accepts the following option:
.IP \fBn\fR 4
.IX Item "n"
Set the scaling dimension: \f(CW2\fR for \f(CW\*(C`2xEPX\*(C'\fR, \f(CW3\fR for
\&\f(CW\*(C`3xEPX\*(C'\fR.
Default is \f(CW3\fR.
.SS eq
.IX Subsection "eq"
Set brightness, contrast, saturation and approximate gamma adjustment.
.PP
The filter accepts the following options:
.IP \fBcontrast\fR 4
.IX Item "contrast"
Set the contrast expression. The value must be a float value in range
\&\f(CW\-1000.0\fR to \f(CW1000.0\fR. The default value is "1".
.IP \fBbrightness\fR 4
.IX Item "brightness"
Set the brightness expression. The value must be a float value in
range \f(CW\-1.0\fR to \f(CW1.0\fR. The default value is "0".
.IP \fBsaturation\fR 4
.IX Item "saturation"
Set the saturation expression. The value must be a float in
range \f(CW0.0\fR to \f(CW3.0\fR. The default value is "1".
.IP \fBgamma\fR 4
.IX Item "gamma"
Set the gamma expression. The value must be a float in range
\&\f(CW0.1\fR to \f(CW10.0\fR.  The default value is "1".
.IP \fBgamma_r\fR 4
.IX Item "gamma_r"
Set the gamma expression for red. The value must be a float in
range \f(CW0.1\fR to \f(CW10.0\fR. The default value is "1".
.IP \fBgamma_g\fR 4
.IX Item "gamma_g"
Set the gamma expression for green. The value must be a float in range
\&\f(CW0.1\fR to \f(CW10.0\fR. The default value is "1".
.IP \fBgamma_b\fR 4
.IX Item "gamma_b"
Set the gamma expression for blue. The value must be a float in range
\&\f(CW0.1\fR to \f(CW10.0\fR. The default value is "1".
.IP \fBgamma_weight\fR 4
.IX Item "gamma_weight"
Set the gamma weight expression. It can be used to reduce the effect
of a high gamma value on bright image areas, e.g. keep them from
getting overamplified and just plain white. The value must be a float
in range \f(CW0.0\fR to \f(CW1.0\fR. A value of \f(CW0.0\fR turns the
gamma correction all the way down while \f(CW1.0\fR leaves it at its
full strength. Default is "1".
.IP \fBeval\fR 4
.IX Item "eval"
Set when the expressions for brightness, contrast, saturation and
gamma expressions are evaluated.
.Sp
It accepts the following values:
.RS 4
.IP \fBinit\fR 4
.IX Item "init"
only evaluate expressions once during the filter initialization or
when a command is processed
.IP \fBframe\fR 4
.IX Item "frame"
evaluate expressions for each incoming frame
.RE
.RS 4
.Sp
Default value is \fBinit\fR.
.RE
.PP
The expressions accept the following parameters:
.IP \fBn\fR 4
.IX Item "n"
frame count of the input frame starting from 0
.IP \fBpos\fR 4
.IX Item "pos"
byte position of the corresponding packet in the input file, NAN if
unspecified
.IP \fBr\fR 4
.IX Item "r"
frame rate of the input video, NAN if the input frame rate is unknown
.IP \fBt\fR 4
.IX Item "t"
timestamp expressed in seconds, NAN if the input timestamp is unknown
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
The filter supports the following commands:
.IP \fBcontrast\fR 4
.IX Item "contrast"
Set the contrast expression.
.IP \fBbrightness\fR 4
.IX Item "brightness"
Set the brightness expression.
.IP \fBsaturation\fR 4
.IX Item "saturation"
Set the saturation expression.
.IP \fBgamma\fR 4
.IX Item "gamma"
Set the gamma expression.
.IP \fBgamma_r\fR 4
.IX Item "gamma_r"
Set the gamma_r expression.
.IP \fBgamma_g\fR 4
.IX Item "gamma_g"
Set gamma_g expression.
.IP \fBgamma_b\fR 4
.IX Item "gamma_b"
Set gamma_b expression.
.IP \fBgamma_weight\fR 4
.IX Item "gamma_weight"
Set gamma_weight expression.
.Sp
The command accepts the same syntax of the corresponding option.
.Sp
If the specified expression is not valid, it is kept at its current
value.
.SS erosion
.IX Subsection "erosion"
Apply erosion effect to the video.
.PP
This filter replaces the pixel by the local(3x3) minimum.
.PP
It accepts the following options:
.IP \fBthreshold0\fR 4
.IX Item "threshold0"
.PD 0
.IP \fBthreshold1\fR 4
.IX Item "threshold1"
.IP \fBthreshold2\fR 4
.IX Item "threshold2"
.IP \fBthreshold3\fR 4
.IX Item "threshold3"
.PD
Limit the maximum change for each plane, default is 65535.
If 0, plane will remain unchanged.
.IP \fBcoordinates\fR 4
.IX Item "coordinates"
Flag which specifies the pixel to refer to. Default is 255 i.e. all eight
pixels are used.
.Sp
Flags to local 3x3 coordinates maps like this:
.Sp
.Vb 3
\&    1 2 3
\&    4   5
\&    6 7 8
.Ve
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS estdif
.IX Subsection "estdif"
Deinterlace the input video ("estdif" stands for "Edge Slope
Tracing Deinterlacing Filter").
.PP
Spatial only filter that uses edge slope tracing algorithm
to interpolate missing lines.
It accepts the following parameters:
.IP \fBmode\fR 4
.IX Item "mode"
The interlacing mode to adopt. It accepts one of the following values:
.RS 4
.IP \fBframe\fR 4
.IX Item "frame"
Output one frame for each frame.
.IP \fBfield\fR 4
.IX Item "field"
Output one frame for each field.
.RE
.RS 4
.Sp
The default value is \f(CW\*(C`field\*(C'\fR.
.RE
.IP \fBparity\fR 4
.IX Item "parity"
The picture field parity assumed for the input interlaced video. It accepts one
of the following values:
.RS 4
.IP \fBtff\fR 4
.IX Item "tff"
Assume the top field is first.
.IP \fBbff\fR 4
.IX Item "bff"
Assume the bottom field is first.
.IP \fBauto\fR 4
.IX Item "auto"
Enable automatic detection of field parity.
.RE
.RS 4
.Sp
The default value is \f(CW\*(C`auto\*(C'\fR.
If the interlacing is unknown or the decoder does not export this information,
top field first will be assumed.
.RE
.IP \fBdeint\fR 4
.IX Item "deint"
Specify which frames to deinterlace. Accepts one of the following
values:
.RS 4
.IP \fBall\fR 4
.IX Item "all"
Deinterlace all frames.
.IP \fBinterlaced\fR 4
.IX Item "interlaced"
Only deinterlace frames marked as interlaced.
.RE
.RS 4
.Sp
The default value is \f(CW\*(C`all\*(C'\fR.
.RE
.IP \fBrslope\fR 4
.IX Item "rslope"
Specify the search radius for edge slope tracing. Default value is 1.
Allowed range is from 1 to 15.
.IP \fBredge\fR 4
.IX Item "redge"
Specify the search radius for best edge matching. Default value is 2.
Allowed range is from 0 to 15.
.IP \fBinterp\fR 4
.IX Item "interp"
Specify the interpolation used. Default is 4\-point interpolation. It accepts one
of the following values:
.RS 4
.IP \fB2p\fR 4
.IX Item "2p"
Two-point interpolation.
.IP \fB4p\fR 4
.IX Item "4p"
Four-point interpolation.
.IP \fB6p\fR 4
.IX Item "6p"
Six-point interpolation.
.RE
.RS 4
.RE
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports same \fBcommands\fR as options.
.SS exposure
.IX Subsection "exposure"
Adjust exposure of the video stream.
.PP
The filter accepts the following options:
.IP \fBexposure\fR 4
.IX Item "exposure"
Set the exposure correction in EV. Allowed range is from \-3.0 to 3.0 EV
Default value is 0 EV.
.IP \fBblack\fR 4
.IX Item "black"
Set the black level correction. Allowed range is from \-1.0 to 1.0.
Default value is 0.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports same \fBcommands\fR as options.
.SS extractplanes
.IX Subsection "extractplanes"
Extract color channel components from input video stream into
separate grayscale video streams.
.PP
The filter accepts the following option:
.IP \fBplanes\fR 4
.IX Item "planes"
Set plane(s) to extract.
.Sp
Available values for planes are:
.RS 4
.IP \fBy\fR 4
.IX Item "y"
.PD 0
.IP \fBu\fR 4
.IX Item "u"
.IP \fBv\fR 4
.IX Item "v"
.IP \fBa\fR 4
.IX Item "a"
.IP \fBr\fR 4
.IX Item "r"
.IP \fBg\fR 4
.IX Item "g"
.IP \fBb\fR 4
.IX Item "b"
.RE
.RS 4
.PD
.Sp
Choosing planes not available in the input will result in an error.
That means you cannot select \f(CW\*(C`r\*(C'\fR, \f(CW\*(C`g\*(C'\fR, \f(CW\*(C`b\*(C'\fR planes
with \f(CW\*(C`y\*(C'\fR, \f(CW\*(C`u\*(C'\fR, \f(CW\*(C`v\*(C'\fR planes at same time.
.RE
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Extract luma, u and v color channel component from input video frame
into 3 grayscale outputs:
.Sp
.Vb 1
\&        ffmpeg \-i video.avi \-filter_complex \*(Aqextractplanes=y+u+v[y][u][v]\*(Aq \-map \*(Aq[y]\*(Aq y.avi \-map \*(Aq[u]\*(Aq u.avi \-map \*(Aq[v]\*(Aq v.avi
.Ve
.SS fade
.IX Subsection "fade"
Apply a fade\-in/out effect to the input video.
.PP
It accepts the following parameters:
.IP "\fBtype, t\fR" 4
.IX Item "type, t"
The effect type can be either "in" for a fade-in, or "out" for a fade-out
effect.
Default is \f(CW\*(C`in\*(C'\fR.
.IP "\fBstart_frame, s\fR" 4
.IX Item "start_frame, s"
Specify the number of the frame to start applying the fade
effect at. Default is 0.
.IP "\fBnb_frames, n\fR" 4
.IX Item "nb_frames, n"
The number of frames that the fade effect lasts. At the end of the
fade-in effect, the output video will have the same intensity as the input video.
At the end of the fade-out transition, the output video will be filled with the
selected \fBcolor\fR.
Default is 25.
.IP \fBalpha\fR 4
.IX Item "alpha"
If set to 1, fade only alpha channel, if one exists on the input.
Default value is 0.
.IP "\fBstart_time, st\fR" 4
.IX Item "start_time, st"
Specify the timestamp (in seconds) of the frame to start to apply the fade
effect. If both start_frame and start_time are specified, the fade will start at
whichever comes last.  Default is 0.
.IP "\fBduration, d\fR" 4
.IX Item "duration, d"
The number of seconds for which the fade effect has to last. At the end of the
fade-in effect the output video will have the same intensity as the input video,
at the end of the fade-out transition the output video will be filled with the
selected \fBcolor\fR.
If both duration and nb_frames are specified, duration is used. Default is 0
(nb_frames is used by default).
.IP "\fBcolor, c\fR" 4
.IX Item "color, c"
Specify the color of the fade. Default is "black".
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Fade in the first 30 frames of video:
.Sp
.Vb 1
\&        fade=in:0:30
.Ve
.Sp
The command above is equivalent to:
.Sp
.Vb 1
\&        fade=t=in:s=0:n=30
.Ve
.IP \(bu 4
Fade out the last 45 frames of a 200\-frame video:
.Sp
.Vb 2
\&        fade=out:155:45
\&        fade=type=out:start_frame=155:nb_frames=45
.Ve
.IP \(bu 4
Fade in the first 25 frames and fade out the last 25 frames of a 1000\-frame video:
.Sp
.Vb 1
\&        fade=in:0:25, fade=out:975:25
.Ve
.IP \(bu 4
Make the first 5 frames yellow, then fade in from frame 5\-24:
.Sp
.Vb 1
\&        fade=in:5:20:color=yellow
.Ve
.IP \(bu 4
Fade in alpha over first 25 frames of video:
.Sp
.Vb 1
\&        fade=in:0:25:alpha=1
.Ve
.IP \(bu 4
Make the first 5.5 seconds black, then fade in for 0.5 seconds:
.Sp
.Vb 1
\&        fade=t=in:st=5.5:d=0.5
.Ve
.SS fftdnoiz
.IX Subsection "fftdnoiz"
Denoise frames using 3D FFT (frequency domain filtering).
.PP
The filter accepts the following options:
.IP \fBsigma\fR 4
.IX Item "sigma"
Set the noise sigma constant. This sets denoising strength.
Default value is 1. Allowed range is from 0 to 30.
Using very high sigma with low overlap may give blocking artifacts.
.IP \fBamount\fR 4
.IX Item "amount"
Set amount of denoising. By default all detected noise is reduced.
Default value is 1. Allowed range is from 0 to 1.
.IP \fBblock\fR 4
.IX Item "block"
Set size of block, Default is 4, can be 3, 4, 5 or 6.
Actual size of block in pixels is 2 to power of \fIblock\fR, so by default
block size in pixels is 2^4 which is 16.
.IP \fBoverlap\fR 4
.IX Item "overlap"
Set block overlap. Default is 0.5. Allowed range is from 0.2 to 0.8.
.IP \fBprev\fR 4
.IX Item "prev"
Set number of previous frames to use for denoising. By default is set to 0.
.IP \fBnext\fR 4
.IX Item "next"
Set number of next frames to to use for denoising. By default is set to 0.
.IP \fBplanes\fR 4
.IX Item "planes"
Set planes which will be filtered, by default are all available filtered
except alpha.
.SS fftfilt
.IX Subsection "fftfilt"
Apply arbitrary expressions to samples in frequency domain
.IP \fBdc_Y\fR 4
.IX Item "dc_Y"
Adjust the dc value (gain) of the luma plane of the image. The filter
accepts an integer value in range \f(CW0\fR to \f(CW1000\fR. The default
value is set to \f(CW0\fR.
.IP \fBdc_U\fR 4
.IX Item "dc_U"
Adjust the dc value (gain) of the 1st chroma plane of the image. The
filter accepts an integer value in range \f(CW0\fR to \f(CW1000\fR. The
default value is set to \f(CW0\fR.
.IP \fBdc_V\fR 4
.IX Item "dc_V"
Adjust the dc value (gain) of the 2nd chroma plane of the image. The
filter accepts an integer value in range \f(CW0\fR to \f(CW1000\fR. The
default value is set to \f(CW0\fR.
.IP \fBweight_Y\fR 4
.IX Item "weight_Y"
Set the frequency domain weight expression for the luma plane.
.IP \fBweight_U\fR 4
.IX Item "weight_U"
Set the frequency domain weight expression for the 1st chroma plane.
.IP \fBweight_V\fR 4
.IX Item "weight_V"
Set the frequency domain weight expression for the 2nd chroma plane.
.IP \fBeval\fR 4
.IX Item "eval"
Set when the expressions are evaluated.
.Sp
It accepts the following values:
.RS 4
.IP \fBinit\fR 4
.IX Item "init"
Only evaluate expressions once during the filter initialization.
.IP \fBframe\fR 4
.IX Item "frame"
Evaluate expressions for each incoming frame.
.RE
.RS 4
.Sp
Default value is \fBinit\fR.
.Sp
The filter accepts the following variables:
.RE
.IP \fBX\fR 4
.IX Item "X"
.PD 0
.IP \fBY\fR 4
.IX Item "Y"
.PD
The coordinates of the current sample.
.IP \fBW\fR 4
.IX Item "W"
.PD 0
.IP \fBH\fR 4
.IX Item "H"
.PD
The width and height of the image.
.IP \fBN\fR 4
.IX Item "N"
The number of input frame, starting from 0.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
High-pass:
.Sp
.Vb 1
\&        fftfilt=dc_Y=128:weight_Y=\*(Aqsquish(1\-(Y+X)/100)\*(Aq
.Ve
.IP \(bu 4
Low-pass:
.Sp
.Vb 1
\&        fftfilt=dc_Y=0:weight_Y=\*(Aqsquish((Y+X)/100\-1)\*(Aq
.Ve
.IP \(bu 4
Sharpen:
.Sp
.Vb 1
\&        fftfilt=dc_Y=0:weight_Y=\*(Aq1+squish(1\-(Y+X)/100)\*(Aq
.Ve
.IP \(bu 4
Blur:
.Sp
.Vb 1
\&        fftfilt=dc_Y=0:weight_Y=\*(Aqexp(\-4 * ((Y+X)/(W+H)))\*(Aq
.Ve
.SS field
.IX Subsection "field"
Extract a single field from an interlaced image using stride
arithmetic to avoid wasting CPU time. The output frames are marked as
non-interlaced.
.PP
The filter accepts the following options:
.IP \fBtype\fR 4
.IX Item "type"
Specify whether to extract the top (if the value is \f(CW0\fR or
\&\f(CW\*(C`top\*(C'\fR) or the bottom field (if the value is \f(CW1\fR or
\&\f(CW\*(C`bottom\*(C'\fR).
.SS fieldhint
.IX Subsection "fieldhint"
Create new frames by copying the top and bottom fields from surrounding frames
supplied as numbers by the hint file.
.IP \fBhint\fR 4
.IX Item "hint"
Set file containing hints: absolute/relative frame numbers.
.Sp
There must be one line for each frame in a clip. Each line must contain two
numbers separated by the comma, optionally followed by \f(CW\*(C`\-\*(C'\fR or \f(CW\*(C`+\*(C'\fR.
Numbers supplied on each line of file can not be out of [N\-1,N+1] where N
is current frame number for \f(CW\*(C`absolute\*(C'\fR mode or out of [\-1, 1] range
for \f(CW\*(C`relative\*(C'\fR mode. First number tells from which frame to pick up top
field and second number tells from which frame to pick up bottom field.
.Sp
If optionally followed by \f(CW\*(C`+\*(C'\fR output frame will be marked as interlaced,
else if followed by \f(CW\*(C`\-\*(C'\fR output frame will be marked as progressive, else
it will be marked same as input frame.
If optionally followed by \f(CW\*(C`t\*(C'\fR output frame will use only top field, or in
case of \f(CW\*(C`b\*(C'\fR it will use only bottom field.
If line starts with \f(CW\*(C`#\*(C'\fR or \f(CW\*(C`;\*(C'\fR that line is skipped.
.IP \fBmode\fR 4
.IX Item "mode"
Can be item \f(CW\*(C`absolute\*(C'\fR or \f(CW\*(C`relative\*(C'\fR. Default is \f(CW\*(C`absolute\*(C'\fR.
.PP
Example of first several lines of \f(CW\*(C`hint\*(C'\fR file for \f(CW\*(C`relative\*(C'\fR mode:
.PP
.Vb 10
\&        0,0 \- # first frame
\&        1,0 \- # second frame, use third\*(Aqs frame top field and second\*(Aqs frame bottom field
\&        1,0 \- # third frame, use fourth\*(Aqs frame top field and third\*(Aqs frame bottom field
\&        1,0 \-
\&        0,0 \-
\&        0,0 \-
\&        1,0 \-
\&        1,0 \-
\&        1,0 \-
\&        0,0 \-
\&        0,0 \-
\&        1,0 \-
\&        1,0 \-
\&        1,0 \-
\&        0,0 \-
.Ve
.SS fieldmatch
.IX Subsection "fieldmatch"
Field matching filter for inverse telecine. It is meant to reconstruct the
progressive frames from a telecined stream. The filter does not drop duplicated
frames, so to achieve a complete inverse telecine \f(CW\*(C`fieldmatch\*(C'\fR needs to be
followed by a decimation filter such as \fBdecimate\fR in the filtergraph.
.PP
The separation of the field matching and the decimation is notably motivated by
the possibility of inserting a de-interlacing filter fallback between the two.
If the source has mixed telecined and real interlaced content,
\&\f(CW\*(C`fieldmatch\*(C'\fR will not be able to match fields for the interlaced parts.
But these remaining combed frames will be marked as interlaced, and thus can be
de-interlaced by a later filter such as \fByadif\fR before decimation.
.PP
In addition to the various configuration options, \f(CW\*(C`fieldmatch\*(C'\fR can take an
optional second stream, activated through the \fBppsrc\fR option. If
enabled, the frames reconstruction will be based on the fields and frames from
this second stream. This allows the first input to be pre-processed in order to
help the various algorithms of the filter, while keeping the output lossless
(assuming the fields are matched properly). Typically, a field-aware denoiser,
or brightness/contrast adjustments can help.
.PP
Note that this filter uses the same algorithms as TIVTC/TFM (AviSynth project)
and VIVTC/VFM (VapourSynth project). The later is a light clone of TFM from
which \f(CW\*(C`fieldmatch\*(C'\fR is based on. While the semantic and usage are very
close, some behaviour and options names can differ.
.PP
The \fBdecimate\fR filter currently only works for constant frame rate input.
If your input has mixed telecined (30fps) and progressive content with a lower
framerate like 24fps use the following filterchain to produce the necessary cfr
stream: \f(CW\*(C`dejudder,fps=30000/1001,fieldmatch,decimate\*(C'\fR.
.PP
The filter accepts the following options:
.IP \fBorder\fR 4
.IX Item "order"
Specify the assumed field order of the input stream. Available values are:
.RS 4
.IP \fBauto\fR 4
.IX Item "auto"
Auto detect parity (use FFmpeg's internal parity value).
.IP \fBbff\fR 4
.IX Item "bff"
Assume bottom field first.
.IP \fBtff\fR 4
.IX Item "tff"
Assume top field first.
.RE
.RS 4
.Sp
Note that it is sometimes recommended not to trust the parity announced by the
stream.
.Sp
Default value is \fIauto\fR.
.RE
.IP \fBmode\fR 4
.IX Item "mode"
Set the matching mode or strategy to use. \fBpc\fR mode is the safest in the
sense that it won't risk creating jerkiness due to duplicate frames when
possible, but if there are bad edits or blended fields it will end up
outputting combed frames when a good match might actually exist. On the other
hand, \fBpcn_ub\fR mode is the most risky in terms of creating jerkiness,
but will almost always find a good frame if there is one. The other values are
all somewhere in between \fBpc\fR and \fBpcn_ub\fR in terms of risking
jerkiness and creating duplicate frames versus finding good matches in sections
with bad edits, orphaned fields, blended fields, etc.
.Sp
More details about p/c/n/u/b are available in \fBp/c/n/u/b meaning\fR section.
.Sp
Available values are:
.RS 4
.IP \fBpc\fR 4
.IX Item "pc"
2\-way matching (p/c)
.IP \fBpc_n\fR 4
.IX Item "pc_n"
2\-way matching, and trying 3rd match if still combed (p/c + n)
.IP \fBpc_u\fR 4
.IX Item "pc_u"
2\-way matching, and trying 3rd match (same order) if still combed (p/c + u)
.IP \fBpc_n_ub\fR 4
.IX Item "pc_n_ub"
2\-way matching, trying 3rd match if still combed, and trying 4th/5th matches if
still combed (p/c + n + u/b)
.IP \fBpcn\fR 4
.IX Item "pcn"
3\-way matching (p/c/n)
.IP \fBpcn_ub\fR 4
.IX Item "pcn_ub"
3\-way matching, and trying 4th/5th matches if all 3 of the original matches are
detected as combed (p/c/n + u/b)
.RE
.RS 4
.Sp
The parenthesis at the end indicate the matches that would be used for that
mode assuming \fBorder\fR=\fItff\fR (and \fBfield\fR on \fIauto\fR or
\&\fItop\fR).
.Sp
In terms of speed \fBpc\fR mode is by far the fastest and \fBpcn_ub\fR is
the slowest.
.Sp
Default value is \fIpc_n\fR.
.RE
.IP \fBppsrc\fR 4
.IX Item "ppsrc"
Mark the main input stream as a pre-processed input, and enable the secondary
input stream as the clean source to pick the fields from. See the filter
introduction for more details. It is similar to the \fBclip2\fR feature from
VFM/TFM.
.Sp
Default value is \f(CW0\fR (disabled).
.IP \fBfield\fR 4
.IX Item "field"
Set the field to match from. It is recommended to set this to the same value as
\&\fBorder\fR unless you experience matching failures with that setting. In
certain circumstances changing the field that is used to match from can have a
large impact on matching performance. Available values are:
.RS 4
.IP \fBauto\fR 4
.IX Item "auto"
Automatic (same value as \fBorder\fR).
.IP \fBbottom\fR 4
.IX Item "bottom"
Match from the bottom field.
.IP \fBtop\fR 4
.IX Item "top"
Match from the top field.
.RE
.RS 4
.Sp
Default value is \fIauto\fR.
.RE
.IP \fBmchroma\fR 4
.IX Item "mchroma"
Set whether or not chroma is included during the match comparisons. In most
cases it is recommended to leave this enabled. You should set this to \f(CW0\fR
only if your clip has bad chroma problems such as heavy rainbowing or other
artifacts. Setting this to \f(CW0\fR could also be used to speed things up at
the cost of some accuracy.
.Sp
Default value is \f(CW1\fR.
.IP \fBy0\fR 4
.IX Item "y0"
.PD 0
.IP \fBy1\fR 4
.IX Item "y1"
.PD
These define an exclusion band which excludes the lines between \fBy0\fR and
\&\fBy1\fR from being included in the field matching decision. An exclusion
band can be used to ignore subtitles, a logo, or other things that may
interfere with the matching. \fBy0\fR sets the starting scan line and
\&\fBy1\fR sets the ending line; all lines in between \fBy0\fR and
\&\fBy1\fR (including \fBy0\fR and \fBy1\fR) will be ignored. Setting
\&\fBy0\fR and \fBy1\fR to the same value will disable the feature.
\&\fBy0\fR and \fBy1\fR defaults to \f(CW0\fR.
.IP \fBscthresh\fR 4
.IX Item "scthresh"
Set the scene change detection threshold as a percentage of maximum change on
the luma plane. Good values are in the \f(CW\*(C`[8.0, 14.0]\*(C'\fR range. Scene change
detection is only relevant in case \fBcombmatch\fR=\fIsc\fR.  The range for
\&\fBscthresh\fR is \f(CW\*(C`[0.0, 100.0]\*(C'\fR.
.Sp
Default value is \f(CW12.0\fR.
.IP \fBcombmatch\fR 4
.IX Item "combmatch"
When \fBcombatch\fR is not \fInone\fR, \f(CW\*(C`fieldmatch\*(C'\fR will take into
account the combed scores of matches when deciding what match to use as the
final match. Available values are:
.RS 4
.IP \fBnone\fR 4
.IX Item "none"
No final matching based on combed scores.
.IP \fBsc\fR 4
.IX Item "sc"
Combed scores are only used when a scene change is detected.
.IP \fBfull\fR 4
.IX Item "full"
Use combed scores all the time.
.RE
.RS 4
.Sp
Default is \fIsc\fR.
.RE
.IP \fBcombdbg\fR 4
.IX Item "combdbg"
Force \f(CW\*(C`fieldmatch\*(C'\fR to calculate the combed metrics for certain matches and
print them. This setting is known as \fBmicout\fR in TFM/VFM vocabulary.
Available values are:
.RS 4
.IP \fBnone\fR 4
.IX Item "none"
No forced calculation.
.IP \fBpcn\fR 4
.IX Item "pcn"
Force p/c/n calculations.
.IP \fBpcnub\fR 4
.IX Item "pcnub"
Force p/c/n/u/b calculations.
.RE
.RS 4
.Sp
Default value is \fInone\fR.
.RE
.IP \fBcthresh\fR 4
.IX Item "cthresh"
This is the area combing threshold used for combed frame detection. This
essentially controls how "strong" or "visible" combing must be to be detected.
Larger values mean combing must be more visible and smaller values mean combing
can be less visible or strong and still be detected. Valid settings are from
\&\f(CW\-1\fR (every pixel will be detected as combed) to \f(CW255\fR (no pixel will
be detected as combed). This is basically a pixel difference value. A good
range is \f(CW\*(C`[8, 12]\*(C'\fR.
.Sp
Default value is \f(CW9\fR.
.IP \fBchroma\fR 4
.IX Item "chroma"
Sets whether or not chroma is considered in the combed frame decision.  Only
disable this if your source has chroma problems (rainbowing, etc.) that are
causing problems for the combed frame detection with chroma enabled. Actually,
using \fBchroma\fR=\fI0\fR is usually more reliable, except for the case
where there is chroma only combing in the source.
.Sp
Default value is \f(CW0\fR.
.IP \fBblockx\fR 4
.IX Item "blockx"
.PD 0
.IP \fBblocky\fR 4
.IX Item "blocky"
.PD
Respectively set the x\-axis and y\-axis size of the window used during combed
frame detection. This has to do with the size of the area in which
\&\fBcombpel\fR pixels are required to be detected as combed for a frame to be
declared combed. See the \fBcombpel\fR parameter description for more info.
Possible values are any number that is a power of 2 starting at 4 and going up
to 512.
.Sp
Default value is \f(CW16\fR.
.IP \fBcombpel\fR 4
.IX Item "combpel"
The number of combed pixels inside any of the \fBblocky\fR by
\&\fBblockx\fR size blocks on the frame for the frame to be detected as
combed. While \fBcthresh\fR controls how "visible" the combing must be, this
setting controls "how much" combing there must be in any localized area (a
window defined by the \fBblockx\fR and \fBblocky\fR settings) on the
frame. Minimum value is \f(CW0\fR and maximum is \f(CW\*(C`blocky x blockx\*(C'\fR (at
which point no frames will ever be detected as combed). This setting is known
as \fBMI\fR in TFM/VFM vocabulary.
.Sp
Default value is \f(CW80\fR.
.PP
\fIp/c/n/u/b meaning\fR
.IX Subsection "p/c/n/u/b meaning"
.PP
p/c/n
.IX Subsection "p/c/n"
.PP
We assume the following telecined stream:
.PP
.Vb 2
\&        Top fields:     1 2 2 3 4
\&        Bottom fields:  1 2 3 4 4
.Ve
.PP
The numbers correspond to the progressive frame the fields relate to. Here, the
first two frames are progressive, the 3rd and 4th are combed, and so on.
.PP
When \f(CW\*(C`fieldmatch\*(C'\fR is configured to run a matching from bottom
(\fBfield\fR=\fIbottom\fR) this is how this input stream get transformed:
.PP
.Vb 3
\&        Input stream:
\&                        T     1 2 2 3 4
\&                        B     1 2 3 4 4   <\-\- matching reference
\&        
\&        Matches:              c c n n c
\&        
\&        Output stream:
\&                        T     1 2 3 4 4
\&                        B     1 2 3 4 4
.Ve
.PP
As a result of the field matching, we can see that some frames get duplicated.
To perform a complete inverse telecine, you need to rely on a decimation filter
after this operation. See for instance the \fBdecimate\fR filter.
.PP
The same operation now matching from top fields (\fBfield\fR=\fItop\fR)
looks like this:
.PP
.Vb 3
\&        Input stream:
\&                        T     1 2 2 3 4   <\-\- matching reference
\&                        B     1 2 3 4 4
\&        
\&        Matches:              c c p p c
\&        
\&        Output stream:
\&                        T     1 2 2 3 4
\&                        B     1 2 2 3 4
.Ve
.PP
In these examples, we can see what \fIp\fR, \fIc\fR and \fIn\fR mean;
basically, they refer to the frame and field of the opposite parity:
.IP "*<\fIp\fR matches the field of the opposite parity in the previous frame>" 4
.IX Item "*<p matches the field of the opposite parity in the previous frame>"
.PD 0
.IP "*<\fIc\fR matches the field of the opposite parity in the current frame>" 4
.IX Item "*<c matches the field of the opposite parity in the current frame>"
.IP "*<\fIn\fR matches the field of the opposite parity in the next frame>" 4
.IX Item "*<n matches the field of the opposite parity in the next frame>"
.PD
.PP
u/b
.IX Subsection "u/b"
.PP
The \fIu\fR and \fIb\fR matching are a bit special in the sense that they match
from the opposite parity flag. In the following examples, we assume that we are
currently matching the 2nd frame (Top:2, bottom:2). According to the match, a
\&'x' is placed above and below each matched fields.
.PP
With bottom matching (\fBfield\fR=\fIbottom\fR):
.PP
.Vb 1
\&        Match:           c         p           n          b          u
\&        
\&                         x       x               x        x          x
\&          Top          1 2 2     1 2 2       1 2 2      1 2 2      1 2 2
\&          Bottom       1 2 3     1 2 3       1 2 3      1 2 3      1 2 3
\&                         x         x           x        x              x
\&        
\&        Output frames:
\&                         2          1          2          2          2
\&                         2          2          2          1          3
.Ve
.PP
With top matching (\fBfield\fR=\fItop\fR):
.PP
.Vb 1
\&        Match:           c         p           n          b          u
\&        
\&                         x         x           x        x              x
\&          Top          1 2 2     1 2 2       1 2 2      1 2 2      1 2 2
\&          Bottom       1 2 3     1 2 3       1 2 3      1 2 3      1 2 3
\&                         x       x               x        x          x
\&        
\&        Output frames:
\&                         2          2          2          1          2
\&                         2          1          3          2          2
.Ve
.PP
\fIExamples\fR
.IX Subsection "Examples"
.PP
Simple IVTC of a top field first telecined stream:
.PP
.Vb 1
\&        fieldmatch=order=tff:combmatch=none, decimate
.Ve
.PP
Advanced IVTC, with fallback on \fByadif\fR for still combed frames:
.PP
.Vb 1
\&        fieldmatch=order=tff:combmatch=full, yadif=deint=interlaced, decimate
.Ve
.SS fieldorder
.IX Subsection "fieldorder"
Transform the field order of the input video.
.PP
It accepts the following parameters:
.IP \fBorder\fR 4
.IX Item "order"
The output field order. Valid values are \fItff\fR for top field first or \fIbff\fR
for bottom field first.
.PP
The default value is \fBtff\fR.
.PP
The transformation is done by shifting the picture content up or down
by one line, and filling the remaining line with appropriate picture content.
This method is consistent with most broadcast field order converters.
.PP
If the input video is not flagged as being interlaced, or it is already
flagged as being of the required output field order, then this filter does
not alter the incoming video.
.PP
It is very useful when converting to or from PAL DV material,
which is bottom field first.
.PP
For example:
.PP
.Vb 1
\&        ffmpeg \-i in.vob \-vf "fieldorder=bff" out.dv
.Ve
.SS "fifo, afifo"
.IX Subsection "fifo, afifo"
Buffer input images and send them when they are requested.
.PP
It is mainly useful when auto-inserted by the libavfilter
framework.
.PP
It does not take parameters.
.SS fillborders
.IX Subsection "fillborders"
Fill borders of the input video, without changing video stream dimensions.
Sometimes video can have garbage at the four edges and you may not want to
crop video input to keep size multiple of some number.
.PP
This filter accepts the following options:
.IP \fBleft\fR 4
.IX Item "left"
Number of pixels to fill from left border.
.IP \fBright\fR 4
.IX Item "right"
Number of pixels to fill from right border.
.IP \fBtop\fR 4
.IX Item "top"
Number of pixels to fill from top border.
.IP \fBbottom\fR 4
.IX Item "bottom"
Number of pixels to fill from bottom border.
.IP \fBmode\fR 4
.IX Item "mode"
Set fill mode.
.Sp
It accepts the following values:
.RS 4
.IP \fBsmear\fR 4
.IX Item "smear"
fill pixels using outermost pixels
.IP \fBmirror\fR 4
.IX Item "mirror"
fill pixels using mirroring (half sample symmetric)
.IP \fBfixed\fR 4
.IX Item "fixed"
fill pixels with constant value
.IP \fBreflect\fR 4
.IX Item "reflect"
fill pixels using reflecting (whole sample symmetric)
.IP \fBwrap\fR 4
.IX Item "wrap"
fill pixels using wrapping
.IP \fBfade\fR 4
.IX Item "fade"
fade pixels to constant value
.RE
.RS 4
.Sp
Default is \fIsmear\fR.
.RE
.IP \fBcolor\fR 4
.IX Item "color"
Set color for pixels in fixed or fade mode. Default is \fIblack\fR.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports same \fBcommands\fR as options.
The command accepts the same syntax of the corresponding option.
.PP
If the specified expression is not valid, it is kept at its current
value.
.SS find_rect
.IX Subsection "find_rect"
Find a rectangular object
.PP
It accepts the following options:
.IP \fBobject\fR 4
.IX Item "object"
Filepath of the object image, needs to be in gray8.
.IP \fBthreshold\fR 4
.IX Item "threshold"
Detection threshold, default is 0.5.
.IP \fBmipmaps\fR 4
.IX Item "mipmaps"
Number of mipmaps, default is 3.
.IP "\fBxmin, ymin, xmax, ymax\fR" 4
.IX Item "xmin, ymin, xmax, ymax"
Specifies the rectangle in which to search.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Cover a rectangular object by the supplied image of a given video using \fBffmpeg\fR:
.Sp
.Vb 1
\&        ffmpeg \-i file.ts \-vf find_rect=newref.pgm,cover_rect=cover.jpg:mode=cover new.mkv
.Ve
.SS floodfill
.IX Subsection "floodfill"
Flood area with values of same pixel components with another values.
.PP
It accepts the following options:
.IP \fBx\fR 4
.IX Item "x"
Set pixel x coordinate.
.IP \fBy\fR 4
.IX Item "y"
Set pixel y coordinate.
.IP \fBs0\fR 4
.IX Item "s0"
Set source #0 component value.
.IP \fBs1\fR 4
.IX Item "s1"
Set source #1 component value.
.IP \fBs2\fR 4
.IX Item "s2"
Set source #2 component value.
.IP \fBs3\fR 4
.IX Item "s3"
Set source #3 component value.
.IP \fBd0\fR 4
.IX Item "d0"
Set destination #0 component value.
.IP \fBd1\fR 4
.IX Item "d1"
Set destination #1 component value.
.IP \fBd2\fR 4
.IX Item "d2"
Set destination #2 component value.
.IP \fBd3\fR 4
.IX Item "d3"
Set destination #3 component value.
.SS format
.IX Subsection "format"
Convert the input video to one of the specified pixel formats.
Libavfilter will try to pick one that is suitable as input to
the next filter.
.PP
It accepts the following parameters:
.IP \fBpix_fmts\fR 4
.IX Item "pix_fmts"
A '|'\-separated list of pixel format names, such as
"pix_fmts=yuv420p|monow|rgb24".
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Convert the input video to the \fIyuv420p\fR format
.Sp
.Vb 1
\&        format=pix_fmts=yuv420p
.Ve
.Sp
Convert the input video to any of the formats in the list
.Sp
.Vb 1
\&        format=pix_fmts=yuv420p|yuv444p|yuv410p
.Ve
.SS fps
.IX Subsection "fps"
Convert the video to specified constant frame rate by duplicating or dropping
frames as necessary.
.PP
It accepts the following parameters:
.IP \fBfps\fR 4
.IX Item "fps"
The desired output frame rate. The default is \f(CW25\fR.
.IP \fBstart_time\fR 4
.IX Item "start_time"
Assume the first PTS should be the given value, in seconds. This allows for
padding/trimming at the start of stream. By default, no assumption is made
about the first frame's expected PTS, so no padding or trimming is done.
For example, this could be set to 0 to pad the beginning with duplicates of
the first frame if a video stream starts after the audio stream or to trim any
frames with a negative PTS.
.IP \fBround\fR 4
.IX Item "round"
Timestamp (PTS) rounding method.
.Sp
Possible values are:
.RS 4
.IP \fBzero\fR 4
.IX Item "zero"
round towards 0
.IP \fBinf\fR 4
.IX Item "inf"
round away from 0
.IP \fBdown\fR 4
.IX Item "down"
round towards \-infinity
.IP \fBup\fR 4
.IX Item "up"
round towards +infinity
.IP \fBnear\fR 4
.IX Item "near"
round to nearest
.RE
.RS 4
.Sp
The default is \f(CW\*(C`near\*(C'\fR.
.RE
.IP \fBeof_action\fR 4
.IX Item "eof_action"
Action performed when reading the last frame.
.Sp
Possible values are:
.RS 4
.IP \fBround\fR 4
.IX Item "round"
Use same timestamp rounding method as used for other frames.
.IP \fBpass\fR 4
.IX Item "pass"
Pass through last frame if input duration has not been reached yet.
.RE
.RS 4
.Sp
The default is \f(CW\*(C`round\*(C'\fR.
.RE
.PP
Alternatively, the options can be specified as a flat string:
\&\fIfps\fR[:\fIstart_time\fR[:\fIround\fR]].
.PP
See also the \fBsetpts\fR filter.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
A typical usage in order to set the fps to 25:
.Sp
.Vb 1
\&        fps=fps=25
.Ve
.IP \(bu 4
Sets the fps to 24, using abbreviation and rounding method to round to nearest:
.Sp
.Vb 1
\&        fps=fps=film:round=near
.Ve
.SS framepack
.IX Subsection "framepack"
Pack two different video streams into a stereoscopic video, setting proper
metadata on supported codecs. The two views should have the same size and
framerate and processing will stop when the shorter video ends. Please note
that you may conveniently adjust view properties with the \fBscale\fR and
\&\fBfps\fR filters.
.PP
It accepts the following parameters:
.IP \fBformat\fR 4
.IX Item "format"
The desired packing format. Supported values are:
.RS 4
.IP \fBsbs\fR 4
.IX Item "sbs"
The views are next to each other (default).
.IP \fBtab\fR 4
.IX Item "tab"
The views are on top of each other.
.IP \fBlines\fR 4
.IX Item "lines"
The views are packed by line.
.IP \fBcolumns\fR 4
.IX Item "columns"
The views are packed by column.
.IP \fBframeseq\fR 4
.IX Item "frameseq"
The views are temporally interleaved.
.RE
.RS 4
.RE
.PP
Some examples:
.PP
.Vb 2
\&        # Convert left and right views into a frame\-sequential video
\&        ffmpeg \-i LEFT \-i RIGHT \-filter_complex framepack=frameseq OUTPUT
\&        
\&        # Convert views into a side\-by\-side video with the same output resolution as the input
\&        ffmpeg \-i LEFT \-i RIGHT \-filter_complex [0:v]scale=w=iw/2[left],[1:v]scale=w=iw/2[right],[left][right]framepack=sbs OUTPUT
.Ve
.SS framerate
.IX Subsection "framerate"
Change the frame rate by interpolating new video output frames from the source
frames.
.PP
This filter is not designed to function correctly with interlaced media. If
you wish to change the frame rate of interlaced media then you are required
to deinterlace before this filter and re-interlace after this filter.
.PP
A description of the accepted options follows.
.IP \fBfps\fR 4
.IX Item "fps"
Specify the output frames per second. This option can also be specified
as a value alone. The default is \f(CW50\fR.
.IP \fBinterp_start\fR 4
.IX Item "interp_start"
Specify the start of a range where the output frame will be created as a
linear interpolation of two frames. The range is [\f(CW0\fR\-\f(CW255\fR],
the default is \f(CW15\fR.
.IP \fBinterp_end\fR 4
.IX Item "interp_end"
Specify the end of a range where the output frame will be created as a
linear interpolation of two frames. The range is [\f(CW0\fR\-\f(CW255\fR],
the default is \f(CW240\fR.
.IP \fBscene\fR 4
.IX Item "scene"
Specify the level at which a scene change is detected as a value between
0 and 100 to indicate a new scene; a low value reflects a low
probability for the current frame to introduce a new scene, while a higher
value means the current frame is more likely to be one.
The default is \f(CW8.2\fR.
.IP \fBflags\fR 4
.IX Item "flags"
Specify flags influencing the filter process.
.Sp
Available value for \fIflags\fR is:
.RS 4
.IP "\fBscene_change_detect, scd\fR" 4
.IX Item "scene_change_detect, scd"
Enable scene change detection using the value of the option \fIscene\fR.
This flag is enabled by default.
.RE
.RS 4
.RE
.SS framestep
.IX Subsection "framestep"
Select one frame every N\-th frame.
.PP
This filter accepts the following option:
.IP \fBstep\fR 4
.IX Item "step"
Select frame after every \f(CW\*(C`step\*(C'\fR frames.
Allowed values are positive integers higher than 0. Default value is \f(CW1\fR.
.SS freezedetect
.IX Subsection "freezedetect"
Detect frozen video.
.PP
This filter logs a message and sets frame metadata when it detects that the
input video has no significant change in content during a specified duration.
Video freeze detection calculates the mean average absolute difference of all
the components of video frames and compares it to a noise floor.
.PP
The printed times and duration are expressed in seconds. The
\&\f(CW\*(C`lavfi.freezedetect.freeze_start\*(C'\fR metadata key is set on the first frame
whose timestamp equals or exceeds the detection duration and it contains the
timestamp of the first frame of the freeze. The
\&\f(CW\*(C`lavfi.freezedetect.freeze_duration\*(C'\fR and
\&\f(CW\*(C`lavfi.freezedetect.freeze_end\*(C'\fR metadata keys are set on the first frame
after the freeze.
.PP
The filter accepts the following options:
.IP "\fBnoise, n\fR" 4
.IX Item "noise, n"
Set noise tolerance. Can be specified in dB (in case "dB" is appended to the
specified value) or as a difference ratio between 0 and 1. Default is \-60dB, or
0.001.
.IP "\fBduration, d\fR" 4
.IX Item "duration, d"
Set freeze duration until notification (default is 2 seconds).
.SS freezeframes
.IX Subsection "freezeframes"
Freeze video frames.
.PP
This filter freezes video frames using frame from 2nd input.
.PP
The filter accepts the following options:
.IP \fBfirst\fR 4
.IX Item "first"
Set number of first frame from which to start freeze.
.IP \fBlast\fR 4
.IX Item "last"
Set number of last frame from which to end freeze.
.IP \fBreplace\fR 4
.IX Item "replace"
Set number of frame from 2nd input which will be used instead of replaced frames.
.SS frei0r
.IX Subsection "frei0r"
Apply a frei0r effect to the input video.
.PP
To enable the compilation of this filter, you need to install the frei0r
header and configure FFmpeg with \f(CW\*(C`\-\-enable\-frei0r\*(C'\fR.
.PP
It accepts the following parameters:
.IP \fBfilter_name\fR 4
.IX Item "filter_name"
The name of the frei0r effect to load. If the environment variable
\&\fBFREI0R_PATH\fR is defined, the frei0r effect is searched for in each of the
directories specified by the colon-separated list in \fBFREI0R_PATH\fR.
Otherwise, the standard frei0r paths are searched, in this order:
\&\fIHOME/.frei0r\-1/lib/\fR, \fI/usr/local/lib/frei0r\-1/\fR,
\&\fI/usr/lib/frei0r\-1/\fR.
.IP \fBfilter_params\fR 4
.IX Item "filter_params"
A '|'\-separated list of parameters to pass to the frei0r effect.
.PP
A frei0r effect parameter can be a boolean (its value is either
"y" or "n"), a double, a color (specified as
\&\fIR\fR/\fIG\fR/\fIB\fR, where \fIR\fR, \fIG\fR, and \fIB\fR are floating point
numbers between 0.0 and 1.0, inclusive) or a color description as specified in the
\&\fB"Color" section in the ffmpeg-utils manual\fR,
a position (specified as \fIX\fR/\fIY\fR, where
\&\fIX\fR and \fIY\fR are floating point numbers) and/or a string.
.PP
The number and types of parameters depend on the loaded effect. If an
effect parameter is not specified, the default value is set.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Apply the distort0r effect, setting the first two double parameters:
.Sp
.Vb 1
\&        frei0r=filter_name=distort0r:filter_params=0.5|0.01
.Ve
.IP \(bu 4
Apply the colordistance effect, taking a color as the first parameter:
.Sp
.Vb 3
\&        frei0r=colordistance:0.2/0.3/0.4
\&        frei0r=colordistance:violet
\&        frei0r=colordistance:0x112233
.Ve
.IP \(bu 4
Apply the perspective effect, specifying the top left and top right image
positions:
.Sp
.Vb 1
\&        frei0r=perspective:0.2/0.2|0.8/0.2
.Ve
.PP
For more information, see
<\fBhttp://frei0r.dyne.org\fR>
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the \fBfilter_params\fR option as \fBcommands\fR.
.SS fspp
.IX Subsection "fspp"
Apply fast and simple postprocessing. It is a faster version of \fBspp\fR.
.PP
It splits (I)DCT into horizontal/vertical passes. Unlike the simple post\-
processing filter, one of them is performed once per block, not per pixel.
This allows for much higher speed.
.PP
The filter accepts the following options:
.IP \fBquality\fR 4
.IX Item "quality"
Set quality. This option defines the number of levels for averaging. It accepts
an integer in the range 4\-5. Default value is \f(CW4\fR.
.IP \fBqp\fR 4
.IX Item "qp"
Force a constant quantization parameter. It accepts an integer in range 0\-63.
If not set, the filter will use the QP from the video stream (if available).
.IP \fBstrength\fR 4
.IX Item "strength"
Set filter strength. It accepts an integer in range \-15 to 32. Lower values mean
more details but also more artifacts, while higher values make the image smoother
but also blurrier. Default value is \f(CW0\fR − PSNR optimal.
.IP \fBuse_bframe_qp\fR 4
.IX Item "use_bframe_qp"
Enable the use of the QP from the B\-Frames if set to \f(CW1\fR. Using this
option may cause flicker since the B\-Frames have often larger QP. Default is
\&\f(CW0\fR (not enabled).
.SS gblur
.IX Subsection "gblur"
Apply Gaussian blur filter.
.PP
The filter accepts the following options:
.IP \fBsigma\fR 4
.IX Item "sigma"
Set horizontal sigma, standard deviation of Gaussian blur. Default is \f(CW0.5\fR.
.IP \fBsteps\fR 4
.IX Item "steps"
Set number of steps for Gaussian approximation. Default is \f(CW1\fR.
.IP \fBplanes\fR 4
.IX Item "planes"
Set which planes to filter. By default all planes are filtered.
.IP \fBsigmaV\fR 4
.IX Item "sigmaV"
Set vertical sigma, if negative it will be same as \f(CW\*(C`sigma\*(C'\fR.
Default is \f(CW\-1\fR.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports same commands as options.
The command accepts the same syntax of the corresponding option.
.PP
If the specified expression is not valid, it is kept at its current
value.
.SS geq
.IX Subsection "geq"
Apply generic equation to each pixel.
.PP
The filter accepts the following options:
.IP "\fBlum_expr, lum\fR" 4
.IX Item "lum_expr, lum"
Set the luminance expression.
.IP "\fBcb_expr, cb\fR" 4
.IX Item "cb_expr, cb"
Set the chrominance blue expression.
.IP "\fBcr_expr, cr\fR" 4
.IX Item "cr_expr, cr"
Set the chrominance red expression.
.IP "\fBalpha_expr, a\fR" 4
.IX Item "alpha_expr, a"
Set the alpha expression.
.IP "\fBred_expr, r\fR" 4
.IX Item "red_expr, r"
Set the red expression.
.IP "\fBgreen_expr, g\fR" 4
.IX Item "green_expr, g"
Set the green expression.
.IP "\fBblue_expr, b\fR" 4
.IX Item "blue_expr, b"
Set the blue expression.
.PP
The colorspace is selected according to the specified options. If one
of the \fBlum_expr\fR, \fBcb_expr\fR, or \fBcr_expr\fR
options is specified, the filter will automatically select a YCbCr
colorspace. If one of the \fBred_expr\fR, \fBgreen_expr\fR, or
\&\fBblue_expr\fR options is specified, it will select an RGB
colorspace.
.PP
If one of the chrominance expression is not defined, it falls back on the other
one. If no alpha expression is specified it will evaluate to opaque value.
If none of chrominance expressions are specified, they will evaluate
to the luminance expression.
.PP
The expressions can use the following variables and functions:
.IP \fBN\fR 4
.IX Item "N"
The sequential number of the filtered frame, starting from \f(CW0\fR.
.IP \fBX\fR 4
.IX Item "X"
.PD 0
.IP \fBY\fR 4
.IX Item "Y"
.PD
The coordinates of the current sample.
.IP \fBW\fR 4
.IX Item "W"
.PD 0
.IP \fBH\fR 4
.IX Item "H"
.PD
The width and height of the image.
.IP \fBSW\fR 4
.IX Item "SW"
.PD 0
.IP \fBSH\fR 4
.IX Item "SH"
.PD
Width and height scale depending on the currently filtered plane. It is the
ratio between the corresponding luma plane number of pixels and the current
plane ones. E.g. for YUV4:2:0 the values are \f(CW\*(C`1,1\*(C'\fR for the luma plane, and
\&\f(CW\*(C`0.5,0.5\*(C'\fR for chroma planes.
.IP \fBT\fR 4
.IX Item "T"
Time of the current frame, expressed in seconds.
.IP "\fBp(x, y)\fR" 4
.IX Item "p(x, y)"
Return the value of the pixel at location (\fIx\fR,\fIy\fR) of the current
plane.
.IP "\fBlum(x, y)\fR" 4
.IX Item "lum(x, y)"
Return the value of the pixel at location (\fIx\fR,\fIy\fR) of the luminance
plane.
.IP "\fBcb(x, y)\fR" 4
.IX Item "cb(x, y)"
Return the value of the pixel at location (\fIx\fR,\fIy\fR) of the
blue-difference chroma plane. Return 0 if there is no such plane.
.IP "\fBcr(x, y)\fR" 4
.IX Item "cr(x, y)"
Return the value of the pixel at location (\fIx\fR,\fIy\fR) of the
red-difference chroma plane. Return 0 if there is no such plane.
.IP "\fBr(x, y)\fR" 4
.IX Item "r(x, y)"
.PD 0
.IP "\fBg(x, y)\fR" 4
.IX Item "g(x, y)"
.IP "\fBb(x, y)\fR" 4
.IX Item "b(x, y)"
.PD
Return the value of the pixel at location (\fIx\fR,\fIy\fR) of the
red/green/blue component. Return 0 if there is no such component.
.IP "\fBalpha(x, y)\fR" 4
.IX Item "alpha(x, y)"
Return the value of the pixel at location (\fIx\fR,\fIy\fR) of the alpha
plane. Return 0 if there is no such plane.
.IP "\fBpsum(x,y), lumsum(x, y), cbsum(x,y), crsum(x,y), rsum(x,y), gsum(x,y), bsum(x,y), alphasum(x,y)\fR" 4
.IX Item "psum(x,y), lumsum(x, y), cbsum(x,y), crsum(x,y), rsum(x,y), gsum(x,y), bsum(x,y), alphasum(x,y)"
Sum of sample values in the rectangle from (0,0) to (x,y), this allows obtaining
sums of samples within a rectangle. See the functions without the sum postfix.
.IP \fBinterpolation\fR 4
.IX Item "interpolation"
Set one of interpolation methods:
.RS 4
.IP "\fBnearest, n\fR" 4
.IX Item "nearest, n"
.PD 0
.IP "\fBbilinear, b\fR" 4
.IX Item "bilinear, b"
.RE
.RS 4
.PD
.Sp
Default is bilinear.
.RE
.PP
For functions, if \fIx\fR and \fIy\fR are outside the area, the value will be
automatically clipped to the closer edge.
.PP
Please note that this filter can use multiple threads in which case each slice
will have its own expression state. If you want to use only a single expression
state because your expressions depend on previous state then you should limit
the number of filter threads to 1.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Flip the image horizontally:
.Sp
.Vb 1
\&        geq=p(W\-X\e,Y)
.Ve
.IP \(bu 4
Generate a bidimensional sine wave, with angle \f(CW\*(C`PI/3\*(C'\fR and a
wavelength of 100 pixels:
.Sp
.Vb 1
\&        geq=128 + 100*sin(2*(PI/100)*(cos(PI/3)*(X\-50*T) + sin(PI/3)*Y)):128:128
.Ve
.IP \(bu 4
Generate a fancy enigmatic moving light:
.Sp
.Vb 1
\&        nullsrc=s=256x256,geq=random(1)/hypot(X\-cos(N*0.07)*W/2\-W/2\e,Y\-sin(N*0.09)*H/2\-H/2)^2*1000000*sin(N*0.02):128:128
.Ve
.IP \(bu 4
Generate a quick emboss effect:
.Sp
.Vb 1
\&        format=gray,geq=lum_expr=\*(Aq(p(X,Y)+(256\-p(X\-4,Y\-4)))/2\*(Aq
.Ve
.IP \(bu 4
Modify RGB components depending on pixel position:
.Sp
.Vb 1
\&        geq=r=\*(AqX/W*r(X,Y)\*(Aq:g=\*(Aq(1\-X/W)*g(X,Y)\*(Aq:b=\*(Aq(H\-Y)/H*b(X,Y)\*(Aq
.Ve
.IP \(bu 4
Create a radial gradient that is the same size as the input (also see
the \fBvignette\fR filter):
.Sp
.Vb 1
\&        geq=lum=255*gauss((X/W\-0.5)*3)*gauss((Y/H\-0.5)*3)/gauss(0)/gauss(0),format=gray
.Ve
.SS gradfun
.IX Subsection "gradfun"
Fix the banding artifacts that are sometimes introduced into nearly flat
regions by truncation to 8\-bit color depth.
Interpolate the gradients that should go where the bands are, and
dither them.
.PP
It is designed for playback only.  Do not use it prior to
lossy compression, because compression tends to lose the dither and
bring back the bands.
.PP
It accepts the following parameters:
.IP \fBstrength\fR 4
.IX Item "strength"
The maximum amount by which the filter will change any one pixel. This is also
the threshold for detecting nearly flat regions. Acceptable values range from
\&.51 to 64; the default value is 1.2. Out-of-range values will be clipped to the
valid range.
.IP \fBradius\fR 4
.IX Item "radius"
The neighborhood to fit the gradient to. A larger radius makes for smoother
gradients, but also prevents the filter from modifying the pixels near detailed
regions. Acceptable values are 8\-32; the default value is 16. Out-of-range
values will be clipped to the valid range.
.PP
Alternatively, the options can be specified as a flat string:
\&\fIstrength\fR[:\fIradius\fR]
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Apply the filter with a \f(CW3.5\fR strength and radius of \f(CW8\fR:
.Sp
.Vb 1
\&        gradfun=3.5:8
.Ve
.IP \(bu 4
Specify radius, omitting the strength (which will fall-back to the default
value):
.Sp
.Vb 1
\&        gradfun=radius=8
.Ve
.SS graphmonitor
.IX Subsection "graphmonitor"
Show various filtergraph stats.
.PP
With this filter one can debug complete filtergraph.
Especially issues with links filling with queued frames.
.PP
The filter accepts the following options:
.IP "\fBsize, s\fR" 4
.IX Item "size, s"
Set video output size. Default is \fIhd720\fR.
.IP "\fBopacity, o\fR" 4
.IX Item "opacity, o"
Set video opacity. Default is \fI0.9\fR. Allowed range is from \fI0\fR to \fI1\fR.
.IP "\fBmode, m\fR" 4
.IX Item "mode, m"
Set output mode, can be \fIfulll\fR or \fIcompact\fR.
In \fIcompact\fR mode only filters with some queued frames have displayed stats.
.IP "\fBflags, f\fR" 4
.IX Item "flags, f"
Set flags which enable which stats are shown in video.
.Sp
Available values for flags are:
.RS 4
.IP \fBqueue\fR 4
.IX Item "queue"
Display number of queued frames in each link.
.IP \fBframe_count_in\fR 4
.IX Item "frame_count_in"
Display number of frames taken from filter.
.IP \fBframe_count_out\fR 4
.IX Item "frame_count_out"
Display number of frames given out from filter.
.IP \fBpts\fR 4
.IX Item "pts"
Display current filtered frame pts.
.IP \fBtime\fR 4
.IX Item "time"
Display current filtered frame time.
.IP \fBtimebase\fR 4
.IX Item "timebase"
Display time base for filter link.
.IP \fBformat\fR 4
.IX Item "format"
Display used format for filter link.
.IP \fBsize\fR 4
.IX Item "size"
Display video size or number of audio channels in case of audio used by filter link.
.IP \fBrate\fR 4
.IX Item "rate"
Display video frame rate or sample rate in case of audio used by filter link.
.IP \fBeof\fR 4
.IX Item "eof"
Display link output status.
.RE
.RS 4
.RE
.IP "\fBrate, r\fR" 4
.IX Item "rate, r"
Set upper limit for video rate of output stream, Default value is \fI25\fR.
This guarantee that output video frame rate will not be higher than this value.
.SS greyedge
.IX Subsection "greyedge"
A color constancy variation filter which estimates scene illumination via grey edge algorithm
and corrects the scene colors accordingly.
.PP
See: <\fBhttps://staff.science.uva.nl/th.gevers/pub/GeversTIP07.pdf\fR>
.PP
The filter accepts the following options:
.IP \fBdifford\fR 4
.IX Item "difford"
The order of differentiation to be applied on the scene. Must be chosen in the range
[0,2] and default value is 1.
.IP \fBminknorm\fR 4
.IX Item "minknorm"
The Minkowski parameter to be used for calculating the Minkowski distance. Must
be chosen in the range [0,20] and default value is 1. Set to 0 for getting
max value instead of calculating Minkowski distance.
.IP \fBsigma\fR 4
.IX Item "sigma"
The standard deviation of Gaussian blur to be applied on the scene. Must be
chosen in the range [0,1024.0] and default value = 1. floor( \fIsigma\fR * \fBbreak_off_sigma\fR\|(3) )
can't be equal to 0 if \fIdifford\fR is greater than 0.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Grey Edge:
.Sp
.Vb 1
\&        greyedge=difford=1:minknorm=5:sigma=2
.Ve
.IP \(bu 4
Max Edge:
.Sp
.Vb 1
\&        greyedge=difford=1:minknorm=0:sigma=2
.Ve
.SS haldclut
.IX Subsection "haldclut"
Apply a Hald CLUT to a video stream.
.PP
First input is the video stream to process, and second one is the Hald CLUT.
The Hald CLUT input can be a simple picture or a complete video stream.
.PP
The filter accepts the following options:
.IP \fBshortest\fR 4
.IX Item "shortest"
Force termination when the shortest input terminates. Default is \f(CW0\fR.
.IP \fBrepeatlast\fR 4
.IX Item "repeatlast"
Continue applying the last CLUT after the end of the stream. A value of
\&\f(CW0\fR disable the filter after the last frame of the CLUT is reached.
Default is \f(CW1\fR.
.PP
\&\f(CW\*(C`haldclut\*(C'\fR also has the same interpolation options as \fBlut3d\fR (both
filters share the same internals).
.PP
This filter also supports the \fBframesync\fR options.
.PP
More information about the Hald CLUT can be found on Eskil Steenberg's website
(Hald CLUT author) at <\fBhttp://www.quelsolaar.com/technology/clut.html\fR>.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the \f(CW\*(C`interp\*(C'\fR option as \fBcommands\fR.
.PP
\fIWorkflow examples\fR
.IX Subsection "Workflow examples"
.PP
Hald CLUT video stream
.IX Subsection "Hald CLUT video stream"
.PP
Generate an identity Hald CLUT stream altered with various effects:
.PP
.Vb 1
\&        ffmpeg \-f lavfi \-i B<haldclutsrc>=8 \-vf "hue=H=2*PI*t:s=sin(2*PI*t)+1, curves=cross_process" \-t 10 \-c:v ffv1 clut.nut
.Ve
.PP
Note: make sure you use a lossless codec.
.PP
Then use it with \f(CW\*(C`haldclut\*(C'\fR to apply it on some random stream:
.PP
.Vb 1
\&        ffmpeg \-f lavfi \-i mandelbrot \-i clut.nut \-filter_complex \*(Aq[0][1] haldclut\*(Aq \-t 20 mandelclut.mkv
.Ve
.PP
The Hald CLUT will be applied to the 10 first seconds (duration of
\&\fIclut.nut\fR), then the latest picture of that CLUT stream will be applied
to the remaining frames of the \f(CW\*(C`mandelbrot\*(C'\fR stream.
.PP
Hald CLUT with preview
.IX Subsection "Hald CLUT with preview"
.PP
A Hald CLUT is supposed to be a squared image of \f(CW\*(C`Level*Level*Level\*(C'\fR by
\&\f(CW\*(C`Level*Level*Level\*(C'\fR pixels. For a given Hald CLUT, FFmpeg will select the
biggest possible square starting at the top left of the picture. The remaining
padding pixels (bottom or right) will be ignored. This area can be used to add
a preview of the Hald CLUT.
.PP
Typically, the following generated Hald CLUT will be supported by the
\&\f(CW\*(C`haldclut\*(C'\fR filter:
.PP
.Vb 5
\&        ffmpeg \-f lavfi \-i B<haldclutsrc>=8 \-vf "
\&           pad=iw+320 [padded_clut];
\&           smptebars=s=320x256, split [a][b];
\&           [padded_clut][a] overlay=W\-320:h, curves=color_negative [main];
\&           [main][b] overlay=W\-320" \-frames:v 1 clut.png
.Ve
.PP
It contains the original and a preview of the effect of the CLUT: SMPTE color
bars are displayed on the right-top, and below the same color bars processed by
the color changes.
.PP
Then, the effect of this Hald CLUT can be visualized with:
.PP
.Vb 1
\&        ffplay input.mkv \-vf "movie=clut.png, [in] haldclut"
.Ve
.SS hflip
.IX Subsection "hflip"
Flip the input video horizontally.
.PP
For example, to horizontally flip the input video with \fBffmpeg\fR:
.PP
.Vb 1
\&        ffmpeg \-i in.avi \-vf "hflip" out.avi
.Ve
.SS histeq
.IX Subsection "histeq"
This filter applies a global color histogram equalization on a
per-frame basis.
.PP
It can be used to correct video that has a compressed range of pixel
intensities.  The filter redistributes the pixel intensities to
equalize their distribution across the intensity range. It may be
viewed as an "automatically adjusting contrast filter". This filter is
useful only for correcting degraded or poorly captured source
video.
.PP
The filter accepts the following options:
.IP \fBstrength\fR 4
.IX Item "strength"
Determine the amount of equalization to be applied.  As the strength
is reduced, the distribution of pixel intensities more-and-more
approaches that of the input frame. The value must be a float number
in the range [0,1] and defaults to 0.200.
.IP \fBintensity\fR 4
.IX Item "intensity"
Set the maximum intensity that can generated and scale the output
values appropriately.  The strength should be set as desired and then
the intensity can be limited if needed to avoid washing-out. The value
must be a float number in the range [0,1] and defaults to 0.210.
.IP \fBantibanding\fR 4
.IX Item "antibanding"
Set the antibanding level. If enabled the filter will randomly vary
the luminance of output pixels by a small amount to avoid banding of
the histogram. Possible values are \f(CW\*(C`none\*(C'\fR, \f(CW\*(C`weak\*(C'\fR or
\&\f(CW\*(C`strong\*(C'\fR. It defaults to \f(CW\*(C`none\*(C'\fR.
.SS histogram
.IX Subsection "histogram"
Compute and draw a color distribution histogram for the input video.
.PP
The computed histogram is a representation of the color component
distribution in an image.
.PP
Standard histogram displays the color components distribution in an image.
Displays color graph for each color component. Shows distribution of
the Y, U, V, A or R, G, B components, depending on input format, in the
current frame. Below each graph a color component scale meter is shown.
.PP
The filter accepts the following options:
.IP \fBlevel_height\fR 4
.IX Item "level_height"
Set height of level. Default value is \f(CW200\fR.
Allowed range is [50, 2048].
.IP \fBscale_height\fR 4
.IX Item "scale_height"
Set height of color scale. Default value is \f(CW12\fR.
Allowed range is [0, 40].
.IP \fBdisplay_mode\fR 4
.IX Item "display_mode"
Set display mode.
It accepts the following values:
.RS 4
.IP \fBstack\fR 4
.IX Item "stack"
Per color component graphs are placed below each other.
.IP \fBparade\fR 4
.IX Item "parade"
Per color component graphs are placed side by side.
.IP \fBoverlay\fR 4
.IX Item "overlay"
Presents information identical to that in the \f(CW\*(C`parade\*(C'\fR, except
that the graphs representing color components are superimposed directly
over one another.
.RE
.RS 4
.Sp
Default is \f(CW\*(C`stack\*(C'\fR.
.RE
.IP \fBlevels_mode\fR 4
.IX Item "levels_mode"
Set mode. Can be either \f(CW\*(C`linear\*(C'\fR, or \f(CW\*(C`logarithmic\*(C'\fR.
Default is \f(CW\*(C`linear\*(C'\fR.
.IP \fBcomponents\fR 4
.IX Item "components"
Set what color components to display.
Default is \f(CW7\fR.
.IP \fBfgopacity\fR 4
.IX Item "fgopacity"
Set foreground opacity. Default is \f(CW0.7\fR.
.IP \fBbgopacity\fR 4
.IX Item "bgopacity"
Set background opacity. Default is \f(CW0.5\fR.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Calculate and draw histogram:
.Sp
.Vb 1
\&        ffplay \-i input \-vf histogram
.Ve
.SS hqdn3d
.IX Subsection "hqdn3d"
This is a high precision/quality 3d denoise filter. It aims to reduce
image noise, producing smooth images and making still images really
still. It should enhance compressibility.
.PP
It accepts the following optional parameters:
.IP \fBluma_spatial\fR 4
.IX Item "luma_spatial"
A non-negative floating point number which specifies spatial luma strength.
It defaults to 4.0.
.IP \fBchroma_spatial\fR 4
.IX Item "chroma_spatial"
A non-negative floating point number which specifies spatial chroma strength.
It defaults to 3.0*\fIluma_spatial\fR/4.0.
.IP \fBluma_tmp\fR 4
.IX Item "luma_tmp"
A floating point number which specifies luma temporal strength. It defaults to
6.0*\fIluma_spatial\fR/4.0.
.IP \fBchroma_tmp\fR 4
.IX Item "chroma_tmp"
A floating point number which specifies chroma temporal strength. It defaults to
\&\fIluma_tmp\fR*\fIchroma_spatial\fR/\fIluma_spatial\fR.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports same \fBcommands\fR as options.
The command accepts the same syntax of the corresponding option.
.PP
If the specified expression is not valid, it is kept at its current
value.
.SS hwdownload
.IX Subsection "hwdownload"
Download hardware frames to system memory.
.PP
The input must be in hardware frames, and the output a non-hardware format.
Not all formats will be supported on the output \- it may be necessary to insert
an additional \fBformat\fR filter immediately following in the graph to get
the output in a supported format.
.SS hwmap
.IX Subsection "hwmap"
Map hardware frames to system memory or to another device.
.PP
This filter has several different modes of operation; which one is used depends
on the input and output formats:
.IP \(bu 4
Hardware frame input, normal frame output
.Sp
Map the input frames to system memory and pass them to the output.  If the
original hardware frame is later required (for example, after overlaying
something else on part of it), the \fBhwmap\fR filter can be used again
in the next mode to retrieve it.
.IP \(bu 4
Normal frame input, hardware frame output
.Sp
If the input is actually a software-mapped hardware frame, then unmap it \-
that is, return the original hardware frame.
.Sp
Otherwise, a device must be provided.  Create new hardware surfaces on that
device for the output, then map them back to the software format at the input
and give those frames to the preceding filter.  This will then act like the
\&\fBhwupload\fR filter, but may be able to avoid an additional copy when
the input is already in a compatible format.
.IP \(bu 4
Hardware frame input and output
.Sp
A device must be supplied for the output, either directly or with the
\&\fBderive_device\fR option.  The input and output devices must be of
different types and compatible \- the exact meaning of this is
system-dependent, but typically it means that they must refer to the same
underlying hardware context (for example, refer to the same graphics card).
.Sp
If the input frames were originally created on the output device, then unmap
to retrieve the original frames.
.Sp
Otherwise, map the frames to the output device \- create new hardware frames
on the output corresponding to the frames on the input.
.PP
The following additional parameters are accepted:
.IP \fBmode\fR 4
.IX Item "mode"
Set the frame mapping mode.  Some combination of:
.RS 4
.IP \fIread\fR 4
.IX Item "read"
The mapped frame should be readable.
.IP \fIwrite\fR 4
.IX Item "write"
The mapped frame should be writeable.
.IP \fIoverwrite\fR 4
.IX Item "overwrite"
The mapping will always overwrite the entire frame.
.Sp
This may improve performance in some cases, as the original contents of the
frame need not be loaded.
.IP \fIdirect\fR 4
.IX Item "direct"
The mapping must not involve any copying.
.Sp
Indirect mappings to copies of frames are created in some cases where either
direct mapping is not possible or it would have unexpected properties.
Setting this flag ensures that the mapping is direct and will fail if that is
not possible.
.RE
.RS 4
.Sp
Defaults to \fIread+write\fR if not specified.
.RE
.IP "\fBderive_device\fR \fItype\fR" 4
.IX Item "derive_device type"
Rather than using the device supplied at initialisation, instead derive a new
device of type \fItype\fR from the device the input frames exist on.
.IP \fBreverse\fR 4
.IX Item "reverse"
In a hardware to hardware mapping, map in reverse \- create frames in the sink
and map them back to the source.  This may be necessary in some cases where
a mapping in one direction is required but only the opposite direction is
supported by the devices being used.
.Sp
This option is dangerous \- it may break the preceding filter in undefined
ways if there are any additional constraints on that filter's output.
Do not use it without fully understanding the implications of its use.
.SS hwupload
.IX Subsection "hwupload"
Upload system memory frames to hardware surfaces.
.PP
The device to upload to must be supplied when the filter is initialised.  If
using ffmpeg, select the appropriate device with the \fB\-filter_hw_device\fR
option or with the \fBderive_device\fR option.  The input and output devices
must be of different types and compatible \- the exact meaning of this is
system-dependent, but typically it means that they must refer to the same
underlying hardware context (for example, refer to the same graphics card).
.PP
The following additional parameters are accepted:
.IP "\fBderive_device\fR \fItype\fR" 4
.IX Item "derive_device type"
Rather than using the device supplied at initialisation, instead derive a new
device of type \fItype\fR from the device the input frames exist on.
.SS hwupload_cuda
.IX Subsection "hwupload_cuda"
Upload system memory frames to a CUDA device.
.PP
It accepts the following optional parameters:
.IP \fBdevice\fR 4
.IX Item "device"
The number of the CUDA device to use
.SS hqx
.IX Subsection "hqx"
Apply a high-quality magnification filter designed for pixel art. This filter
was originally created by Maxim Stepin.
.PP
It accepts the following option:
.IP \fBn\fR 4
.IX Item "n"
Set the scaling dimension: \f(CW2\fR for \f(CW\*(C`hq2x\*(C'\fR, \f(CW3\fR for
\&\f(CW\*(C`hq3x\*(C'\fR and \f(CW4\fR for \f(CW\*(C`hq4x\*(C'\fR.
Default is \f(CW3\fR.
.SS hstack
.IX Subsection "hstack"
Stack input videos horizontally.
.PP
All streams must be of same pixel format and of same height.
.PP
Note that this filter is faster than using \fBoverlay\fR and \fBpad\fR filter
to create same output.
.PP
The filter accepts the following option:
.IP \fBinputs\fR 4
.IX Item "inputs"
Set number of input streams. Default is 2.
.IP \fBshortest\fR 4
.IX Item "shortest"
If set to 1, force the output to terminate when the shortest input
terminates. Default value is 0.
.SS hue
.IX Subsection "hue"
Modify the hue and/or the saturation of the input.
.PP
It accepts the following parameters:
.IP \fBh\fR 4
.IX Item "h"
Specify the hue angle as a number of degrees. It accepts an expression,
and defaults to "0".
.IP \fBs\fR 4
.IX Item "s"
Specify the saturation in the [\-10,10] range. It accepts an expression and
defaults to "1".
.IP \fBH\fR 4
.IX Item "H"
Specify the hue angle as a number of radians. It accepts an
expression, and defaults to "0".
.IP \fBb\fR 4
.IX Item "b"
Specify the brightness in the [\-10,10] range. It accepts an expression and
defaults to "0".
.PP
\&\fBh\fR and \fBH\fR are mutually exclusive, and can't be
specified at the same time.
.PP
The \fBb\fR, \fBh\fR, \fBH\fR and \fBs\fR option values are
expressions containing the following constants:
.IP \fBn\fR 4
.IX Item "n"
frame count of the input frame starting from 0
.IP \fBpts\fR 4
.IX Item "pts"
presentation timestamp of the input frame expressed in time base units
.IP \fBr\fR 4
.IX Item "r"
frame rate of the input video, NAN if the input frame rate is unknown
.IP \fBt\fR 4
.IX Item "t"
timestamp expressed in seconds, NAN if the input timestamp is unknown
.IP \fBtb\fR 4
.IX Item "tb"
time base of the input video
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Set the hue to 90 degrees and the saturation to 1.0:
.Sp
.Vb 1
\&        hue=h=90:s=1
.Ve
.IP \(bu 4
Same command but expressing the hue in radians:
.Sp
.Vb 1
\&        hue=H=PI/2:s=1
.Ve
.IP \(bu 4
Rotate hue and make the saturation swing between 0
and 2 over a period of 1 second:
.Sp
.Vb 1
\&        hue="H=2*PI*t: s=sin(2*PI*t)+1"
.Ve
.IP \(bu 4
Apply a 3 seconds saturation fade-in effect starting at 0:
.Sp
.Vb 1
\&        hue="s=min(t/3\e,1)"
.Ve
.Sp
The general fade-in expression can be written as:
.Sp
.Vb 1
\&        hue="s=min(0\e, max((t\-START)/DURATION\e, 1))"
.Ve
.IP \(bu 4
Apply a 3 seconds saturation fade-out effect starting at 5 seconds:
.Sp
.Vb 1
\&        hue="s=max(0\e, min(1\e, (8\-t)/3))"
.Ve
.Sp
The general fade-out expression can be written as:
.Sp
.Vb 1
\&        hue="s=max(0\e, min(1\e, (START+DURATION\-t)/DURATION))"
.Ve
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the following commands:
.IP \fBb\fR 4
.IX Item "b"
.PD 0
.IP \fBs\fR 4
.IX Item "s"
.IP \fBh\fR 4
.IX Item "h"
.IP \fBH\fR 4
.IX Item "H"
.PD
Modify the hue and/or the saturation and/or brightness of the input video.
The command accepts the same syntax of the corresponding option.
.Sp
If the specified expression is not valid, it is kept at its current
value.
.SS hysteresis
.IX Subsection "hysteresis"
Grow first stream into second stream by connecting components.
This makes it possible to build more robust edge masks.
.PP
This filter accepts the following options:
.IP \fBplanes\fR 4
.IX Item "planes"
Set which planes will be processed as bitmap, unprocessed planes will be
copied from first stream.
By default value 0xf, all planes will be processed.
.IP \fBthreshold\fR 4
.IX Item "threshold"
Set threshold which is used in filtering. If pixel component value is higher than
this value filter algorithm for connecting components is activated.
By default value is 0.
.PP
The \f(CW\*(C`hysteresis\*(C'\fR filter also supports the \fBframesync\fR options.
.SS identity
.IX Subsection "identity"
Obtain the identity score between two input videos.
.PP
This filter takes two input videos.
.PP
Both input videos must have the same resolution and pixel format for
this filter to work correctly. Also it assumes that both inputs
have the same number of frames, which are compared one by one.
.PP
The obtained per component, average, min and max identity score is printed through
the logging system.
.PP
The filter stores the calculated identity scores of each frame in frame metadata.
.PP
In the below example the input file \fImain.mpg\fR being processed is compared
with the reference file \fIref.mpg\fR.
.PP
.Vb 1
\&        ffmpeg \-i main.mpg \-i ref.mpg \-lavfi identity \-f null \-
.Ve
.SS idet
.IX Subsection "idet"
Detect video interlacing type.
.PP
This filter tries to detect if the input frames are interlaced, progressive,
top or bottom field first. It will also try to detect fields that are
repeated between adjacent frames (a sign of telecine).
.PP
Single frame detection considers only immediately adjacent frames when classifying each frame.
Multiple frame detection incorporates the classification history of previous frames.
.PP
The filter will log these metadata values:
.IP \fBsingle.current_frame\fR 4
.IX Item "single.current_frame"
Detected type of current frame using single-frame detection. One of:
``tff'' (top field first), ``bff'' (bottom field first),
``progressive'', or ``undetermined''
.IP \fBsingle.tff\fR 4
.IX Item "single.tff"
Cumulative number of frames detected as top field first using single-frame detection.
.IP \fBmultiple.tff\fR 4
.IX Item "multiple.tff"
Cumulative number of frames detected as top field first using multiple-frame detection.
.IP \fBsingle.bff\fR 4
.IX Item "single.bff"
Cumulative number of frames detected as bottom field first using single-frame detection.
.IP \fBmultiple.current_frame\fR 4
.IX Item "multiple.current_frame"
Detected type of current frame using multiple-frame detection. One of:
``tff'' (top field first), ``bff'' (bottom field first),
``progressive'', or ``undetermined''
.IP \fBmultiple.bff\fR 4
.IX Item "multiple.bff"
Cumulative number of frames detected as bottom field first using multiple-frame detection.
.IP \fBsingle.progressive\fR 4
.IX Item "single.progressive"
Cumulative number of frames detected as progressive using single-frame detection.
.IP \fBmultiple.progressive\fR 4
.IX Item "multiple.progressive"
Cumulative number of frames detected as progressive using multiple-frame detection.
.IP \fBsingle.undetermined\fR 4
.IX Item "single.undetermined"
Cumulative number of frames that could not be classified using single-frame detection.
.IP \fBmultiple.undetermined\fR 4
.IX Item "multiple.undetermined"
Cumulative number of frames that could not be classified using multiple-frame detection.
.IP \fBrepeated.current_frame\fR 4
.IX Item "repeated.current_frame"
Which field in the current frame is repeated from the last. One of ``neither'', ``top'', or ``bottom''.
.IP \fBrepeated.neither\fR 4
.IX Item "repeated.neither"
Cumulative number of frames with no repeated field.
.IP \fBrepeated.top\fR 4
.IX Item "repeated.top"
Cumulative number of frames with the top field repeated from the previous frame's top field.
.IP \fBrepeated.bottom\fR 4
.IX Item "repeated.bottom"
Cumulative number of frames with the bottom field repeated from the previous frame's bottom field.
.PP
The filter accepts the following options:
.IP \fBintl_thres\fR 4
.IX Item "intl_thres"
Set interlacing threshold.
.IP \fBprog_thres\fR 4
.IX Item "prog_thres"
Set progressive threshold.
.IP \fBrep_thres\fR 4
.IX Item "rep_thres"
Threshold for repeated field detection.
.IP \fBhalf_life\fR 4
.IX Item "half_life"
Number of frames after which a given frame's contribution to the
statistics is halved (i.e., it contributes only 0.5 to its
classification). The default of 0 means that all frames seen are given
full weight of 1.0 forever.
.IP \fBanalyze_interlaced_flag\fR 4
.IX Item "analyze_interlaced_flag"
When this is not 0 then idet will use the specified number of frames to determine
if the interlaced flag is accurate, it will not count undetermined frames.
If the flag is found to be accurate it will be used without any further
computations, if it is found to be inaccurate it will be cleared without any
further computations. This allows inserting the idet filter as a low computational
method to clean up the interlaced flag
.SS il
.IX Subsection "il"
Deinterleave or interleave fields.
.PP
This filter allows one to process interlaced images fields without
deinterlacing them. Deinterleaving splits the input frame into 2
fields (so called half pictures). Odd lines are moved to the top
half of the output image, even lines to the bottom half.
You can process (filter) them independently and then re-interleave them.
.PP
The filter accepts the following options:
.IP "\fBluma_mode, l\fR" 4
.IX Item "luma_mode, l"
.PD 0
.IP "\fBchroma_mode, c\fR" 4
.IX Item "chroma_mode, c"
.IP "\fBalpha_mode, a\fR" 4
.IX Item "alpha_mode, a"
.PD
Available values for \fIluma_mode\fR, \fIchroma_mode\fR and
\&\fIalpha_mode\fR are:
.RS 4
.IP \fBnone\fR 4
.IX Item "none"
Do nothing.
.IP "\fBdeinterleave, d\fR" 4
.IX Item "deinterleave, d"
Deinterleave fields, placing one above the other.
.IP "\fBinterleave, i\fR" 4
.IX Item "interleave, i"
Interleave fields. Reverse the effect of deinterleaving.
.RE
.RS 4
.Sp
Default value is \f(CW\*(C`none\*(C'\fR.
.RE
.IP "\fBluma_swap, ls\fR" 4
.IX Item "luma_swap, ls"
.PD 0
.IP "\fBchroma_swap, cs\fR" 4
.IX Item "chroma_swap, cs"
.IP "\fBalpha_swap, as\fR" 4
.IX Item "alpha_swap, as"
.PD
Swap luma/chroma/alpha fields. Exchange even & odd lines. Default value is \f(CW0\fR.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS inflate
.IX Subsection "inflate"
Apply inflate effect to the video.
.PP
This filter replaces the pixel by the local(3x3) average by taking into account
only values higher than the pixel.
.PP
It accepts the following options:
.IP \fBthreshold0\fR 4
.IX Item "threshold0"
.PD 0
.IP \fBthreshold1\fR 4
.IX Item "threshold1"
.IP \fBthreshold2\fR 4
.IX Item "threshold2"
.IP \fBthreshold3\fR 4
.IX Item "threshold3"
.PD
Limit the maximum change for each plane, default is 65535.
If 0, plane will remain unchanged.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS interlace
.IX Subsection "interlace"
Simple interlacing filter from progressive contents. This interleaves upper (or
lower) lines from odd frames with lower (or upper) lines from even frames,
halving the frame rate and preserving image height.
.PP
.Vb 9
\&           Original        Original             New Frame
\&           Frame \*(Aqj\*(Aq      Frame \*(Aqj+1\*(Aq             (tff)
\&          ==========      ===========       ==================
\&            Line 0  \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\->    Frame \*(Aqj\*(Aq Line 0
\&            Line 1          Line 1  \-\-\-\->   Frame \*(Aqj+1\*(Aq Line 1
\&            Line 2 \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\->    Frame \*(Aqj\*(Aq Line 2
\&            Line 3          Line 3  \-\-\-\->   Frame \*(Aqj+1\*(Aq Line 3
\&             ...             ...                   ...
\&        New Frame + 1 will be generated by Frame \*(Aqj+2\*(Aq and Frame \*(Aqj+3\*(Aq and so on
.Ve
.PP
It accepts the following optional parameters:
.IP \fBscan\fR 4
.IX Item "scan"
This determines whether the interlaced frame is taken from the even
(tff \- default) or odd (bff) lines of the progressive frame.
.IP \fBlowpass\fR 4
.IX Item "lowpass"
Vertical lowpass filter to avoid twitter interlacing and
reduce moire patterns.
.RS 4
.IP "\fB0, off\fR" 4
.IX Item "0, off"
Disable vertical lowpass filter
.IP "\fB1, linear\fR" 4
.IX Item "1, linear"
Enable linear filter (default)
.IP "\fB2, complex\fR" 4
.IX Item "2, complex"
Enable complex filter. This will slightly less reduce twitter and moire
but better retain detail and subjective sharpness impression.
.RE
.RS 4
.RE
.SS kerndeint
.IX Subsection "kerndeint"
Deinterlace input video by applying Donald Graft's adaptive kernel
deinterling. Work on interlaced parts of a video to produce
progressive frames.
.PP
The description of the accepted parameters follows.
.IP \fBthresh\fR 4
.IX Item "thresh"
Set the threshold which affects the filter's tolerance when
determining if a pixel line must be processed. It must be an integer
in the range [0,255] and defaults to 10. A value of 0 will result in
applying the process on every pixels.
.IP \fBmap\fR 4
.IX Item "map"
Paint pixels exceeding the threshold value to white if set to 1.
Default is 0.
.IP \fBorder\fR 4
.IX Item "order"
Set the fields order. Swap fields if set to 1, leave fields alone if
0. Default is 0.
.IP \fBsharp\fR 4
.IX Item "sharp"
Enable additional sharpening if set to 1. Default is 0.
.IP \fBtwoway\fR 4
.IX Item "twoway"
Enable twoway sharpening if set to 1. Default is 0.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Apply default values:
.Sp
.Vb 1
\&        kerndeint=thresh=10:map=0:order=0:sharp=0:twoway=0
.Ve
.IP \(bu 4
Enable additional sharpening:
.Sp
.Vb 1
\&        kerndeint=sharp=1
.Ve
.IP \(bu 4
Paint processed pixels in white:
.Sp
.Vb 1
\&        kerndeint=map=1
.Ve
.SS kirsch
.IX Subsection "kirsch"
Apply kirsch operator to input video stream.
.PP
The filter accepts the following option:
.IP \fBplanes\fR 4
.IX Item "planes"
Set which planes will be processed, unprocessed planes will be copied.
By default value 0xf, all planes will be processed.
.IP \fBscale\fR 4
.IX Item "scale"
Set value which will be multiplied with filtered result.
.IP \fBdelta\fR 4
.IX Item "delta"
Set value which will be added to filtered result.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS lagfun
.IX Subsection "lagfun"
Slowly update darker pixels.
.PP
This filter makes short flashes of light appear longer.
This filter accepts the following options:
.IP \fBdecay\fR 4
.IX Item "decay"
Set factor for decaying. Default is .95. Allowed range is from 0 to 1.
.IP \fBplanes\fR 4
.IX Item "planes"
Set which planes to filter. Default is all. Allowed range is from 0 to 15.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS lenscorrection
.IX Subsection "lenscorrection"
Correct radial lens distortion
.PP
This filter can be used to correct for radial distortion as can result from the use
of wide angle lenses, and thereby re-rectify the image. To find the right parameters
one can use tools available for example as part of opencv or simply trial-and-error.
To use opencv use the calibration sample (under samples/cpp) from the opencv sources
and extract the k1 and k2 coefficients from the resulting matrix.
.PP
Note that effectively the same filter is available in the open-source tools Krita and
Digikam from the KDE project.
.PP
In contrast to the \fBvignette\fR filter, which can also be used to compensate lens errors,
this filter corrects the distortion of the image, whereas \fBvignette\fR corrects the
brightness distribution, so you may want to use both filters together in certain
cases, though you will have to take care of ordering, i.e. whether vignetting should
be applied before or after lens correction.
.PP
\fIOptions\fR
.IX Subsection "Options"
.PP
The filter accepts the following options:
.IP \fBcx\fR 4
.IX Item "cx"
Relative x\-coordinate of the focal point of the image, and thereby the center of the
distortion. This value has a range [0,1] and is expressed as fractions of the image
width. Default is 0.5.
.IP \fBcy\fR 4
.IX Item "cy"
Relative y\-coordinate of the focal point of the image, and thereby the center of the
distortion. This value has a range [0,1] and is expressed as fractions of the image
height. Default is 0.5.
.IP \fBk1\fR 4
.IX Item "k1"
Coefficient of the quadratic correction term. This value has a range [\-1,1]. 0 means
no correction. Default is 0.
.IP \fBk2\fR 4
.IX Item "k2"
Coefficient of the double quadratic correction term. This value has a range [\-1,1].
0 means no correction. Default is 0.
.IP \fBi\fR 4
.IX Item "i"
Set interpolation type. Can be \f(CW\*(C`nearest\*(C'\fR or \f(CW\*(C`bilinear\*(C'\fR.
Default is \f(CW\*(C`nearest\*(C'\fR.
.IP \fBfc\fR 4
.IX Item "fc"
Specify the color of the unmapped pixels. For the syntax of this option,
check the \fB"Color" section in the ffmpeg-utils
manual\fR. Default color is \f(CW\*(C`black@0\*(C'\fR.
.PP
The formula that generates the correction is:
.PP
\&\fIr_src\fR = \fIr_tgt\fR * (1 + \fIk1\fR * (\fIr_tgt\fR / \fIr_0\fR)^2 + \fIk2\fR * (\fIr_tgt\fR / \fIr_0\fR)^4)
.PP
where \fIr_0\fR is halve of the image diagonal and \fIr_src\fR and \fIr_tgt\fR are the
distances from the focal point in the source and target images, respectively.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS lensfun
.IX Subsection "lensfun"
Apply lens correction via the lensfun library (<\fBhttp://lensfun.sourceforge.net/\fR>).
.PP
The \f(CW\*(C`lensfun\*(C'\fR filter requires the camera make, camera model, and lens model
to apply the lens correction. The filter will load the lensfun database and
query it to find the corresponding camera and lens entries in the database. As
long as these entries can be found with the given options, the filter can
perform corrections on frames. Note that incomplete strings will result in the
filter choosing the best match with the given options, and the filter will
output the chosen camera and lens models (logged with level "info"). You must
provide the make, camera model, and lens model as they are required.
.PP
The filter accepts the following options:
.IP \fBmake\fR 4
.IX Item "make"
The make of the camera (for example, "Canon"). This option is required.
.IP \fBmodel\fR 4
.IX Item "model"
The model of the camera (for example, "Canon EOS 100D"). This option is
required.
.IP \fBlens_model\fR 4
.IX Item "lens_model"
The model of the lens (for example, "Canon EF-S 18\-55mm f/3.5\-5.6 IS STM"). This
option is required.
.IP \fBmode\fR 4
.IX Item "mode"
The type of correction to apply. The following values are valid options:
.RS 4
.IP \fBvignetting\fR 4
.IX Item "vignetting"
Enables fixing lens vignetting.
.IP \fBgeometry\fR 4
.IX Item "geometry"
Enables fixing lens geometry. This is the default.
.IP \fBsubpixel\fR 4
.IX Item "subpixel"
Enables fixing chromatic aberrations.
.IP \fBvig_geo\fR 4
.IX Item "vig_geo"
Enables fixing lens vignetting and lens geometry.
.IP \fBvig_subpixel\fR 4
.IX Item "vig_subpixel"
Enables fixing lens vignetting and chromatic aberrations.
.IP \fBdistortion\fR 4
.IX Item "distortion"
Enables fixing both lens geometry and chromatic aberrations.
.IP \fBall\fR 4
.IX Item "all"
Enables all possible corrections.
.RE
.RS 4
.RE
.IP \fBfocal_length\fR 4
.IX Item "focal_length"
The focal length of the image/video (zoom; expected constant for video). For
example, a 18\-\-55mm lens has focal length range of [18\-\-55], so a value in that
range should be chosen when using that lens. Default 18.
.IP \fBaperture\fR 4
.IX Item "aperture"
The aperture of the image/video (expected constant for video). Note that
aperture is only used for vignetting correction. Default 3.5.
.IP \fBfocus_distance\fR 4
.IX Item "focus_distance"
The focus distance of the image/video (expected constant for video). Note that
focus distance is only used for vignetting and only slightly affects the
vignetting correction process. If unknown, leave it at the default value (which
is 1000).
.IP \fBscale\fR 4
.IX Item "scale"
The scale factor which is applied after transformation. After correction the
video is no longer necessarily rectangular. This parameter controls how much of
the resulting image is visible. The value 0 means that a value will be chosen
automatically such that there is little or no unmapped area in the output
image. 1.0 means that no additional scaling is done. Lower values may result
in more of the corrected image being visible, while higher values may avoid
unmapped areas in the output.
.IP \fBtarget_geometry\fR 4
.IX Item "target_geometry"
The target geometry of the output image/video. The following values are valid
options:
.RS 4
.IP "\fBrectilinear (default)\fR" 4
.IX Item "rectilinear (default)"
.PD 0
.IP \fBfisheye\fR 4
.IX Item "fisheye"
.IP \fBpanoramic\fR 4
.IX Item "panoramic"
.IP \fBequirectangular\fR 4
.IX Item "equirectangular"
.IP \fBfisheye_orthographic\fR 4
.IX Item "fisheye_orthographic"
.IP \fBfisheye_stereographic\fR 4
.IX Item "fisheye_stereographic"
.IP \fBfisheye_equisolid\fR 4
.IX Item "fisheye_equisolid"
.IP \fBfisheye_thoby\fR 4
.IX Item "fisheye_thoby"
.RE
.RS 4
.RE
.IP \fBreverse\fR 4
.IX Item "reverse"
.PD
Apply the reverse of image correction (instead of correcting distortion, apply
it).
.IP \fBinterpolation\fR 4
.IX Item "interpolation"
The type of interpolation used when correcting distortion. The following values
are valid options:
.RS 4
.IP \fBnearest\fR 4
.IX Item "nearest"
.PD 0
.IP "\fBlinear (default)\fR" 4
.IX Item "linear (default)"
.IP \fBlanczos\fR 4
.IX Item "lanczos"
.RE
.RS 4
.RE
.PD
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Apply lens correction with make "Canon", camera model "Canon EOS 100D", and lens
model "Canon EF-S 18\-55mm f/3.5\-5.6 IS STM" with focal length of "18" and
aperture of "8.0".
.Sp
.Vb 1
\&        ffmpeg \-i input.mov \-vf lensfun=make=Canon:model="Canon EOS 100D":lens_model="Canon EF\-S 18\-55mm f/3.5\-5.6 IS STM":focal_length=18:aperture=8 \-c:v h264 \-b:v 8000k output.mov
.Ve
.IP \(bu 4
Apply the same as before, but only for the first 5 seconds of video.
.Sp
.Vb 1
\&        ffmpeg \-i input.mov \-vf lensfun=make=Canon:model="Canon EOS 100D":lens_model="Canon EF\-S 18\-55mm f/3.5\-5.6 IS STM":focal_length=18:aperture=8:enable=\*(Aqlte(t\e,5)\*(Aq \-c:v h264 \-b:v 8000k output.mov
.Ve
.SS libvmaf
.IX Subsection "libvmaf"
Obtain the VMAF (Video Multi-Method Assessment Fusion)
score between two input videos.
.PP
The obtained VMAF score is printed through the logging system.
.PP
It requires Netflix's vmaf library (libvmaf) as a pre-requisite.
After installing the library it can be enabled using:
\&\f(CW\*(C`./configure \-\-enable\-libvmaf\*(C'\fR.
If no model path is specified it uses the default model: \f(CW\*(C`vmaf_v0.6.1.pkl\*(C'\fR.
.PP
The filter has following options:
.IP \fBmodel_path\fR 4
.IX Item "model_path"
Set the model path which is to be used for SVM.
Default value: \f(CW"/usr/local/share/model/vmaf_v0.6.1.pkl"\fR
.IP \fBlog_path\fR 4
.IX Item "log_path"
Set the file path to be used to store logs.
.IP \fBlog_fmt\fR 4
.IX Item "log_fmt"
Set the format of the log file (csv, json or xml).
.IP \fBenable_transform\fR 4
.IX Item "enable_transform"
This option can enable/disable the \f(CW\*(C`score_transform\*(C'\fR applied to the final predicted VMAF score,
if you have specified score_transform option in the input parameter file passed to \f(CW\*(C`run_vmaf_training.py\*(C'\fR
Default value: \f(CW\*(C`false\*(C'\fR
.IP \fBphone_model\fR 4
.IX Item "phone_model"
Invokes the phone model which will generate VMAF scores higher than in the
regular model, which is more suitable for laptop, TV, etc. viewing conditions.
Default value: \f(CW\*(C`false\*(C'\fR
.IP \fBpsnr\fR 4
.IX Item "psnr"
Enables computing psnr along with vmaf.
Default value: \f(CW\*(C`false\*(C'\fR
.IP \fBssim\fR 4
.IX Item "ssim"
Enables computing ssim along with vmaf.
Default value: \f(CW\*(C`false\*(C'\fR
.IP \fBms_ssim\fR 4
.IX Item "ms_ssim"
Enables computing ms_ssim along with vmaf.
Default value: \f(CW\*(C`false\*(C'\fR
.IP \fBpool\fR 4
.IX Item "pool"
Set the pool method to be used for computing vmaf.
Options are \f(CW\*(C`min\*(C'\fR, \f(CW\*(C`harmonic_mean\*(C'\fR or \f(CW\*(C`mean\*(C'\fR (default).
.IP \fBn_threads\fR 4
.IX Item "n_threads"
Set number of threads to be used when computing vmaf.
Default value: \f(CW0\fR, which makes use of all available logical processors.
.IP \fBn_subsample\fR 4
.IX Item "n_subsample"
Set interval for frame subsampling used when computing vmaf.
Default value: \f(CW1\fR
.IP \fBenable_conf_interval\fR 4
.IX Item "enable_conf_interval"
Enables confidence interval.
Default value: \f(CW\*(C`false\*(C'\fR
.PP
This filter also supports the \fBframesync\fR options.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
On the below examples the input file \fImain.mpg\fR being processed is
compared with the reference file \fIref.mpg\fR.
.Sp
.Vb 1
\&        ffmpeg \-i main.mpg \-i ref.mpg \-lavfi libvmaf \-f null \-
.Ve
.IP \(bu 4
Example with options:
.Sp
.Vb 1
\&        ffmpeg \-i main.mpg \-i ref.mpg \-lavfi libvmaf="psnr=1:log_fmt=json" \-f null \-
.Ve
.IP \(bu 4
Example with options and different containers:
.Sp
.Vb 1
\&        ffmpeg \-i main.mpg \-i ref.mkv \-lavfi "[0:v]settb=AVTB,setpts=PTS\-STARTPTS[main];[1:v]settb=AVTB,setpts=PTS\-STARTPTS[ref];[main][ref]libvmaf=psnr=1:log_fmt=json" \-f null \-
.Ve
.SS limiter
.IX Subsection "limiter"
Limits the pixel components values to the specified range [min, max].
.PP
The filter accepts the following options:
.IP \fBmin\fR 4
.IX Item "min"
Lower bound. Defaults to the lowest allowed value for the input.
.IP \fBmax\fR 4
.IX Item "max"
Upper bound. Defaults to the highest allowed value for the input.
.IP \fBplanes\fR 4
.IX Item "planes"
Specify which planes will be processed. Defaults to all available.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS loop
.IX Subsection "loop"
Loop video frames.
.PP
The filter accepts the following options:
.IP \fBloop\fR 4
.IX Item "loop"
Set the number of loops. Setting this value to \-1 will result in infinite loops.
Default is 0.
.IP \fBsize\fR 4
.IX Item "size"
Set maximal size in number of frames. Default is 0.
.IP \fBstart\fR 4
.IX Item "start"
Set first frame of loop. Default is 0.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Loop single first frame infinitely:
.Sp
.Vb 1
\&        loop=loop=\-1:size=1:start=0
.Ve
.IP \(bu 4
Loop single first frame 10 times:
.Sp
.Vb 1
\&        loop=loop=10:size=1:start=0
.Ve
.IP \(bu 4
Loop 10 first frames 5 times:
.Sp
.Vb 1
\&        loop=loop=5:size=10:start=0
.Ve
.SS lut1d
.IX Subsection "lut1d"
Apply a 1D LUT to an input video.
.PP
The filter accepts the following options:
.IP \fBfile\fR 4
.IX Item "file"
Set the 1D LUT file name.
.Sp
Currently supported formats:
.RS 4
.IP \fBcube\fR 4
.IX Item "cube"
Iridas
.IP \fBcsp\fR 4
.IX Item "csp"
cineSpace
.RE
.RS 4
.RE
.IP \fBinterp\fR 4
.IX Item "interp"
Select interpolation mode.
.Sp
Available values are:
.RS 4
.IP \fBnearest\fR 4
.IX Item "nearest"
Use values from the nearest defined point.
.IP \fBlinear\fR 4
.IX Item "linear"
Interpolate values using the linear interpolation.
.IP \fBcosine\fR 4
.IX Item "cosine"
Interpolate values using the cosine interpolation.
.IP \fBcubic\fR 4
.IX Item "cubic"
Interpolate values using the cubic interpolation.
.IP \fBspline\fR 4
.IX Item "spline"
Interpolate values using the spline interpolation.
.RE
.RS 4
.RE
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS lut3d
.IX Subsection "lut3d"
Apply a 3D LUT to an input video.
.PP
The filter accepts the following options:
.IP \fBfile\fR 4
.IX Item "file"
Set the 3D LUT file name.
.Sp
Currently supported formats:
.RS 4
.IP \fB3dl\fR 4
.IX Item "3dl"
AfterEffects
.IP \fBcube\fR 4
.IX Item "cube"
Iridas
.IP \fBdat\fR 4
.IX Item "dat"
DaVinci
.IP \fBm3d\fR 4
.IX Item "m3d"
Pandora
.IP \fBcsp\fR 4
.IX Item "csp"
cineSpace
.RE
.RS 4
.RE
.IP \fBinterp\fR 4
.IX Item "interp"
Select interpolation mode.
.Sp
Available values are:
.RS 4
.IP \fBnearest\fR 4
.IX Item "nearest"
Use values from the nearest defined point.
.IP \fBtrilinear\fR 4
.IX Item "trilinear"
Interpolate values using the 8 points defining a cube.
.IP \fBtetrahedral\fR 4
.IX Item "tetrahedral"
Interpolate values using a tetrahedron.
.IP \fBpyramid\fR 4
.IX Item "pyramid"
Interpolate values using a pyramid.
.IP \fBprism\fR 4
.IX Item "prism"
Interpolate values using a prism.
.RE
.RS 4
.RE
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the \f(CW\*(C`interp\*(C'\fR option as \fBcommands\fR.
.SS lumakey
.IX Subsection "lumakey"
Turn certain luma values into transparency.
.PP
The filter accepts the following options:
.IP \fBthreshold\fR 4
.IX Item "threshold"
Set the luma which will be used as base for transparency.
Default value is \f(CW0\fR.
.IP \fBtolerance\fR 4
.IX Item "tolerance"
Set the range of luma values to be keyed out.
Default value is \f(CW0.01\fR.
.IP \fBsoftness\fR 4
.IX Item "softness"
Set the range of softness. Default value is \f(CW0\fR.
Use this to control gradual transition from zero to full transparency.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports same \fBcommands\fR as options.
The command accepts the same syntax of the corresponding option.
.PP
If the specified expression is not valid, it is kept at its current
value.
.SS "lut, lutrgb, lutyuv"
.IX Subsection "lut, lutrgb, lutyuv"
Compute a look-up table for binding each pixel component input value
to an output value, and apply it to the input video.
.PP
\&\fIlutyuv\fR applies a lookup table to a YUV input video, \fIlutrgb\fR
to an RGB input video.
.PP
These filters accept the following parameters:
.IP \fBc0\fR 4
.IX Item "c0"
set first pixel component expression
.IP \fBc1\fR 4
.IX Item "c1"
set second pixel component expression
.IP \fBc2\fR 4
.IX Item "c2"
set third pixel component expression
.IP \fBc3\fR 4
.IX Item "c3"
set fourth pixel component expression, corresponds to the alpha component
.IP \fBr\fR 4
.IX Item "r"
set red component expression
.IP \fBg\fR 4
.IX Item "g"
set green component expression
.IP \fBb\fR 4
.IX Item "b"
set blue component expression
.IP \fBa\fR 4
.IX Item "a"
alpha component expression
.IP \fBy\fR 4
.IX Item "y"
set Y/luminance component expression
.IP \fBu\fR 4
.IX Item "u"
set U/Cb component expression
.IP \fBv\fR 4
.IX Item "v"
set V/Cr component expression
.PP
Each of them specifies the expression to use for computing the lookup table for
the corresponding pixel component values.
.PP
The exact component associated to each of the \fIc*\fR options depends on the
format in input.
.PP
The \fIlut\fR filter requires either YUV or RGB pixel formats in input,
\&\fIlutrgb\fR requires RGB pixel formats in input, and \fIlutyuv\fR requires YUV.
.PP
The expressions can contain the following constants and functions:
.IP \fBw\fR 4
.IX Item "w"
.PD 0
.IP \fBh\fR 4
.IX Item "h"
.PD
The input width and height.
.IP \fBval\fR 4
.IX Item "val"
The input value for the pixel component.
.IP \fBclipval\fR 4
.IX Item "clipval"
The input value, clipped to the \fIminval\fR\-\fImaxval\fR range.
.IP \fBmaxval\fR 4
.IX Item "maxval"
The maximum value for the pixel component.
.IP \fBminval\fR 4
.IX Item "minval"
The minimum value for the pixel component.
.IP \fBnegval\fR 4
.IX Item "negval"
The negated value for the pixel component value, clipped to the
\&\fIminval\fR\-\fImaxval\fR range; it corresponds to the expression
"maxval\-clipval+minval".
.IP \fBclip(val)\fR 4
.IX Item "clip(val)"
The computed value in \fIval\fR, clipped to the
\&\fIminval\fR\-\fImaxval\fR range.
.IP \fBgammaval(gamma)\fR 4
.IX Item "gammaval(gamma)"
The computed gamma correction value of the pixel component value,
clipped to the \fIminval\fR\-\fImaxval\fR range. It corresponds to the
expression
"pow((clipval\-minval)/(maxval\-minval)\e,\fIgamma\fR)*(maxval\-minval)+minval"
.PP
All expressions default to "val".
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports same \fBcommands\fR as options.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Negate input video:
.Sp
.Vb 2
\&        lutrgb="r=maxval+minval\-val:g=maxval+minval\-val:b=maxval+minval\-val"
\&        lutyuv="y=maxval+minval\-val:u=maxval+minval\-val:v=maxval+minval\-val"
.Ve
.Sp
The above is the same as:
.Sp
.Vb 2
\&        lutrgb="r=negval:g=negval:b=negval"
\&        lutyuv="y=negval:u=negval:v=negval"
.Ve
.IP \(bu 4
Negate luminance:
.Sp
.Vb 1
\&        lutyuv=y=negval
.Ve
.IP \(bu 4
Remove chroma components, turning the video into a graytone image:
.Sp
.Vb 1
\&        lutyuv="u=128:v=128"
.Ve
.IP \(bu 4
Apply a luma burning effect:
.Sp
.Vb 1
\&        lutyuv="y=2*val"
.Ve
.IP \(bu 4
Remove green and blue components:
.Sp
.Vb 1
\&        lutrgb="g=0:b=0"
.Ve
.IP \(bu 4
Set a constant alpha channel value on input:
.Sp
.Vb 1
\&        format=rgba,lutrgb=a="maxval\-minval/2"
.Ve
.IP \(bu 4
Correct luminance gamma by a factor of 0.5:
.Sp
.Vb 1
\&        lutyuv=y=gammaval(0.5)
.Ve
.IP \(bu 4
Discard least significant bits of luma:
.Sp
.Vb 1
\&        lutyuv=y=\*(Aqbitand(val, 128+64+32)\*(Aq
.Ve
.IP \(bu 4
Technicolor like effect:
.Sp
.Vb 1
\&        lutyuv=u=\*(Aq(val\-maxval/2)*2+maxval/2\*(Aq:v=\*(Aq(val\-maxval/2)*2+maxval/2\*(Aq
.Ve
.SS "lut2, tlut2"
.IX Subsection "lut2, tlut2"
The \f(CW\*(C`lut2\*(C'\fR filter takes two input streams and outputs one
stream.
.PP
The \f(CW\*(C`tlut2\*(C'\fR (time lut2) filter takes two consecutive frames
from one single stream.
.PP
This filter accepts the following parameters:
.IP \fBc0\fR 4
.IX Item "c0"
set first pixel component expression
.IP \fBc1\fR 4
.IX Item "c1"
set second pixel component expression
.IP \fBc2\fR 4
.IX Item "c2"
set third pixel component expression
.IP \fBc3\fR 4
.IX Item "c3"
set fourth pixel component expression, corresponds to the alpha component
.IP \fBd\fR 4
.IX Item "d"
set output bit depth, only available for \f(CW\*(C`lut2\*(C'\fR filter. By default is 0,
which means bit depth is automatically picked from first input format.
.PP
The \f(CW\*(C`lut2\*(C'\fR filter also supports the \fBframesync\fR options.
.PP
Each of them specifies the expression to use for computing the lookup table for
the corresponding pixel component values.
.PP
The exact component associated to each of the \fIc*\fR options depends on the
format in inputs.
.PP
The expressions can contain the following constants:
.IP \fBw\fR 4
.IX Item "w"
.PD 0
.IP \fBh\fR 4
.IX Item "h"
.PD
The input width and height.
.IP \fBx\fR 4
.IX Item "x"
The first input value for the pixel component.
.IP \fBy\fR 4
.IX Item "y"
The second input value for the pixel component.
.IP \fBbdx\fR 4
.IX Item "bdx"
The first input video bit depth.
.IP \fBbdy\fR 4
.IX Item "bdy"
The second input video bit depth.
.PP
All expressions default to "x".
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR except option \f(CW\*(C`d\*(C'\fR.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Highlight differences between two RGB video streams:
.Sp
.Vb 1
\&        lut2=\*(Aqifnot(x\-y,0,pow(2,bdx)\-1):ifnot(x\-y,0,pow(2,bdx)\-1):ifnot(x\-y,0,pow(2,bdx)\-1)\*(Aq
.Ve
.IP \(bu 4
Highlight differences between two YUV video streams:
.Sp
.Vb 1
\&        lut2=\*(Aqifnot(x\-y,0,pow(2,bdx)\-1):ifnot(x\-y,pow(2,bdx\-1),pow(2,bdx)\-1):ifnot(x\-y,pow(2,bdx\-1),pow(2,bdx)\-1)\*(Aq
.Ve
.IP \(bu 4
Show max difference between two video streams:
.Sp
.Vb 1
\&        lut2=\*(Aqif(lt(x,y),0,if(gt(x,y),pow(2,bdx)\-1,pow(2,bdx\-1))):if(lt(x,y),0,if(gt(x,y),pow(2,bdx)\-1,pow(2,bdx\-1))):if(lt(x,y),0,if(gt(x,y),pow(2,bdx)\-1,pow(2,bdx\-1)))\*(Aq
.Ve
.SS maskedclamp
.IX Subsection "maskedclamp"
Clamp the first input stream with the second input and third input stream.
.PP
Returns the value of first stream to be between second input
stream \- \f(CW\*(C`undershoot\*(C'\fR and third input stream + \f(CW\*(C`overshoot\*(C'\fR.
.PP
This filter accepts the following options:
.IP \fBundershoot\fR 4
.IX Item "undershoot"
Default value is \f(CW0\fR.
.IP \fBovershoot\fR 4
.IX Item "overshoot"
Default value is \f(CW0\fR.
.IP \fBplanes\fR 4
.IX Item "planes"
Set which planes will be processed as bitmap, unprocessed planes will be
copied from first stream.
By default value 0xf, all planes will be processed.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS maskedmax
.IX Subsection "maskedmax"
Merge the second and third input stream into output stream using absolute differences
between second input stream and first input stream and absolute difference between
third input stream and first input stream. The picked value will be from second input
stream if second absolute difference is greater than first one or from third input stream
otherwise.
.PP
This filter accepts the following options:
.IP \fBplanes\fR 4
.IX Item "planes"
Set which planes will be processed as bitmap, unprocessed planes will be
copied from first stream.
By default value 0xf, all planes will be processed.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS maskedmerge
.IX Subsection "maskedmerge"
Merge the first input stream with the second input stream using per pixel
weights in the third input stream.
.PP
A value of 0 in the third stream pixel component means that pixel component
from first stream is returned unchanged, while maximum value (eg. 255 for
8\-bit videos) means that pixel component from second stream is returned
unchanged. Intermediate values define the amount of merging between both
input stream's pixel components.
.PP
This filter accepts the following options:
.IP \fBplanes\fR 4
.IX Item "planes"
Set which planes will be processed as bitmap, unprocessed planes will be
copied from first stream.
By default value 0xf, all planes will be processed.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS maskedmin
.IX Subsection "maskedmin"
Merge the second and third input stream into output stream using absolute differences
between second input stream and first input stream and absolute difference between
third input stream and first input stream. The picked value will be from second input
stream if second absolute difference is less than first one or from third input stream
otherwise.
.PP
This filter accepts the following options:
.IP \fBplanes\fR 4
.IX Item "planes"
Set which planes will be processed as bitmap, unprocessed planes will be
copied from first stream.
By default value 0xf, all planes will be processed.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS maskedthreshold
.IX Subsection "maskedthreshold"
Pick pixels comparing absolute difference of two video streams with fixed
threshold.
.PP
If absolute difference between pixel component of first and second video
stream is equal or lower than user supplied threshold than pixel component
from first video stream is picked, otherwise pixel component from second
video stream is picked.
.PP
This filter accepts the following options:
.IP \fBthreshold\fR 4
.IX Item "threshold"
Set threshold used when picking pixels from absolute difference from two input
video streams.
.IP \fBplanes\fR 4
.IX Item "planes"
Set which planes will be processed as bitmap, unprocessed planes will be
copied from second stream.
By default value 0xf, all planes will be processed.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS maskfun
.IX Subsection "maskfun"
Create mask from input video.
.PP
For example it is useful to create motion masks after \f(CW\*(C`tblend\*(C'\fR filter.
.PP
This filter accepts the following options:
.IP \fBlow\fR 4
.IX Item "low"
Set low threshold. Any pixel component lower or exact than this value will be set to 0.
.IP \fBhigh\fR 4
.IX Item "high"
Set high threshold. Any pixel component higher than this value will be set to max value
allowed for current pixel format.
.IP \fBplanes\fR 4
.IX Item "planes"
Set planes to filter, by default all available planes are filtered.
.IP \fBfill\fR 4
.IX Item "fill"
Fill all frame pixels with this value.
.IP \fBsum\fR 4
.IX Item "sum"
Set max average pixel value for frame. If sum of all pixel components is higher that this
average, output frame will be completely filled with value set by \fIfill\fR option.
Typically useful for scene changes when used in combination with \f(CW\*(C`tblend\*(C'\fR filter.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS mcdeint
.IX Subsection "mcdeint"
Apply motion-compensation deinterlacing.
.PP
It needs one field per frame as input and must thus be used together
with yadif=1/3 or equivalent.
.PP
This filter accepts the following options:
.IP \fBmode\fR 4
.IX Item "mode"
Set the deinterlacing mode.
.Sp
It accepts one of the following values:
.RS 4
.IP \fBfast\fR 4
.IX Item "fast"
.PD 0
.IP \fBmedium\fR 4
.IX Item "medium"
.IP \fBslow\fR 4
.IX Item "slow"
.PD
use iterative motion estimation
.IP \fBextra_slow\fR 4
.IX Item "extra_slow"
like \fBslow\fR, but use multiple reference frames.
.RE
.RS 4
.Sp
Default value is \fBfast\fR.
.RE
.IP \fBparity\fR 4
.IX Item "parity"
Set the picture field parity assumed for the input video. It must be
one of the following values:
.RS 4
.IP "\fB0, tff\fR" 4
.IX Item "0, tff"
assume top field first
.IP "\fB1, bff\fR" 4
.IX Item "1, bff"
assume bottom field first
.RE
.RS 4
.Sp
Default value is \fBbff\fR.
.RE
.IP \fBqp\fR 4
.IX Item "qp"
Set per-block quantization parameter (QP) used by the internal
encoder.
.Sp
Higher values should result in a smoother motion vector field but less
optimal individual vectors. Default value is 1.
.SS median
.IX Subsection "median"
Pick median pixel from certain rectangle defined by radius.
.PP
This filter accepts the following options:
.IP \fBradius\fR 4
.IX Item "radius"
Set horizontal radius size. Default value is \f(CW1\fR.
Allowed range is integer from 1 to 127.
.IP \fBplanes\fR 4
.IX Item "planes"
Set which planes to process. Default is \f(CW15\fR, which is all available planes.
.IP \fBradiusV\fR 4
.IX Item "radiusV"
Set vertical radius size. Default value is \f(CW0\fR.
Allowed range is integer from 0 to 127.
If it is 0, value will be picked from horizontal \f(CW\*(C`radius\*(C'\fR option.
.IP \fBpercentile\fR 4
.IX Item "percentile"
Set median percentile. Default value is \f(CW0.5\fR.
Default value of \f(CW0.5\fR will pick always median values, while \f(CW0\fR will pick
minimum values, and \f(CW1\fR maximum values.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports same \fBcommands\fR as options.
The command accepts the same syntax of the corresponding option.
.PP
If the specified expression is not valid, it is kept at its current
value.
.SS mergeplanes
.IX Subsection "mergeplanes"
Merge color channel components from several video streams.
.PP
The filter accepts up to 4 input streams, and merge selected input
planes to the output video.
.PP
This filter accepts the following options:
.IP \fBmapping\fR 4
.IX Item "mapping"
Set input to output plane mapping. Default is \f(CW0\fR.
.Sp
The mappings is specified as a bitmap. It should be specified as a
hexadecimal number in the form 0xAa[Bb[Cc[Dd]]]. 'Aa' describes the
mapping for the first plane of the output stream. 'A' sets the number of
the input stream to use (from 0 to 3), and 'a' the plane number of the
corresponding input to use (from 0 to 3). The rest of the mappings is
similar, 'Bb' describes the mapping for the output stream second
plane, 'Cc' describes the mapping for the output stream third plane and
\&'Dd' describes the mapping for the output stream fourth plane.
.IP \fBformat\fR 4
.IX Item "format"
Set output pixel format. Default is \f(CW\*(C`yuva444p\*(C'\fR.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Merge three gray video streams of same width and height into single video stream:
.Sp
.Vb 1
\&        [a0][a1][a2]mergeplanes=0x001020:yuv444p
.Ve
.IP \(bu 4
Merge 1st yuv444p stream and 2nd gray video stream into yuva444p video stream:
.Sp
.Vb 1
\&        [a0][a1]mergeplanes=0x00010210:yuva444p
.Ve
.IP \(bu 4
Swap Y and A plane in yuva444p stream:
.Sp
.Vb 1
\&        format=yuva444p,mergeplanes=0x03010200:yuva444p
.Ve
.IP \(bu 4
Swap U and V plane in yuv420p stream:
.Sp
.Vb 1
\&        format=yuv420p,mergeplanes=0x000201:yuv420p
.Ve
.IP \(bu 4
Cast a rgb24 clip to yuv444p:
.Sp
.Vb 1
\&        format=rgb24,mergeplanes=0x000102:yuv444p
.Ve
.SS mestimate
.IX Subsection "mestimate"
Estimate and export motion vectors using block matching algorithms.
Motion vectors are stored in frame side data to be used by other filters.
.PP
This filter accepts the following options:
.IP \fBmethod\fR 4
.IX Item "method"
Specify the motion estimation method. Accepts one of the following values:
.RS 4
.IP \fBesa\fR 4
.IX Item "esa"
Exhaustive search algorithm.
.IP \fBtss\fR 4
.IX Item "tss"
Three step search algorithm.
.IP \fBtdls\fR 4
.IX Item "tdls"
Two dimensional logarithmic search algorithm.
.IP \fBntss\fR 4
.IX Item "ntss"
New three step search algorithm.
.IP \fBfss\fR 4
.IX Item "fss"
Four step search algorithm.
.IP \fBds\fR 4
.IX Item "ds"
Diamond search algorithm.
.IP \fBhexbs\fR 4
.IX Item "hexbs"
Hexagon-based search algorithm.
.IP \fBepzs\fR 4
.IX Item "epzs"
Enhanced predictive zonal search algorithm.
.IP \fBumh\fR 4
.IX Item "umh"
Uneven multi-hexagon search algorithm.
.RE
.RS 4
.Sp
Default value is \fBesa\fR.
.RE
.IP \fBmb_size\fR 4
.IX Item "mb_size"
Macroblock size. Default \f(CW16\fR.
.IP \fBsearch_param\fR 4
.IX Item "search_param"
Search parameter. Default \f(CW7\fR.
.SS midequalizer
.IX Subsection "midequalizer"
Apply Midway Image Equalization effect using two video streams.
.PP
Midway Image Equalization adjusts a pair of images to have the same
histogram, while maintaining their dynamics as much as possible. It's
useful for e.g. matching exposures from a pair of stereo cameras.
.PP
This filter has two inputs and one output, which must be of same pixel format, but
may be of different sizes. The output of filter is first input adjusted with
midway histogram of both inputs.
.PP
This filter accepts the following option:
.IP \fBplanes\fR 4
.IX Item "planes"
Set which planes to process. Default is \f(CW15\fR, which is all available planes.
.SS minterpolate
.IX Subsection "minterpolate"
Convert the video to specified frame rate using motion interpolation.
.PP
This filter accepts the following options:
.IP \fBfps\fR 4
.IX Item "fps"
Specify the output frame rate. This can be rational e.g. \f(CW\*(C`60000/1001\*(C'\fR. Frames are dropped if \fIfps\fR is lower than source fps. Default \f(CW60\fR.
.IP \fBmi_mode\fR 4
.IX Item "mi_mode"
Motion interpolation mode. Following values are accepted:
.RS 4
.IP \fBdup\fR 4
.IX Item "dup"
Duplicate previous or next frame for interpolating new ones.
.IP \fBblend\fR 4
.IX Item "blend"
Blend source frames. Interpolated frame is mean of previous and next frames.
.IP \fBmci\fR 4
.IX Item "mci"
Motion compensated interpolation. Following options are effective when this mode is selected:
.RS 4
.IP \fBmc_mode\fR 4
.IX Item "mc_mode"
Motion compensation mode. Following values are accepted:
.RS 4
.IP \fBobmc\fR 4
.IX Item "obmc"
Overlapped block motion compensation.
.IP \fBaobmc\fR 4
.IX Item "aobmc"
Adaptive overlapped block motion compensation. Window weighting coefficients are controlled adaptively according to the reliabilities of the neighboring motion vectors to reduce oversmoothing.
.RE
.RS 4
.Sp
Default mode is \fBobmc\fR.
.RE
.IP \fBme_mode\fR 4
.IX Item "me_mode"
Motion estimation mode. Following values are accepted:
.RS 4
.IP \fBbidir\fR 4
.IX Item "bidir"
Bidirectional motion estimation. Motion vectors are estimated for each source frame in both forward and backward directions.
.IP \fBbilat\fR 4
.IX Item "bilat"
Bilateral motion estimation. Motion vectors are estimated directly for interpolated frame.
.RE
.RS 4
.Sp
Default mode is \fBbilat\fR.
.RE
.IP \fBme\fR 4
.IX Item "me"
The algorithm to be used for motion estimation. Following values are accepted:
.RS 4
.IP \fBesa\fR 4
.IX Item "esa"
Exhaustive search algorithm.
.IP \fBtss\fR 4
.IX Item "tss"
Three step search algorithm.
.IP \fBtdls\fR 4
.IX Item "tdls"
Two dimensional logarithmic search algorithm.
.IP \fBntss\fR 4
.IX Item "ntss"
New three step search algorithm.
.IP \fBfss\fR 4
.IX Item "fss"
Four step search algorithm.
.IP \fBds\fR 4
.IX Item "ds"
Diamond search algorithm.
.IP \fBhexbs\fR 4
.IX Item "hexbs"
Hexagon-based search algorithm.
.IP \fBepzs\fR 4
.IX Item "epzs"
Enhanced predictive zonal search algorithm.
.IP \fBumh\fR 4
.IX Item "umh"
Uneven multi-hexagon search algorithm.
.RE
.RS 4
.Sp
Default algorithm is \fBepzs\fR.
.RE
.IP \fBmb_size\fR 4
.IX Item "mb_size"
Macroblock size. Default \f(CW16\fR.
.IP \fBsearch_param\fR 4
.IX Item "search_param"
Motion estimation search parameter. Default \f(CW32\fR.
.IP \fBvsbmc\fR 4
.IX Item "vsbmc"
Enable variable-size block motion compensation. Motion estimation is applied with smaller block sizes at object boundaries in order to make the them less blur. Default is \f(CW0\fR (disabled).
.RE
.RS 4
.RE
.RE
.RS 4
.RE
.IP \fBscd\fR 4
.IX Item "scd"
Scene change detection method. Scene change leads motion vectors to be in random direction. Scene change detection replace interpolated frames by duplicate ones. May not be needed for other modes. Following values are accepted:
.RS 4
.IP \fBnone\fR 4
.IX Item "none"
Disable scene change detection.
.IP \fBfdiff\fR 4
.IX Item "fdiff"
Frame difference. Corresponding pixel values are compared and if it satisfies \fIscd_threshold\fR scene change is detected.
.RE
.RS 4
.Sp
Default method is \fBfdiff\fR.
.RE
.IP \fBscd_threshold\fR 4
.IX Item "scd_threshold"
Scene change detection threshold. Default is \f(CW10.\fR.
.SS mix
.IX Subsection "mix"
Mix several video input streams into one video stream.
.PP
A description of the accepted options follows.
.IP \fBnb_inputs\fR 4
.IX Item "nb_inputs"
The number of inputs. If unspecified, it defaults to 2.
.IP \fBweights\fR 4
.IX Item "weights"
Specify weight of each input video stream as sequence.
Each weight is separated by space. If number of weights
is smaller than number of \fIframes\fR last specified
weight will be used for all remaining unset weights.
.IP \fBscale\fR 4
.IX Item "scale"
Specify scale, if it is set it will be multiplied with sum
of each weight multiplied with pixel values to give final destination
pixel value. By default \fIscale\fR is auto scaled to sum of weights.
.IP \fBduration\fR 4
.IX Item "duration"
Specify how end of stream is determined.
.RS 4
.IP \fBlongest\fR 4
.IX Item "longest"
The duration of the longest input. (default)
.IP \fBshortest\fR 4
.IX Item "shortest"
The duration of the shortest input.
.IP \fBfirst\fR 4
.IX Item "first"
The duration of the first input.
.RE
.RS 4
.RE
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the following commands:
.IP \fBweights\fR 4
.IX Item "weights"
.PD 0
.IP \fBscale\fR 4
.IX Item "scale"
.PD
Syntax is same as option with same name.
.SS monochrome
.IX Subsection "monochrome"
Convert video to gray using custom color filter.
.PP
A description of the accepted options follows.
.IP \fBcb\fR 4
.IX Item "cb"
Set the chroma blue spot. Allowed range is from \-1 to 1.
Default value is 0.
.IP \fBcr\fR 4
.IX Item "cr"
Set the chroma red spot. Allowed range is from \-1 to 1.
Default value is 0.
.IP \fBsize\fR 4
.IX Item "size"
Set the color filter size. Allowed range is from .1 to 10.
Default value is 1.
.IP \fBhigh\fR 4
.IX Item "high"
Set the highlights strength. Allowed range is from 0 to 1.
Default value is 0.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS mpdecimate
.IX Subsection "mpdecimate"
Drop frames that do not differ greatly from the previous frame in
order to reduce frame rate.
.PP
The main use of this filter is for very-low-bitrate encoding
(e.g. streaming over dialup modem), but it could in theory be used for
fixing movies that were inverse-telecined incorrectly.
.PP
A description of the accepted options follows.
.IP \fBmax\fR 4
.IX Item "max"
Set the maximum number of consecutive frames which can be dropped (if
positive), or the minimum interval between dropped frames (if
negative). If the value is 0, the frame is dropped disregarding the
number of previous sequentially dropped frames.
.Sp
Default value is 0.
.IP \fBhi\fR 4
.IX Item "hi"
.PD 0
.IP \fBlo\fR 4
.IX Item "lo"
.IP \fBfrac\fR 4
.IX Item "frac"
.PD
Set the dropping threshold values.
.Sp
Values for \fBhi\fR and \fBlo\fR are for 8x8 pixel blocks and
represent actual pixel value differences, so a threshold of 64
corresponds to 1 unit of difference for each pixel, or the same spread
out differently over the block.
.Sp
A frame is a candidate for dropping if no 8x8 blocks differ by more
than a threshold of \fBhi\fR, and if no more than \fBfrac\fR blocks (1
meaning the whole image) differ by more than a threshold of \fBlo\fR.
.Sp
Default value for \fBhi\fR is 64*12, default value for \fBlo\fR is
64*5, and default value for \fBfrac\fR is 0.33.
.SS msad
.IX Subsection "msad"
Obtain the MSAD (Mean Sum of Absolute Differences) between two input videos.
.PP
This filter takes two input videos.
.PP
Both input videos must have the same resolution and pixel format for
this filter to work correctly. Also it assumes that both inputs
have the same number of frames, which are compared one by one.
.PP
The obtained per component, average, min and max MSAD is printed through
the logging system.
.PP
The filter stores the calculated MSAD of each frame in frame metadata.
.PP
In the below example the input file \fImain.mpg\fR being processed is compared
with the reference file \fIref.mpg\fR.
.PP
.Vb 1
\&        ffmpeg \-i main.mpg \-i ref.mpg \-lavfi msad \-f null \-
.Ve
.SS negate
.IX Subsection "negate"
Negate (invert) the input video.
.PP
It accepts the following option:
.IP \fBnegate_alpha\fR 4
.IX Item "negate_alpha"
With value 1, it negates the alpha component, if present. Default value is 0.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports same \fBcommands\fR as options.
.SS nlmeans
.IX Subsection "nlmeans"
Denoise frames using Non-Local Means algorithm.
.PP
Each pixel is adjusted by looking for other pixels with similar contexts. This
context similarity is defined by comparing their surrounding patches of size
\&\fBp\fRx\fBp\fR. Patches are searched in an area of \fBr\fRx\fBr\fR
around the pixel.
.PP
Note that the research area defines centers for patches, which means some
patches will be made of pixels outside that research area.
.PP
The filter accepts the following options.
.IP \fBs\fR 4
.IX Item "s"
Set denoising strength. Default is 1.0. Must be in range [1.0, 30.0].
.IP \fBp\fR 4
.IX Item "p"
Set patch size. Default is 7. Must be odd number in range [0, 99].
.IP \fBpc\fR 4
.IX Item "pc"
Same as \fBp\fR but for chroma planes.
.Sp
The default value is \fI0\fR and means automatic.
.IP \fBr\fR 4
.IX Item "r"
Set research size. Default is 15. Must be odd number in range [0, 99].
.IP \fBrc\fR 4
.IX Item "rc"
Same as \fBr\fR but for chroma planes.
.Sp
The default value is \fI0\fR and means automatic.
.SS nnedi
.IX Subsection "nnedi"
Deinterlace video using neural network edge directed interpolation.
.PP
This filter accepts the following options:
.IP \fBweights\fR 4
.IX Item "weights"
Mandatory option, without binary file filter can not work.
Currently file can be found here:
https://github.com/dubhater/vapoursynth\-nnedi3/blob/master/src/nnedi3_weights.bin
.IP \fBdeint\fR 4
.IX Item "deint"
Set which frames to deinterlace, by default it is \f(CW\*(C`all\*(C'\fR.
Can be \f(CW\*(C`all\*(C'\fR or \f(CW\*(C`interlaced\*(C'\fR.
.IP \fBfield\fR 4
.IX Item "field"
Set mode of operation.
.Sp
Can be one of the following:
.RS 4
.IP \fBaf\fR 4
.IX Item "af"
Use frame flags, both fields.
.IP \fBa\fR 4
.IX Item "a"
Use frame flags, single field.
.IP \fBt\fR 4
.IX Item "t"
Use top field only.
.IP \fBb\fR 4
.IX Item "b"
Use bottom field only.
.IP \fBtf\fR 4
.IX Item "tf"
Use both fields, top first.
.IP \fBbf\fR 4
.IX Item "bf"
Use both fields, bottom first.
.RE
.RS 4
.RE
.IP \fBplanes\fR 4
.IX Item "planes"
Set which planes to process, by default filter process all frames.
.IP \fBnsize\fR 4
.IX Item "nsize"
Set size of local neighborhood around each pixel, used by the predictor neural
network.
.Sp
Can be one of the following:
.RS 4
.IP \fBs8x6\fR 4
.IX Item "s8x6"
.PD 0
.IP \fBs16x6\fR 4
.IX Item "s16x6"
.IP \fBs32x6\fR 4
.IX Item "s32x6"
.IP \fBs48x6\fR 4
.IX Item "s48x6"
.IP \fBs8x4\fR 4
.IX Item "s8x4"
.IP \fBs16x4\fR 4
.IX Item "s16x4"
.IP \fBs32x4\fR 4
.IX Item "s32x4"
.RE
.RS 4
.RE
.IP \fBnns\fR 4
.IX Item "nns"
.PD
Set the number of neurons in predictor neural network.
Can be one of the following:
.RS 4
.IP \fBn16\fR 4
.IX Item "n16"
.PD 0
.IP \fBn32\fR 4
.IX Item "n32"
.IP \fBn64\fR 4
.IX Item "n64"
.IP \fBn128\fR 4
.IX Item "n128"
.IP \fBn256\fR 4
.IX Item "n256"
.RE
.RS 4
.RE
.IP \fBqual\fR 4
.IX Item "qual"
.PD
Controls the number of different neural network predictions that are blended
together to compute the final output value. Can be \f(CW\*(C`fast\*(C'\fR, default or
\&\f(CW\*(C`slow\*(C'\fR.
.IP \fBetype\fR 4
.IX Item "etype"
Set which set of weights to use in the predictor.
Can be one of the following:
.RS 4
.IP "\fBa, abs\fR" 4
.IX Item "a, abs"
weights trained to minimize absolute error
.IP "\fBs, mse\fR" 4
.IX Item "s, mse"
weights trained to minimize squared error
.RE
.RS 4
.RE
.IP \fBpscrn\fR 4
.IX Item "pscrn"
Controls whether or not the prescreener neural network is used to decide
which pixels should be processed by the predictor neural network and which
can be handled by simple cubic interpolation.
The prescreener is trained to know whether cubic interpolation will be
sufficient for a pixel or whether it should be predicted by the predictor nn.
The computational complexity of the prescreener nn is much less than that of
the predictor nn. Since most pixels can be handled by cubic interpolation,
using the prescreener generally results in much faster processing.
The prescreener is pretty accurate, so the difference between using it and not
using it is almost always unnoticeable.
.Sp
Can be one of the following:
.RS 4
.IP \fBnone\fR 4
.IX Item "none"
.PD 0
.IP \fBoriginal\fR 4
.IX Item "original"
.IP \fBnew\fR 4
.IX Item "new"
.IP \fBnew2\fR 4
.IX Item "new2"
.IP \fBnew3\fR 4
.IX Item "new3"
.RE
.RS 4
.PD
.Sp
Default is \f(CW\*(C`new\*(C'\fR.
.RE
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports same \fBcommands\fR as options, excluding \fIweights\fR option.
.SS noformat
.IX Subsection "noformat"
Force libavfilter not to use any of the specified pixel formats for the
input to the next filter.
.PP
It accepts the following parameters:
.IP \fBpix_fmts\fR 4
.IX Item "pix_fmts"
A '|'\-separated list of pixel format names, such as
pix_fmts=yuv420p|monow|rgb24".
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Force libavfilter to use a format different from \fIyuv420p\fR for the
input to the vflip filter:
.Sp
.Vb 1
\&        noformat=pix_fmts=yuv420p,vflip
.Ve
.IP \(bu 4
Convert the input video to any of the formats not contained in the list:
.Sp
.Vb 1
\&        noformat=yuv420p|yuv444p|yuv410p
.Ve
.SS noise
.IX Subsection "noise"
Add noise on video input frame.
.PP
The filter accepts the following options:
.IP \fBall_seed\fR 4
.IX Item "all_seed"
.PD 0
.IP \fBc0_seed\fR 4
.IX Item "c0_seed"
.IP \fBc1_seed\fR 4
.IX Item "c1_seed"
.IP \fBc2_seed\fR 4
.IX Item "c2_seed"
.IP \fBc3_seed\fR 4
.IX Item "c3_seed"
.PD
Set noise seed for specific pixel component or all pixel components in case
of \fIall_seed\fR. Default value is \f(CW123457\fR.
.IP "\fBall_strength, alls\fR" 4
.IX Item "all_strength, alls"
.PD 0
.IP "\fBc0_strength, c0s\fR" 4
.IX Item "c0_strength, c0s"
.IP "\fBc1_strength, c1s\fR" 4
.IX Item "c1_strength, c1s"
.IP "\fBc2_strength, c2s\fR" 4
.IX Item "c2_strength, c2s"
.IP "\fBc3_strength, c3s\fR" 4
.IX Item "c3_strength, c3s"
.PD
Set noise strength for specific pixel component or all pixel components in case
\&\fIall_strength\fR. Default value is \f(CW0\fR. Allowed range is [0, 100].
.IP "\fBall_flags, allf\fR" 4
.IX Item "all_flags, allf"
.PD 0
.IP "\fBc0_flags, c0f\fR" 4
.IX Item "c0_flags, c0f"
.IP "\fBc1_flags, c1f\fR" 4
.IX Item "c1_flags, c1f"
.IP "\fBc2_flags, c2f\fR" 4
.IX Item "c2_flags, c2f"
.IP "\fBc3_flags, c3f\fR" 4
.IX Item "c3_flags, c3f"
.PD
Set pixel component flags or set flags for all components if \fIall_flags\fR.
Available values for component flags are:
.RS 4
.IP \fBa\fR 4
.IX Item "a"
averaged temporal noise (smoother)
.IP \fBp\fR 4
.IX Item "p"
mix random noise with a (semi)regular pattern
.IP \fBt\fR 4
.IX Item "t"
temporal noise (noise pattern changes between frames)
.IP \fBu\fR 4
.IX Item "u"
uniform noise (gaussian otherwise)
.RE
.RS 4
.RE
.PP
\fIExamples\fR
.IX Subsection "Examples"
.PP
Add temporal and uniform noise to input video:
.PP
.Vb 1
\&        noise=alls=20:allf=t+u
.Ve
.SS normalize
.IX Subsection "normalize"
Normalize RGB video (aka histogram stretching, contrast stretching).
See: https://en.wikipedia.org/wiki/Normalization_(image_processing)
.PP
For each channel of each frame, the filter computes the input range and maps
it linearly to the user-specified output range. The output range defaults
to the full dynamic range from pure black to pure white.
.PP
Temporal smoothing can be used on the input range to reduce flickering (rapid
changes in brightness) caused when small dark or bright objects enter or leave
the scene. This is similar to the auto-exposure (automatic gain control) on a
video camera, and, like a video camera, it may cause a period of over\- or
under-exposure of the video.
.PP
The R,G,B channels can be normalized independently, which may cause some
color shifting, or linked together as a single channel, which prevents
color shifting. Linked normalization preserves hue. Independent normalization
does not, so it can be used to remove some color casts. Independent and linked
normalization can be combined in any ratio.
.PP
The normalize filter accepts the following options:
.IP \fBblackpt\fR 4
.IX Item "blackpt"
.PD 0
.IP \fBwhitept\fR 4
.IX Item "whitept"
.PD
Colors which define the output range. The minimum input value is mapped to
the \fIblackpt\fR. The maximum input value is mapped to the \fIwhitept\fR.
The defaults are black and white respectively. Specifying white for
\&\fIblackpt\fR and black for \fIwhitept\fR will give color-inverted,
normalized video. Shades of grey can be used to reduce the dynamic range
(contrast). Specifying saturated colors here can create some interesting
effects.
.IP \fBsmoothing\fR 4
.IX Item "smoothing"
The number of previous frames to use for temporal smoothing. The input range
of each channel is smoothed using a rolling average over the current frame
and the \fIsmoothing\fR previous frames. The default is 0 (no temporal
smoothing).
.IP \fBindependence\fR 4
.IX Item "independence"
Controls the ratio of independent (color shifting) channel normalization to
linked (color preserving) normalization. 0.0 is fully linked, 1.0 is fully
independent. Defaults to 1.0 (fully independent).
.IP \fBstrength\fR 4
.IX Item "strength"
Overall strength of the filter. 1.0 is full strength. 0.0 is a rather
expensive no-op. Defaults to 1.0 (full strength).
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports same \fBcommands\fR as options, excluding \fIsmoothing\fR option.
The command accepts the same syntax of the corresponding option.
.PP
If the specified expression is not valid, it is kept at its current
value.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.PP
Stretch video contrast to use the full dynamic range, with no temporal
smoothing; may flicker depending on the source content:
.PP
.Vb 1
\&        normalize=blackpt=black:whitept=white:smoothing=0
.Ve
.PP
As above, but with 50 frames of temporal smoothing; flicker should be
reduced, depending on the source content:
.PP
.Vb 1
\&        normalize=blackpt=black:whitept=white:smoothing=50
.Ve
.PP
As above, but with hue-preserving linked channel normalization:
.PP
.Vb 1
\&        normalize=blackpt=black:whitept=white:smoothing=50:independence=0
.Ve
.PP
As above, but with half strength:
.PP
.Vb 1
\&        normalize=blackpt=black:whitept=white:smoothing=50:independence=0:strength=0.5
.Ve
.PP
Map the darkest input color to red, the brightest input color to cyan:
.PP
.Vb 1
\&        normalize=blackpt=red:whitept=cyan
.Ve
.SS null
.IX Subsection "null"
Pass the video source unchanged to the output.
.SS ocr
.IX Subsection "ocr"
Optical Character Recognition
.PP
This filter uses Tesseract for optical character recognition. To enable
compilation of this filter, you need to configure FFmpeg with
\&\f(CW\*(C`\-\-enable\-libtesseract\*(C'\fR.
.PP
It accepts the following options:
.IP \fBdatapath\fR 4
.IX Item "datapath"
Set datapath to tesseract data. Default is to use whatever was
set at installation.
.IP \fBlanguage\fR 4
.IX Item "language"
Set language, default is "eng".
.IP \fBwhitelist\fR 4
.IX Item "whitelist"
Set character whitelist.
.IP \fBblacklist\fR 4
.IX Item "blacklist"
Set character blacklist.
.PP
The filter exports recognized text as the frame metadata \f(CW\*(C`lavfi.ocr.text\*(C'\fR.
The filter exports confidence of recognized words as the frame metadata \f(CW\*(C`lavfi.ocr.confidence\*(C'\fR.
.SS ocv
.IX Subsection "ocv"
Apply a video transform using libopencv.
.PP
To enable this filter, install the libopencv library and headers and
configure FFmpeg with \f(CW\*(C`\-\-enable\-libopencv\*(C'\fR.
.PP
It accepts the following parameters:
.IP \fBfilter_name\fR 4
.IX Item "filter_name"
The name of the libopencv filter to apply.
.IP \fBfilter_params\fR 4
.IX Item "filter_params"
The parameters to pass to the libopencv filter. If not specified, the default
values are assumed.
.PP
Refer to the official libopencv documentation for more precise
information:
<\fBhttp://docs.opencv.org/master/modules/imgproc/doc/filtering.html\fR>
.PP
Several libopencv filters are supported; see the following subsections.
.PP
\fIdilate\fR
.IX Subsection "dilate"
.PP
Dilate an image by using a specific structuring element.
It corresponds to the libopencv function \f(CW\*(C`cvDilate\*(C'\fR.
.PP
It accepts the parameters: \fIstruct_el\fR|\fInb_iterations\fR.
.PP
\&\fIstruct_el\fR represents a structuring element, and has the syntax:
\&\fIcols\fRx\fIrows\fR+\fIanchor_x\fRx\fIanchor_y\fR/\fIshape\fR
.PP
\&\fIcols\fR and \fIrows\fR represent the number of columns and rows of
the structuring element, \fIanchor_x\fR and \fIanchor_y\fR the anchor
point, and \fIshape\fR the shape for the structuring element. \fIshape\fR
must be "rect", "cross", "ellipse", or "custom".
.PP
If the value for \fIshape\fR is "custom", it must be followed by a
string of the form "=\fIfilename\fR". The file with name
\&\fIfilename\fR is assumed to represent a binary image, with each
printable character corresponding to a bright pixel. When a custom
\&\fIshape\fR is used, \fIcols\fR and \fIrows\fR are ignored, the number
or columns and rows of the read file are assumed instead.
.PP
The default value for \fIstruct_el\fR is "3x3+0x0/rect".
.PP
\&\fInb_iterations\fR specifies the number of times the transform is
applied to the image, and defaults to 1.
.PP
Some examples:
.PP
.Vb 2
\&        # Use the default values
\&        ocv=dilate
\&        
\&        # Dilate using a structuring element with a 5x5 cross, iterating two times
\&        ocv=filter_name=dilate:filter_params=5x5+2x2/cross|2
\&        
\&        # Read the shape from the file diamond.shape, iterating two times.
\&        # The file diamond.shape may contain a pattern of characters like this
\&        #   *
\&        #  ***
\&        # *****
\&        #  ***
\&        #   *
\&        # The specified columns and rows are ignored
\&        # but the anchor point coordinates are not
\&        ocv=dilate:0x0+2x2/custom=diamond.shape|2
.Ve
.PP
\fIerode\fR
.IX Subsection "erode"
.PP
Erode an image by using a specific structuring element.
It corresponds to the libopencv function \f(CW\*(C`cvErode\*(C'\fR.
.PP
It accepts the parameters: \fIstruct_el\fR:\fInb_iterations\fR,
with the same syntax and semantics as the \fBdilate\fR filter.
.PP
\fIsmooth\fR
.IX Subsection "smooth"
.PP
Smooth the input video.
.PP
The filter takes the following parameters:
\&\fItype\fR|\fIparam1\fR|\fIparam2\fR|\fIparam3\fR|\fIparam4\fR.
.PP
\&\fItype\fR is the type of smooth filter to apply, and must be one of
the following values: "blur", "blur_no_scale", "median", "gaussian",
or "bilateral". The default value is "gaussian".
.PP
The meaning of \fIparam1\fR, \fIparam2\fR, \fIparam3\fR, and \fIparam4\fR
depends on the smooth type. \fIparam1\fR and
\&\fIparam2\fR accept integer positive values or 0. \fIparam3\fR and
\&\fIparam4\fR accept floating point values.
.PP
The default value for \fIparam1\fR is 3. The default value for the
other parameters is 0.
.PP
These parameters correspond to the parameters assigned to the
libopencv function \f(CW\*(C`cvSmooth\*(C'\fR.
.SS oscilloscope
.IX Subsection "oscilloscope"
2D Video Oscilloscope.
.PP
Useful to measure spatial impulse, step responses, chroma delays, etc.
.PP
It accepts the following parameters:
.IP \fBx\fR 4
.IX Item "x"
Set scope center x position.
.IP \fBy\fR 4
.IX Item "y"
Set scope center y position.
.IP \fBs\fR 4
.IX Item "s"
Set scope size, relative to frame diagonal.
.IP \fBt\fR 4
.IX Item "t"
Set scope tilt/rotation.
.IP \fBo\fR 4
.IX Item "o"
Set trace opacity.
.IP \fBtx\fR 4
.IX Item "tx"
Set trace center x position.
.IP \fBty\fR 4
.IX Item "ty"
Set trace center y position.
.IP \fBtw\fR 4
.IX Item "tw"
Set trace width, relative to width of frame.
.IP \fBth\fR 4
.IX Item "th"
Set trace height, relative to height of frame.
.IP \fBc\fR 4
.IX Item "c"
Set which components to trace. By default it traces first three components.
.IP \fBg\fR 4
.IX Item "g"
Draw trace grid. By default is enabled.
.IP \fBst\fR 4
.IX Item "st"
Draw some statistics. By default is enabled.
.IP \fBsc\fR 4
.IX Item "sc"
Draw scope. By default is enabled.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports same \fBcommands\fR as options.
The command accepts the same syntax of the corresponding option.
.PP
If the specified expression is not valid, it is kept at its current
value.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Inspect full first row of video frame.
.Sp
.Vb 1
\&        oscilloscope=x=0.5:y=0:s=1
.Ve
.IP \(bu 4
Inspect full last row of video frame.
.Sp
.Vb 1
\&        oscilloscope=x=0.5:y=1:s=1
.Ve
.IP \(bu 4
Inspect full 5th line of video frame of height 1080.
.Sp
.Vb 1
\&        oscilloscope=x=0.5:y=5/1080:s=1
.Ve
.IP \(bu 4
Inspect full last column of video frame.
.Sp
.Vb 1
\&        oscilloscope=x=1:y=0.5:s=1:t=1
.Ve
.SS overlay
.IX Subsection "overlay"
Overlay one video on top of another.
.PP
It takes two inputs and has one output. The first input is the "main"
video on which the second input is overlaid.
.PP
It accepts the following parameters:
.PP
A description of the accepted options follows.
.IP \fBx\fR 4
.IX Item "x"
.PD 0
.IP \fBy\fR 4
.IX Item "y"
.PD
Set the expression for the x and y coordinates of the overlaid video
on the main video. Default value is "0" for both expressions. In case
the expression is invalid, it is set to a huge value (meaning that the
overlay will not be displayed within the output visible area).
.IP \fBeof_action\fR 4
.IX Item "eof_action"
See \fBframesync\fR.
.IP \fBeval\fR 4
.IX Item "eval"
Set when the expressions for \fBx\fR, and \fBy\fR are evaluated.
.Sp
It accepts the following values:
.RS 4
.IP \fBinit\fR 4
.IX Item "init"
only evaluate expressions once during the filter initialization or
when a command is processed
.IP \fBframe\fR 4
.IX Item "frame"
evaluate expressions for each incoming frame
.RE
.RS 4
.Sp
Default value is \fBframe\fR.
.RE
.IP \fBshortest\fR 4
.IX Item "shortest"
See \fBframesync\fR.
.IP \fBformat\fR 4
.IX Item "format"
Set the format for the output video.
.Sp
It accepts the following values:
.RS 4
.IP \fByuv420\fR 4
.IX Item "yuv420"
force YUV420 output
.IP \fByuv420p10\fR 4
.IX Item "yuv420p10"
force YUV420p10 output
.IP \fByuv422\fR 4
.IX Item "yuv422"
force YUV422 output
.IP \fByuv422p10\fR 4
.IX Item "yuv422p10"
force YUV422p10 output
.IP \fByuv444\fR 4
.IX Item "yuv444"
force YUV444 output
.IP \fBrgb\fR 4
.IX Item "rgb"
force packed RGB output
.IP \fBgbrp\fR 4
.IX Item "gbrp"
force planar RGB output
.IP \fBauto\fR 4
.IX Item "auto"
automatically pick format
.RE
.RS 4
.Sp
Default value is \fByuv420\fR.
.RE
.IP \fBrepeatlast\fR 4
.IX Item "repeatlast"
See \fBframesync\fR.
.IP \fBalpha\fR 4
.IX Item "alpha"
Set format of alpha of the overlaid video, it can be \fIstraight\fR or
\&\fIpremultiplied\fR. Default is \fIstraight\fR.
.PP
The \fBx\fR, and \fBy\fR expressions can contain the following
parameters.
.IP "\fBmain_w, W\fR" 4
.IX Item "main_w, W"
.PD 0
.IP "\fBmain_h, H\fR" 4
.IX Item "main_h, H"
.PD
The main input width and height.
.IP "\fBoverlay_w, w\fR" 4
.IX Item "overlay_w, w"
.PD 0
.IP "\fBoverlay_h, h\fR" 4
.IX Item "overlay_h, h"
.PD
The overlay input width and height.
.IP \fBx\fR 4
.IX Item "x"
.PD 0
.IP \fBy\fR 4
.IX Item "y"
.PD
The computed values for \fIx\fR and \fIy\fR. They are evaluated for
each new frame.
.IP \fBhsub\fR 4
.IX Item "hsub"
.PD 0
.IP \fBvsub\fR 4
.IX Item "vsub"
.PD
horizontal and vertical chroma subsample values of the output
format. For example for the pixel format "yuv422p" \fIhsub\fR is 2 and
\&\fIvsub\fR is 1.
.IP \fBn\fR 4
.IX Item "n"
the number of input frame, starting from 0
.IP \fBpos\fR 4
.IX Item "pos"
the position in the file of the input frame, NAN if unknown
.IP \fBt\fR 4
.IX Item "t"
The timestamp, expressed in seconds. It's NAN if the input timestamp is unknown.
.PP
This filter also supports the \fBframesync\fR options.
.PP
Note that the \fIn\fR, \fIpos\fR, \fIt\fR variables are available only
when evaluation is done \fIper frame\fR, and will evaluate to NAN
when \fBeval\fR is set to \fBinit\fR.
.PP
Be aware that frames are taken from each input video in timestamp
order, hence, if their initial timestamps differ, it is a good idea
to pass the two inputs through a \fIsetpts=PTS\-STARTPTS\fR filter to
have them begin in the same zero timestamp, as the example for
the \fImovie\fR filter does.
.PP
You can chain together more overlays but you should test the
efficiency of such approach.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the following commands:
.IP \fBx\fR 4
.IX Item "x"
.PD 0
.IP \fBy\fR 4
.IX Item "y"
.PD
Modify the x and y of the overlay input.
The command accepts the same syntax of the corresponding option.
.Sp
If the specified expression is not valid, it is kept at its current
value.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Draw the overlay at 10 pixels from the bottom right corner of the main
video:
.Sp
.Vb 1
\&        overlay=main_w\-overlay_w\-10:main_h\-overlay_h\-10
.Ve
.Sp
Using named options the example above becomes:
.Sp
.Vb 1
\&        overlay=x=main_w\-overlay_w\-10:y=main_h\-overlay_h\-10
.Ve
.IP \(bu 4
Insert a transparent PNG logo in the bottom left corner of the input,
using the \fBffmpeg\fR tool with the \f(CW\*(C`\-filter_complex\*(C'\fR option:
.Sp
.Vb 1
\&        ffmpeg \-i input \-i logo \-filter_complex \*(Aqoverlay=10:main_h\-overlay_h\-10\*(Aq output
.Ve
.IP \(bu 4
Insert 2 different transparent PNG logos (second logo on bottom
right corner) using the \fBffmpeg\fR tool:
.Sp
.Vb 1
\&        ffmpeg \-i input \-i logo1 \-i logo2 \-filter_complex \*(Aqoverlay=x=10:y=H\-h\-10,overlay=x=W\-w\-10:y=H\-h\-10\*(Aq output
.Ve
.IP \(bu 4
Add a transparent color layer on top of the main video; \f(CW\*(C`WxH\*(C'\fR
must specify the size of the main input to the overlay filter:
.Sp
.Vb 1
\&        color=color=red@.3:size=WxH [over]; [in][over] overlay [out]
.Ve
.IP \(bu 4
Play an original video and a filtered version (here with the deshake
filter) side by side using the \fBffplay\fR tool:
.Sp
.Vb 1
\&        ffplay input.avi \-vf \*(Aqsplit[a][b]; [a]pad=iw*2:ih[src]; [b]deshake[filt]; [src][filt]overlay=w\*(Aq
.Ve
.Sp
The above command is the same as:
.Sp
.Vb 1
\&        ffplay input.avi \-vf \*(Aqsplit[b], pad=iw*2[src], [b]deshake, [src]overlay=w\*(Aq
.Ve
.IP \(bu 4
Make a sliding overlay appearing from the left to the right top part of the
screen starting since time 2:
.Sp
.Vb 1
\&        overlay=x=\*(Aqif(gte(t,2), \-w+(t\-2)*20, NAN)\*(Aq:y=0
.Ve
.IP \(bu 4
Compose output by putting two input videos side to side:
.Sp
.Vb 7
\&        ffmpeg \-i left.avi \-i right.avi \-filter_complex "
\&        nullsrc=size=200x100 [background];
\&        [0:v] setpts=PTS\-STARTPTS, scale=100x100 [left];
\&        [1:v] setpts=PTS\-STARTPTS, scale=100x100 [right];
\&        [background][left]       overlay=shortest=1       [background+left];
\&        [background+left][right] overlay=shortest=1:x=100 [left+right]
\&        "
.Ve
.IP \(bu 4
Mask 10\-20 seconds of a video by applying the delogo filter to a section
.Sp
.Vb 3
\&        ffmpeg \-i test.avi \-codec:v:0 wmv2 \-ar 11025 \-b:v 9000k
\&        \-vf \*(Aq[in]split[split_main][split_delogo];[split_delogo]trim=start=360:end=371,delogo=0:0:640:480[delogoed];[split_main][delogoed]overlay=eof_action=pass[out]\*(Aq
\&        masked.avi
.Ve
.IP \(bu 4
Chain several overlays in cascade:
.Sp
.Vb 6
\&        nullsrc=s=200x200 [bg];
\&        testsrc=s=100x100, split=4 [in0][in1][in2][in3];
\&        [in0] lutrgb=r=0, [bg]   overlay=0:0     [mid0];
\&        [in1] lutrgb=g=0, [mid0] overlay=100:0   [mid1];
\&        [in2] lutrgb=b=0, [mid1] overlay=0:100   [mid2];
\&        [in3] null,       [mid2] overlay=100:100 [out0]
.Ve
.SS overlay_cuda
.IX Subsection "overlay_cuda"
Overlay one video on top of another.
.PP
This is the CUDA variant of the \fBoverlay\fR filter.
It only accepts CUDA frames. The underlying input pixel formats have to match.
.PP
It takes two inputs and has one output. The first input is the "main"
video on which the second input is overlaid.
.PP
It accepts the following parameters:
.IP \fBx\fR 4
.IX Item "x"
.PD 0
.IP \fBy\fR 4
.IX Item "y"
.PD
Set the x and y coordinates of the overlaid video on the main video.
Default value is "0" for both expressions.
.IP \fBeof_action\fR 4
.IX Item "eof_action"
See \fBframesync\fR.
.IP \fBshortest\fR 4
.IX Item "shortest"
See \fBframesync\fR.
.IP \fBrepeatlast\fR 4
.IX Item "repeatlast"
See \fBframesync\fR.
.PP
This filter also supports the \fBframesync\fR options.
.SS owdenoise
.IX Subsection "owdenoise"
Apply Overcomplete Wavelet denoiser.
.PP
The filter accepts the following options:
.IP \fBdepth\fR 4
.IX Item "depth"
Set depth.
.Sp
Larger depth values will denoise lower frequency components more, but
slow down filtering.
.Sp
Must be an int in the range 8\-16, default is \f(CW8\fR.
.IP "\fBluma_strength, ls\fR" 4
.IX Item "luma_strength, ls"
Set luma strength.
.Sp
Must be a double value in the range 0\-1000, default is \f(CW1.0\fR.
.IP "\fBchroma_strength, cs\fR" 4
.IX Item "chroma_strength, cs"
Set chroma strength.
.Sp
Must be a double value in the range 0\-1000, default is \f(CW1.0\fR.
.SS pad
.IX Subsection "pad"
Add paddings to the input image, and place the original input at the
provided \fIx\fR, \fIy\fR coordinates.
.PP
It accepts the following parameters:
.IP "\fBwidth, w\fR" 4
.IX Item "width, w"
.PD 0
.IP "\fBheight, h\fR" 4
.IX Item "height, h"
.PD
Specify an expression for the size of the output image with the
paddings added. If the value for \fIwidth\fR or \fIheight\fR is 0, the
corresponding input size is used for the output.
.Sp
The \fIwidth\fR expression can reference the value set by the
\&\fIheight\fR expression, and vice versa.
.Sp
The default value of \fIwidth\fR and \fIheight\fR is 0.
.IP \fBx\fR 4
.IX Item "x"
.PD 0
.IP \fBy\fR 4
.IX Item "y"
.PD
Specify the offsets to place the input image at within the padded area,
with respect to the top/left border of the output image.
.Sp
The \fIx\fR expression can reference the value set by the \fIy\fR
expression, and vice versa.
.Sp
The default value of \fIx\fR and \fIy\fR is 0.
.Sp
If \fIx\fR or \fIy\fR evaluate to a negative number, they'll be changed
so the input image is centered on the padded area.
.IP \fBcolor\fR 4
.IX Item "color"
Specify the color of the padded area. For the syntax of this option,
check the \fB"Color" section in the ffmpeg-utils
manual\fR.
.Sp
The default value of \fIcolor\fR is "black".
.IP \fBeval\fR 4
.IX Item "eval"
Specify when to evaluate  \fIwidth\fR, \fIheight\fR, \fIx\fR and \fIy\fR expression.
.Sp
It accepts the following values:
.RS 4
.IP \fBinit\fR 4
.IX Item "init"
Only evaluate expressions once during the filter initialization or when
a command is processed.
.IP \fBframe\fR 4
.IX Item "frame"
Evaluate expressions for each incoming frame.
.RE
.RS 4
.Sp
Default value is \fBinit\fR.
.RE
.IP \fBaspect\fR 4
.IX Item "aspect"
Pad to aspect instead to a resolution.
.PP
The value for the \fIwidth\fR, \fIheight\fR, \fIx\fR, and \fIy\fR
options are expressions containing the following constants:
.IP \fBin_w\fR 4
.IX Item "in_w"
.PD 0
.IP \fBin_h\fR 4
.IX Item "in_h"
.PD
The input video width and height.
.IP \fBiw\fR 4
.IX Item "iw"
.PD 0
.IP \fBih\fR 4
.IX Item "ih"
.PD
These are the same as \fIin_w\fR and \fIin_h\fR.
.IP \fBout_w\fR 4
.IX Item "out_w"
.PD 0
.IP \fBout_h\fR 4
.IX Item "out_h"
.PD
The output width and height (the size of the padded area), as
specified by the \fIwidth\fR and \fIheight\fR expressions.
.IP \fBow\fR 4
.IX Item "ow"
.PD 0
.IP \fBoh\fR 4
.IX Item "oh"
.PD
These are the same as \fIout_w\fR and \fIout_h\fR.
.IP \fBx\fR 4
.IX Item "x"
.PD 0
.IP \fBy\fR 4
.IX Item "y"
.PD
The x and y offsets as specified by the \fIx\fR and \fIy\fR
expressions, or NAN if not yet specified.
.IP \fBa\fR 4
.IX Item "a"
same as \fIiw\fR / \fIih\fR
.IP \fBsar\fR 4
.IX Item "sar"
input sample aspect ratio
.IP \fBdar\fR 4
.IX Item "dar"
input display aspect ratio, it is the same as (\fIiw\fR / \fIih\fR) * \fIsar\fR
.IP \fBhsub\fR 4
.IX Item "hsub"
.PD 0
.IP \fBvsub\fR 4
.IX Item "vsub"
.PD
The horizontal and vertical chroma subsample values. For example for the
pixel format "yuv422p" \fIhsub\fR is 2 and \fIvsub\fR is 1.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Add paddings with the color "violet" to the input video. The output video
size is 640x480, and the top-left corner of the input video is placed at
column 0, row 40
.Sp
.Vb 1
\&        pad=640:480:0:40:violet
.Ve
.Sp
The example above is equivalent to the following command:
.Sp
.Vb 1
\&        pad=width=640:height=480:x=0:y=40:color=violet
.Ve
.IP \(bu 4
Pad the input to get an output with dimensions increased by 3/2,
and put the input video at the center of the padded area:
.Sp
.Vb 1
\&        pad="3/2*iw:3/2*ih:(ow\-iw)/2:(oh\-ih)/2"
.Ve
.IP \(bu 4
Pad the input to get a squared output with size equal to the maximum
value between the input width and height, and put the input video at
the center of the padded area:
.Sp
.Vb 1
\&        pad="max(iw\e,ih):ow:(ow\-iw)/2:(oh\-ih)/2"
.Ve
.IP \(bu 4
Pad the input to get a final w/h ratio of 16:9:
.Sp
.Vb 1
\&        pad="ih*16/9:ih:(ow\-iw)/2:(oh\-ih)/2"
.Ve
.IP \(bu 4
In case of anamorphic video, in order to set the output display aspect
correctly, it is necessary to use \fIsar\fR in the expression,
according to the relation:
.Sp
.Vb 2
\&        (ih * X / ih) * sar = output_dar
\&        X = output_dar / sar
.Ve
.Sp
Thus the previous example needs to be modified to:
.Sp
.Vb 1
\&        pad="ih*16/9/sar:ih:(ow\-iw)/2:(oh\-ih)/2"
.Ve
.IP \(bu 4
Double the output size and put the input video in the bottom-right
corner of the output padded area:
.Sp
.Vb 1
\&        pad="2*iw:2*ih:ow\-iw:oh\-ih"
.Ve
.SS palettegen
.IX Subsection "palettegen"
Generate one palette for a whole video stream.
.PP
It accepts the following options:
.IP \fBmax_colors\fR 4
.IX Item "max_colors"
Set the maximum number of colors to quantize in the palette.
Note: the palette will still contain 256 colors; the unused palette entries
will be black.
.IP \fBreserve_transparent\fR 4
.IX Item "reserve_transparent"
Create a palette of 255 colors maximum and reserve the last one for
transparency. Reserving the transparency color is useful for GIF optimization.
If not set, the maximum of colors in the palette will be 256. You probably want
to disable this option for a standalone image.
Set by default.
.IP \fBtransparency_color\fR 4
.IX Item "transparency_color"
Set the color that will be used as background for transparency.
.IP \fBstats_mode\fR 4
.IX Item "stats_mode"
Set statistics mode.
.Sp
It accepts the following values:
.RS 4
.IP \fBfull\fR 4
.IX Item "full"
Compute full frame histograms.
.IP \fBdiff\fR 4
.IX Item "diff"
Compute histograms only for the part that differs from previous frame. This
might be relevant to give more importance to the moving part of your input if
the background is static.
.IP \fBsingle\fR 4
.IX Item "single"
Compute new histogram for each frame.
.RE
.RS 4
.Sp
Default value is \fIfull\fR.
.RE
.PP
The filter also exports the frame metadata \f(CW\*(C`lavfi.color_quant_ratio\*(C'\fR
(\f(CW\*(C`nb_color_in / nb_color_out\*(C'\fR) which you can use to evaluate the degree of
color quantization of the palette. This information is also visible at
\&\fIinfo\fR logging level.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Generate a representative palette of a given video using \fBffmpeg\fR:
.Sp
.Vb 1
\&        ffmpeg \-i input.mkv \-vf palettegen palette.png
.Ve
.SS paletteuse
.IX Subsection "paletteuse"
Use a palette to downsample an input video stream.
.PP
The filter takes two inputs: one video stream and a palette. The palette must
be a 256 pixels image.
.PP
It accepts the following options:
.IP \fBdither\fR 4
.IX Item "dither"
Select dithering mode. Available algorithms are:
.RS 4
.IP \fBbayer\fR 4
.IX Item "bayer"
Ordered 8x8 bayer dithering (deterministic)
.IP \fBheckbert\fR 4
.IX Item "heckbert"
Dithering as defined by Paul Heckbert in 1982 (simple error diffusion).
Note: this dithering is sometimes considered "wrong" and is included as a
reference.
.IP \fBfloyd_steinberg\fR 4
.IX Item "floyd_steinberg"
Floyd and Steingberg dithering (error diffusion)
.IP \fBsierra2\fR 4
.IX Item "sierra2"
Frankie Sierra dithering v2 (error diffusion)
.IP \fBsierra2_4a\fR 4
.IX Item "sierra2_4a"
Frankie Sierra dithering v2 "Lite" (error diffusion)
.RE
.RS 4
.Sp
Default is \fIsierra2_4a\fR.
.RE
.IP \fBbayer_scale\fR 4
.IX Item "bayer_scale"
When \fIbayer\fR dithering is selected, this option defines the scale of the
pattern (how much the crosshatch pattern is visible). A low value means more
visible pattern for less banding, and higher value means less visible pattern
at the cost of more banding.
.Sp
The option must be an integer value in the range [0,5]. Default is \fI2\fR.
.IP \fBdiff_mode\fR 4
.IX Item "diff_mode"
If set, define the zone to process
.RS 4
.IP \fBrectangle\fR 4
.IX Item "rectangle"
Only the changing rectangle will be reprocessed. This is similar to GIF
cropping/offsetting compression mechanism. This option can be useful for speed
if only a part of the image is changing, and has use cases such as limiting the
scope of the error diffusal \fBdither\fR to the rectangle that bounds the
moving scene (it leads to more deterministic output if the scene doesn't change
much, and as a result less moving noise and better GIF compression).
.RE
.RS 4
.Sp
Default is \fInone\fR.
.RE
.IP \fBnew\fR 4
.IX Item "new"
Take new palette for each output frame.
.IP \fBalpha_threshold\fR 4
.IX Item "alpha_threshold"
Sets the alpha threshold for transparency. Alpha values above this threshold
will be treated as completely opaque, and values below this threshold will be
treated as completely transparent.
.Sp
The option must be an integer value in the range [0,255]. Default is \fI128\fR.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Use a palette (generated for example with \fBpalettegen\fR) to encode a GIF
using \fBffmpeg\fR:
.Sp
.Vb 1
\&        ffmpeg \-i input.mkv \-i palette.png \-lavfi paletteuse output.gif
.Ve
.SS perspective
.IX Subsection "perspective"
Correct perspective of video not recorded perpendicular to the screen.
.PP
A description of the accepted parameters follows.
.IP \fBx0\fR 4
.IX Item "x0"
.PD 0
.IP \fBy0\fR 4
.IX Item "y0"
.IP \fBx1\fR 4
.IX Item "x1"
.IP \fBy1\fR 4
.IX Item "y1"
.IP \fBx2\fR 4
.IX Item "x2"
.IP \fBy2\fR 4
.IX Item "y2"
.IP \fBx3\fR 4
.IX Item "x3"
.IP \fBy3\fR 4
.IX Item "y3"
.PD
Set coordinates expression for top left, top right, bottom left and bottom right corners.
Default values are \f(CW\*(C`0:0:W:0:0:H:W:H\*(C'\fR with which perspective will remain unchanged.
If the \f(CW\*(C`sense\*(C'\fR option is set to \f(CW\*(C`source\*(C'\fR, then the specified points will be sent
to the corners of the destination. If the \f(CW\*(C`sense\*(C'\fR option is set to \f(CW\*(C`destination\*(C'\fR,
then the corners of the source will be sent to the specified coordinates.
.Sp
The expressions can use the following variables:
.RS 4
.IP \fBW\fR 4
.IX Item "W"
.PD 0
.IP \fBH\fR 4
.IX Item "H"
.PD
the width and height of video frame.
.IP \fBin\fR 4
.IX Item "in"
Input frame count.
.IP \fBon\fR 4
.IX Item "on"
Output frame count.
.RE
.RS 4
.RE
.IP \fBinterpolation\fR 4
.IX Item "interpolation"
Set interpolation for perspective correction.
.Sp
It accepts the following values:
.RS 4
.IP \fBlinear\fR 4
.IX Item "linear"
.PD 0
.IP \fBcubic\fR 4
.IX Item "cubic"
.RE
.RS 4
.PD
.Sp
Default value is \fBlinear\fR.
.RE
.IP \fBsense\fR 4
.IX Item "sense"
Set interpretation of coordinate options.
.Sp
It accepts the following values:
.RS 4
.IP "\fB0, source\fR" 4
.IX Item "0, source"
Send point in the source specified by the given coordinates to
the corners of the destination.
.IP "\fB1, destination\fR" 4
.IX Item "1, destination"
Send the corners of the source to the point in the destination specified
by the given coordinates.
.Sp
Default value is \fBsource\fR.
.RE
.RS 4
.RE
.IP \fBeval\fR 4
.IX Item "eval"
Set when the expressions for coordinates \fBx0,y0,...x3,y3\fR are evaluated.
.Sp
It accepts the following values:
.RS 4
.IP \fBinit\fR 4
.IX Item "init"
only evaluate expressions once during the filter initialization or
when a command is processed
.IP \fBframe\fR 4
.IX Item "frame"
evaluate expressions for each incoming frame
.RE
.RS 4
.Sp
Default value is \fBinit\fR.
.RE
.SS phase
.IX Subsection "phase"
Delay interlaced video by one field time so that the field order changes.
.PP
The intended use is to fix PAL movies that have been captured with the
opposite field order to the film-to-video transfer.
.PP
A description of the accepted parameters follows.
.IP \fBmode\fR 4
.IX Item "mode"
Set phase mode.
.Sp
It accepts the following values:
.RS 4
.IP \fBt\fR 4
.IX Item "t"
Capture field order top-first, transfer bottom-first.
Filter will delay the bottom field.
.IP \fBb\fR 4
.IX Item "b"
Capture field order bottom-first, transfer top-first.
Filter will delay the top field.
.IP \fBp\fR 4
.IX Item "p"
Capture and transfer with the same field order. This mode only exists
for the documentation of the other options to refer to, but if you
actually select it, the filter will faithfully do nothing.
.IP \fBa\fR 4
.IX Item "a"
Capture field order determined automatically by field flags, transfer
opposite.
Filter selects among \fBt\fR and \fBb\fR modes on a frame by frame
basis using field flags. If no field information is available,
then this works just like \fBu\fR.
.IP \fBu\fR 4
.IX Item "u"
Capture unknown or varying, transfer opposite.
Filter selects among \fBt\fR and \fBb\fR on a frame by frame basis by
analyzing the images and selecting the alternative that produces best
match between the fields.
.IP \fBT\fR 4
.IX Item "T"
Capture top-first, transfer unknown or varying.
Filter selects among \fBt\fR and \fBp\fR using image analysis.
.IP \fBB\fR 4
.IX Item "B"
Capture bottom-first, transfer unknown or varying.
Filter selects among \fBb\fR and \fBp\fR using image analysis.
.IP \fBA\fR 4
.IX Item "A"
Capture determined by field flags, transfer unknown or varying.
Filter selects among \fBt\fR, \fBb\fR and \fBp\fR using field flags and
image analysis. If no field information is available, then this works just
like \fBU\fR. This is the default mode.
.IP \fBU\fR 4
.IX Item "U"
Both capture and transfer unknown or varying.
Filter selects among \fBt\fR, \fBb\fR and \fBp\fR using image analysis only.
.RE
.RS 4
.RE
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS photosensitivity
.IX Subsection "photosensitivity"
Reduce various flashes in video, so to help users with epilepsy.
.PP
It accepts the following options:
.IP "\fBframes, f\fR" 4
.IX Item "frames, f"
Set how many frames to use when filtering. Default is 30.
.IP "\fBthreshold, t\fR" 4
.IX Item "threshold, t"
Set detection threshold factor. Default is 1.
Lower is stricter.
.IP \fBskip\fR 4
.IX Item "skip"
Set how many pixels to skip when sampling frames. Default is 1.
Allowed range is from 1 to 1024.
.IP \fBbypass\fR 4
.IX Item "bypass"
Leave frames unchanged. Default is disabled.
.SS pixdesctest
.IX Subsection "pixdesctest"
Pixel format descriptor test filter, mainly useful for internal
testing. The output video should be equal to the input video.
.PP
For example:
.PP
.Vb 1
\&        format=monow, pixdesctest
.Ve
.PP
can be used to test the monowhite pixel format descriptor definition.
.SS pixscope
.IX Subsection "pixscope"
Display sample values of color channels. Mainly useful for checking color
and levels. Minimum supported resolution is 640x480.
.PP
The filters accept the following options:
.IP \fBx\fR 4
.IX Item "x"
Set scope X position, relative offset on X axis.
.IP \fBy\fR 4
.IX Item "y"
Set scope Y position, relative offset on Y axis.
.IP \fBw\fR 4
.IX Item "w"
Set scope width.
.IP \fBh\fR 4
.IX Item "h"
Set scope height.
.IP \fBo\fR 4
.IX Item "o"
Set window opacity. This window also holds statistics about pixel area.
.IP \fBwx\fR 4
.IX Item "wx"
Set window X position, relative offset on X axis.
.IP \fBwy\fR 4
.IX Item "wy"
Set window Y position, relative offset on Y axis.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports same \fBcommands\fR as options.
.SS pp
.IX Subsection "pp"
Enable the specified chain of postprocessing subfilters using libpostproc. This
library should be automatically selected with a GPL build (\f(CW\*(C`\-\-enable\-gpl\*(C'\fR).
Subfilters must be separated by '/' and can be disabled by prepending a '\-'.
Each subfilter and some options have a short and a long name that can be used
interchangeably, i.e. dr/dering are the same.
.PP
The filters accept the following options:
.IP \fBsubfilters\fR 4
.IX Item "subfilters"
Set postprocessing subfilters string.
.PP
All subfilters share common options to determine their scope:
.IP \fBa/autoq\fR 4
.IX Item "a/autoq"
Honor the quality commands for this subfilter.
.IP \fBc/chrom\fR 4
.IX Item "c/chrom"
Do chrominance filtering, too (default).
.IP \fBy/nochrom\fR 4
.IX Item "y/nochrom"
Do luminance filtering only (no chrominance).
.IP \fBn/noluma\fR 4
.IX Item "n/noluma"
Do chrominance filtering only (no luminance).
.PP
These options can be appended after the subfilter name, separated by a '|'.
.PP
Available subfilters are:
.IP \fBhb/hdeblock[|difference[|flatness]]\fR 4
.IX Item "hb/hdeblock[|difference[|flatness]]"
Horizontal deblocking filter
.RS 4
.IP \fBdifference\fR 4
.IX Item "difference"
Difference factor where higher values mean more deblocking (default: \f(CW32\fR).
.IP \fBflatness\fR 4
.IX Item "flatness"
Flatness threshold where lower values mean more deblocking (default: \f(CW39\fR).
.RE
.RS 4
.RE
.IP \fBvb/vdeblock[|difference[|flatness]]\fR 4
.IX Item "vb/vdeblock[|difference[|flatness]]"
Vertical deblocking filter
.RS 4
.IP \fBdifference\fR 4
.IX Item "difference"
Difference factor where higher values mean more deblocking (default: \f(CW32\fR).
.IP \fBflatness\fR 4
.IX Item "flatness"
Flatness threshold where lower values mean more deblocking (default: \f(CW39\fR).
.RE
.RS 4
.RE
.IP \fBha/hadeblock[|difference[|flatness]]\fR 4
.IX Item "ha/hadeblock[|difference[|flatness]]"
Accurate horizontal deblocking filter
.RS 4
.IP \fBdifference\fR 4
.IX Item "difference"
Difference factor where higher values mean more deblocking (default: \f(CW32\fR).
.IP \fBflatness\fR 4
.IX Item "flatness"
Flatness threshold where lower values mean more deblocking (default: \f(CW39\fR).
.RE
.RS 4
.RE
.IP \fBva/vadeblock[|difference[|flatness]]\fR 4
.IX Item "va/vadeblock[|difference[|flatness]]"
Accurate vertical deblocking filter
.RS 4
.IP \fBdifference\fR 4
.IX Item "difference"
Difference factor where higher values mean more deblocking (default: \f(CW32\fR).
.IP \fBflatness\fR 4
.IX Item "flatness"
Flatness threshold where lower values mean more deblocking (default: \f(CW39\fR).
.RE
.RS 4
.RE
.PP
The horizontal and vertical deblocking filters share the difference and
flatness values so you cannot set different horizontal and vertical
thresholds.
.IP \fBh1/x1hdeblock\fR 4
.IX Item "h1/x1hdeblock"
Experimental horizontal deblocking filter
.IP \fBv1/x1vdeblock\fR 4
.IX Item "v1/x1vdeblock"
Experimental vertical deblocking filter
.IP \fBdr/dering\fR 4
.IX Item "dr/dering"
Deringing filter
.IP "\fBtn/tmpnoise[|threshold1[|threshold2[|threshold3]]], temporal noise reducer\fR" 4
.IX Item "tn/tmpnoise[|threshold1[|threshold2[|threshold3]]], temporal noise reducer"
.RS 4
.PD 0
.IP \fBthreshold1\fR 4
.IX Item "threshold1"
.PD
larger \-> stronger filtering
.IP \fBthreshold2\fR 4
.IX Item "threshold2"
larger \-> stronger filtering
.IP \fBthreshold3\fR 4
.IX Item "threshold3"
larger \-> stronger filtering
.RE
.RS 4
.RE
.IP "\fBal/autolevels[:f/fullyrange], automatic brightness / contrast correction\fR" 4
.IX Item "al/autolevels[:f/fullyrange], automatic brightness / contrast correction"
.RS 4
.PD 0
.IP \fBf/fullyrange\fR 4
.IX Item "f/fullyrange"
.PD
Stretch luminance to \f(CW\*(C`0\-255\*(C'\fR.
.RE
.RS 4
.RE
.IP \fBlb/linblenddeint\fR 4
.IX Item "lb/linblenddeint"
Linear blend deinterlacing filter that deinterlaces the given block by
filtering all lines with a \f(CW\*(C`(1 2 1)\*(C'\fR filter.
.IP \fBli/linipoldeint\fR 4
.IX Item "li/linipoldeint"
Linear interpolating deinterlacing filter that deinterlaces the given block by
linearly interpolating every second line.
.IP \fBci/cubicipoldeint\fR 4
.IX Item "ci/cubicipoldeint"
Cubic interpolating deinterlacing filter deinterlaces the given block by
cubically interpolating every second line.
.IP \fBmd/mediandeint\fR 4
.IX Item "md/mediandeint"
Median deinterlacing filter that deinterlaces the given block by applying a
median filter to every second line.
.IP \fBfd/ffmpegdeint\fR 4
.IX Item "fd/ffmpegdeint"
FFmpeg deinterlacing filter that deinterlaces the given block by filtering every
second line with a \f(CW\*(C`(\-1 4 2 4 \-1)\*(C'\fR filter.
.IP \fBl5/lowpass5\fR 4
.IX Item "l5/lowpass5"
Vertically applied FIR lowpass deinterlacing filter that deinterlaces the given
block by filtering all lines with a \f(CW\*(C`(\-1 2 6 2 \-1)\*(C'\fR filter.
.IP \fBfq/forceQuant[|quantizer]\fR 4
.IX Item "fq/forceQuant[|quantizer]"
Overrides the quantizer table from the input with the constant quantizer you
specify.
.RS 4
.IP \fBquantizer\fR 4
.IX Item "quantizer"
Quantizer to use
.RE
.RS 4
.RE
.IP \fBde/default\fR 4
.IX Item "de/default"
Default pp filter combination (\f(CW\*(C`hb|a,vb|a,dr|a\*(C'\fR)
.IP \fBfa/fast\fR 4
.IX Item "fa/fast"
Fast pp filter combination (\f(CW\*(C`h1|a,v1|a,dr|a\*(C'\fR)
.IP \fBac\fR 4
.IX Item "ac"
High quality pp filter combination (\f(CW\*(C`ha|a|128|7,va|a,dr|a\*(C'\fR)
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Apply horizontal and vertical deblocking, deringing and automatic
brightness/contrast:
.Sp
.Vb 1
\&        pp=hb/vb/dr/al
.Ve
.IP \(bu 4
Apply default filters without brightness/contrast correction:
.Sp
.Vb 1
\&        pp=de/\-al
.Ve
.IP \(bu 4
Apply default filters and temporal denoiser:
.Sp
.Vb 1
\&        pp=default/tmpnoise|1|2|3
.Ve
.IP \(bu 4
Apply deblocking on luminance only, and switch vertical deblocking on or off
automatically depending on available CPU time:
.Sp
.Vb 1
\&        pp=hb|y/vb|a
.Ve
.SS pp7
.IX Subsection "pp7"
Apply Postprocessing filter 7. It is variant of the \fBspp\fR filter,
similar to spp = 6 with 7 point DCT, where only the center sample is
used after IDCT.
.PP
The filter accepts the following options:
.IP \fBqp\fR 4
.IX Item "qp"
Force a constant quantization parameter. It accepts an integer in range
0 to 63. If not set, the filter will use the QP from the video stream
(if available).
.IP \fBmode\fR 4
.IX Item "mode"
Set thresholding mode. Available modes are:
.RS 4
.IP \fBhard\fR 4
.IX Item "hard"
Set hard thresholding.
.IP \fBsoft\fR 4
.IX Item "soft"
Set soft thresholding (better de-ringing effect, but likely blurrier).
.IP \fBmedium\fR 4
.IX Item "medium"
Set medium thresholding (good results, default).
.RE
.RS 4
.RE
.SS premultiply
.IX Subsection "premultiply"
Apply alpha premultiply effect to input video stream using first plane
of second stream as alpha.
.PP
Both streams must have same dimensions and same pixel format.
.PP
The filter accepts the following option:
.IP \fBplanes\fR 4
.IX Item "planes"
Set which planes will be processed, unprocessed planes will be copied.
By default value 0xf, all planes will be processed.
.IP \fBinplace\fR 4
.IX Item "inplace"
Do not require 2nd input for processing, instead use alpha plane from input stream.
.SS prewitt
.IX Subsection "prewitt"
Apply prewitt operator to input video stream.
.PP
The filter accepts the following option:
.IP \fBplanes\fR 4
.IX Item "planes"
Set which planes will be processed, unprocessed planes will be copied.
By default value 0xf, all planes will be processed.
.IP \fBscale\fR 4
.IX Item "scale"
Set value which will be multiplied with filtered result.
.IP \fBdelta\fR 4
.IX Item "delta"
Set value which will be added to filtered result.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS pseudocolor
.IX Subsection "pseudocolor"
Alter frame colors in video with pseudocolors.
.PP
This filter accepts the following options:
.IP \fBc0\fR 4
.IX Item "c0"
set pixel first component expression
.IP \fBc1\fR 4
.IX Item "c1"
set pixel second component expression
.IP \fBc2\fR 4
.IX Item "c2"
set pixel third component expression
.IP \fBc3\fR 4
.IX Item "c3"
set pixel fourth component expression, corresponds to the alpha component
.IP "\fBindex, i\fR" 4
.IX Item "index, i"
set component to use as base for altering colors
.IP "\fBpreset, p\fR" 4
.IX Item "preset, p"
Pick one of built-in LUTs. By default is set to none.
.Sp
Available LUTs:
.RS 4
.IP \fBmagma\fR 4
.IX Item "magma"
.PD 0
.IP \fBinferno\fR 4
.IX Item "inferno"
.IP \fBplasma\fR 4
.IX Item "plasma"
.IP \fBviridis\fR 4
.IX Item "viridis"
.IP \fBturbo\fR 4
.IX Item "turbo"
.IP \fBcividis\fR 4
.IX Item "cividis"
.IP \fBrange1\fR 4
.IX Item "range1"
.IP \fBrange2\fR 4
.IX Item "range2"
.IP \fBshadows\fR 4
.IX Item "shadows"
.IP \fBhighlights\fR 4
.IX Item "highlights"
.RE
.RS 4
.RE
.IP \fBopacity\fR 4
.IX Item "opacity"
.PD
Set opacity of output colors. Allowed range is from 0 to 1.
Default value is set to 1.
.PP
Each of the expression options specifies the expression to use for computing
the lookup table for the corresponding pixel component values.
.PP
The expressions can contain the following constants and functions:
.IP \fBw\fR 4
.IX Item "w"
.PD 0
.IP \fBh\fR 4
.IX Item "h"
.PD
The input width and height.
.IP \fBval\fR 4
.IX Item "val"
The input value for the pixel component.
.IP "\fBymin, umin, vmin, amin\fR" 4
.IX Item "ymin, umin, vmin, amin"
The minimum allowed component value.
.IP "\fBymax, umax, vmax, amax\fR" 4
.IX Item "ymax, umax, vmax, amax"
The maximum allowed component value.
.PP
All expressions default to "val".
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Change too high luma values to gradient:
.Sp
.Vb 1
\&        pseudocolor="\*(Aqif(between(val,ymax,amax),lerp(ymin,ymax,(val\-ymax)/(amax\-ymax)),\-1):if(between(val,ymax,amax),lerp(umax,umin,(val\-ymax)/(amax\-ymax)),\-1):if(between(val,ymax,amax),lerp(vmin,vmax,(val\-ymax)/(amax\-ymax)),\-1):\-1\*(Aq"
.Ve
.SS psnr
.IX Subsection "psnr"
Obtain the average, maximum and minimum PSNR (Peak Signal to Noise
Ratio) between two input videos.
.PP
This filter takes in input two input videos, the first input is
considered the "main" source and is passed unchanged to the
output. The second input is used as a "reference" video for computing
the PSNR.
.PP
Both video inputs must have the same resolution and pixel format for
this filter to work correctly. Also it assumes that both inputs
have the same number of frames, which are compared one by one.
.PP
The obtained average PSNR is printed through the logging system.
.PP
The filter stores the accumulated MSE (mean squared error) of each
frame, and at the end of the processing it is averaged across all frames
equally, and the following formula is applied to obtain the PSNR:
.PP
.Vb 1
\&        PSNR = 10*log10(MAX^2/MSE)
.Ve
.PP
Where MAX is the average of the maximum values of each component of the
image.
.PP
The description of the accepted parameters follows.
.IP "\fBstats_file, f\fR" 4
.IX Item "stats_file, f"
If specified the filter will use the named file to save the PSNR of
each individual frame. When filename equals "\-" the data is sent to
standard output.
.IP \fBstats_version\fR 4
.IX Item "stats_version"
Specifies which version of the stats file format to use. Details of
each format are written below.
Default value is 1.
.IP \fBstats_add_max\fR 4
.IX Item "stats_add_max"
Determines whether the max value is output to the stats log.
Default value is 0.
Requires stats_version >= 2. If this is set and stats_version < 2,
the filter will return an error.
.PP
This filter also supports the \fBframesync\fR options.
.PP
The file printed if \fIstats_file\fR is selected, contains a sequence of
key/value pairs of the form \fIkey\fR:\fIvalue\fR for each compared
couple of frames.
.PP
If a \fIstats_version\fR greater than 1 is specified, a header line precedes
the list of per-frame-pair stats, with key value pairs following the frame
format with the following parameters:
.IP \fBpsnr_log_version\fR 4
.IX Item "psnr_log_version"
The version of the log file format. Will match \fIstats_version\fR.
.IP \fBfields\fR 4
.IX Item "fields"
A comma separated list of the per-frame-pair parameters included in
the log.
.PP
A description of each shown per-frame-pair parameter follows:
.IP \fBn\fR 4
.IX Item "n"
sequential number of the input frame, starting from 1
.IP \fBmse_avg\fR 4
.IX Item "mse_avg"
Mean Square Error pixel-by-pixel average difference of the compared
frames, averaged over all the image components.
.IP "\fBmse_y, mse_u, mse_v, mse_r, mse_g, mse_b, mse_a\fR" 4
.IX Item "mse_y, mse_u, mse_v, mse_r, mse_g, mse_b, mse_a"
Mean Square Error pixel-by-pixel average difference of the compared
frames for the component specified by the suffix.
.IP "\fBpsnr_y, psnr_u, psnr_v, psnr_r, psnr_g, psnr_b, psnr_a\fR" 4
.IX Item "psnr_y, psnr_u, psnr_v, psnr_r, psnr_g, psnr_b, psnr_a"
Peak Signal to Noise ratio of the compared frames for the component
specified by the suffix.
.IP "\fBmax_avg, max_y, max_u, max_v\fR" 4
.IX Item "max_avg, max_y, max_u, max_v"
Maximum allowed value for each channel, and average over all
channels.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
For example:
.Sp
.Vb 2
\&        movie=ref_movie.mpg, setpts=PTS\-STARTPTS [main];
\&        [main][ref] psnr="stats_file=stats.log" [out]
.Ve
.Sp
On this example the input file being processed is compared with the
reference file \fIref_movie.mpg\fR. The PSNR of each individual frame
is stored in \fIstats.log\fR.
.IP \(bu 4
Another example with different containers:
.Sp
.Vb 1
\&        ffmpeg \-i main.mpg \-i ref.mkv \-lavfi  "[0:v]settb=AVTB,setpts=PTS\-STARTPTS[main];[1:v]settb=AVTB,setpts=PTS\-STARTPTS[ref];[main][ref]psnr" \-f null \-
.Ve
.SS pullup
.IX Subsection "pullup"
Pulldown reversal (inverse telecine) filter, capable of handling mixed
hard-telecine, 24000/1001 fps progressive, and 30000/1001 fps progressive
content.
.PP
The pullup filter is designed to take advantage of future context in making
its decisions. This filter is stateless in the sense that it does not lock
onto a pattern to follow, but it instead looks forward to the following
fields in order to identify matches and rebuild progressive frames.
.PP
To produce content with an even framerate, insert the fps filter after
pullup, use \f(CW\*(C`fps=24000/1001\*(C'\fR if the input frame rate is 29.97fps,
\&\f(CW\*(C`fps=24\*(C'\fR for 30fps and the (rare) telecined 25fps input.
.PP
The filter accepts the following options:
.IP \fBjl\fR 4
.IX Item "jl"
.PD 0
.IP \fBjr\fR 4
.IX Item "jr"
.IP \fBjt\fR 4
.IX Item "jt"
.IP \fBjb\fR 4
.IX Item "jb"
.PD
These options set the amount of "junk" to ignore at the left, right, top, and
bottom of the image, respectively. Left and right are in units of 8 pixels,
while top and bottom are in units of 2 lines.
The default is 8 pixels on each side.
.IP \fBsb\fR 4
.IX Item "sb"
Set the strict breaks. Setting this option to 1 will reduce the chances of
filter generating an occasional mismatched frame, but it may also cause an
excessive number of frames to be dropped during high motion sequences.
Conversely, setting it to \-1 will make filter match fields more easily.
This may help processing of video where there is slight blurring between
the fields, but may also cause there to be interlaced frames in the output.
Default value is \f(CW0\fR.
.IP \fBmp\fR 4
.IX Item "mp"
Set the metric plane to use. It accepts the following values:
.RS 4
.IP \fBl\fR 4
.IX Item "l"
Use luma plane.
.IP \fBu\fR 4
.IX Item "u"
Use chroma blue plane.
.IP \fBv\fR 4
.IX Item "v"
Use chroma red plane.
.RE
.RS 4
.Sp
This option may be set to use chroma plane instead of the default luma plane
for doing filter's computations. This may improve accuracy on very clean
source material, but more likely will decrease accuracy, especially if there
is chroma noise (rainbow effect) or any grayscale video.
The main purpose of setting \fBmp\fR to a chroma plane is to reduce CPU
load and make pullup usable in realtime on slow machines.
.RE
.PP
For best results (without duplicated frames in the output file) it is
necessary to change the output frame rate. For example, to inverse
telecine NTSC input:
.PP
.Vb 1
\&        ffmpeg \-i input \-vf pullup \-r 24000/1001 ...
.Ve
.SS qp
.IX Subsection "qp"
Change video quantization parameters (QP).
.PP
The filter accepts the following option:
.IP \fBqp\fR 4
.IX Item "qp"
Set expression for quantization parameter.
.PP
The expression is evaluated through the eval API and can contain, among others,
the following constants:
.IP \fIknown\fR 4
.IX Item "known"
1 if index is not 129, 0 otherwise.
.IP \fIqp\fR 4
.IX Item "qp"
Sequential index starting from \-129 to 128.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Some equation like:
.Sp
.Vb 1
\&        qp=2+2*sin(PI*qp)
.Ve
.SS random
.IX Subsection "random"
Flush video frames from internal cache of frames into a random order.
No frame is discarded.
Inspired by \fBfrei0r\fR nervous filter.
.IP \fBframes\fR 4
.IX Item "frames"
Set size in number of frames of internal cache, in range from \f(CW2\fR to
\&\f(CW512\fR. Default is \f(CW30\fR.
.IP \fBseed\fR 4
.IX Item "seed"
Set seed for random number generator, must be an integer included between
\&\f(CW0\fR and \f(CW\*(C`UINT32_MAX\*(C'\fR. If not specified, or if explicitly set to
less than \f(CW0\fR, the filter will try to use a good random seed on a
best effort basis.
.SS readeia608
.IX Subsection "readeia608"
Read closed captioning (EIA\-608) information from the top lines of a video frame.
.PP
This filter adds frame metadata for \f(CW\*(C`lavfi.readeia608.X.cc\*(C'\fR and
\&\f(CW\*(C`lavfi.readeia608.X.line\*(C'\fR, where \f(CW\*(C`X\*(C'\fR is the number of the identified line
with EIA\-608 data (starting from 0). A description of each metadata value follows:
.IP \fBlavfi.readeia608.X.cc\fR 4
.IX Item "lavfi.readeia608.X.cc"
The two bytes stored as EIA\-608 data (printed in hexadecimal).
.IP \fBlavfi.readeia608.X.line\fR 4
.IX Item "lavfi.readeia608.X.line"
The number of the line on which the EIA\-608 data was identified and read.
.PP
This filter accepts the following options:
.IP \fBscan_min\fR 4
.IX Item "scan_min"
Set the line to start scanning for EIA\-608 data. Default is \f(CW0\fR.
.IP \fBscan_max\fR 4
.IX Item "scan_max"
Set the line to end scanning for EIA\-608 data. Default is \f(CW29\fR.
.IP \fBspw\fR 4
.IX Item "spw"
Set the ratio of width reserved for sync code detection.
Default is \f(CW0.27\fR. Allowed range is \f(CW\*(C`[0.1 \- 0.7]\*(C'\fR.
.IP \fBchp\fR 4
.IX Item "chp"
Enable checking the parity bit. In the event of a parity error, the filter will output
\&\f(CW0x00\fR for that character. Default is false.
.IP \fBlp\fR 4
.IX Item "lp"
Lowpass lines prior to further processing. Default is enabled.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Output a csv with presentation time and the first two lines of identified EIA\-608 captioning data.
.Sp
.Vb 1
\&        ffprobe \-f lavfi \-i movie=captioned_video.mov,readeia608 \-show_entries frame=pkt_pts_time:frame_tags=lavfi.readeia608.0.cc,lavfi.readeia608.1.cc \-of csv
.Ve
.SS readvitc
.IX Subsection "readvitc"
Read vertical interval timecode (VITC) information from the top lines of a
video frame.
.PP
The filter adds frame metadata key \f(CW\*(C`lavfi.readvitc.tc_str\*(C'\fR with the
timecode value, if a valid timecode has been detected. Further metadata key
\&\f(CW\*(C`lavfi.readvitc.found\*(C'\fR is set to 0/1 depending on whether
timecode data has been found or not.
.PP
This filter accepts the following options:
.IP \fBscan_max\fR 4
.IX Item "scan_max"
Set the maximum number of lines to scan for VITC data. If the value is set to
\&\f(CW\-1\fR the full video frame is scanned. Default is \f(CW45\fR.
.IP \fBthr_b\fR 4
.IX Item "thr_b"
Set the luma threshold for black. Accepts float numbers in the range [0.0,1.0],
default value is \f(CW0.2\fR. The value must be equal or less than \f(CW\*(C`thr_w\*(C'\fR.
.IP \fBthr_w\fR 4
.IX Item "thr_w"
Set the luma threshold for white. Accepts float numbers in the range [0.0,1.0],
default value is \f(CW0.6\fR. The value must be equal or greater than \f(CW\*(C`thr_b\*(C'\fR.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Detect and draw VITC data onto the video frame; if no valid VITC is detected,
draw \f(CW\*(C`\-\-:\-\-:\-\-:\-\-\*(C'\fR as a placeholder:
.Sp
.Vb 1
\&        ffmpeg \-i input.avi \-filter:v \*(Aqreadvitc,drawtext=fontfile=FreeMono.ttf:text=%{metadata\e\e:lavfi.readvitc.tc_str\e\e:\-\-\e\e\e\e\e\e:\-\-\e\e\e\e\e\e:\-\-\e\e\e\e\e\e:\-\-}:x=(w\-tw)/2:y=400\-ascent\*(Aq
.Ve
.SS remap
.IX Subsection "remap"
Remap pixels using 2nd: Xmap and 3rd: Ymap input video stream.
.PP
Destination pixel at position (X, Y) will be picked from source (x, y) position
where x = Xmap(X, Y) and y = Ymap(X, Y). If mapping values are out of range, zero
value for pixel will be used for destination pixel.
.PP
Xmap and Ymap input video streams must be of same dimensions. Output video stream
will have Xmap/Ymap video stream dimensions.
Xmap and Ymap input video streams are 16bit depth, single channel.
.IP \fBformat\fR 4
.IX Item "format"
Specify pixel format of output from this filter. Can be \f(CW\*(C`color\*(C'\fR or \f(CW\*(C`gray\*(C'\fR.
Default is \f(CW\*(C`color\*(C'\fR.
.IP \fBfill\fR 4
.IX Item "fill"
Specify the color of the unmapped pixels. For the syntax of this option,
check the \fB"Color" section in the ffmpeg-utils
manual\fR. Default color is \f(CW\*(C`black\*(C'\fR.
.SS removegrain
.IX Subsection "removegrain"
The removegrain filter is a spatial denoiser for progressive video.
.IP \fBm0\fR 4
.IX Item "m0"
Set mode for the first plane.
.IP \fBm1\fR 4
.IX Item "m1"
Set mode for the second plane.
.IP \fBm2\fR 4
.IX Item "m2"
Set mode for the third plane.
.IP \fBm3\fR 4
.IX Item "m3"
Set mode for the fourth plane.
.PP
Range of mode is from 0 to 24. Description of each mode follows:
.IP \fI0\fR 4
.IX Item "0"
Leave input plane unchanged. Default.
.IP \fI1\fR 4
.IX Item "1"
Clips the pixel with the minimum and maximum of the 8 neighbour pixels.
.IP \fI2\fR 4
.IX Item "2"
Clips the pixel with the second minimum and maximum of the 8 neighbour pixels.
.IP \fI3\fR 4
.IX Item "3"
Clips the pixel with the third minimum and maximum of the 8 neighbour pixels.
.IP \fI4\fR 4
.IX Item "4"
Clips the pixel with the fourth minimum and maximum of the 8 neighbour pixels.
This is equivalent to a median filter.
.IP \fI5\fR 4
.IX Item "5"
Line-sensitive clipping giving the minimal change.
.IP \fI6\fR 4
.IX Item "6"
Line-sensitive clipping, intermediate.
.IP \fI7\fR 4
.IX Item "7"
Line-sensitive clipping, intermediate.
.IP \fI8\fR 4
.IX Item "8"
Line-sensitive clipping, intermediate.
.IP \fI9\fR 4
.IX Item "9"
Line-sensitive clipping on a line where the neighbours pixels are the closest.
.IP \fI10\fR 4
.IX Item "10"
Replaces the target pixel with the closest neighbour.
.IP \fI11\fR 4
.IX Item "11"
[1 2 1] horizontal and vertical kernel blur.
.IP \fI12\fR 4
.IX Item "12"
Same as mode 11.
.IP \fI13\fR 4
.IX Item "13"
Bob mode, interpolates top field from the line where the neighbours
pixels are the closest.
.IP \fI14\fR 4
.IX Item "14"
Bob mode, interpolates bottom field from the line where the neighbours
pixels are the closest.
.IP \fI15\fR 4
.IX Item "15"
Bob mode, interpolates top field. Same as 13 but with a more complicated
interpolation formula.
.IP \fI16\fR 4
.IX Item "16"
Bob mode, interpolates bottom field. Same as 14 but with a more complicated
interpolation formula.
.IP \fI17\fR 4
.IX Item "17"
Clips the pixel with the minimum and maximum of respectively the maximum and
minimum of each pair of opposite neighbour pixels.
.IP \fI18\fR 4
.IX Item "18"
Line-sensitive clipping using opposite neighbours whose greatest distance from
the current pixel is minimal.
.IP \fI19\fR 4
.IX Item "19"
Replaces the pixel with the average of its 8 neighbours.
.IP \fI20\fR 4
.IX Item "20"
Averages the 9 pixels ([1 1 1] horizontal and vertical blur).
.IP \fI21\fR 4
.IX Item "21"
Clips pixels using the averages of opposite neighbour.
.IP \fI22\fR 4
.IX Item "22"
Same as mode 21 but simpler and faster.
.IP \fI23\fR 4
.IX Item "23"
Small edge and halo removal, but reputed useless.
.IP \fI24\fR 4
.IX Item "24"
Similar as 23.
.SS removelogo
.IX Subsection "removelogo"
Suppress a TV station logo, using an image file to determine which
pixels comprise the logo. It works by filling in the pixels that
comprise the logo with neighboring pixels.
.PP
The filter accepts the following options:
.IP "\fBfilename, f\fR" 4
.IX Item "filename, f"
Set the filter bitmap file, which can be any image format supported by
libavformat. The width and height of the image file must match those of the
video stream being processed.
.PP
Pixels in the provided bitmap image with a value of zero are not
considered part of the logo, non-zero pixels are considered part of
the logo. If you use white (255) for the logo and black (0) for the
rest, you will be safe. For making the filter bitmap, it is
recommended to take a screen capture of a black frame with the logo
visible, and then using a threshold filter followed by the erode
filter once or twice.
.PP
If needed, little splotches can be fixed manually. Remember that if
logo pixels are not covered, the filter quality will be much
reduced. Marking too many pixels as part of the logo does not hurt as
much, but it will increase the amount of blurring needed to cover over
the image and will destroy more information than necessary, and extra
pixels will slow things down on a large logo.
.SS repeatfields
.IX Subsection "repeatfields"
This filter uses the repeat_field flag from the Video ES headers and hard repeats
fields based on its value.
.SS reverse
.IX Subsection "reverse"
Reverse a video clip.
.PP
Warning: This filter requires memory to buffer the entire clip, so trimming
is suggested.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Take the first 5 seconds of a clip, and reverse it.
.Sp
.Vb 1
\&        trim=end=5,reverse
.Ve
.SS rgbashift
.IX Subsection "rgbashift"
Shift R/G/B/A pixels horizontally and/or vertically.
.PP
The filter accepts the following options:
.IP \fBrh\fR 4
.IX Item "rh"
Set amount to shift red horizontally.
.IP \fBrv\fR 4
.IX Item "rv"
Set amount to shift red vertically.
.IP \fBgh\fR 4
.IX Item "gh"
Set amount to shift green horizontally.
.IP \fBgv\fR 4
.IX Item "gv"
Set amount to shift green vertically.
.IP \fBbh\fR 4
.IX Item "bh"
Set amount to shift blue horizontally.
.IP \fBbv\fR 4
.IX Item "bv"
Set amount to shift blue vertically.
.IP \fBah\fR 4
.IX Item "ah"
Set amount to shift alpha horizontally.
.IP \fBav\fR 4
.IX Item "av"
Set amount to shift alpha vertically.
.IP \fBedge\fR 4
.IX Item "edge"
Set edge mode, can be \fIsmear\fR, default, or \fIwarp\fR.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS roberts
.IX Subsection "roberts"
Apply roberts cross operator to input video stream.
.PP
The filter accepts the following option:
.IP \fBplanes\fR 4
.IX Item "planes"
Set which planes will be processed, unprocessed planes will be copied.
By default value 0xf, all planes will be processed.
.IP \fBscale\fR 4
.IX Item "scale"
Set value which will be multiplied with filtered result.
.IP \fBdelta\fR 4
.IX Item "delta"
Set value which will be added to filtered result.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS rotate
.IX Subsection "rotate"
Rotate video by an arbitrary angle expressed in radians.
.PP
The filter accepts the following options:
.PP
A description of the optional parameters follows.
.IP "\fBangle, a\fR" 4
.IX Item "angle, a"
Set an expression for the angle by which to rotate the input video
clockwise, expressed as a number of radians. A negative value will
result in a counter-clockwise rotation. By default it is set to "0".
.Sp
This expression is evaluated for each frame.
.IP "\fBout_w, ow\fR" 4
.IX Item "out_w, ow"
Set the output width expression, default value is "iw".
This expression is evaluated just once during configuration.
.IP "\fBout_h, oh\fR" 4
.IX Item "out_h, oh"
Set the output height expression, default value is "ih".
This expression is evaluated just once during configuration.
.IP \fBbilinear\fR 4
.IX Item "bilinear"
Enable bilinear interpolation if set to 1, a value of 0 disables
it. Default value is 1.
.IP "\fBfillcolor, c\fR" 4
.IX Item "fillcolor, c"
Set the color used to fill the output area not covered by the rotated
image. For the general syntax of this option, check the
\&\fB"Color" section in the ffmpeg-utils manual\fR.
If the special value "none" is selected then no
background is printed (useful for example if the background is never shown).
.Sp
Default value is "black".
.PP
The expressions for the angle and the output size can contain the
following constants and functions:
.IP \fBn\fR 4
.IX Item "n"
sequential number of the input frame, starting from 0. It is always NAN
before the first frame is filtered.
.IP \fBt\fR 4
.IX Item "t"
time in seconds of the input frame, it is set to 0 when the filter is
configured. It is always NAN before the first frame is filtered.
.IP \fBhsub\fR 4
.IX Item "hsub"
.PD 0
.IP \fBvsub\fR 4
.IX Item "vsub"
.PD
horizontal and vertical chroma subsample values. For example for the
pixel format "yuv422p" \fIhsub\fR is 2 and \fIvsub\fR is 1.
.IP "\fBin_w, iw\fR" 4
.IX Item "in_w, iw"
.PD 0
.IP "\fBin_h, ih\fR" 4
.IX Item "in_h, ih"
.PD
the input video width and height
.IP "\fBout_w, ow\fR" 4
.IX Item "out_w, ow"
.PD 0
.IP "\fBout_h, oh\fR" 4
.IX Item "out_h, oh"
.PD
the output width and height, that is the size of the padded area as
specified by the \fIwidth\fR and \fIheight\fR expressions
.IP \fBrotw(a)\fR 4
.IX Item "rotw(a)"
.PD 0
.IP \fBroth(a)\fR 4
.IX Item "roth(a)"
.PD
the minimal width/height required for completely containing the input
video rotated by \fIa\fR radians.
.Sp
These are only available when computing the \fBout_w\fR and
\&\fBout_h\fR expressions.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Rotate the input by PI/6 radians clockwise:
.Sp
.Vb 1
\&        rotate=PI/6
.Ve
.IP \(bu 4
Rotate the input by PI/6 radians counter-clockwise:
.Sp
.Vb 1
\&        rotate=\-PI/6
.Ve
.IP \(bu 4
Rotate the input by 45 degrees clockwise:
.Sp
.Vb 1
\&        rotate=45*PI/180
.Ve
.IP \(bu 4
Apply a constant rotation with period T, starting from an angle of PI/3:
.Sp
.Vb 1
\&        rotate=PI/3+2*PI*t/T
.Ve
.IP \(bu 4
Make the input video rotation oscillating with a period of T
seconds and an amplitude of A radians:
.Sp
.Vb 1
\&        rotate=A*sin(2*PI/T*t)
.Ve
.IP \(bu 4
Rotate the video, output size is chosen so that the whole rotating
input video is always completely contained in the output:
.Sp
.Vb 1
\&        rotate=\*(Aq2*PI*t:ow=hypot(iw,ih):oh=ow\*(Aq
.Ve
.IP \(bu 4
Rotate the video, reduce the output size so that no background is ever
shown:
.Sp
.Vb 1
\&        rotate=2*PI*t:ow=\*(Aqmin(iw,ih)/sqrt(2)\*(Aq:oh=ow:c=none
.Ve
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
The filter supports the following commands:
.IP "\fBa, angle\fR" 4
.IX Item "a, angle"
Set the angle expression.
The command accepts the same syntax of the corresponding option.
.Sp
If the specified expression is not valid, it is kept at its current
value.
.SS sab
.IX Subsection "sab"
Apply Shape Adaptive Blur.
.PP
The filter accepts the following options:
.IP "\fBluma_radius, lr\fR" 4
.IX Item "luma_radius, lr"
Set luma blur filter strength, must be a value in range 0.1\-4.0, default
value is 1.0. A greater value will result in a more blurred image, and
in slower processing.
.IP "\fBluma_pre_filter_radius, lpfr\fR" 4
.IX Item "luma_pre_filter_radius, lpfr"
Set luma pre-filter radius, must be a value in the 0.1\-2.0 range, default
value is 1.0.
.IP "\fBluma_strength, ls\fR" 4
.IX Item "luma_strength, ls"
Set luma maximum difference between pixels to still be considered, must
be a value in the 0.1\-100.0 range, default value is 1.0.
.IP "\fBchroma_radius, cr\fR" 4
.IX Item "chroma_radius, cr"
Set chroma blur filter strength, must be a value in range \-0.9\-4.0. A
greater value will result in a more blurred image, and in slower
processing.
.IP "\fBchroma_pre_filter_radius, cpfr\fR" 4
.IX Item "chroma_pre_filter_radius, cpfr"
Set chroma pre-filter radius, must be a value in the \-0.9\-2.0 range.
.IP "\fBchroma_strength, cs\fR" 4
.IX Item "chroma_strength, cs"
Set chroma maximum difference between pixels to still be considered,
must be a value in the \-0.9\-100.0 range.
.PP
Each chroma option value, if not explicitly specified, is set to the
corresponding luma option value.
.SS scale
.IX Subsection "scale"
Scale (resize) the input video, using the libswscale library.
.PP
The scale filter forces the output display aspect ratio to be the same
of the input, by changing the output sample aspect ratio.
.PP
If the input image format is different from the format requested by
the next filter, the scale filter will convert the input to the
requested format.
.PP
\fIOptions\fR
.IX Subsection "Options"
.PP
The filter accepts the following options, or any of the options
supported by the libswscale scaler.
.PP
See \fBthe ffmpeg-scaler manual\fR for
the complete list of scaler options.
.IP "\fBwidth, w\fR" 4
.IX Item "width, w"
.PD 0
.IP "\fBheight, h\fR" 4
.IX Item "height, h"
.PD
Set the output video dimension expression. Default value is the input
dimension.
.Sp
If the \fIwidth\fR or \fIw\fR value is 0, the input width is used for
the output. If the \fIheight\fR or \fIh\fR value is 0, the input height
is used for the output.
.Sp
If one and only one of the values is \-n with n >= 1, the scale filter
will use a value that maintains the aspect ratio of the input image,
calculated from the other specified dimension. After that it will,
however, make sure that the calculated dimension is divisible by n and
adjust the value if necessary.
.Sp
If both values are \-n with n >= 1, the behavior will be identical to
both values being set to 0 as previously detailed.
.Sp
See below for the list of accepted constants for use in the dimension
expression.
.IP \fBeval\fR 4
.IX Item "eval"
Specify when to evaluate \fIwidth\fR and \fIheight\fR expression. It accepts the following values:
.RS 4
.IP \fBinit\fR 4
.IX Item "init"
Only evaluate expressions once during the filter initialization or when a command is processed.
.IP \fBframe\fR 4
.IX Item "frame"
Evaluate expressions for each incoming frame.
.RE
.RS 4
.Sp
Default value is \fBinit\fR.
.RE
.IP \fBinterl\fR 4
.IX Item "interl"
Set the interlacing mode. It accepts the following values:
.RS 4
.IP \fB1\fR 4
.IX Item "1"
Force interlaced aware scaling.
.IP \fB0\fR 4
.IX Item "0"
Do not apply interlaced scaling.
.IP \fB\-1\fR 4
.IX Item "-1"
Select interlaced aware scaling depending on whether the source frames
are flagged as interlaced or not.
.RE
.RS 4
.Sp
Default value is \fB0\fR.
.RE
.IP \fBflags\fR 4
.IX Item "flags"
Set libswscale scaling flags. See
\&\fBthe ffmpeg-scaler manual\fR for the
complete list of values. If not explicitly specified the filter applies
the default flags.
.IP "\fBparam0, param1\fR" 4
.IX Item "param0, param1"
Set libswscale input parameters for scaling algorithms that need them. See
\&\fBthe ffmpeg-scaler manual\fR for the
complete documentation. If not explicitly specified the filter applies
empty parameters.
.IP "\fBsize, s\fR" 4
.IX Item "size, s"
Set the video size. For the syntax of this option, check the
\&\fB"Video size" section in the ffmpeg-utils manual\fR.
.IP \fBin_color_matrix\fR 4
.IX Item "in_color_matrix"
.PD 0
.IP \fBout_color_matrix\fR 4
.IX Item "out_color_matrix"
.PD
Set in/output YCbCr color space type.
.Sp
This allows the autodetected value to be overridden as well as allows forcing
a specific value used for the output and encoder.
.Sp
If not specified, the color space type depends on the pixel format.
.Sp
Possible values:
.RS 4
.IP \fBauto\fR 4
.IX Item "auto"
Choose automatically.
.IP \fBbt709\fR 4
.IX Item "bt709"
Format conforming to International Telecommunication Union (ITU)
Recommendation BT.709.
.IP \fBfcc\fR 4
.IX Item "fcc"
Set color space conforming to the United States Federal Communications
Commission (FCC) Code of Federal Regulations (CFR) Title 47 (2003) 73.682 (a).
.IP \fBbt601\fR 4
.IX Item "bt601"
.PD 0
.IP \fBbt470\fR 4
.IX Item "bt470"
.IP \fBsmpte170m\fR 4
.IX Item "smpte170m"
.PD
Set color space conforming to:
.RS 4
.IP \(bu 4
ITU Radiocommunication Sector (ITU-R) Recommendation BT.601
.IP \(bu 4
ITU-R Rec. BT.470\-6 (1998) Systems B, B1, and G
.IP \(bu 4
Society of Motion Picture and Television Engineers (SMPTE) ST 170:2004
.RE
.RS 4
.RE
.IP \fBsmpte240m\fR 4
.IX Item "smpte240m"
Set color space conforming to SMPTE ST 240:1999.
.IP \fBbt2020\fR 4
.IX Item "bt2020"
Set color space conforming to ITU-R BT.2020 non-constant luminance system.
.RE
.RS 4
.RE
.IP \fBin_range\fR 4
.IX Item "in_range"
.PD 0
.IP \fBout_range\fR 4
.IX Item "out_range"
.PD
Set in/output YCbCr sample range.
.Sp
This allows the autodetected value to be overridden as well as allows forcing
a specific value used for the output and encoder. If not specified, the
range depends on the pixel format. Possible values:
.RS 4
.IP \fBauto/unknown\fR 4
.IX Item "auto/unknown"
Choose automatically.
.IP \fBjpeg/full/pc\fR 4
.IX Item "jpeg/full/pc"
Set full range (0\-255 in case of 8\-bit luma).
.IP \fBmpeg/limited/tv\fR 4
.IX Item "mpeg/limited/tv"
Set "MPEG" range (16\-235 in case of 8\-bit luma).
.RE
.RS 4
.RE
.IP \fBforce_original_aspect_ratio\fR 4
.IX Item "force_original_aspect_ratio"
Enable decreasing or increasing output video width or height if necessary to
keep the original aspect ratio. Possible values:
.RS 4
.IP \fBdisable\fR 4
.IX Item "disable"
Scale the video as specified and disable this feature.
.IP \fBdecrease\fR 4
.IX Item "decrease"
The output video dimensions will automatically be decreased if needed.
.IP \fBincrease\fR 4
.IX Item "increase"
The output video dimensions will automatically be increased if needed.
.RE
.RS 4
.Sp
One useful instance of this option is that when you know a specific device's
maximum allowed resolution, you can use this to limit the output video to
that, while retaining the aspect ratio. For example, device A allows
1280x720 playback, and your video is 1920x800. Using this option (set it to
decrease) and specifying 1280x720 to the command line makes the output
1280x533.
.Sp
Please note that this is a different thing than specifying \-1 for \fBw\fR
or \fBh\fR, you still need to specify the output resolution for this option
to work.
.RE
.IP \fBforce_divisible_by\fR 4
.IX Item "force_divisible_by"
Ensures that both the output dimensions, width and height, are divisible by the
given integer when used together with \fBforce_original_aspect_ratio\fR. This
works similar to using \f(CW\*(C`\-n\*(C'\fR in the \fBw\fR and \fBh\fR options.
.Sp
This option respects the value set for \fBforce_original_aspect_ratio\fR,
increasing or decreasing the resolution accordingly. The video's aspect ratio
may be slightly modified.
.Sp
This option can be handy if you need to have a video fit within or exceed
a defined resolution using \fBforce_original_aspect_ratio\fR but also have
encoder restrictions on width or height divisibility.
.PP
The values of the \fBw\fR and \fBh\fR options are expressions
containing the following constants:
.IP \fIin_w\fR 4
.IX Item "in_w"
.PD 0
.IP \fIin_h\fR 4
.IX Item "in_h"
.PD
The input width and height
.IP \fIiw\fR 4
.IX Item "iw"
.PD 0
.IP \fIih\fR 4
.IX Item "ih"
.PD
These are the same as \fIin_w\fR and \fIin_h\fR.
.IP \fIout_w\fR 4
.IX Item "out_w"
.PD 0
.IP \fIout_h\fR 4
.IX Item "out_h"
.PD
The output (scaled) width and height
.IP \fIow\fR 4
.IX Item "ow"
.PD 0
.IP \fIoh\fR 4
.IX Item "oh"
.PD
These are the same as \fIout_w\fR and \fIout_h\fR
.IP \fIa\fR 4
.IX Item "a"
The same as \fIiw\fR / \fIih\fR
.IP \fIsar\fR 4
.IX Item "sar"
input sample aspect ratio
.IP \fIdar\fR 4
.IX Item "dar"
The input display aspect ratio. Calculated from \f(CW\*(C`(iw / ih) * sar\*(C'\fR.
.IP \fIhsub\fR 4
.IX Item "hsub"
.PD 0
.IP \fIvsub\fR 4
.IX Item "vsub"
.PD
horizontal and vertical input chroma subsample values. For example for the
pixel format "yuv422p" \fIhsub\fR is 2 and \fIvsub\fR is 1.
.IP \fIohsub\fR 4
.IX Item "ohsub"
.PD 0
.IP \fIovsub\fR 4
.IX Item "ovsub"
.PD
horizontal and vertical output chroma subsample values. For example for the
pixel format "yuv422p" \fIhsub\fR is 2 and \fIvsub\fR is 1.
.IP \fIn\fR 4
.IX Item "n"
The (sequential) number of the input frame, starting from 0.
Only available with \f(CW\*(C`eval=frame\*(C'\fR.
.IP \fIt\fR 4
.IX Item "t"
The presentation timestamp of the input frame, expressed as a number of
seconds. Only available with \f(CW\*(C`eval=frame\*(C'\fR.
.IP \fIpos\fR 4
.IX Item "pos"
The position (byte offset) of the frame in the input stream, or NaN if
this information is unavailable and/or meaningless (for example in case of synthetic video).
Only available with \f(CW\*(C`eval=frame\*(C'\fR.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Scale the input video to a size of 200x100
.Sp
.Vb 1
\&        scale=w=200:h=100
.Ve
.Sp
This is equivalent to:
.Sp
.Vb 1
\&        scale=200:100
.Ve
.Sp
or:
.Sp
.Vb 1
\&        scale=200x100
.Ve
.IP \(bu 4
Specify a size abbreviation for the output size:
.Sp
.Vb 1
\&        scale=qcif
.Ve
.Sp
which can also be written as:
.Sp
.Vb 1
\&        scale=size=qcif
.Ve
.IP \(bu 4
Scale the input to 2x:
.Sp
.Vb 1
\&        scale=w=2*iw:h=2*ih
.Ve
.IP \(bu 4
The above is the same as:
.Sp
.Vb 1
\&        scale=2*in_w:2*in_h
.Ve
.IP \(bu 4
Scale the input to 2x with forced interlaced scaling:
.Sp
.Vb 1
\&        scale=2*iw:2*ih:interl=1
.Ve
.IP \(bu 4
Scale the input to half size:
.Sp
.Vb 1
\&        scale=w=iw/2:h=ih/2
.Ve
.IP \(bu 4
Increase the width, and set the height to the same size:
.Sp
.Vb 1
\&        scale=3/2*iw:ow
.Ve
.IP \(bu 4
Seek Greek harmony:
.Sp
.Vb 2
\&        scale=iw:1/PHI*iw
\&        scale=ih*PHI:ih
.Ve
.IP \(bu 4
Increase the height, and set the width to 3/2 of the height:
.Sp
.Vb 1
\&        scale=w=3/2*oh:h=3/5*ih
.Ve
.IP \(bu 4
Increase the size, making the size a multiple of the chroma
subsample values:
.Sp
.Vb 1
\&        scale="trunc(3/2*iw/hsub)*hsub:trunc(3/2*ih/vsub)*vsub"
.Ve
.IP \(bu 4
Increase the width to a maximum of 500 pixels,
keeping the same aspect ratio as the input:
.Sp
.Vb 1
\&        scale=w=\*(Aqmin(500\e, iw*3/2):h=\-1\*(Aq
.Ve
.IP \(bu 4
Make pixels square by combining scale and setsar:
.Sp
.Vb 1
\&        scale=\*(Aqtrunc(ih*dar):ih\*(Aq,setsar=1/1
.Ve
.IP \(bu 4
Make pixels square by combining scale and setsar,
making sure the resulting resolution is even (required by some codecs):
.Sp
.Vb 1
\&        scale=\*(Aqtrunc(ih*dar/2)*2:trunc(ih/2)*2\*(Aq,setsar=1/1
.Ve
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the following commands:
.IP "\fBwidth, w\fR" 4
.IX Item "width, w"
.PD 0
.IP "\fBheight, h\fR" 4
.IX Item "height, h"
.PD
Set the output video dimension expression.
The command accepts the same syntax of the corresponding option.
.Sp
If the specified expression is not valid, it is kept at its current
value.
.SS scale_npp
.IX Subsection "scale_npp"
Use the NVIDIA Performance Primitives (libnpp) to perform scaling and/or pixel
format conversion on CUDA video frames. Setting the output width and height
works in the same way as for the \fIscale\fR filter.
.PP
The following additional options are accepted:
.IP \fBformat\fR 4
.IX Item "format"
The pixel format of the output CUDA frames. If set to the string "same" (the
default), the input format will be kept. Note that automatic format negotiation
and conversion is not yet supported for hardware frames
.IP \fBinterp_algo\fR 4
.IX Item "interp_algo"
The interpolation algorithm used for resizing. One of the following:
.RS 4
.IP \fBnn\fR 4
.IX Item "nn"
Nearest neighbour.
.IP \fBlinear\fR 4
.IX Item "linear"
.PD 0
.IP \fBcubic\fR 4
.IX Item "cubic"
.IP \fBcubic2p_bspline\fR 4
.IX Item "cubic2p_bspline"
.PD
2\-parameter cubic (B=1, C=0)
.IP \fBcubic2p_catmullrom\fR 4
.IX Item "cubic2p_catmullrom"
2\-parameter cubic (B=0, C=1/2)
.IP \fBcubic2p_b05c03\fR 4
.IX Item "cubic2p_b05c03"
2\-parameter cubic (B=1/2, C=3/10)
.IP \fBsuper\fR 4
.IX Item "super"
Supersampling
.IP \fBlanczos\fR 4
.IX Item "lanczos"
.RE
.RS 4
.RE
.PD 0
.IP \fBforce_original_aspect_ratio\fR 4
.IX Item "force_original_aspect_ratio"
.PD
Enable decreasing or increasing output video width or height if necessary to
keep the original aspect ratio. Possible values:
.RS 4
.IP \fBdisable\fR 4
.IX Item "disable"
Scale the video as specified and disable this feature.
.IP \fBdecrease\fR 4
.IX Item "decrease"
The output video dimensions will automatically be decreased if needed.
.IP \fBincrease\fR 4
.IX Item "increase"
The output video dimensions will automatically be increased if needed.
.RE
.RS 4
.Sp
One useful instance of this option is that when you know a specific device's
maximum allowed resolution, you can use this to limit the output video to
that, while retaining the aspect ratio. For example, device A allows
1280x720 playback, and your video is 1920x800. Using this option (set it to
decrease) and specifying 1280x720 to the command line makes the output
1280x533.
.Sp
Please note that this is a different thing than specifying \-1 for \fBw\fR
or \fBh\fR, you still need to specify the output resolution for this option
to work.
.RE
.IP \fBforce_divisible_by\fR 4
.IX Item "force_divisible_by"
Ensures that both the output dimensions, width and height, are divisible by the
given integer when used together with \fBforce_original_aspect_ratio\fR. This
works similar to using \f(CW\*(C`\-n\*(C'\fR in the \fBw\fR and \fBh\fR options.
.Sp
This option respects the value set for \fBforce_original_aspect_ratio\fR,
increasing or decreasing the resolution accordingly. The video's aspect ratio
may be slightly modified.
.Sp
This option can be handy if you need to have a video fit within or exceed
a defined resolution using \fBforce_original_aspect_ratio\fR but also have
encoder restrictions on width or height divisibility.
.SS scale2ref
.IX Subsection "scale2ref"
Scale (resize) the input video, based on a reference video.
.PP
See the scale filter for available options, scale2ref supports the same but
uses the reference video instead of the main input as basis. scale2ref also
supports the following additional constants for the \fBw\fR and
\&\fBh\fR options:
.IP \fImain_w\fR 4
.IX Item "main_w"
.PD 0
.IP \fImain_h\fR 4
.IX Item "main_h"
.PD
The main input video's width and height
.IP \fImain_a\fR 4
.IX Item "main_a"
The same as \fImain_w\fR / \fImain_h\fR
.IP \fImain_sar\fR 4
.IX Item "main_sar"
The main input video's sample aspect ratio
.IP "\fImain_dar, mdar\fR" 4
.IX Item "main_dar, mdar"
The main input video's display aspect ratio. Calculated from
\&\f(CW\*(C`(main_w / main_h) * main_sar\*(C'\fR.
.IP \fImain_hsub\fR 4
.IX Item "main_hsub"
.PD 0
.IP \fImain_vsub\fR 4
.IX Item "main_vsub"
.PD
The main input video's horizontal and vertical chroma subsample values.
For example for the pixel format "yuv422p" \fIhsub\fR is 2 and \fIvsub\fR
is 1.
.IP \fImain_n\fR 4
.IX Item "main_n"
The (sequential) number of the main input frame, starting from 0.
Only available with \f(CW\*(C`eval=frame\*(C'\fR.
.IP \fImain_t\fR 4
.IX Item "main_t"
The presentation timestamp of the main input frame, expressed as a number of
seconds. Only available with \f(CW\*(C`eval=frame\*(C'\fR.
.IP \fImain_pos\fR 4
.IX Item "main_pos"
The position (byte offset) of the frame in the main input stream, or NaN if
this information is unavailable and/or meaningless (for example in case of synthetic video).
Only available with \f(CW\*(C`eval=frame\*(C'\fR.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Scale a subtitle stream (b) to match the main video (a) in size before overlaying
.Sp
.Vb 1
\&        \*(Aqscale2ref[b][a];[a][b]overlay\*(Aq
.Ve
.IP \(bu 4
Scale a logo to 1/10th the height of a video, while preserving its display aspect ratio.
.Sp
.Vb 1
\&        [logo\-in][video\-in]scale2ref=w=oh*mdar:h=ih/10[logo\-out][video\-out]
.Ve
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the following commands:
.IP "\fBwidth, w\fR" 4
.IX Item "width, w"
.PD 0
.IP "\fBheight, h\fR" 4
.IX Item "height, h"
.PD
Set the output video dimension expression.
The command accepts the same syntax of the corresponding option.
.Sp
If the specified expression is not valid, it is kept at its current
value.
.SS scroll
.IX Subsection "scroll"
Scroll input video horizontally and/or vertically by constant speed.
.PP
The filter accepts the following options:
.IP "\fBhorizontal, h\fR" 4
.IX Item "horizontal, h"
Set the horizontal scrolling speed. Default is 0. Allowed range is from \-1 to 1.
Negative values changes scrolling direction.
.IP "\fBvertical, v\fR" 4
.IX Item "vertical, v"
Set the vertical scrolling speed. Default is 0. Allowed range is from \-1 to 1.
Negative values changes scrolling direction.
.IP \fBhpos\fR 4
.IX Item "hpos"
Set the initial horizontal scrolling position. Default is 0. Allowed range is from 0 to 1.
.IP \fBvpos\fR 4
.IX Item "vpos"
Set the initial vertical scrolling position. Default is 0. Allowed range is from 0 to 1.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the following \fBcommands\fR:
.IP "\fBhorizontal, h\fR" 4
.IX Item "horizontal, h"
Set the horizontal scrolling speed.
.IP "\fBvertical, v\fR" 4
.IX Item "vertical, v"
Set the vertical scrolling speed.
.SS scdet
.IX Subsection "scdet"
Detect video scene change.
.PP
This filter sets frame metadata with mafd between frame, the scene score, and
forward the frame to the next filter, so they can use these metadata to detect
scene change or others.
.PP
In addition, this filter logs a message and sets frame metadata when it detects
a scene change by \fBthreshold\fR.
.PP
\&\f(CW\*(C`lavfi.scd.mafd\*(C'\fR metadata keys are set with mafd for every frame.
.PP
\&\f(CW\*(C`lavfi.scd.score\*(C'\fR metadata keys are set with scene change score for every frame
to detect scene change.
.PP
\&\f(CW\*(C`lavfi.scd.time\*(C'\fR metadata keys are set with current filtered frame time which
detect scene change with \fBthreshold\fR.
.PP
The filter accepts the following options:
.IP "\fBthreshold, t\fR" 4
.IX Item "threshold, t"
Set the scene change detection threshold as a percentage of maximum change. Good
values are in the \f(CW\*(C`[8.0, 14.0]\*(C'\fR range. The range for \fBthreshold\fR is
\&\f(CW\*(C`[0., 100.]\*(C'\fR.
.Sp
Default value is \f(CW10.\fR.
.IP "\fBsc_pass, s\fR" 4
.IX Item "sc_pass, s"
Set the flag to pass scene change frames to the next filter. Default value is \f(CW0\fR
You can enable it if you want to get snapshot of scene change frames only.
.SS selectivecolor
.IX Subsection "selectivecolor"
Adjust cyan, magenta, yellow and black (CMYK) to certain ranges of colors (such
as "reds", "yellows", "greens", "cyans", ...). The adjustment range is defined
by the "purity" of the color (that is, how saturated it already is).
.PP
This filter is similar to the Adobe Photoshop Selective Color tool.
.PP
The filter accepts the following options:
.IP \fBcorrection_method\fR 4
.IX Item "correction_method"
Select color correction method.
.Sp
Available values are:
.RS 4
.IP \fBabsolute\fR 4
.IX Item "absolute"
Specified adjustments are applied "as-is" (added/subtracted to original pixel
component value).
.IP \fBrelative\fR 4
.IX Item "relative"
Specified adjustments are relative to the original component value.
.RE
.RS 4
.Sp
Default is \f(CW\*(C`absolute\*(C'\fR.
.RE
.IP \fBreds\fR 4
.IX Item "reds"
Adjustments for red pixels (pixels where the red component is the maximum)
.IP \fByellows\fR 4
.IX Item "yellows"
Adjustments for yellow pixels (pixels where the blue component is the minimum)
.IP \fBgreens\fR 4
.IX Item "greens"
Adjustments for green pixels (pixels where the green component is the maximum)
.IP \fBcyans\fR 4
.IX Item "cyans"
Adjustments for cyan pixels (pixels where the red component is the minimum)
.IP \fBblues\fR 4
.IX Item "blues"
Adjustments for blue pixels (pixels where the blue component is the maximum)
.IP \fBmagentas\fR 4
.IX Item "magentas"
Adjustments for magenta pixels (pixels where the green component is the minimum)
.IP \fBwhites\fR 4
.IX Item "whites"
Adjustments for white pixels (pixels where all components are greater than 128)
.IP \fBneutrals\fR 4
.IX Item "neutrals"
Adjustments for all pixels except pure black and pure white
.IP \fBblacks\fR 4
.IX Item "blacks"
Adjustments for black pixels (pixels where all components are lesser than 128)
.IP \fBpsfile\fR 4
.IX Item "psfile"
Specify a Photoshop selective color file (\f(CW\*(C`.asv\*(C'\fR) to import the settings from.
.PP
All the adjustment settings (\fBreds\fR, \fByellows\fR, ...) accept up to
4 space separated floating point adjustment values in the [\-1,1] range,
respectively to adjust the amount of cyan, magenta, yellow and black for the
pixels of its range.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Increase cyan by 50% and reduce yellow by 33% in every green areas, and
increase magenta by 27% in blue areas:
.Sp
.Vb 1
\&        selectivecolor=greens=.5 0 \-.33 0:blues=0 .27
.Ve
.IP \(bu 4
Use a Photoshop selective color preset:
.Sp
.Vb 1
\&        selectivecolor=psfile=MySelectiveColorPresets/Misty.asv
.Ve
.SS separatefields
.IX Subsection "separatefields"
The \f(CW\*(C`separatefields\*(C'\fR takes a frame-based video input and splits
each frame into its components fields, producing a new half height clip
with twice the frame rate and twice the frame count.
.PP
This filter use field-dominance information in frame to decide which
of each pair of fields to place first in the output.
If it gets it wrong use \fBsetfield\fR filter before \f(CW\*(C`separatefields\*(C'\fR filter.
.SS "setdar, setsar"
.IX Subsection "setdar, setsar"
The \f(CW\*(C`setdar\*(C'\fR filter sets the Display Aspect Ratio for the filter
output video.
.PP
This is done by changing the specified Sample (aka Pixel) Aspect
Ratio, according to the following equation:
.PP
.Vb 1
\&        <DAR> = <HORIZONTAL_RESOLUTION> / <VERTICAL_RESOLUTION> * <SAR>
.Ve
.PP
Keep in mind that the \f(CW\*(C`setdar\*(C'\fR filter does not modify the pixel
dimensions of the video frame. Also, the display aspect ratio set by
this filter may be changed by later filters in the filterchain,
e.g. in case of scaling or if another "setdar" or a "setsar" filter is
applied.
.PP
The \f(CW\*(C`setsar\*(C'\fR filter sets the Sample (aka Pixel) Aspect Ratio for
the filter output video.
.PP
Note that as a consequence of the application of this filter, the
output display aspect ratio will change according to the equation
above.
.PP
Keep in mind that the sample aspect ratio set by the \f(CW\*(C`setsar\*(C'\fR
filter may be changed by later filters in the filterchain, e.g. if
another "setsar" or a "setdar" filter is applied.
.PP
It accepts the following parameters:
.ie n .IP "\fBr, ratio, dar (\fR\fB""setdar""\fR\fB only), sar (\fR\fB""setsar""\fR\fB only)\fR" 4
.el .IP "\fBr, ratio, dar (\fR\f(CBsetdar\fR\fB only), sar (\fR\f(CBsetsar\fR\fB only)\fR" 4
.IX Item "r, ratio, dar (setdar only), sar (setsar only)"
Set the aspect ratio used by the filter.
.Sp
The parameter can be a floating point number string, an expression, or
a string of the form \fInum\fR:\fIden\fR, where \fInum\fR and
\&\fIden\fR are the numerator and denominator of the aspect ratio. If
the parameter is not specified, it is assumed the value "0".
In case the form "\fInum\fR:\fIden\fR" is used, the \f(CW\*(C`:\*(C'\fR character
should be escaped.
.IP \fBmax\fR 4
.IX Item "max"
Set the maximum integer value to use for expressing numerator and
denominator when reducing the expressed aspect ratio to a rational.
Default value is \f(CW100\fR.
.PP
The parameter \fIsar\fR is an expression containing
the following constants:
.IP "\fBE, PI, PHI\fR" 4
.IX Item "E, PI, PHI"
These are approximated values for the mathematical constants e
(Euler's number), pi (Greek pi), and phi (the golden ratio).
.IP "\fBw, h\fR" 4
.IX Item "w, h"
The input width and height.
.IP \fBa\fR 4
.IX Item "a"
These are the same as \fIw\fR / \fIh\fR.
.IP \fBsar\fR 4
.IX Item "sar"
The input sample aspect ratio.
.IP \fBdar\fR 4
.IX Item "dar"
The input display aspect ratio. It is the same as
(\fIw\fR / \fIh\fR) * \fIsar\fR.
.IP "\fBhsub, vsub\fR" 4
.IX Item "hsub, vsub"
Horizontal and vertical chroma subsample values. For example, for the
pixel format "yuv422p" \fIhsub\fR is 2 and \fIvsub\fR is 1.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
To change the display aspect ratio to 16:9, specify one of the following:
.Sp
.Vb 2
\&        setdar=dar=1.77777
\&        setdar=dar=16/9
.Ve
.IP \(bu 4
To change the sample aspect ratio to 10:11, specify:
.Sp
.Vb 1
\&        setsar=sar=10/11
.Ve
.IP \(bu 4
To set a display aspect ratio of 16:9, and specify a maximum integer value of
1000 in the aspect ratio reduction, use the command:
.Sp
.Vb 1
\&        setdar=ratio=16/9:max=1000
.Ve
.SS setfield
.IX Subsection "setfield"
Force field for the output video frame.
.PP
The \f(CW\*(C`setfield\*(C'\fR filter marks the interlace type field for the
output frames. It does not change the input frame, but only sets the
corresponding property, which affects how the frame is treated by
following filters (e.g. \f(CW\*(C`fieldorder\*(C'\fR or \f(CW\*(C`yadif\*(C'\fR).
.PP
The filter accepts the following options:
.IP \fBmode\fR 4
.IX Item "mode"
Available values are:
.RS 4
.IP \fBauto\fR 4
.IX Item "auto"
Keep the same field property.
.IP \fBbff\fR 4
.IX Item "bff"
Mark the frame as bottom-field-first.
.IP \fBtff\fR 4
.IX Item "tff"
Mark the frame as top-field-first.
.IP \fBprog\fR 4
.IX Item "prog"
Mark the frame as progressive.
.RE
.RS 4
.RE
.SS setparams
.IX Subsection "setparams"
Force frame parameter for the output video frame.
.PP
The \f(CW\*(C`setparams\*(C'\fR filter marks interlace and color range for the
output frames. It does not change the input frame, but only sets the
corresponding property, which affects how the frame is treated by
filters/encoders.
.IP \fBfield_mode\fR 4
.IX Item "field_mode"
Available values are:
.RS 4
.IP \fBauto\fR 4
.IX Item "auto"
Keep the same field property (default).
.IP \fBbff\fR 4
.IX Item "bff"
Mark the frame as bottom-field-first.
.IP \fBtff\fR 4
.IX Item "tff"
Mark the frame as top-field-first.
.IP \fBprog\fR 4
.IX Item "prog"
Mark the frame as progressive.
.RE
.RS 4
.RE
.IP \fBrange\fR 4
.IX Item "range"
Available values are:
.RS 4
.IP \fBauto\fR 4
.IX Item "auto"
Keep the same color range property (default).
.IP "\fBunspecified, unknown\fR" 4
.IX Item "unspecified, unknown"
Mark the frame as unspecified color range.
.IP "\fBlimited, tv, mpeg\fR" 4
.IX Item "limited, tv, mpeg"
Mark the frame as limited range.
.IP "\fBfull, pc, jpeg\fR" 4
.IX Item "full, pc, jpeg"
Mark the frame as full range.
.RE
.RS 4
.RE
.IP \fBcolor_primaries\fR 4
.IX Item "color_primaries"
Set the color primaries.
Available values are:
.RS 4
.IP \fBauto\fR 4
.IX Item "auto"
Keep the same color primaries property (default).
.IP \fBbt709\fR 4
.IX Item "bt709"
.PD 0
.IP \fBunknown\fR 4
.IX Item "unknown"
.IP \fBbt470m\fR 4
.IX Item "bt470m"
.IP \fBbt470bg\fR 4
.IX Item "bt470bg"
.IP \fBsmpte170m\fR 4
.IX Item "smpte170m"
.IP \fBsmpte240m\fR 4
.IX Item "smpte240m"
.IP \fBfilm\fR 4
.IX Item "film"
.IP \fBbt2020\fR 4
.IX Item "bt2020"
.IP \fBsmpte428\fR 4
.IX Item "smpte428"
.IP \fBsmpte431\fR 4
.IX Item "smpte431"
.IP \fBsmpte432\fR 4
.IX Item "smpte432"
.IP \fBjedec\-p22\fR 4
.IX Item "jedec-p22"
.RE
.RS 4
.RE
.IP \fBcolor_trc\fR 4
.IX Item "color_trc"
.PD
Set the color transfer.
Available values are:
.RS 4
.IP \fBauto\fR 4
.IX Item "auto"
Keep the same color trc property (default).
.IP \fBbt709\fR 4
.IX Item "bt709"
.PD 0
.IP \fBunknown\fR 4
.IX Item "unknown"
.IP \fBbt470m\fR 4
.IX Item "bt470m"
.IP \fBbt470bg\fR 4
.IX Item "bt470bg"
.IP \fBsmpte170m\fR 4
.IX Item "smpte170m"
.IP \fBsmpte240m\fR 4
.IX Item "smpte240m"
.IP \fBlinear\fR 4
.IX Item "linear"
.IP \fBlog100\fR 4
.IX Item "log100"
.IP \fBlog316\fR 4
.IX Item "log316"
.IP \fBiec61966\-2\-4\fR 4
.IX Item "iec61966-2-4"
.IP \fBbt1361e\fR 4
.IX Item "bt1361e"
.IP \fBiec61966\-2\-1\fR 4
.IX Item "iec61966-2-1"
.IP \fBbt2020\-10\fR 4
.IX Item "bt2020-10"
.IP \fBbt2020\-12\fR 4
.IX Item "bt2020-12"
.IP \fBsmpte2084\fR 4
.IX Item "smpte2084"
.IP \fBsmpte428\fR 4
.IX Item "smpte428"
.IP \fBarib\-std\-b67\fR 4
.IX Item "arib-std-b67"
.RE
.RS 4
.RE
.IP \fBcolorspace\fR 4
.IX Item "colorspace"
.PD
Set the colorspace.
Available values are:
.RS 4
.IP \fBauto\fR 4
.IX Item "auto"
Keep the same colorspace property (default).
.IP \fBgbr\fR 4
.IX Item "gbr"
.PD 0
.IP \fBbt709\fR 4
.IX Item "bt709"
.IP \fBunknown\fR 4
.IX Item "unknown"
.IP \fBfcc\fR 4
.IX Item "fcc"
.IP \fBbt470bg\fR 4
.IX Item "bt470bg"
.IP \fBsmpte170m\fR 4
.IX Item "smpte170m"
.IP \fBsmpte240m\fR 4
.IX Item "smpte240m"
.IP \fBycgco\fR 4
.IX Item "ycgco"
.IP \fBbt2020nc\fR 4
.IX Item "bt2020nc"
.IP \fBbt2020c\fR 4
.IX Item "bt2020c"
.IP \fBsmpte2085\fR 4
.IX Item "smpte2085"
.IP \fBchroma-derived-nc\fR 4
.IX Item "chroma-derived-nc"
.IP \fBchroma-derived-c\fR 4
.IX Item "chroma-derived-c"
.IP \fBictcp\fR 4
.IX Item "ictcp"
.RE
.RS 4
.RE
.PD
.SS shear
.IX Subsection "shear"
Apply shear transform to input video.
.PP
This filter supports the following options:
.IP \fBshx\fR 4
.IX Item "shx"
Shear factor in X\-direction. Default value is 0.
Allowed range is from \-2 to 2.
.IP \fBshy\fR 4
.IX Item "shy"
Shear factor in Y\-direction. Default value is 0.
Allowed range is from \-2 to 2.
.IP "\fBfillcolor, c\fR" 4
.IX Item "fillcolor, c"
Set the color used to fill the output area not covered by the transformed
video. For the general syntax of this option, check the
\&\fB"Color" section in the ffmpeg-utils manual\fR.
If the special value "none" is selected then no
background is printed (useful for example if the background is never shown).
.Sp
Default value is "black".
.IP \fBinterp\fR 4
.IX Item "interp"
Set interpolation type. Can be \f(CW\*(C`bilinear\*(C'\fR or \f(CW\*(C`nearest\*(C'\fR. Default is \f(CW\*(C`bilinear\*(C'\fR.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS showinfo
.IX Subsection "showinfo"
Show a line containing various information for each input video frame.
The input video is not modified.
.PP
This filter supports the following options:
.IP \fBchecksum\fR 4
.IX Item "checksum"
Calculate checksums of each plane. By default enabled.
.PP
The shown line contains a sequence of key/value pairs of the form
\&\fIkey\fR:\fIvalue\fR.
.PP
The following values are shown in the output:
.IP \fBn\fR 4
.IX Item "n"
The (sequential) number of the input frame, starting from 0.
.IP \fBpts\fR 4
.IX Item "pts"
The Presentation TimeStamp of the input frame, expressed as a number of
time base units. The time base unit depends on the filter input pad.
.IP \fBpts_time\fR 4
.IX Item "pts_time"
The Presentation TimeStamp of the input frame, expressed as a number of
seconds.
.IP \fBpos\fR 4
.IX Item "pos"
The position of the frame in the input stream, or \-1 if this information is
unavailable and/or meaningless (for example in case of synthetic video).
.IP \fBfmt\fR 4
.IX Item "fmt"
The pixel format name.
.IP \fBsar\fR 4
.IX Item "sar"
The sample aspect ratio of the input frame, expressed in the form
\&\fInum\fR/\fIden\fR.
.IP \fBs\fR 4
.IX Item "s"
The size of the input frame. For the syntax of this option, check the
\&\fB"Video size" section in the ffmpeg-utils manual\fR.
.IP \fBi\fR 4
.IX Item "i"
The type of interlaced mode ("P" for "progressive", "T" for top field first, "B"
for bottom field first).
.IP \fBiskey\fR 4
.IX Item "iskey"
This is 1 if the frame is a key frame, 0 otherwise.
.IP \fBtype\fR 4
.IX Item "type"
The picture type of the input frame ("I" for an I\-frame, "P" for a
P\-frame, "B" for a B\-frame, or "?" for an unknown type).
Also refer to the documentation of the \f(CW\*(C`AVPictureType\*(C'\fR enum and of
the \f(CW\*(C`av_get_picture_type_char\*(C'\fR function defined in
\&\fIlibavutil/avutil.h\fR.
.IP \fBchecksum\fR 4
.IX Item "checksum"
The Adler\-32 checksum (printed in hexadecimal) of all the planes of the input frame.
.IP \fBplane_checksum\fR 4
.IX Item "plane_checksum"
The Adler\-32 checksum (printed in hexadecimal) of each plane of the input frame,
expressed in the form "[\fIc0\fR \fIc1\fR \fIc2\fR \fIc3\fR]".
.IP \fBmean\fR 4
.IX Item "mean"
The mean value of pixels in each plane of the input frame, expressed in the form
"[\fImean0\fR \fImean1\fR \fImean2\fR \fImean3\fR]".
.IP \fBstdev\fR 4
.IX Item "stdev"
The standard deviation of pixel values in each plane of the input frame, expressed
in the form "[\fIstdev0\fR \fIstdev1\fR \fIstdev2\fR \fIstdev3\fR]".
.SS showpalette
.IX Subsection "showpalette"
Displays the 256 colors palette of each frame. This filter is only relevant for
\&\fIpal8\fR pixel format frames.
.PP
It accepts the following option:
.IP \fBs\fR 4
.IX Item "s"
Set the size of the box used to represent one palette color entry. Default is
\&\f(CW30\fR (for a \f(CW\*(C`30x30\*(C'\fR pixel box).
.SS shuffleframes
.IX Subsection "shuffleframes"
Reorder and/or duplicate and/or drop video frames.
.PP
It accepts the following parameters:
.IP \fBmapping\fR 4
.IX Item "mapping"
Set the destination indexes of input frames.
This is space or '|' separated list of indexes that maps input frames to output
frames. Number of indexes also sets maximal value that each index may have.
\&'\-1' index have special meaning and that is to drop frame.
.PP
The first frame has the index 0. The default is to keep the input unchanged.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Swap second and third frame of every three frames of the input:
.Sp
.Vb 1
\&        ffmpeg \-i INPUT \-vf "shuffleframes=0 2 1" OUTPUT
.Ve
.IP \(bu 4
Swap 10th and 1st frame of every ten frames of the input:
.Sp
.Vb 1
\&        ffmpeg \-i INPUT \-vf "shuffleframes=9 1 2 3 4 5 6 7 8 0" OUTPUT
.Ve
.SS shufflepixels
.IX Subsection "shufflepixels"
Reorder pixels in video frames.
.PP
This filter accepts the following options:
.IP "\fBdirection, d\fR" 4
.IX Item "direction, d"
Set shuffle direction. Can be forward or inverse direction.
Default direction is forward.
.IP "\fBmode, m\fR" 4
.IX Item "mode, m"
Set shuffle mode. Can be horizontal, vertical or block mode.
.IP "\fBwidth, w\fR" 4
.IX Item "width, w"
.PD 0
.IP "\fBheight, h\fR" 4
.IX Item "height, h"
.PD
Set shuffle block_size. In case of horizontal shuffle mode only width
part of size is used, and in case of vertical shuffle mode only height
part of size is used.
.IP "\fBseed, s\fR" 4
.IX Item "seed, s"
Set random seed used with shuffling pixels. Mainly useful to set to be able
to reverse filtering process to get original input.
For example, to reverse forward shuffle you need to use same parameters
and exact same seed and to set direction to inverse.
.SS shuffleplanes
.IX Subsection "shuffleplanes"
Reorder and/or duplicate video planes.
.PP
It accepts the following parameters:
.IP \fBmap0\fR 4
.IX Item "map0"
The index of the input plane to be used as the first output plane.
.IP \fBmap1\fR 4
.IX Item "map1"
The index of the input plane to be used as the second output plane.
.IP \fBmap2\fR 4
.IX Item "map2"
The index of the input plane to be used as the third output plane.
.IP \fBmap3\fR 4
.IX Item "map3"
The index of the input plane to be used as the fourth output plane.
.PP
The first plane has the index 0. The default is to keep the input unchanged.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Swap the second and third planes of the input:
.Sp
.Vb 1
\&        ffmpeg \-i INPUT \-vf shuffleplanes=0:2:1:3 OUTPUT
.Ve
.SS signalstats
.IX Subsection "signalstats"
Evaluate various visual metrics that assist in determining issues associated
with the digitization of analog video media.
.PP
By default the filter will log these metadata values:
.IP \fBYMIN\fR 4
.IX Item "YMIN"
Display the minimal Y value contained within the input frame. Expressed in
range of [0\-255].
.IP \fBYLOW\fR 4
.IX Item "YLOW"
Display the Y value at the 10% percentile within the input frame. Expressed in
range of [0\-255].
.IP \fBYAVG\fR 4
.IX Item "YAVG"
Display the average Y value within the input frame. Expressed in range of
[0\-255].
.IP \fBYHIGH\fR 4
.IX Item "YHIGH"
Display the Y value at the 90% percentile within the input frame. Expressed in
range of [0\-255].
.IP \fBYMAX\fR 4
.IX Item "YMAX"
Display the maximum Y value contained within the input frame. Expressed in
range of [0\-255].
.IP \fBUMIN\fR 4
.IX Item "UMIN"
Display the minimal U value contained within the input frame. Expressed in
range of [0\-255].
.IP \fBULOW\fR 4
.IX Item "ULOW"
Display the U value at the 10% percentile within the input frame. Expressed in
range of [0\-255].
.IP \fBUAVG\fR 4
.IX Item "UAVG"
Display the average U value within the input frame. Expressed in range of
[0\-255].
.IP \fBUHIGH\fR 4
.IX Item "UHIGH"
Display the U value at the 90% percentile within the input frame. Expressed in
range of [0\-255].
.IP \fBUMAX\fR 4
.IX Item "UMAX"
Display the maximum U value contained within the input frame. Expressed in
range of [0\-255].
.IP \fBVMIN\fR 4
.IX Item "VMIN"
Display the minimal V value contained within the input frame. Expressed in
range of [0\-255].
.IP \fBVLOW\fR 4
.IX Item "VLOW"
Display the V value at the 10% percentile within the input frame. Expressed in
range of [0\-255].
.IP \fBVAVG\fR 4
.IX Item "VAVG"
Display the average V value within the input frame. Expressed in range of
[0\-255].
.IP \fBVHIGH\fR 4
.IX Item "VHIGH"
Display the V value at the 90% percentile within the input frame. Expressed in
range of [0\-255].
.IP \fBVMAX\fR 4
.IX Item "VMAX"
Display the maximum V value contained within the input frame. Expressed in
range of [0\-255].
.IP \fBSATMIN\fR 4
.IX Item "SATMIN"
Display the minimal saturation value contained within the input frame.
Expressed in range of [0\-~181.02].
.IP \fBSATLOW\fR 4
.IX Item "SATLOW"
Display the saturation value at the 10% percentile within the input frame.
Expressed in range of [0\-~181.02].
.IP \fBSATAVG\fR 4
.IX Item "SATAVG"
Display the average saturation value within the input frame. Expressed in range
of [0\-~181.02].
.IP \fBSATHIGH\fR 4
.IX Item "SATHIGH"
Display the saturation value at the 90% percentile within the input frame.
Expressed in range of [0\-~181.02].
.IP \fBSATMAX\fR 4
.IX Item "SATMAX"
Display the maximum saturation value contained within the input frame.
Expressed in range of [0\-~181.02].
.IP \fBHUEMED\fR 4
.IX Item "HUEMED"
Display the median value for hue within the input frame. Expressed in range of
[0\-360].
.IP \fBHUEAVG\fR 4
.IX Item "HUEAVG"
Display the average value for hue within the input frame. Expressed in range of
[0\-360].
.IP \fBYDIF\fR 4
.IX Item "YDIF"
Display the average of sample value difference between all values of the Y
plane in the current frame and corresponding values of the previous input frame.
Expressed in range of [0\-255].
.IP \fBUDIF\fR 4
.IX Item "UDIF"
Display the average of sample value difference between all values of the U
plane in the current frame and corresponding values of the previous input frame.
Expressed in range of [0\-255].
.IP \fBVDIF\fR 4
.IX Item "VDIF"
Display the average of sample value difference between all values of the V
plane in the current frame and corresponding values of the previous input frame.
Expressed in range of [0\-255].
.IP \fBYBITDEPTH\fR 4
.IX Item "YBITDEPTH"
Display bit depth of Y plane in current frame.
Expressed in range of [0\-16].
.IP \fBUBITDEPTH\fR 4
.IX Item "UBITDEPTH"
Display bit depth of U plane in current frame.
Expressed in range of [0\-16].
.IP \fBVBITDEPTH\fR 4
.IX Item "VBITDEPTH"
Display bit depth of V plane in current frame.
Expressed in range of [0\-16].
.PP
The filter accepts the following options:
.IP \fBstat\fR 4
.IX Item "stat"
.PD 0
.IP \fBout\fR 4
.IX Item "out"
.PD
\&\fBstat\fR specify an additional form of image analysis.
\&\fBout\fR output video with the specified type of pixel highlighted.
.Sp
Both options accept the following values:
.RS 4
.IP \fBtout\fR 4
.IX Item "tout"
Identify \fItemporal outliers\fR pixels. A \fItemporal outlier\fR is a pixel
unlike the neighboring pixels of the same field. Examples of temporal outliers
include the results of video dropouts, head clogs, or tape tracking issues.
.IP \fBvrep\fR 4
.IX Item "vrep"
Identify \fIvertical line repetition\fR. Vertical line repetition includes
similar rows of pixels within a frame. In born-digital video vertical line
repetition is common, but this pattern is uncommon in video digitized from an
analog source. When it occurs in video that results from the digitization of an
analog source it can indicate concealment from a dropout compensator.
.IP \fBbrng\fR 4
.IX Item "brng"
Identify pixels that fall outside of legal broadcast range.
.RE
.RS 4
.RE
.IP "\fBcolor, c\fR" 4
.IX Item "color, c"
Set the highlight color for the \fBout\fR option. The default color is
yellow.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Output data of various video metrics:
.Sp
.Vb 1
\&        ffprobe \-f lavfi movie=example.mov,signalstats="stat=tout+vrep+brng" \-show_frames
.Ve
.IP \(bu 4
Output specific data about the minimum and maximum values of the Y plane per frame:
.Sp
.Vb 1
\&        ffprobe \-f lavfi movie=example.mov,signalstats \-show_entries frame_tags=lavfi.signalstats.YMAX,lavfi.signalstats.YMIN
.Ve
.IP \(bu 4
Playback video while highlighting pixels that are outside of broadcast range in red.
.Sp
.Vb 1
\&        ffplay example.mov \-vf signalstats="out=brng:color=red"
.Ve
.IP \(bu 4
Playback video with signalstats metadata drawn over the frame.
.Sp
.Vb 1
\&        ffplay example.mov \-vf signalstats=stat=brng+vrep+tout,drawtext=fontfile=FreeSerif.ttf:textfile=signalstat_drawtext.txt
.Ve
.Sp
The contents of signalstat_drawtext.txt used in the command are:
.Sp
.Vb 5
\&        time %{pts:hms}
\&        Y (%{metadata:lavfi.signalstats.YMIN}\-%{metadata:lavfi.signalstats.YMAX})
\&        U (%{metadata:lavfi.signalstats.UMIN}\-%{metadata:lavfi.signalstats.UMAX})
\&        V (%{metadata:lavfi.signalstats.VMIN}\-%{metadata:lavfi.signalstats.VMAX})
\&        saturation maximum: %{metadata:lavfi.signalstats.SATMAX}
.Ve
.SS signature
.IX Subsection "signature"
Calculates the MPEG\-7 Video Signature. The filter can handle more than one
input. In this case the matching between the inputs can be calculated additionally.
The filter always passes through the first input. The signature of each stream can
be written into a file.
.PP
It accepts the following options:
.IP \fBdetectmode\fR 4
.IX Item "detectmode"
Enable or disable the matching process.
.Sp
Available values are:
.RS 4
.IP \fBoff\fR 4
.IX Item "off"
Disable the calculation of a matching (default).
.IP \fBfull\fR 4
.IX Item "full"
Calculate the matching for the whole video and output whether the whole video
matches or only parts.
.IP \fBfast\fR 4
.IX Item "fast"
Calculate only until a matching is found or the video ends. Should be faster in
some cases.
.RE
.RS 4
.RE
.IP \fBnb_inputs\fR 4
.IX Item "nb_inputs"
Set the number of inputs. The option value must be a non negative integer.
Default value is 1.
.IP \fBfilename\fR 4
.IX Item "filename"
Set the path to which the output is written. If there is more than one input,
the path must be a prototype, i.e. must contain \f(CW%d\fR or \f(CW%0nd\fR (where n is a positive
integer), that will be replaced with the input number. If no filename is
specified, no output will be written. This is the default.
.IP \fBformat\fR 4
.IX Item "format"
Choose the output format.
.Sp
Available values are:
.RS 4
.IP \fBbinary\fR 4
.IX Item "binary"
Use the specified binary representation (default).
.IP \fBxml\fR 4
.IX Item "xml"
Use the specified xml representation.
.RE
.RS 4
.RE
.IP \fBth_d\fR 4
.IX Item "th_d"
Set threshold to detect one word as similar. The option value must be an integer
greater than zero. The default value is 9000.
.IP \fBth_dc\fR 4
.IX Item "th_dc"
Set threshold to detect all words as similar. The option value must be an integer
greater than zero. The default value is 60000.
.IP \fBth_xh\fR 4
.IX Item "th_xh"
Set threshold to detect frames as similar. The option value must be an integer
greater than zero. The default value is 116.
.IP \fBth_di\fR 4
.IX Item "th_di"
Set the minimum length of a sequence in frames to recognize it as matching
sequence. The option value must be a non negative integer value.
The default value is 0.
.IP \fBth_it\fR 4
.IX Item "th_it"
Set the minimum relation, that matching frames to all frames must have.
The option value must be a double value between 0 and 1. The default value is 0.5.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
To calculate the signature of an input video and store it in signature.bin:
.Sp
.Vb 1
\&        ffmpeg \-i input.mkv \-vf signature=filename=signature.bin \-map 0:v \-f null \-
.Ve
.IP \(bu 4
To detect whether two videos match and store the signatures in XML format in
signature0.xml and signature1.xml:
.Sp
.Vb 1
\&        ffmpeg \-i input1.mkv \-i input2.mkv \-filter_complex "[0:v][1:v] signature=nb_inputs=2:detectmode=full:format=xml:filename=signature%d.xml" \-map :v \-f null \-
.Ve
.SS smartblur
.IX Subsection "smartblur"
Blur the input video without impacting the outlines.
.PP
It accepts the following options:
.IP "\fBluma_radius, lr\fR" 4
.IX Item "luma_radius, lr"
Set the luma radius. The option value must be a float number in
the range [0.1,5.0] that specifies the variance of the gaussian filter
used to blur the image (slower if larger). Default value is 1.0.
.IP "\fBluma_strength, ls\fR" 4
.IX Item "luma_strength, ls"
Set the luma strength. The option value must be a float number
in the range [\-1.0,1.0] that configures the blurring. A value included
in [0.0,1.0] will blur the image whereas a value included in
[\-1.0,0.0] will sharpen the image. Default value is 1.0.
.IP "\fBluma_threshold, lt\fR" 4
.IX Item "luma_threshold, lt"
Set the luma threshold used as a coefficient to determine
whether a pixel should be blurred or not. The option value must be an
integer in the range [\-30,30]. A value of 0 will filter all the image,
a value included in [0,30] will filter flat areas and a value included
in [\-30,0] will filter edges. Default value is 0.
.IP "\fBchroma_radius, cr\fR" 4
.IX Item "chroma_radius, cr"
Set the chroma radius. The option value must be a float number in
the range [0.1,5.0] that specifies the variance of the gaussian filter
used to blur the image (slower if larger). Default value is \fBluma_radius\fR.
.IP "\fBchroma_strength, cs\fR" 4
.IX Item "chroma_strength, cs"
Set the chroma strength. The option value must be a float number
in the range [\-1.0,1.0] that configures the blurring. A value included
in [0.0,1.0] will blur the image whereas a value included in
[\-1.0,0.0] will sharpen the image. Default value is \fBluma_strength\fR.
.IP "\fBchroma_threshold, ct\fR" 4
.IX Item "chroma_threshold, ct"
Set the chroma threshold used as a coefficient to determine
whether a pixel should be blurred or not. The option value must be an
integer in the range [\-30,30]. A value of 0 will filter all the image,
a value included in [0,30] will filter flat areas and a value included
in [\-30,0] will filter edges. Default value is \fBluma_threshold\fR.
.PP
If a chroma option is not explicitly set, the corresponding luma value
is set.
.SS sobel
.IX Subsection "sobel"
Apply sobel operator to input video stream.
.PP
The filter accepts the following option:
.IP \fBplanes\fR 4
.IX Item "planes"
Set which planes will be processed, unprocessed planes will be copied.
By default value 0xf, all planes will be processed.
.IP \fBscale\fR 4
.IX Item "scale"
Set value which will be multiplied with filtered result.
.IP \fBdelta\fR 4
.IX Item "delta"
Set value which will be added to filtered result.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS spp
.IX Subsection "spp"
Apply a simple postprocessing filter that compresses and decompresses the image
at several (or \- in the case of \fBquality\fR level \f(CW6\fR \- all) shifts
and average the results.
.PP
The filter accepts the following options:
.IP \fBquality\fR 4
.IX Item "quality"
Set quality. This option defines the number of levels for averaging. It accepts
an integer in the range 0\-6. If set to \f(CW0\fR, the filter will have no
effect. A value of \f(CW6\fR means the higher quality. For each increment of
that value the speed drops by a factor of approximately 2.  Default value is
\&\f(CW3\fR.
.IP \fBqp\fR 4
.IX Item "qp"
Force a constant quantization parameter. If not set, the filter will use the QP
from the video stream (if available).
.IP \fBmode\fR 4
.IX Item "mode"
Set thresholding mode. Available modes are:
.RS 4
.IP \fBhard\fR 4
.IX Item "hard"
Set hard thresholding (default).
.IP \fBsoft\fR 4
.IX Item "soft"
Set soft thresholding (better de-ringing effect, but likely blurrier).
.RE
.RS 4
.RE
.IP \fBuse_bframe_qp\fR 4
.IX Item "use_bframe_qp"
Enable the use of the QP from the B\-Frames if set to \f(CW1\fR. Using this
option may cause flicker since the B\-Frames have often larger QP. Default is
\&\f(CW0\fR (not enabled).
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the following commands:
.IP "\fBquality, level\fR" 4
.IX Item "quality, level"
Set quality level. The value \f(CW\*(C`max\*(C'\fR can be used to set the maximum level,
currently \f(CW6\fR.
.SS sr
.IX Subsection "sr"
Scale the input by applying one of the super-resolution methods based on
convolutional neural networks. Supported models:
.IP \(bu 4
Super-Resolution Convolutional Neural Network model (SRCNN).
See <\fBhttps://arxiv.org/abs/1501.00092\fR>.
.IP \(bu 4
Efficient Sub-Pixel Convolutional Neural Network model (ESPCN).
See <\fBhttps://arxiv.org/abs/1609.05158\fR>.
.PP
Training scripts as well as scripts for model file (.pb) saving can be found at
<\fBhttps://github.com/XueweiMeng/sr/tree/sr_dnn_native\fR>. Original repository
is at <\fBhttps://github.com/HighVoltageRocknRoll/sr.git\fR>.
.PP
Native model files (.model) can be generated from TensorFlow model
files (.pb) by using tools/python/convert.py
.PP
The filter accepts the following options:
.IP \fBdnn_backend\fR 4
.IX Item "dnn_backend"
Specify which DNN backend to use for model loading and execution. This option accepts
the following values:
.RS 4
.IP \fBnative\fR 4
.IX Item "native"
Native implementation of DNN loading and execution.
.IP \fBtensorflow\fR 4
.IX Item "tensorflow"
TensorFlow backend. To enable this backend you
need to install the TensorFlow for C library (see
<\fBhttps://www.tensorflow.org/install/install_c\fR>) and configure FFmpeg with
\&\f(CW\*(C`\-\-enable\-libtensorflow\*(C'\fR
.RE
.RS 4
.Sp
Default value is \fBnative\fR.
.RE
.IP \fBmodel\fR 4
.IX Item "model"
Set path to model file specifying network architecture and its parameters.
Note that different backends use different file formats. TensorFlow backend
can load files for both formats, while native backend can load files for only
its format.
.IP \fBscale_factor\fR 4
.IX Item "scale_factor"
Set scale factor for SRCNN model. Allowed values are \f(CW2\fR, \f(CW3\fR and \f(CW4\fR.
Default value is \f(CW2\fR. Scale factor is necessary for SRCNN model, because it accepts
input upscaled using bicubic upscaling with proper scale factor.
.PP
This feature can also be finished with \fBdnn_processing\fR filter.
.SS ssim
.IX Subsection "ssim"
Obtain the SSIM (Structural SImilarity Metric) between two input videos.
.PP
This filter takes in input two input videos, the first input is
considered the "main" source and is passed unchanged to the
output. The second input is used as a "reference" video for computing
the SSIM.
.PP
Both video inputs must have the same resolution and pixel format for
this filter to work correctly. Also it assumes that both inputs
have the same number of frames, which are compared one by one.
.PP
The filter stores the calculated SSIM of each frame.
.PP
The description of the accepted parameters follows.
.IP "\fBstats_file, f\fR" 4
.IX Item "stats_file, f"
If specified the filter will use the named file to save the SSIM of
each individual frame. When filename equals "\-" the data is sent to
standard output.
.PP
The file printed if \fIstats_file\fR is selected, contains a sequence of
key/value pairs of the form \fIkey\fR:\fIvalue\fR for each compared
couple of frames.
.PP
A description of each shown parameter follows:
.IP \fBn\fR 4
.IX Item "n"
sequential number of the input frame, starting from 1
.IP "\fBY, U, V, R, G, B\fR" 4
.IX Item "Y, U, V, R, G, B"
SSIM of the compared frames for the component specified by the suffix.
.IP \fBAll\fR 4
.IX Item "All"
SSIM of the compared frames for the whole frame.
.IP \fBdB\fR 4
.IX Item "dB"
Same as above but in dB representation.
.PP
This filter also supports the \fBframesync\fR options.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
For example:
.Sp
.Vb 2
\&        movie=ref_movie.mpg, setpts=PTS\-STARTPTS [main];
\&        [main][ref] ssim="stats_file=stats.log" [out]
.Ve
.Sp
On this example the input file being processed is compared with the
reference file \fIref_movie.mpg\fR. The SSIM of each individual frame
is stored in \fIstats.log\fR.
.IP \(bu 4
Another example with both psnr and ssim at same time:
.Sp
.Vb 1
\&        ffmpeg \-i main.mpg \-i ref.mpg \-lavfi  "ssim;[0:v][1:v]psnr" \-f null \-
.Ve
.IP \(bu 4
Another example with different containers:
.Sp
.Vb 1
\&        ffmpeg \-i main.mpg \-i ref.mkv \-lavfi  "[0:v]settb=AVTB,setpts=PTS\-STARTPTS[main];[1:v]settb=AVTB,setpts=PTS\-STARTPTS[ref];[main][ref]ssim" \-f null \-
.Ve
.SS stereo3d
.IX Subsection "stereo3d"
Convert between different stereoscopic image formats.
.PP
The filters accept the following options:
.IP \fBin\fR 4
.IX Item "in"
Set stereoscopic image format of input.
.Sp
Available values for input image formats are:
.RS 4
.IP \fBsbsl\fR 4
.IX Item "sbsl"
side by side parallel (left eye left, right eye right)
.IP \fBsbsr\fR 4
.IX Item "sbsr"
side by side crosseye (right eye left, left eye right)
.IP \fBsbs2l\fR 4
.IX Item "sbs2l"
side by side parallel with half width resolution
(left eye left, right eye right)
.IP \fBsbs2r\fR 4
.IX Item "sbs2r"
side by side crosseye with half width resolution
(right eye left, left eye right)
.IP \fBabl\fR 4
.IX Item "abl"
.PD 0
.IP \fBtbl\fR 4
.IX Item "tbl"
.PD
above-below (left eye above, right eye below)
.IP \fBabr\fR 4
.IX Item "abr"
.PD 0
.IP \fBtbr\fR 4
.IX Item "tbr"
.PD
above-below (right eye above, left eye below)
.IP \fBab2l\fR 4
.IX Item "ab2l"
.PD 0
.IP \fBtb2l\fR 4
.IX Item "tb2l"
.PD
above-below with half height resolution
(left eye above, right eye below)
.IP \fBab2r\fR 4
.IX Item "ab2r"
.PD 0
.IP \fBtb2r\fR 4
.IX Item "tb2r"
.PD
above-below with half height resolution
(right eye above, left eye below)
.IP \fBal\fR 4
.IX Item "al"
alternating frames (left eye first, right eye second)
.IP \fBar\fR 4
.IX Item "ar"
alternating frames (right eye first, left eye second)
.IP \fBirl\fR 4
.IX Item "irl"
interleaved rows (left eye has top row, right eye starts on next row)
.IP \fBirr\fR 4
.IX Item "irr"
interleaved rows (right eye has top row, left eye starts on next row)
.IP \fBicl\fR 4
.IX Item "icl"
interleaved columns, left eye first
.IP \fBicr\fR 4
.IX Item "icr"
interleaved columns, right eye first
.Sp
Default value is \fBsbsl\fR.
.RE
.RS 4
.RE
.IP \fBout\fR 4
.IX Item "out"
Set stereoscopic image format of output.
.RS 4
.IP \fBsbsl\fR 4
.IX Item "sbsl"
side by side parallel (left eye left, right eye right)
.IP \fBsbsr\fR 4
.IX Item "sbsr"
side by side crosseye (right eye left, left eye right)
.IP \fBsbs2l\fR 4
.IX Item "sbs2l"
side by side parallel with half width resolution
(left eye left, right eye right)
.IP \fBsbs2r\fR 4
.IX Item "sbs2r"
side by side crosseye with half width resolution
(right eye left, left eye right)
.IP \fBabl\fR 4
.IX Item "abl"
.PD 0
.IP \fBtbl\fR 4
.IX Item "tbl"
.PD
above-below (left eye above, right eye below)
.IP \fBabr\fR 4
.IX Item "abr"
.PD 0
.IP \fBtbr\fR 4
.IX Item "tbr"
.PD
above-below (right eye above, left eye below)
.IP \fBab2l\fR 4
.IX Item "ab2l"
.PD 0
.IP \fBtb2l\fR 4
.IX Item "tb2l"
.PD
above-below with half height resolution
(left eye above, right eye below)
.IP \fBab2r\fR 4
.IX Item "ab2r"
.PD 0
.IP \fBtb2r\fR 4
.IX Item "tb2r"
.PD
above-below with half height resolution
(right eye above, left eye below)
.IP \fBal\fR 4
.IX Item "al"
alternating frames (left eye first, right eye second)
.IP \fBar\fR 4
.IX Item "ar"
alternating frames (right eye first, left eye second)
.IP \fBirl\fR 4
.IX Item "irl"
interleaved rows (left eye has top row, right eye starts on next row)
.IP \fBirr\fR 4
.IX Item "irr"
interleaved rows (right eye has top row, left eye starts on next row)
.IP \fBarbg\fR 4
.IX Item "arbg"
anaglyph red/blue gray
(red filter on left eye, blue filter on right eye)
.IP \fBargg\fR 4
.IX Item "argg"
anaglyph red/green gray
(red filter on left eye, green filter on right eye)
.IP \fBarcg\fR 4
.IX Item "arcg"
anaglyph red/cyan gray
(red filter on left eye, cyan filter on right eye)
.IP \fBarch\fR 4
.IX Item "arch"
anaglyph red/cyan half colored
(red filter on left eye, cyan filter on right eye)
.IP \fBarcc\fR 4
.IX Item "arcc"
anaglyph red/cyan color
(red filter on left eye, cyan filter on right eye)
.IP \fBarcd\fR 4
.IX Item "arcd"
anaglyph red/cyan color optimized with the least squares projection of dubois
(red filter on left eye, cyan filter on right eye)
.IP \fBagmg\fR 4
.IX Item "agmg"
anaglyph green/magenta gray
(green filter on left eye, magenta filter on right eye)
.IP \fBagmh\fR 4
.IX Item "agmh"
anaglyph green/magenta half colored
(green filter on left eye, magenta filter on right eye)
.IP \fBagmc\fR 4
.IX Item "agmc"
anaglyph green/magenta colored
(green filter on left eye, magenta filter on right eye)
.IP \fBagmd\fR 4
.IX Item "agmd"
anaglyph green/magenta color optimized with the least squares projection of dubois
(green filter on left eye, magenta filter on right eye)
.IP \fBaybg\fR 4
.IX Item "aybg"
anaglyph yellow/blue gray
(yellow filter on left eye, blue filter on right eye)
.IP \fBaybh\fR 4
.IX Item "aybh"
anaglyph yellow/blue half colored
(yellow filter on left eye, blue filter on right eye)
.IP \fBaybc\fR 4
.IX Item "aybc"
anaglyph yellow/blue colored
(yellow filter on left eye, blue filter on right eye)
.IP \fBaybd\fR 4
.IX Item "aybd"
anaglyph yellow/blue color optimized with the least squares projection of dubois
(yellow filter on left eye, blue filter on right eye)
.IP \fBml\fR 4
.IX Item "ml"
mono output (left eye only)
.IP \fBmr\fR 4
.IX Item "mr"
mono output (right eye only)
.IP \fBchl\fR 4
.IX Item "chl"
checkerboard, left eye first
.IP \fBchr\fR 4
.IX Item "chr"
checkerboard, right eye first
.IP \fBicl\fR 4
.IX Item "icl"
interleaved columns, left eye first
.IP \fBicr\fR 4
.IX Item "icr"
interleaved columns, right eye first
.IP \fBhdmi\fR 4
.IX Item "hdmi"
HDMI frame pack
.RE
.RS 4
.Sp
Default value is \fBarcd\fR.
.RE
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Convert input video from side by side parallel to anaglyph yellow/blue dubois:
.Sp
.Vb 1
\&        stereo3d=sbsl:aybd
.Ve
.IP \(bu 4
Convert input video from above below (left eye above, right eye below) to side by side crosseye.
.Sp
.Vb 1
\&        stereo3d=abl:sbsr
.Ve
.SS "streamselect, astreamselect"
.IX Subsection "streamselect, astreamselect"
Select video or audio streams.
.PP
The filter accepts the following options:
.IP \fBinputs\fR 4
.IX Item "inputs"
Set number of inputs. Default is 2.
.IP \fBmap\fR 4
.IX Item "map"
Set input indexes to remap to outputs.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
The \f(CW\*(C`streamselect\*(C'\fR and \f(CW\*(C`astreamselect\*(C'\fR filter supports the following
commands:
.IP \fBmap\fR 4
.IX Item "map"
Set input indexes to remap to outputs.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Select first 5 seconds 1st stream and rest of time 2nd stream:
.Sp
.Vb 1
\&        sendcmd=\*(Aq5.0 streamselect map 1\*(Aq,streamselect=inputs=2:map=0
.Ve
.IP \(bu 4
Same as above, but for audio:
.Sp
.Vb 1
\&        asendcmd=\*(Aq5.0 astreamselect map 1\*(Aq,astreamselect=inputs=2:map=0
.Ve
.SS subtitles
.IX Subsection "subtitles"
Draw subtitles on top of input video using the libass library.
.PP
To enable compilation of this filter you need to configure FFmpeg with
\&\f(CW\*(C`\-\-enable\-libass\*(C'\fR. This filter also requires a build with libavcodec and
libavformat to convert the passed subtitles file to ASS (Advanced Substation
Alpha) subtitles format.
.PP
The filter accepts the following options:
.IP "\fBfilename, f\fR" 4
.IX Item "filename, f"
Set the filename of the subtitle file to read. It must be specified.
.IP \fBoriginal_size\fR 4
.IX Item "original_size"
Specify the size of the original video, the video for which the ASS file
was composed. For the syntax of this option, check the
\&\fB"Video size" section in the ffmpeg-utils manual\fR.
Due to a misdesign in ASS aspect ratio arithmetic, this is necessary to
correctly scale the fonts if the aspect ratio has been changed.
.IP \fBfontsdir\fR 4
.IX Item "fontsdir"
Set a directory path containing fonts that can be used by the filter.
These fonts will be used in addition to whatever the font provider uses.
.IP \fBalpha\fR 4
.IX Item "alpha"
Process alpha channel, by default alpha channel is untouched.
.IP \fBcharenc\fR 4
.IX Item "charenc"
Set subtitles input character encoding. \f(CW\*(C`subtitles\*(C'\fR filter only. Only
useful if not UTF\-8.
.IP "\fBstream_index, si\fR" 4
.IX Item "stream_index, si"
Set subtitles stream index. \f(CW\*(C`subtitles\*(C'\fR filter only.
.IP \fBforce_style\fR 4
.IX Item "force_style"
Override default style or script info parameters of the subtitles. It accepts a
string containing ASS style format \f(CW\*(C`KEY=VALUE\*(C'\fR couples separated by ",".
.PP
If the first key is not specified, it is assumed that the first value
specifies the \fBfilename\fR.
.PP
For example, to render the file \fIsub.srt\fR on top of the input
video, use the command:
.PP
.Vb 1
\&        subtitles=sub.srt
.Ve
.PP
which is equivalent to:
.PP
.Vb 1
\&        subtitles=filename=sub.srt
.Ve
.PP
To render the default subtitles stream from file \fIvideo.mkv\fR, use:
.PP
.Vb 1
\&        subtitles=video.mkv
.Ve
.PP
To render the second subtitles stream from that file, use:
.PP
.Vb 1
\&        subtitles=video.mkv:si=1
.Ve
.PP
To make the subtitles stream from \fIsub.srt\fR appear in 80% transparent blue
\&\f(CW\*(C`DejaVu Serif\*(C'\fR, use:
.PP
.Vb 1
\&        subtitles=sub.srt:force_style=\*(AqFontname=DejaVu Serif,PrimaryColour=&HCCFF0000\*(Aq
.Ve
.SS super2xsai
.IX Subsection "super2xsai"
Scale the input by 2x and smooth using the Super2xSaI (Scale and
Interpolate) pixel art scaling algorithm.
.PP
Useful for enlarging pixel art images without reducing sharpness.
.SS swaprect
.IX Subsection "swaprect"
Swap two rectangular objects in video.
.PP
This filter accepts the following options:
.IP \fBw\fR 4
.IX Item "w"
Set object width.
.IP \fBh\fR 4
.IX Item "h"
Set object height.
.IP \fBx1\fR 4
.IX Item "x1"
Set 1st rect x coordinate.
.IP \fBy1\fR 4
.IX Item "y1"
Set 1st rect y coordinate.
.IP \fBx2\fR 4
.IX Item "x2"
Set 2nd rect x coordinate.
.IP \fBy2\fR 4
.IX Item "y2"
Set 2nd rect y coordinate.
.Sp
All expressions are evaluated once for each frame.
.PP
The all options are expressions containing the following constants:
.IP \fBw\fR 4
.IX Item "w"
.PD 0
.IP \fBh\fR 4
.IX Item "h"
.PD
The input width and height.
.IP \fBa\fR 4
.IX Item "a"
same as \fIw\fR / \fIh\fR
.IP \fBsar\fR 4
.IX Item "sar"
input sample aspect ratio
.IP \fBdar\fR 4
.IX Item "dar"
input display aspect ratio, it is the same as (\fIw\fR / \fIh\fR) * \fIsar\fR
.IP \fBn\fR 4
.IX Item "n"
The number of the input frame, starting from 0.
.IP \fBt\fR 4
.IX Item "t"
The timestamp expressed in seconds. It's NAN if the input timestamp is unknown.
.IP \fBpos\fR 4
.IX Item "pos"
the position in the file of the input frame, NAN if unknown
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS swapuv
.IX Subsection "swapuv"
Swap U & V plane.
.SS tblend
.IX Subsection "tblend"
Blend successive video frames.
.PP
See \fBblend\fR
.SS telecine
.IX Subsection "telecine"
Apply telecine process to the video.
.PP
This filter accepts the following options:
.IP \fBfirst_field\fR 4
.IX Item "first_field"
.RS 4
.PD 0
.IP "\fBtop, t\fR" 4
.IX Item "top, t"
.PD
top field first
.IP "\fBbottom, b\fR" 4
.IX Item "bottom, b"
bottom field first
The default value is \f(CW\*(C`top\*(C'\fR.
.RE
.RS 4
.RE
.IP \fBpattern\fR 4
.IX Item "pattern"
A string of numbers representing the pulldown pattern you wish to apply.
The default value is \f(CW23\fR.
.PP
.Vb 1
\&        Some typical patterns:
\&        
\&        NTSC output (30i):
\&        27.5p: 32222
\&        24p: 23 (classic)
\&        24p: 2332 (preferred)
\&        20p: 33
\&        18p: 334
\&        16p: 3444
\&        
\&        PAL output (25i):
\&        27.5p: 12222
\&        24p: 222222222223 ("Euro pulldown")
\&        16.67p: 33
\&        16p: 33333334
.Ve
.SS thistogram
.IX Subsection "thistogram"
Compute and draw a color distribution histogram for the input video across time.
.PP
Unlike \fBhistogram\fR video filter which only shows histogram of single input frame
at certain time, this filter shows also past histograms of number of frames defined
by \f(CW\*(C`width\*(C'\fR option.
.PP
The computed histogram is a representation of the color component
distribution in an image.
.PP
The filter accepts the following options:
.IP "\fBwidth, w\fR" 4
.IX Item "width, w"
Set width of single color component output. Default value is \f(CW0\fR.
Value of \f(CW0\fR means width will be picked from input video.
This also set number of passed histograms to keep.
Allowed range is [0, 8192].
.IP "\fBdisplay_mode, d\fR" 4
.IX Item "display_mode, d"
Set display mode.
It accepts the following values:
.RS 4
.IP \fBstack\fR 4
.IX Item "stack"
Per color component graphs are placed below each other.
.IP \fBparade\fR 4
.IX Item "parade"
Per color component graphs are placed side by side.
.IP \fBoverlay\fR 4
.IX Item "overlay"
Presents information identical to that in the \f(CW\*(C`parade\*(C'\fR, except
that the graphs representing color components are superimposed directly
over one another.
.RE
.RS 4
.Sp
Default is \f(CW\*(C`stack\*(C'\fR.
.RE
.IP "\fBlevels_mode, m\fR" 4
.IX Item "levels_mode, m"
Set mode. Can be either \f(CW\*(C`linear\*(C'\fR, or \f(CW\*(C`logarithmic\*(C'\fR.
Default is \f(CW\*(C`linear\*(C'\fR.
.IP "\fBcomponents, c\fR" 4
.IX Item "components, c"
Set what color components to display.
Default is \f(CW7\fR.
.IP "\fBbgopacity, b\fR" 4
.IX Item "bgopacity, b"
Set background opacity. Default is \f(CW0.9\fR.
.IP "\fBenvelope, e\fR" 4
.IX Item "envelope, e"
Show envelope. Default is disabled.
.IP "\fBecolor, ec\fR" 4
.IX Item "ecolor, ec"
Set envelope color. Default is \f(CW\*(C`gold\*(C'\fR.
.IP \fBslide\fR 4
.IX Item "slide"
Set slide mode.
.Sp
Available values for slide is:
.RS 4
.IP \fBframe\fR 4
.IX Item "frame"
Draw new frame when right border is reached.
.IP \fBreplace\fR 4
.IX Item "replace"
Replace old columns with new ones.
.IP \fBscroll\fR 4
.IX Item "scroll"
Scroll from right to left.
.IP \fBrscroll\fR 4
.IX Item "rscroll"
Scroll from left to right.
.IP \fBpicture\fR 4
.IX Item "picture"
Draw single picture.
.RE
.RS 4
.Sp
Default is \f(CW\*(C`replace\*(C'\fR.
.RE
.SS threshold
.IX Subsection "threshold"
Apply threshold effect to video stream.
.PP
This filter needs four video streams to perform thresholding.
First stream is stream we are filtering.
Second stream is holding threshold values, third stream is holding min values,
and last, fourth stream is holding max values.
.PP
The filter accepts the following option:
.IP \fBplanes\fR 4
.IX Item "planes"
Set which planes will be processed, unprocessed planes will be copied.
By default value 0xf, all planes will be processed.
.PP
For example if first stream pixel's component value is less then threshold value
of pixel component from 2nd threshold stream, third stream value will picked,
otherwise fourth stream pixel component value will be picked.
.PP
Using color source filter one can perform various types of thresholding:
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Binary threshold, using gray color as threshold:
.Sp
.Vb 1
\&        ffmpeg \-i 320x240.avi \-f lavfi \-i color=gray \-f lavfi \-i color=black \-f lavfi \-i color=white \-lavfi threshold output.avi
.Ve
.IP \(bu 4
Inverted binary threshold, using gray color as threshold:
.Sp
.Vb 1
\&        ffmpeg \-i 320x240.avi \-f lavfi \-i color=gray \-f lavfi \-i color=white \-f lavfi \-i color=black \-lavfi threshold output.avi
.Ve
.IP \(bu 4
Truncate binary threshold, using gray color as threshold:
.Sp
.Vb 1
\&        ffmpeg \-i 320x240.avi \-f lavfi \-i color=gray \-i 320x240.avi \-f lavfi \-i color=gray \-lavfi threshold output.avi
.Ve
.IP \(bu 4
Threshold to zero, using gray color as threshold:
.Sp
.Vb 1
\&        ffmpeg \-i 320x240.avi \-f lavfi \-i color=gray \-f lavfi \-i color=white \-i 320x240.avi \-lavfi threshold output.avi
.Ve
.IP \(bu 4
Inverted threshold to zero, using gray color as threshold:
.Sp
.Vb 1
\&        ffmpeg \-i 320x240.avi \-f lavfi \-i color=gray \-i 320x240.avi \-f lavfi \-i color=white \-lavfi threshold output.avi
.Ve
.SS thumbnail
.IX Subsection "thumbnail"
Select the most representative frame in a given sequence of consecutive frames.
.PP
The filter accepts the following options:
.IP \fBn\fR 4
.IX Item "n"
Set the frames batch size to analyze; in a set of \fIn\fR frames, the filter
will pick one of them, and then handle the next batch of \fIn\fR frames until
the end. Default is \f(CW100\fR.
.PP
Since the filter keeps track of the whole frames sequence, a bigger \fIn\fR
value will result in a higher memory usage, so a high value is not recommended.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Extract one picture each 50 frames:
.Sp
.Vb 1
\&        thumbnail=50
.Ve
.IP \(bu 4
Complete example of a thumbnail creation with \fBffmpeg\fR:
.Sp
.Vb 1
\&        ffmpeg \-i in.avi \-vf thumbnail,scale=300:200 \-frames:v 1 out.png
.Ve
.SS tile
.IX Subsection "tile"
Tile several successive frames together.
.PP
The \fBuntile\fR filter can do the reverse.
.PP
The filter accepts the following options:
.IP \fBlayout\fR 4
.IX Item "layout"
Set the grid size (i.e. the number of lines and columns). For the syntax of
this option, check the
\&\fB"Video size" section in the ffmpeg-utils manual\fR.
.IP \fBnb_frames\fR 4
.IX Item "nb_frames"
Set the maximum number of frames to render in the given area. It must be less
than or equal to \fIw\fRx\fIh\fR. The default value is \f(CW0\fR, meaning all
the area will be used.
.IP \fBmargin\fR 4
.IX Item "margin"
Set the outer border margin in pixels.
.IP \fBpadding\fR 4
.IX Item "padding"
Set the inner border thickness (i.e. the number of pixels between frames). For
more advanced padding options (such as having different values for the edges),
refer to the pad video filter.
.IP \fBcolor\fR 4
.IX Item "color"
Specify the color of the unused area. For the syntax of this option, check the
\&\fB"Color" section in the ffmpeg-utils manual\fR.
The default value of \fIcolor\fR is "black".
.IP \fBoverlap\fR 4
.IX Item "overlap"
Set the number of frames to overlap when tiling several successive frames together.
The value must be between \f(CW0\fR and \fInb_frames \- 1\fR.
.IP \fBinit_padding\fR 4
.IX Item "init_padding"
Set the number of frames to initially be empty before displaying first output frame.
This controls how soon will one get first output frame.
The value must be between \f(CW0\fR and \fInb_frames \- 1\fR.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Produce 8x8 PNG tiles of all keyframes (\fB\-skip_frame nokey\fR) in a movie:
.Sp
.Vb 1
\&        ffmpeg \-skip_frame nokey \-i file.avi \-vf \*(Aqscale=128:72,tile=8x8\*(Aq \-an \-vsync 0 keyframes%03d.png
.Ve
.Sp
The \fB\-vsync 0\fR is necessary to prevent \fBffmpeg\fR from
duplicating each output frame to accommodate the originally detected frame
rate.
.IP \(bu 4
Display \f(CW5\fR pictures in an area of \f(CW\*(C`3x2\*(C'\fR frames,
with \f(CW7\fR pixels between them, and \f(CW2\fR pixels of initial margin, using
mixed flat and named options:
.Sp
.Vb 1
\&        tile=3x2:nb_frames=5:padding=7:margin=2
.Ve
.SS tinterlace
.IX Subsection "tinterlace"
Perform various types of temporal field interlacing.
.PP
Frames are counted starting from 1, so the first input frame is
considered odd.
.PP
The filter accepts the following options:
.IP \fBmode\fR 4
.IX Item "mode"
Specify the mode of the interlacing. This option can also be specified
as a value alone. See below for a list of values for this option.
.Sp
Available values are:
.RS 4
.IP "\fBmerge, 0\fR" 4
.IX Item "merge, 0"
Move odd frames into the upper field, even into the lower field,
generating a double height frame at half frame rate.
.Sp
.Vb 3
\&         \-\-\-\-\-\-> time
\&        Input:
\&        Frame 1         Frame 2         Frame 3         Frame 4
\&        
\&        11111           22222           33333           44444
\&        11111           22222           33333           44444
\&        11111           22222           33333           44444
\&        11111           22222           33333           44444
\&        
\&        Output:
\&        11111                           33333
\&        22222                           44444
\&        11111                           33333
\&        22222                           44444
\&        11111                           33333
\&        22222                           44444
\&        11111                           33333
\&        22222                           44444
.Ve
.IP "\fBdrop_even, 1\fR" 4
.IX Item "drop_even, 1"
Only output odd frames, even frames are dropped, generating a frame with
unchanged height at half frame rate.
.Sp
.Vb 3
\&         \-\-\-\-\-\-> time
\&        Input:
\&        Frame 1         Frame 2         Frame 3         Frame 4
\&        
\&        11111           22222           33333           44444
\&        11111           22222           33333           44444
\&        11111           22222           33333           44444
\&        11111           22222           33333           44444
\&        
\&        Output:
\&        11111                           33333
\&        11111                           33333
\&        11111                           33333
\&        11111                           33333
.Ve
.IP "\fBdrop_odd, 2\fR" 4
.IX Item "drop_odd, 2"
Only output even frames, odd frames are dropped, generating a frame with
unchanged height at half frame rate.
.Sp
.Vb 3
\&         \-\-\-\-\-\-> time
\&        Input:
\&        Frame 1         Frame 2         Frame 3         Frame 4
\&        
\&        11111           22222           33333           44444
\&        11111           22222           33333           44444
\&        11111           22222           33333           44444
\&        11111           22222           33333           44444
\&        
\&        Output:
\&                        22222                           44444
\&                        22222                           44444
\&                        22222                           44444
\&                        22222                           44444
.Ve
.IP "\fBpad, 3\fR" 4
.IX Item "pad, 3"
Expand each frame to full height, but pad alternate lines with black,
generating a frame with double height at the same input frame rate.
.Sp
.Vb 3
\&         \-\-\-\-\-\-> time
\&        Input:
\&        Frame 1         Frame 2         Frame 3         Frame 4
\&        
\&        11111           22222           33333           44444
\&        11111           22222           33333           44444
\&        11111           22222           33333           44444
\&        11111           22222           33333           44444
\&        
\&        Output:
\&        11111           .....           33333           .....
\&        .....           22222           .....           44444
\&        11111           .....           33333           .....
\&        .....           22222           .....           44444
\&        11111           .....           33333           .....
\&        .....           22222           .....           44444
\&        11111           .....           33333           .....
\&        .....           22222           .....           44444
.Ve
.IP "\fBinterleave_top, 4\fR" 4
.IX Item "interleave_top, 4"
Interleave the upper field from odd frames with the lower field from
even frames, generating a frame with unchanged height at half frame rate.
.Sp
.Vb 3
\&         \-\-\-\-\-\-> time
\&        Input:
\&        Frame 1         Frame 2         Frame 3         Frame 4
\&        
\&        11111<\-         22222           33333<\-         44444
\&        11111           22222<\-         33333           44444<\-
\&        11111<\-         22222           33333<\-         44444
\&        11111           22222<\-         33333           44444<\-
\&        
\&        Output:
\&        11111                           33333
\&        22222                           44444
\&        11111                           33333
\&        22222                           44444
.Ve
.IP "\fBinterleave_bottom, 5\fR" 4
.IX Item "interleave_bottom, 5"
Interleave the lower field from odd frames with the upper field from
even frames, generating a frame with unchanged height at half frame rate.
.Sp
.Vb 3
\&         \-\-\-\-\-\-> time
\&        Input:
\&        Frame 1         Frame 2         Frame 3         Frame 4
\&        
\&        11111           22222<\-         33333           44444<\-
\&        11111<\-         22222           33333<\-         44444
\&        11111           22222<\-         33333           44444<\-
\&        11111<\-         22222           33333<\-         44444
\&        
\&        Output:
\&        22222                           44444
\&        11111                           33333
\&        22222                           44444
\&        11111                           33333
.Ve
.IP "\fBinterlacex2, 6\fR" 4
.IX Item "interlacex2, 6"
Double frame rate with unchanged height. Frames are inserted each
containing the second temporal field from the previous input frame and
the first temporal field from the next input frame. This mode relies on
the top_field_first flag. Useful for interlaced video displays with no
field synchronisation.
.Sp
.Vb 3
\&         \-\-\-\-\-\-> time
\&        Input:
\&        Frame 1         Frame 2         Frame 3         Frame 4
\&        
\&        11111           22222           33333           44444
\&         11111           22222           33333           44444
\&        11111           22222           33333           44444
\&         11111           22222           33333           44444
\&        
\&        Output:
\&        11111   22222   22222   33333   33333   44444   44444
\&         11111   11111   22222   22222   33333   33333   44444
\&        11111   22222   22222   33333   33333   44444   44444
\&         11111   11111   22222   22222   33333   33333   44444
.Ve
.IP "\fBmergex2, 7\fR" 4
.IX Item "mergex2, 7"
Move odd frames into the upper field, even into the lower field,
generating a double height frame at same frame rate.
.Sp
.Vb 3
\&         \-\-\-\-\-\-> time
\&        Input:
\&        Frame 1         Frame 2         Frame 3         Frame 4
\&        
\&        11111           22222           33333           44444
\&        11111           22222           33333           44444
\&        11111           22222           33333           44444
\&        11111           22222           33333           44444
\&        
\&        Output:
\&        11111           33333           33333           55555
\&        22222           22222           44444           44444
\&        11111           33333           33333           55555
\&        22222           22222           44444           44444
\&        11111           33333           33333           55555
\&        22222           22222           44444           44444
\&        11111           33333           33333           55555
\&        22222           22222           44444           44444
.Ve
.RE
.RS 4
.Sp
Numeric values are deprecated but are accepted for backward
compatibility reasons.
.Sp
Default mode is \f(CW\*(C`merge\*(C'\fR.
.RE
.IP \fBflags\fR 4
.IX Item "flags"
Specify flags influencing the filter process.
.Sp
Available value for \fIflags\fR is:
.RS 4
.IP "\fBlow_pass_filter, vlpf\fR" 4
.IX Item "low_pass_filter, vlpf"
Enable linear vertical low-pass filtering in the filter.
Vertical low-pass filtering is required when creating an interlaced
destination from a progressive source which contains high-frequency
vertical detail. Filtering will reduce interlace 'twitter' and Moire
patterning.
.IP "\fBcomplex_filter, cvlpf\fR" 4
.IX Item "complex_filter, cvlpf"
Enable complex vertical low-pass filtering.
This will slightly less reduce interlace 'twitter' and Moire
patterning but better retain detail and subjective sharpness impression.
.IP \fBbypass_il\fR 4
.IX Item "bypass_il"
Bypass already interlaced frames, only adjust the frame rate.
.RE
.RS 4
.Sp
Vertical low-pass filtering and bypassing already interlaced frames can only be
enabled for \fBmode\fR \fIinterleave_top\fR and \fIinterleave_bottom\fR.
.RE
.SS tmedian
.IX Subsection "tmedian"
Pick median pixels from several successive input video frames.
.PP
The filter accepts the following options:
.IP \fBradius\fR 4
.IX Item "radius"
Set radius of median filter.
Default is 1. Allowed range is from 1 to 127.
.IP \fBplanes\fR 4
.IX Item "planes"
Set which planes to filter. Default value is \f(CW15\fR, by which all planes are processed.
.IP \fBpercentile\fR 4
.IX Item "percentile"
Set median percentile. Default value is \f(CW0.5\fR.
Default value of \f(CW0.5\fR will pick always median values, while \f(CW0\fR will pick
minimum values, and \f(CW1\fR maximum values.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports all above options as \fBcommands\fR, excluding option \f(CW\*(C`radius\*(C'\fR.
.SS tmidequalizer
.IX Subsection "tmidequalizer"
Apply Temporal Midway Video Equalization effect.
.PP
Midway Video Equalization adjusts a sequence of video frames to have the same
histograms, while maintaining their dynamics as much as possible. It's
useful for e.g. matching exposures from a video frames sequence.
.PP
This filter accepts the following option:
.IP \fBradius\fR 4
.IX Item "radius"
Set filtering radius. Default is \f(CW5\fR. Allowed range is from 1 to 127.
.IP \fBsigma\fR 4
.IX Item "sigma"
Set filtering sigma. Default is \f(CW0.5\fR. This controls strength of filtering.
Setting this option to 0 effectively does nothing.
.IP \fBplanes\fR 4
.IX Item "planes"
Set which planes to process. Default is \f(CW15\fR, which is all available planes.
.SS tmix
.IX Subsection "tmix"
Mix successive video frames.
.PP
A description of the accepted options follows.
.IP \fBframes\fR 4
.IX Item "frames"
The number of successive frames to mix. If unspecified, it defaults to 3.
.IP \fBweights\fR 4
.IX Item "weights"
Specify weight of each input video frame.
Each weight is separated by space. If number of weights is smaller than
number of \fIframes\fR last specified weight will be used for all remaining
unset weights.
.IP \fBscale\fR 4
.IX Item "scale"
Specify scale, if it is set it will be multiplied with sum
of each weight multiplied with pixel values to give final destination
pixel value. By default \fIscale\fR is auto scaled to sum of weights.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Average 7 successive frames:
.Sp
.Vb 1
\&        tmix=frames=7:weights="1 1 1 1 1 1 1"
.Ve
.IP \(bu 4
Apply simple temporal convolution:
.Sp
.Vb 1
\&        tmix=frames=3:weights="\-1 3 \-1"
.Ve
.IP \(bu 4
Similar as above but only showing temporal differences:
.Sp
.Vb 1
\&        tmix=frames=3:weights="\-1 2 \-1":scale=1
.Ve
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the following commands:
.IP \fBweights\fR 4
.IX Item "weights"
.PD 0
.IP \fBscale\fR 4
.IX Item "scale"
.PD
Syntax is same as option with same name.
.SS tonemap
.IX Subsection "tonemap"
Tone map colors from different dynamic ranges.
.PP
This filter expects data in single precision floating point, as it needs to
operate on (and can output) out-of-range values. Another filter, such as
\&\fBzscale\fR, is needed to convert the resulting frame to a usable format.
.PP
The tonemapping algorithms implemented only work on linear light, so input
data should be linearized beforehand (and possibly correctly tagged).
.PP
.Vb 1
\&        ffmpeg \-i INPUT \-vf zscale=transfer=linear,tonemap=clip,zscale=transfer=bt709,format=yuv420p OUTPUT
.Ve
.PP
\fIOptions\fR
.IX Subsection "Options"
.PP
The filter accepts the following options.
.IP \fBtonemap\fR 4
.IX Item "tonemap"
Set the tone map algorithm to use.
.Sp
Possible values are:
.RS 4
.IP \fInone\fR 4
.IX Item "none"
Do not apply any tone map, only desaturate overbright pixels.
.IP \fIclip\fR 4
.IX Item "clip"
Hard-clip any out-of-range values. Use it for perfect color accuracy for
in-range values, while distorting out-of-range values.
.IP \fIlinear\fR 4
.IX Item "linear"
Stretch the entire reference gamut to a linear multiple of the display.
.IP \fIgamma\fR 4
.IX Item "gamma"
Fit a logarithmic transfer between the tone curves.
.IP \fIreinhard\fR 4
.IX Item "reinhard"
Preserve overall image brightness with a simple curve, using nonlinear
contrast, which results in flattening details and degrading color accuracy.
.IP \fIhable\fR 4
.IX Item "hable"
Preserve both dark and bright details better than \fIreinhard\fR, at the cost
of slightly darkening everything. Use it when detail preservation is more
important than color and brightness accuracy.
.IP \fImobius\fR 4
.IX Item "mobius"
Smoothly map out-of-range values, while retaining contrast and colors for
in-range material as much as possible. Use it when color accuracy is more
important than detail preservation.
.RE
.RS 4
.Sp
Default is none.
.RE
.IP \fBparam\fR 4
.IX Item "param"
Tune the tone mapping algorithm.
.Sp
This affects the following algorithms:
.RS 4
.IP \fInone\fR 4
.IX Item "none"
Ignored.
.IP \fIlinear\fR 4
.IX Item "linear"
Specifies the scale factor to use while stretching.
Default to 1.0.
.IP \fIgamma\fR 4
.IX Item "gamma"
Specifies the exponent of the function.
Default to 1.8.
.IP \fIclip\fR 4
.IX Item "clip"
Specify an extra linear coefficient to multiply into the signal before clipping.
Default to 1.0.
.IP \fIreinhard\fR 4
.IX Item "reinhard"
Specify the local contrast coefficient at the display peak.
Default to 0.5, which means that in-gamut values will be about half as bright
as when clipping.
.IP \fIhable\fR 4
.IX Item "hable"
Ignored.
.IP \fImobius\fR 4
.IX Item "mobius"
Specify the transition point from linear to mobius transform. Every value
below this point is guaranteed to be mapped 1:1. The higher the value, the
more accurate the result will be, at the cost of losing bright details.
Default to 0.3, which due to the steep initial slope still preserves in-range
colors fairly accurately.
.RE
.RS 4
.RE
.IP \fBdesat\fR 4
.IX Item "desat"
Apply desaturation for highlights that exceed this level of brightness. The
higher the parameter, the more color information will be preserved. This
setting helps prevent unnaturally blown-out colors for super-highlights, by
(smoothly) turning into white instead. This makes images feel more natural,
at the cost of reducing information about out-of-range colors.
.Sp
The default of 2.0 is somewhat conservative and will mostly just apply to
skies or directly sunlit surfaces. A setting of 0.0 disables this option.
.Sp
This option works only if the input frame has a supported color tag.
.IP \fBpeak\fR 4
.IX Item "peak"
Override signal/nominal/reference peak with this value. Useful when the
embedded peak information in display metadata is not reliable or when tone
mapping from a lower range to a higher range.
.SS tpad
.IX Subsection "tpad"
Temporarily pad video frames.
.PP
The filter accepts the following options:
.IP \fBstart\fR 4
.IX Item "start"
Specify number of delay frames before input video stream. Default is 0.
.IP \fBstop\fR 4
.IX Item "stop"
Specify number of padding frames after input video stream.
Set to \-1 to pad indefinitely. Default is 0.
.IP \fBstart_mode\fR 4
.IX Item "start_mode"
Set kind of frames added to beginning of stream.
Can be either \fIadd\fR or \fIclone\fR.
With \fIadd\fR frames of solid-color are added.
With \fIclone\fR frames are clones of first frame.
Default is \fIadd\fR.
.IP \fBstop_mode\fR 4
.IX Item "stop_mode"
Set kind of frames added to end of stream.
Can be either \fIadd\fR or \fIclone\fR.
With \fIadd\fR frames of solid-color are added.
With \fIclone\fR frames are clones of last frame.
Default is \fIadd\fR.
.IP "\fBstart_duration, stop_duration\fR" 4
.IX Item "start_duration, stop_duration"
Specify the duration of the start/stop delay. See
\&\fBthe Time duration section in the ffmpeg\-utils\|(1) manual\fR
for the accepted syntax.
These options override \fIstart\fR and \fIstop\fR. Default is 0.
.IP \fBcolor\fR 4
.IX Item "color"
Specify the color of the padded area. For the syntax of this option,
check the \fB"Color" section in the ffmpeg-utils
manual\fR.
.Sp
The default value of \fIcolor\fR is "black".
.SS transpose
.IX Subsection "transpose"
Transpose rows with columns in the input video and optionally flip it.
.PP
It accepts the following parameters:
.IP \fBdir\fR 4
.IX Item "dir"
Specify the transposition direction.
.Sp
Can assume the following values:
.RS 4
.IP "\fB0, 4, cclock_flip\fR" 4
.IX Item "0, 4, cclock_flip"
Rotate by 90 degrees counterclockwise and vertically flip (default), that is:
.Sp
.Vb 3
\&        L.R     L.l
\&        . . \->  . .
\&        l.r     R.r
.Ve
.IP "\fB1, 5, clock\fR" 4
.IX Item "1, 5, clock"
Rotate by 90 degrees clockwise, that is:
.Sp
.Vb 3
\&        L.R     l.L
\&        . . \->  . .
\&        l.r     r.R
.Ve
.IP "\fB2, 6, cclock\fR" 4
.IX Item "2, 6, cclock"
Rotate by 90 degrees counterclockwise, that is:
.Sp
.Vb 3
\&        L.R     R.r
\&        . . \->  . .
\&        l.r     L.l
.Ve
.IP "\fB3, 7, clock_flip\fR" 4
.IX Item "3, 7, clock_flip"
Rotate by 90 degrees clockwise and vertically flip, that is:
.Sp
.Vb 3
\&        L.R     r.R
\&        . . \->  . .
\&        l.r     l.L
.Ve
.RE
.RS 4
.Sp
For values between 4\-7, the transposition is only done if the input
video geometry is portrait and not landscape. These values are
deprecated, the \f(CW\*(C`passthrough\*(C'\fR option should be used instead.
.Sp
Numerical values are deprecated, and should be dropped in favor of
symbolic constants.
.RE
.IP \fBpassthrough\fR 4
.IX Item "passthrough"
Do not apply the transposition if the input geometry matches the one
specified by the specified value. It accepts the following values:
.RS 4
.IP \fBnone\fR 4
.IX Item "none"
Always apply transposition.
.IP \fBportrait\fR 4
.IX Item "portrait"
Preserve portrait geometry (when \fIheight\fR >= \fIwidth\fR).
.IP \fBlandscape\fR 4
.IX Item "landscape"
Preserve landscape geometry (when \fIwidth\fR >= \fIheight\fR).
.RE
.RS 4
.Sp
Default value is \f(CW\*(C`none\*(C'\fR.
.RE
.PP
For example to rotate by 90 degrees clockwise and preserve portrait
layout:
.PP
.Vb 1
\&        transpose=dir=1:passthrough=portrait
.Ve
.PP
The command above can also be specified as:
.PP
.Vb 1
\&        transpose=1:portrait
.Ve
.SS transpose_npp
.IX Subsection "transpose_npp"
Transpose rows with columns in the input video and optionally flip it.
For more in depth examples see the \fBtranspose\fR video filter, which shares mostly the same options.
.PP
It accepts the following parameters:
.IP \fBdir\fR 4
.IX Item "dir"
Specify the transposition direction.
.Sp
Can assume the following values:
.RS 4
.IP \fBcclock_flip\fR 4
.IX Item "cclock_flip"
Rotate by 90 degrees counterclockwise and vertically flip. (default)
.IP \fBclock\fR 4
.IX Item "clock"
Rotate by 90 degrees clockwise.
.IP \fBcclock\fR 4
.IX Item "cclock"
Rotate by 90 degrees counterclockwise.
.IP \fBclock_flip\fR 4
.IX Item "clock_flip"
Rotate by 90 degrees clockwise and vertically flip.
.RE
.RS 4
.RE
.IP \fBpassthrough\fR 4
.IX Item "passthrough"
Do not apply the transposition if the input geometry matches the one
specified by the specified value. It accepts the following values:
.RS 4
.IP \fBnone\fR 4
.IX Item "none"
Always apply transposition. (default)
.IP \fBportrait\fR 4
.IX Item "portrait"
Preserve portrait geometry (when \fIheight\fR >= \fIwidth\fR).
.IP \fBlandscape\fR 4
.IX Item "landscape"
Preserve landscape geometry (when \fIwidth\fR >= \fIheight\fR).
.RE
.RS 4
.RE
.SS trim
.IX Subsection "trim"
Trim the input so that the output contains one continuous subpart of the input.
.PP
It accepts the following parameters:
.IP \fBstart\fR 4
.IX Item "start"
Specify the time of the start of the kept section, i.e. the frame with the
timestamp \fIstart\fR will be the first frame in the output.
.IP \fBend\fR 4
.IX Item "end"
Specify the time of the first frame that will be dropped, i.e. the frame
immediately preceding the one with the timestamp \fIend\fR will be the last
frame in the output.
.IP \fBstart_pts\fR 4
.IX Item "start_pts"
This is the same as \fIstart\fR, except this option sets the start timestamp
in timebase units instead of seconds.
.IP \fBend_pts\fR 4
.IX Item "end_pts"
This is the same as \fIend\fR, except this option sets the end timestamp
in timebase units instead of seconds.
.IP \fBduration\fR 4
.IX Item "duration"
The maximum duration of the output in seconds.
.IP \fBstart_frame\fR 4
.IX Item "start_frame"
The number of the first frame that should be passed to the output.
.IP \fBend_frame\fR 4
.IX Item "end_frame"
The number of the first frame that should be dropped.
.PP
\&\fBstart\fR, \fBend\fR, and \fBduration\fR are expressed as time
duration specifications; see
\&\fBthe Time duration section in the ffmpeg\-utils\|(1) manual\fR
for the accepted syntax.
.PP
Note that the first two sets of the start/end options and the \fBduration\fR
option look at the frame timestamp, while the _frame variants simply count the
frames that pass through the filter. Also note that this filter does not modify
the timestamps. If you wish for the output timestamps to start at zero, insert a
setpts filter after the trim filter.
.PP
If multiple start or end options are set, this filter tries to be greedy and
keep all the frames that match at least one of the specified constraints. To keep
only the part that matches all the constraints at once, chain multiple trim
filters.
.PP
The defaults are such that all the input is kept. So it is possible to set e.g.
just the end values to keep everything before the specified time.
.PP
Examples:
.IP \(bu 4
Drop everything except the second minute of input:
.Sp
.Vb 1
\&        ffmpeg \-i INPUT \-vf trim=60:120
.Ve
.IP \(bu 4
Keep only the first second:
.Sp
.Vb 1
\&        ffmpeg \-i INPUT \-vf trim=duration=1
.Ve
.SS unpremultiply
.IX Subsection "unpremultiply"
Apply alpha unpremultiply effect to input video stream using first plane
of second stream as alpha.
.PP
Both streams must have same dimensions and same pixel format.
.PP
The filter accepts the following option:
.IP \fBplanes\fR 4
.IX Item "planes"
Set which planes will be processed, unprocessed planes will be copied.
By default value 0xf, all planes will be processed.
.Sp
If the format has 1 or 2 components, then luma is bit 0.
If the format has 3 or 4 components:
for RGB formats bit 0 is green, bit 1 is blue and bit 2 is red;
for YUV formats bit 0 is luma, bit 1 is chroma-U and bit 2 is chroma-V.
If present, the alpha channel is always the last bit.
.IP \fBinplace\fR 4
.IX Item "inplace"
Do not require 2nd input for processing, instead use alpha plane from input stream.
.SS unsharp
.IX Subsection "unsharp"
Sharpen or blur the input video.
.PP
It accepts the following parameters:
.IP "\fBluma_msize_x, lx\fR" 4
.IX Item "luma_msize_x, lx"
Set the luma matrix horizontal size. It must be an odd integer between
3 and 23. The default value is 5.
.IP "\fBluma_msize_y, ly\fR" 4
.IX Item "luma_msize_y, ly"
Set the luma matrix vertical size. It must be an odd integer between 3
and 23. The default value is 5.
.IP "\fBluma_amount, la\fR" 4
.IX Item "luma_amount, la"
Set the luma effect strength. It must be a floating point number, reasonable
values lay between \-1.5 and 1.5.
.Sp
Negative values will blur the input video, while positive values will
sharpen it, a value of zero will disable the effect.
.Sp
Default value is 1.0.
.IP "\fBchroma_msize_x, cx\fR" 4
.IX Item "chroma_msize_x, cx"
Set the chroma matrix horizontal size. It must be an odd integer
between 3 and 23. The default value is 5.
.IP "\fBchroma_msize_y, cy\fR" 4
.IX Item "chroma_msize_y, cy"
Set the chroma matrix vertical size. It must be an odd integer
between 3 and 23. The default value is 5.
.IP "\fBchroma_amount, ca\fR" 4
.IX Item "chroma_amount, ca"
Set the chroma effect strength. It must be a floating point number, reasonable
values lay between \-1.5 and 1.5.
.Sp
Negative values will blur the input video, while positive values will
sharpen it, a value of zero will disable the effect.
.Sp
Default value is 0.0.
.PP
All parameters are optional and default to the equivalent of the
string '5:5:1.0:5:5:0.0'.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Apply strong luma sharpen effect:
.Sp
.Vb 1
\&        unsharp=luma_msize_x=7:luma_msize_y=7:luma_amount=2.5
.Ve
.IP \(bu 4
Apply a strong blur of both luma and chroma parameters:
.Sp
.Vb 1
\&        unsharp=7:7:\-2:7:7:\-2
.Ve
.SS untile
.IX Subsection "untile"
Decompose a video made of tiled images into the individual images.
.PP
The frame rate of the output video is the frame rate of the input video
multiplied by the number of tiles.
.PP
This filter does the reverse of \fBtile\fR.
.PP
The filter accepts the following options:
.IP \fBlayout\fR 4
.IX Item "layout"
Set the grid size (i.e. the number of lines and columns). For the syntax of
this option, check the
\&\fB"Video size" section in the ffmpeg-utils manual\fR.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Produce a 1\-second video from a still image file made of 25 frames stacked
vertically, like an analogic film reel:
.Sp
.Vb 1
\&        ffmpeg \-r 1 \-i image.jpg \-vf untile=1x25 movie.mkv
.Ve
.SS uspp
.IX Subsection "uspp"
Apply ultra slow/simple postprocessing filter that compresses and decompresses
the image at several (or \- in the case of \fBquality\fR level \f(CW8\fR \- all)
shifts and average the results.
.PP
The way this differs from the behavior of spp is that uspp actually encodes &
decodes each case with libavcodec Snow, whereas spp uses a simplified intra only 8x8
DCT similar to MJPEG.
.PP
The filter accepts the following options:
.IP \fBquality\fR 4
.IX Item "quality"
Set quality. This option defines the number of levels for averaging. It accepts
an integer in the range 0\-8. If set to \f(CW0\fR, the filter will have no
effect. A value of \f(CW8\fR means the higher quality. For each increment of
that value the speed drops by a factor of approximately 2.  Default value is
\&\f(CW3\fR.
.IP \fBqp\fR 4
.IX Item "qp"
Force a constant quantization parameter. If not set, the filter will use the QP
from the video stream (if available).
.SS v360
.IX Subsection "v360"
Convert 360 videos between various formats.
.PP
The filter accepts the following options:
.IP \fBinput\fR 4
.IX Item "input"
.PD 0
.IP \fBoutput\fR 4
.IX Item "output"
.PD
Set format of the input/output video.
.Sp
Available formats:
.RS 4
.IP \fBe\fR 4
.IX Item "e"
.PD 0
.IP \fBequirect\fR 4
.IX Item "equirect"
.PD
Equirectangular projection.
.IP \fBc3x2\fR 4
.IX Item "c3x2"
.PD 0
.IP \fBc6x1\fR 4
.IX Item "c6x1"
.IP \fBc1x6\fR 4
.IX Item "c1x6"
.PD
Cubemap with 3x2/6x1/1x6 layout.
.Sp
Format specific options:
.RS 4
.IP \fBin_pad\fR 4
.IX Item "in_pad"
.PD 0
.IP \fBout_pad\fR 4
.IX Item "out_pad"
.PD
Set padding proportion for the input/output cubemap. Values in decimals.
.Sp
Example values:
.RS 4
.IP \fB0\fR 4
.IX Item "0"
No padding.
.IP \fB0.01\fR 4
.IX Item "0.01"
1% of face is padding. For example, with 1920x1280 resolution face size would be 640x640 and padding would be 3 pixels from each side. (640 * 0.01 = 6 pixels)
.RE
.RS 4
.Sp
Default value is \fR\f(CB@samp\fR\fB{0\fR}.
Maximum value is \fB\fR\f(CB@samp\fR\fB{0.1\fR}.
.RE
.IP \fBfin_pad\fR 4
.IX Item "fin_pad"
.PD 0
.IP \fBfout_pad\fR 4
.IX Item "fout_pad"
.PD
Set fixed padding for the input/output cubemap. Values in pixels.
.Sp
Default value is \fR\f(CB@samp\fR\fB{0\fR}. If greater than zero it overrides other padding options.
.IP \fBin_forder\fR 4
.IX Item "in_forder"
.PD 0
.IP \fBout_forder\fR 4
.IX Item "out_forder"
.PD
Set order of faces for the input/output cubemap. Choose one direction for each position.
.Sp
Designation of directions:
.RS 4
.IP \fBr\fR 4
.IX Item "r"
right
.IP \fBl\fR 4
.IX Item "l"
left
.IP \fBu\fR 4
.IX Item "u"
up
.IP \fBd\fR 4
.IX Item "d"
down
.IP \fBf\fR 4
.IX Item "f"
forward
.IP \fBb\fR 4
.IX Item "b"
back
.RE
.RS 4
.Sp
Default value is \fR\f(CB@samp\fR\fB{rludfb\fR}.
.RE
.IP \fBin_frot\fR 4
.IX Item "in_frot"
.PD 0
.IP \fBout_frot\fR 4
.IX Item "out_frot"
.PD
Set rotation of faces for the input/output cubemap. Choose one angle for each position.
.Sp
Designation of angles:
.RS 4
.IP \fB0\fR 4
.IX Item "0"
0 degrees clockwise
.IP \fB1\fR 4
.IX Item "1"
90 degrees clockwise
.IP \fB2\fR 4
.IX Item "2"
180 degrees clockwise
.IP \fB3\fR 4
.IX Item "3"
270 degrees clockwise
.RE
.RS 4
.Sp
Default value is \fR\f(CB@samp\fR\fB{000000\fR}.
.RE
.RE
.RS 4
.RE
.IP \fBeac\fR 4
.IX Item "eac"
Equi-Angular Cubemap.
.IP \fBflat\fR 4
.IX Item "flat"
.PD 0
.IP \fBgnomonic\fR 4
.IX Item "gnomonic"
.IP \fBrectilinear\fR 4
.IX Item "rectilinear"
.PD
Regular video.
.Sp
Format specific options:
.RS 4
.IP \fBh_fov\fR 4
.IX Item "h_fov"
.PD 0
.IP \fBv_fov\fR 4
.IX Item "v_fov"
.IP \fBd_fov\fR 4
.IX Item "d_fov"
.PD
Set output horizontal/vertical/diagonal field of view. Values in degrees.
.Sp
If diagonal field of view is set it overrides horizontal and vertical field of view.
.IP \fBih_fov\fR 4
.IX Item "ih_fov"
.PD 0
.IP \fBiv_fov\fR 4
.IX Item "iv_fov"
.IP \fBid_fov\fR 4
.IX Item "id_fov"
.PD
Set input horizontal/vertical/diagonal field of view. Values in degrees.
.Sp
If diagonal field of view is set it overrides horizontal and vertical field of view.
.RE
.RS 4
.RE
.IP \fBdfisheye\fR 4
.IX Item "dfisheye"
Dual fisheye.
.Sp
Format specific options:
.RS 4
.IP \fBh_fov\fR 4
.IX Item "h_fov"
.PD 0
.IP \fBv_fov\fR 4
.IX Item "v_fov"
.IP \fBd_fov\fR 4
.IX Item "d_fov"
.PD
Set output horizontal/vertical/diagonal field of view. Values in degrees.
.Sp
If diagonal field of view is set it overrides horizontal and vertical field of view.
.IP \fBih_fov\fR 4
.IX Item "ih_fov"
.PD 0
.IP \fBiv_fov\fR 4
.IX Item "iv_fov"
.IP \fBid_fov\fR 4
.IX Item "id_fov"
.PD
Set input horizontal/vertical/diagonal field of view. Values in degrees.
.Sp
If diagonal field of view is set it overrides horizontal and vertical field of view.
.RE
.RS 4
.RE
.IP \fBbarrel\fR 4
.IX Item "barrel"
.PD 0
.IP \fBfb\fR 4
.IX Item "fb"
.IP \fBbarrelsplit\fR 4
.IX Item "barrelsplit"
.PD
Facebook's 360 formats.
.IP \fBsg\fR 4
.IX Item "sg"
Stereographic format.
.Sp
Format specific options:
.RS 4
.IP \fBh_fov\fR 4
.IX Item "h_fov"
.PD 0
.IP \fBv_fov\fR 4
.IX Item "v_fov"
.IP \fBd_fov\fR 4
.IX Item "d_fov"
.PD
Set output horizontal/vertical/diagonal field of view. Values in degrees.
.Sp
If diagonal field of view is set it overrides horizontal and vertical field of view.
.IP \fBih_fov\fR 4
.IX Item "ih_fov"
.PD 0
.IP \fBiv_fov\fR 4
.IX Item "iv_fov"
.IP \fBid_fov\fR 4
.IX Item "id_fov"
.PD
Set input horizontal/vertical/diagonal field of view. Values in degrees.
.Sp
If diagonal field of view is set it overrides horizontal and vertical field of view.
.RE
.RS 4
.RE
.IP \fBmercator\fR 4
.IX Item "mercator"
Mercator format.
.IP \fBball\fR 4
.IX Item "ball"
Ball format, gives significant distortion toward the back.
.IP \fBhammer\fR 4
.IX Item "hammer"
Hammer-Aitoff map projection format.
.IP \fBsinusoidal\fR 4
.IX Item "sinusoidal"
Sinusoidal map projection format.
.IP \fBfisheye\fR 4
.IX Item "fisheye"
Fisheye projection.
.Sp
Format specific options:
.RS 4
.IP \fBh_fov\fR 4
.IX Item "h_fov"
.PD 0
.IP \fBv_fov\fR 4
.IX Item "v_fov"
.IP \fBd_fov\fR 4
.IX Item "d_fov"
.PD
Set output horizontal/vertical/diagonal field of view. Values in degrees.
.Sp
If diagonal field of view is set it overrides horizontal and vertical field of view.
.IP \fBih_fov\fR 4
.IX Item "ih_fov"
.PD 0
.IP \fBiv_fov\fR 4
.IX Item "iv_fov"
.IP \fBid_fov\fR 4
.IX Item "id_fov"
.PD
Set input horizontal/vertical/diagonal field of view. Values in degrees.
.Sp
If diagonal field of view is set it overrides horizontal and vertical field of view.
.RE
.RS 4
.RE
.IP \fBpannini\fR 4
.IX Item "pannini"
Pannini projection.
.Sp
Format specific options:
.RS 4
.IP \fBh_fov\fR 4
.IX Item "h_fov"
Set output pannini parameter.
.IP \fBih_fov\fR 4
.IX Item "ih_fov"
Set input pannini parameter.
.RE
.RS 4
.RE
.IP \fBcylindrical\fR 4
.IX Item "cylindrical"
Cylindrical projection.
.Sp
Format specific options:
.RS 4
.IP \fBh_fov\fR 4
.IX Item "h_fov"
.PD 0
.IP \fBv_fov\fR 4
.IX Item "v_fov"
.IP \fBd_fov\fR 4
.IX Item "d_fov"
.PD
Set output horizontal/vertical/diagonal field of view. Values in degrees.
.Sp
If diagonal field of view is set it overrides horizontal and vertical field of view.
.IP \fBih_fov\fR 4
.IX Item "ih_fov"
.PD 0
.IP \fBiv_fov\fR 4
.IX Item "iv_fov"
.IP \fBid_fov\fR 4
.IX Item "id_fov"
.PD
Set input horizontal/vertical/diagonal field of view. Values in degrees.
.Sp
If diagonal field of view is set it overrides horizontal and vertical field of view.
.RE
.RS 4
.RE
.IP \fBperspective\fR 4
.IX Item "perspective"
Perspective projection. \fI(output only)\fR
.Sp
Format specific options:
.RS 4
.IP \fBv_fov\fR 4
.IX Item "v_fov"
Set perspective parameter.
.RE
.RS 4
.RE
.IP \fBtetrahedron\fR 4
.IX Item "tetrahedron"
Tetrahedron projection.
.IP \fBtsp\fR 4
.IX Item "tsp"
Truncated square pyramid projection.
.IP \fBhe\fR 4
.IX Item "he"
.PD 0
.IP \fBhequirect\fR 4
.IX Item "hequirect"
.PD
Half equirectangular projection.
.IP \fBequisolid\fR 4
.IX Item "equisolid"
Equisolid format.
.Sp
Format specific options:
.RS 4
.IP \fBh_fov\fR 4
.IX Item "h_fov"
.PD 0
.IP \fBv_fov\fR 4
.IX Item "v_fov"
.IP \fBd_fov\fR 4
.IX Item "d_fov"
.PD
Set output horizontal/vertical/diagonal field of view. Values in degrees.
.Sp
If diagonal field of view is set it overrides horizontal and vertical field of view.
.IP \fBih_fov\fR 4
.IX Item "ih_fov"
.PD 0
.IP \fBiv_fov\fR 4
.IX Item "iv_fov"
.IP \fBid_fov\fR 4
.IX Item "id_fov"
.PD
Set input horizontal/vertical/diagonal field of view. Values in degrees.
.Sp
If diagonal field of view is set it overrides horizontal and vertical field of view.
.RE
.RS 4
.RE
.IP \fBog\fR 4
.IX Item "og"
Orthographic format.
.Sp
Format specific options:
.RS 4
.IP \fBh_fov\fR 4
.IX Item "h_fov"
.PD 0
.IP \fBv_fov\fR 4
.IX Item "v_fov"
.IP \fBd_fov\fR 4
.IX Item "d_fov"
.PD
Set output horizontal/vertical/diagonal field of view. Values in degrees.
.Sp
If diagonal field of view is set it overrides horizontal and vertical field of view.
.IP \fBih_fov\fR 4
.IX Item "ih_fov"
.PD 0
.IP \fBiv_fov\fR 4
.IX Item "iv_fov"
.IP \fBid_fov\fR 4
.IX Item "id_fov"
.PD
Set input horizontal/vertical/diagonal field of view. Values in degrees.
.Sp
If diagonal field of view is set it overrides horizontal and vertical field of view.
.RE
.RS 4
.RE
.IP \fBoctahedron\fR 4
.IX Item "octahedron"
Octahedron projection.
.RE
.RS 4
.RE
.IP \fBinterp\fR 4
.IX Item "interp"
Set interpolation method.\fINote: more complex interpolation methods require much more memory to run.\fR
.Sp
Available methods:
.RS 4
.IP \fBnear\fR 4
.IX Item "near"
.PD 0
.IP \fBnearest\fR 4
.IX Item "nearest"
.PD
Nearest neighbour.
.IP \fBline\fR 4
.IX Item "line"
.PD 0
.IP \fBlinear\fR 4
.IX Item "linear"
.PD
Bilinear interpolation.
.IP \fBlagrange9\fR 4
.IX Item "lagrange9"
Lagrange9 interpolation.
.IP \fBcube\fR 4
.IX Item "cube"
.PD 0
.IP \fBcubic\fR 4
.IX Item "cubic"
.PD
Bicubic interpolation.
.IP \fBlanc\fR 4
.IX Item "lanc"
.PD 0
.IP \fBlanczos\fR 4
.IX Item "lanczos"
.PD
Lanczos interpolation.
.IP \fBsp16\fR 4
.IX Item "sp16"
.PD 0
.IP \fBspline16\fR 4
.IX Item "spline16"
.PD
Spline16 interpolation.
.IP \fBgauss\fR 4
.IX Item "gauss"
.PD 0
.IP \fBgaussian\fR 4
.IX Item "gaussian"
.PD
Gaussian interpolation.
.IP \fBmitchell\fR 4
.IX Item "mitchell"
Mitchell interpolation.
.RE
.RS 4
.Sp
Default value is \fR\f(CB@samp\fR\fB{line\fR}.
.RE
.IP \fBw\fR 4
.IX Item "w"
.PD 0
.IP \fBh\fR 4
.IX Item "h"
.PD
Set the output video resolution.
.Sp
Default resolution depends on formats.
.IP \fBin_stereo\fR 4
.IX Item "in_stereo"
.PD 0
.IP \fBout_stereo\fR 4
.IX Item "out_stereo"
.PD
Set the input/output stereo format.
.RS 4
.IP \fB2d\fR 4
.IX Item "2d"
2D mono
.IP \fBsbs\fR 4
.IX Item "sbs"
Side by side
.IP \fBtb\fR 4
.IX Item "tb"
Top bottom
.RE
.RS 4
.Sp
Default value is \fR\f(CB@samp\fR\fB{2d\fR} for input and output format.
.RE
.IP \fByaw\fR 4
.IX Item "yaw"
.PD 0
.IP \fBpitch\fR 4
.IX Item "pitch"
.IP \fBroll\fR 4
.IX Item "roll"
.PD
Set rotation for the output video. Values in degrees.
.IP \fBrorder\fR 4
.IX Item "rorder"
Set rotation order for the output video. Choose one item for each position.
.RS 4
.IP "\fBy, Y\fR" 4
.IX Item "y, Y"
yaw
.IP "\fBp, P\fR" 4
.IX Item "p, P"
pitch
.IP "\fBr, R\fR" 4
.IX Item "r, R"
roll
.RE
.RS 4
.Sp
Default value is \fR\f(CB@samp\fR\fB{ypr\fR}.
.RE
.IP \fBh_flip\fR 4
.IX Item "h_flip"
.PD 0
.IP \fBv_flip\fR 4
.IX Item "v_flip"
.IP \fBd_flip\fR 4
.IX Item "d_flip"
.PD
Flip the output video horizontally(swaps left\-right)/vertically(swaps up\-down)/in\-depth(swaps back-forward). Boolean values.
.IP \fBih_flip\fR 4
.IX Item "ih_flip"
.PD 0
.IP \fBiv_flip\fR 4
.IX Item "iv_flip"
.PD
Set if input video is flipped horizontally/vertically. Boolean values.
.IP \fBin_trans\fR 4
.IX Item "in_trans"
Set if input video is transposed. Boolean value, by default disabled.
.IP \fBout_trans\fR 4
.IX Item "out_trans"
Set if output video needs to be transposed. Boolean value, by default disabled.
.IP \fBalpha_mask\fR 4
.IX Item "alpha_mask"
Build mask in alpha plane for all unmapped pixels by marking them fully transparent. Boolean value, by default disabled.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Convert equirectangular video to cubemap with 3x2 layout and 1% padding using bicubic interpolation:
.Sp
.Vb 1
\&        ffmpeg \-i input.mkv \-vf v360=e:c3x2:cubic:out_pad=0.01 output.mkv
.Ve
.IP \(bu 4
Extract back view of Equi-Angular Cubemap:
.Sp
.Vb 1
\&        ffmpeg \-i input.mkv \-vf v360=eac:flat:yaw=180 output.mkv
.Ve
.IP \(bu 4
Convert transposed and horizontally flipped Equi-Angular Cubemap in side-by-side stereo format to equirectangular top-bottom stereo format:
.Sp
.Vb 1
\&        v360=eac:equirect:in_stereo=sbs:in_trans=1:ih_flip=1:out_stereo=tb
.Ve
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports subset of above options as \fBcommands\fR.
.SS vaguedenoiser
.IX Subsection "vaguedenoiser"
Apply a wavelet based denoiser.
.PP
It transforms each frame from the video input into the wavelet domain,
using Cohen-Daubechies-Feauveau 9/7. Then it applies some filtering to
the obtained coefficients. It does an inverse wavelet transform after.
Due to wavelet properties, it should give a nice smoothed result, and
reduced noise, without blurring picture features.
.PP
This filter accepts the following options:
.IP \fBthreshold\fR 4
.IX Item "threshold"
The filtering strength. The higher, the more filtered the video will be.
Hard thresholding can use a higher threshold than soft thresholding
before the video looks overfiltered. Default value is 2.
.IP \fBmethod\fR 4
.IX Item "method"
The filtering method the filter will use.
.Sp
It accepts the following values:
.RS 4
.IP \fBhard\fR 4
.IX Item "hard"
All values under the threshold will be zeroed.
.IP \fBsoft\fR 4
.IX Item "soft"
All values under the threshold will be zeroed. All values above will be
reduced by the threshold.
.IP \fBgarrote\fR 4
.IX Item "garrote"
Scales or nullifies coefficients \- intermediary between (more) soft and
(less) hard thresholding.
.RE
.RS 4
.Sp
Default is garrote.
.RE
.IP \fBnsteps\fR 4
.IX Item "nsteps"
Number of times, the wavelet will decompose the picture. Picture can't
be decomposed beyond a particular point (typically, 8 for a 640x480
frame \- as 2^9 = 512 > 480). Valid values are integers between 1 and 32. Default value is 6.
.IP \fBpercent\fR 4
.IX Item "percent"
Partial of full denoising (limited coefficients shrinking), from 0 to 100. Default value is 85.
.IP \fBplanes\fR 4
.IX Item "planes"
A list of the planes to process. By default all planes are processed.
.IP \fBtype\fR 4
.IX Item "type"
The threshold type the filter will use.
.Sp
It accepts the following values:
.RS 4
.IP \fBuniversal\fR 4
.IX Item "universal"
Threshold used is same for all decompositions.
.IP \fBbayes\fR 4
.IX Item "bayes"
Threshold used depends also on each decomposition coefficients.
.RE
.RS 4
.Sp
Default is universal.
.RE
.SS vectorscope
.IX Subsection "vectorscope"
Display 2 color component values in the two dimensional graph (which is called
a vectorscope).
.PP
This filter accepts the following options:
.IP "\fBmode, m\fR" 4
.IX Item "mode, m"
Set vectorscope mode.
.Sp
It accepts the following values:
.RS 4
.IP \fBgray\fR 4
.IX Item "gray"
.PD 0
.IP \fBtint\fR 4
.IX Item "tint"
.PD
Gray values are displayed on graph, higher brightness means more pixels have
same component color value on location in graph. This is the default mode.
.IP \fBcolor\fR 4
.IX Item "color"
Gray values are displayed on graph. Surrounding pixels values which are not
present in video frame are drawn in gradient of 2 color components which are
set by option \f(CW\*(C`x\*(C'\fR and \f(CW\*(C`y\*(C'\fR. The 3rd color component is static.
.IP \fBcolor2\fR 4
.IX Item "color2"
Actual color components values present in video frame are displayed on graph.
.IP \fBcolor3\fR 4
.IX Item "color3"
Similar as color2 but higher frequency of same values \f(CW\*(C`x\*(C'\fR and \f(CW\*(C`y\*(C'\fR
on graph increases value of another color component, which is luminance by
default values of \f(CW\*(C`x\*(C'\fR and \f(CW\*(C`y\*(C'\fR.
.IP \fBcolor4\fR 4
.IX Item "color4"
Actual colors present in video frame are displayed on graph. If two different
colors map to same position on graph then color with higher value of component
not present in graph is picked.
.IP \fBcolor5\fR 4
.IX Item "color5"
Gray values are displayed on graph. Similar to \f(CW\*(C`color\*(C'\fR but with 3rd color
component picked from radial gradient.
.RE
.RS 4
.RE
.IP \fBx\fR 4
.IX Item "x"
Set which color component will be represented on X\-axis. Default is \f(CW1\fR.
.IP \fBy\fR 4
.IX Item "y"
Set which color component will be represented on Y\-axis. Default is \f(CW2\fR.
.IP "\fBintensity, i\fR" 4
.IX Item "intensity, i"
Set intensity, used by modes: gray, color, color3 and color5 for increasing brightness
of color component which represents frequency of (X, Y) location in graph.
.IP "\fBenvelope, e\fR" 4
.IX Item "envelope, e"
.RS 4
.PD 0
.IP \fBnone\fR 4
.IX Item "none"
.PD
No envelope, this is default.
.IP \fBinstant\fR 4
.IX Item "instant"
Instant envelope, even darkest single pixel will be clearly highlighted.
.IP \fBpeak\fR 4
.IX Item "peak"
Hold maximum and minimum values presented in graph over time. This way you
can still spot out of range values without constantly looking at vectorscope.
.IP \fBpeak+instant\fR 4
.IX Item "peak+instant"
Peak and instant envelope combined together.
.RE
.RS 4
.RE
.IP "\fBgraticule, g\fR" 4
.IX Item "graticule, g"
Set what kind of graticule to draw.
.RS 4
.IP \fBnone\fR 4
.IX Item "none"
.PD 0
.IP \fBgreen\fR 4
.IX Item "green"
.IP \fBcolor\fR 4
.IX Item "color"
.IP \fBinvert\fR 4
.IX Item "invert"
.RE
.RS 4
.RE
.IP "\fBopacity, o\fR" 4
.IX Item "opacity, o"
.PD
Set graticule opacity.
.IP "\fBflags, f\fR" 4
.IX Item "flags, f"
Set graticule flags.
.RS 4
.IP \fBwhite\fR 4
.IX Item "white"
Draw graticule for white point.
.IP \fBblack\fR 4
.IX Item "black"
Draw graticule for black point.
.IP \fBname\fR 4
.IX Item "name"
Draw color points short names.
.RE
.RS 4
.RE
.IP "\fBbgopacity, b\fR" 4
.IX Item "bgopacity, b"
Set background opacity.
.IP "\fBlthreshold, l\fR" 4
.IX Item "lthreshold, l"
Set low threshold for color component not represented on X or Y axis.
Values lower than this value will be ignored. Default is 0.
Note this value is multiplied with actual max possible value one pixel component
can have. So for 8\-bit input and low threshold value of 0.1 actual threshold
is 0.1 * 255 = 25.
.IP "\fBhthreshold, h\fR" 4
.IX Item "hthreshold, h"
Set high threshold for color component not represented on X or Y axis.
Values higher than this value will be ignored. Default is 1.
Note this value is multiplied with actual max possible value one pixel component
can have. So for 8\-bit input and high threshold value of 0.9 actual threshold
is 0.9 * 255 = 230.
.IP "\fBcolorspace, c\fR" 4
.IX Item "colorspace, c"
Set what kind of colorspace to use when drawing graticule.
.RS 4
.IP \fBauto\fR 4
.IX Item "auto"
.PD 0
.IP \fB601\fR 4
.IX Item "601"
.IP \fB709\fR 4
.IX Item "709"
.RE
.RS 4
.PD
.Sp
Default is auto.
.RE
.IP "\fBtint0, t0\fR" 4
.IX Item "tint0, t0"
.PD 0
.IP "\fBtint1, t1\fR" 4
.IX Item "tint1, t1"
.PD
Set color tint for gray/tint vectorscope mode. By default both options are zero.
This means no tint, and output will remain gray.
.SS vidstabdetect
.IX Subsection "vidstabdetect"
Analyze video stabilization/deshaking. Perform pass 1 of 2, see
\&\fBvidstabtransform\fR for pass 2.
.PP
This filter generates a file with relative translation and rotation
transform information about subsequent frames, which is then used by
the \fBvidstabtransform\fR filter.
.PP
To enable compilation of this filter you need to configure FFmpeg with
\&\f(CW\*(C`\-\-enable\-libvidstab\*(C'\fR.
.PP
This filter accepts the following options:
.IP \fBresult\fR 4
.IX Item "result"
Set the path to the file used to write the transforms information.
Default value is \fItransforms.trf\fR.
.IP \fBshakiness\fR 4
.IX Item "shakiness"
Set how shaky the video is and how quick the camera is. It accepts an
integer in the range 1\-10, a value of 1 means little shakiness, a
value of 10 means strong shakiness. Default value is 5.
.IP \fBaccuracy\fR 4
.IX Item "accuracy"
Set the accuracy of the detection process. It must be a value in the
range 1\-15. A value of 1 means low accuracy, a value of 15 means high
accuracy. Default value is 15.
.IP \fBstepsize\fR 4
.IX Item "stepsize"
Set stepsize of the search process. The region around minimum is
scanned with 1 pixel resolution. Default value is 6.
.IP \fBmincontrast\fR 4
.IX Item "mincontrast"
Set minimum contrast. Below this value a local measurement field is
discarded. Must be a floating point value in the range 0\-1. Default
value is 0.3.
.IP \fBtripod\fR 4
.IX Item "tripod"
Set reference frame number for tripod mode.
.Sp
If enabled, the motion of the frames is compared to a reference frame
in the filtered stream, identified by the specified number. The idea
is to compensate all movements in a more-or-less static scene and keep
the camera view absolutely still.
.Sp
If set to 0, it is disabled. The frames are counted starting from 1.
.IP \fBshow\fR 4
.IX Item "show"
Show fields and transforms in the resulting frames. It accepts an
integer in the range 0\-2. Default value is 0, which disables any
visualization.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Use default values:
.Sp
.Vb 1
\&        vidstabdetect
.Ve
.IP \(bu 4
Analyze strongly shaky movie and put the results in file
\&\fImytransforms.trf\fR:
.Sp
.Vb 1
\&        vidstabdetect=shakiness=10:accuracy=15:result="mytransforms.trf"
.Ve
.IP \(bu 4
Visualize the result of internal transformations in the resulting
video:
.Sp
.Vb 1
\&        vidstabdetect=show=1
.Ve
.IP \(bu 4
Analyze a video with medium shakiness using \fBffmpeg\fR:
.Sp
.Vb 1
\&        ffmpeg \-i input \-vf vidstabdetect=shakiness=5:show=1 dummy.avi
.Ve
.SS vidstabtransform
.IX Subsection "vidstabtransform"
Video stabilization/deshaking: pass 2 of 2,
see \fBvidstabdetect\fR for pass 1.
.PP
Read a file with transform information for each frame and
apply/compensate them. Together with the \fBvidstabdetect\fR
filter this can be used to deshake videos. See also
<\fBhttp://public.hronopik.de/vid.stab\fR>. It is important to also use
the \fBunsharp\fR filter, see below.
.PP
To enable compilation of this filter you need to configure FFmpeg with
\&\f(CW\*(C`\-\-enable\-libvidstab\*(C'\fR.
.PP
\fIOptions\fR
.IX Subsection "Options"
.IP \fBinput\fR 4
.IX Item "input"
Set path to the file used to read the transforms. Default value is
\&\fItransforms.trf\fR.
.IP \fBsmoothing\fR 4
.IX Item "smoothing"
Set the number of frames (value*2 + 1) used for lowpass filtering the
camera movements. Default value is 10.
.Sp
For example a number of 10 means that 21 frames are used (10 in the
past and 10 in the future) to smoothen the motion in the video. A
larger value leads to a smoother video, but limits the acceleration of
the camera (pan/tilt movements). 0 is a special case where a static
camera is simulated.
.IP \fBoptalgo\fR 4
.IX Item "optalgo"
Set the camera path optimization algorithm.
.Sp
Accepted values are:
.RS 4
.IP \fBgauss\fR 4
.IX Item "gauss"
gaussian kernel low-pass filter on camera motion (default)
.IP \fBavg\fR 4
.IX Item "avg"
averaging on transformations
.RE
.RS 4
.RE
.IP \fBmaxshift\fR 4
.IX Item "maxshift"
Set maximal number of pixels to translate frames. Default value is \-1,
meaning no limit.
.IP \fBmaxangle\fR 4
.IX Item "maxangle"
Set maximal angle in radians (degree*PI/180) to rotate frames. Default
value is \-1, meaning no limit.
.IP \fBcrop\fR 4
.IX Item "crop"
Specify how to deal with borders that may be visible due to movement
compensation.
.Sp
Available values are:
.RS 4
.IP \fBkeep\fR 4
.IX Item "keep"
keep image information from previous frame (default)
.IP \fBblack\fR 4
.IX Item "black"
fill the border black
.RE
.RS 4
.RE
.IP \fBinvert\fR 4
.IX Item "invert"
Invert transforms if set to 1. Default value is 0.
.IP \fBrelative\fR 4
.IX Item "relative"
Consider transforms as relative to previous frame if set to 1,
absolute if set to 0. Default value is 0.
.IP \fBzoom\fR 4
.IX Item "zoom"
Set percentage to zoom. A positive value will result in a zoom-in
effect, a negative value in a zoom-out effect. Default value is 0 (no
zoom).
.IP \fBoptzoom\fR 4
.IX Item "optzoom"
Set optimal zooming to avoid borders.
.Sp
Accepted values are:
.RS 4
.IP \fB0\fR 4
.IX Item "0"
disabled
.IP \fB1\fR 4
.IX Item "1"
optimal static zoom value is determined (only very strong movements
will lead to visible borders) (default)
.IP \fB2\fR 4
.IX Item "2"
optimal adaptive zoom value is determined (no borders will be
visible), see \fBzoomspeed\fR
.RE
.RS 4
.Sp
Note that the value given at zoom is added to the one calculated here.
.RE
.IP \fBzoomspeed\fR 4
.IX Item "zoomspeed"
Set percent to zoom maximally each frame (enabled when
\&\fBoptzoom\fR is set to 2). Range is from 0 to 5, default value is
0.25.
.IP \fBinterpol\fR 4
.IX Item "interpol"
Specify type of interpolation.
.Sp
Available values are:
.RS 4
.IP \fBno\fR 4
.IX Item "no"
no interpolation
.IP \fBlinear\fR 4
.IX Item "linear"
linear only horizontal
.IP \fBbilinear\fR 4
.IX Item "bilinear"
linear in both directions (default)
.IP \fBbicubic\fR 4
.IX Item "bicubic"
cubic in both directions (slow)
.RE
.RS 4
.RE
.IP \fBtripod\fR 4
.IX Item "tripod"
Enable virtual tripod mode if set to 1, which is equivalent to
\&\f(CW\*(C`relative=0:smoothing=0\*(C'\fR. Default value is 0.
.Sp
Use also \f(CW\*(C`tripod\*(C'\fR option of \fBvidstabdetect\fR.
.IP \fBdebug\fR 4
.IX Item "debug"
Increase log verbosity if set to 1. Also the detected global motions
are written to the temporary file \fIglobal_motions.trf\fR. Default
value is 0.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Use \fBffmpeg\fR for a typical stabilization with default values:
.Sp
.Vb 1
\&        ffmpeg \-i inp.mpeg \-vf vidstabtransform,unsharp=5:5:0.8:3:3:0.4 inp_stabilized.mpeg
.Ve
.Sp
Note the use of the \fBunsharp\fR filter which is always recommended.
.IP \(bu 4
Zoom in a bit more and load transform data from a given file:
.Sp
.Vb 1
\&        vidstabtransform=zoom=5:input="mytransforms.trf"
.Ve
.IP \(bu 4
Smoothen the video even more:
.Sp
.Vb 1
\&        vidstabtransform=smoothing=30
.Ve
.SS vflip
.IX Subsection "vflip"
Flip the input video vertically.
.PP
For example, to vertically flip a video with \fBffmpeg\fR:
.PP
.Vb 1
\&        ffmpeg \-i in.avi \-vf "vflip" out.avi
.Ve
.SS vfrdet
.IX Subsection "vfrdet"
Detect variable frame rate video.
.PP
This filter tries to detect if the input is variable or constant frame rate.
.PP
At end it will output number of frames detected as having variable delta pts,
and ones with constant delta pts.
If there was frames with variable delta, than it will also show min, max and
average delta encountered.
.SS vibrance
.IX Subsection "vibrance"
Boost or alter saturation.
.PP
The filter accepts the following options:
.IP \fBintensity\fR 4
.IX Item "intensity"
Set strength of boost if positive value or strength of alter if negative value.
Default is 0. Allowed range is from \-2 to 2.
.IP \fBrbal\fR 4
.IX Item "rbal"
Set the red balance. Default is 1. Allowed range is from \-10 to 10.
.IP \fBgbal\fR 4
.IX Item "gbal"
Set the green balance. Default is 1. Allowed range is from \-10 to 10.
.IP \fBbbal\fR 4
.IX Item "bbal"
Set the blue balance. Default is 1. Allowed range is from \-10 to 10.
.IP \fBrlum\fR 4
.IX Item "rlum"
Set the red luma coefficient.
.IP \fBglum\fR 4
.IX Item "glum"
Set the green luma coefficient.
.IP \fBblum\fR 4
.IX Item "blum"
Set the blue luma coefficient.
.IP \fBalternate\fR 4
.IX Item "alternate"
If \f(CW\*(C`intensity\*(C'\fR is negative and this is set to 1, colors will change,
otherwise colors will be less saturated, more towards gray.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the all above options as \fBcommands\fR.
.SS vif
.IX Subsection "vif"
Obtain the average VIF (Visual Information Fidelity) between two input videos.
.PP
This filter takes two input videos.
.PP
Both input videos must have the same resolution and pixel format for
this filter to work correctly. Also it assumes that both inputs
have the same number of frames, which are compared one by one.
.PP
The obtained average VIF score is printed through the logging system.
.PP
The filter stores the calculated VIF score of each frame.
.PP
In the below example the input file \fImain.mpg\fR being processed is compared
with the reference file \fIref.mpg\fR.
.PP
.Vb 1
\&        ffmpeg \-i main.mpg \-i ref.mpg \-lavfi vif \-f null \-
.Ve
.SS vignette
.IX Subsection "vignette"
Make or reverse a natural vignetting effect.
.PP
The filter accepts the following options:
.IP "\fBangle, a\fR" 4
.IX Item "angle, a"
Set lens angle expression as a number of radians.
.Sp
The value is clipped in the \f(CW\*(C`[0,PI/2]\*(C'\fR range.
.Sp
Default value: \f(CW"PI/5"\fR
.IP \fBx0\fR 4
.IX Item "x0"
.PD 0
.IP \fBy0\fR 4
.IX Item "y0"
.PD
Set center coordinates expressions. Respectively \f(CW"w/2"\fR and \f(CW"h/2"\fR
by default.
.IP \fBmode\fR 4
.IX Item "mode"
Set forward/backward mode.
.Sp
Available modes are:
.RS 4
.IP \fBforward\fR 4
.IX Item "forward"
The larger the distance from the central point, the darker the image becomes.
.IP \fBbackward\fR 4
.IX Item "backward"
The larger the distance from the central point, the brighter the image becomes.
This can be used to reverse a vignette effect, though there is no automatic
detection to extract the lens \fBangle\fR and other settings (yet). It can
also be used to create a burning effect.
.RE
.RS 4
.Sp
Default value is \fBforward\fR.
.RE
.IP \fBeval\fR 4
.IX Item "eval"
Set evaluation mode for the expressions (\fBangle\fR, \fBx0\fR, \fBy0\fR).
.Sp
It accepts the following values:
.RS 4
.IP \fBinit\fR 4
.IX Item "init"
Evaluate expressions only once during the filter initialization.
.IP \fBframe\fR 4
.IX Item "frame"
Evaluate expressions for each incoming frame. This is way slower than the
\&\fBinit\fR mode since it requires all the scalers to be re-computed, but it
allows advanced dynamic expressions.
.RE
.RS 4
.Sp
Default value is \fBinit\fR.
.RE
.IP \fBdither\fR 4
.IX Item "dither"
Set dithering to reduce the circular banding effects. Default is \f(CW1\fR
(enabled).
.IP \fBaspect\fR 4
.IX Item "aspect"
Set vignette aspect. This setting allows one to adjust the shape of the vignette.
Setting this value to the SAR of the input will make a rectangular vignetting
following the dimensions of the video.
.Sp
Default is \f(CW\*(C`1/1\*(C'\fR.
.PP
\fIExpressions\fR
.IX Subsection "Expressions"
.PP
The \fBalpha\fR, \fBx0\fR and \fBy0\fR expressions can contain the
following parameters.
.IP \fBw\fR 4
.IX Item "w"
.PD 0
.IP \fBh\fR 4
.IX Item "h"
.PD
input width and height
.IP \fBn\fR 4
.IX Item "n"
the number of input frame, starting from 0
.IP \fBpts\fR 4
.IX Item "pts"
the PTS (Presentation TimeStamp) time of the filtered video frame, expressed in
\&\fITB\fR units, NAN if undefined
.IP \fBr\fR 4
.IX Item "r"
frame rate of the input video, NAN if the input frame rate is unknown
.IP \fBt\fR 4
.IX Item "t"
the PTS (Presentation TimeStamp) of the filtered video frame,
expressed in seconds, NAN if undefined
.IP \fBtb\fR 4
.IX Item "tb"
time base of the input video
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Apply simple strong vignetting effect:
.Sp
.Vb 1
\&        vignette=PI/4
.Ve
.IP \(bu 4
Make a flickering vignetting:
.Sp
.Vb 1
\&        vignette=\*(AqPI/4+random(1)*PI/50\*(Aq:eval=frame
.Ve
.SS vmafmotion
.IX Subsection "vmafmotion"
Obtain the average VMAF motion score of a video.
It is one of the component metrics of VMAF.
.PP
The obtained average motion score is printed through the logging system.
.PP
The filter accepts the following options:
.IP \fBstats_file\fR 4
.IX Item "stats_file"
If specified, the filter will use the named file to save the motion score of
each frame with respect to the previous frame.
When filename equals "\-" the data is sent to standard output.
.PP
Example:
.PP
.Vb 1
\&        ffmpeg \-i ref.mpg \-vf vmafmotion \-f null \-
.Ve
.SS vstack
.IX Subsection "vstack"
Stack input videos vertically.
.PP
All streams must be of same pixel format and of same width.
.PP
Note that this filter is faster than using \fBoverlay\fR and \fBpad\fR filter
to create same output.
.PP
The filter accepts the following options:
.IP \fBinputs\fR 4
.IX Item "inputs"
Set number of input streams. Default is 2.
.IP \fBshortest\fR 4
.IX Item "shortest"
If set to 1, force the output to terminate when the shortest input
terminates. Default value is 0.
.SS w3fdif
.IX Subsection "w3fdif"
Deinterlace the input video ("w3fdif" stands for "Weston 3 Field
Deinterlacing Filter").
.PP
Based on the process described by Martin Weston for BBC R&D, and
implemented based on the de-interlace algorithm written by Jim
Easterbrook for BBC R&D, the Weston 3 field deinterlacing filter
uses filter coefficients calculated by BBC R&D.
.PP
This filter uses field-dominance information in frame to decide which
of each pair of fields to place first in the output.
If it gets it wrong use \fBsetfield\fR filter before \f(CW\*(C`w3fdif\*(C'\fR filter.
.PP
There are two sets of filter coefficients, so called "simple"
and "complex". Which set of filter coefficients is used can
be set by passing an optional parameter:
.IP \fBfilter\fR 4
.IX Item "filter"
Set the interlacing filter coefficients. Accepts one of the following values:
.RS 4
.IP \fBsimple\fR 4
.IX Item "simple"
Simple filter coefficient set.
.IP \fBcomplex\fR 4
.IX Item "complex"
More-complex filter coefficient set.
.RE
.RS 4
.Sp
Default value is \fBcomplex\fR.
.RE
.IP \fBmode\fR 4
.IX Item "mode"
The interlacing mode to adopt. It accepts one of the following values:
.RS 4
.IP \fBframe\fR 4
.IX Item "frame"
Output one frame for each frame.
.IP \fBfield\fR 4
.IX Item "field"
Output one frame for each field.
.RE
.RS 4
.Sp
The default value is \f(CW\*(C`field\*(C'\fR.
.RE
.IP \fBparity\fR 4
.IX Item "parity"
The picture field parity assumed for the input interlaced video. It accepts one
of the following values:
.RS 4
.IP \fBtff\fR 4
.IX Item "tff"
Assume the top field is first.
.IP \fBbff\fR 4
.IX Item "bff"
Assume the bottom field is first.
.IP \fBauto\fR 4
.IX Item "auto"
Enable automatic detection of field parity.
.RE
.RS 4
.Sp
The default value is \f(CW\*(C`auto\*(C'\fR.
If the interlacing is unknown or the decoder does not export this information,
top field first will be assumed.
.RE
.IP \fBdeint\fR 4
.IX Item "deint"
Specify which frames to deinterlace. Accepts one of the following values:
.RS 4
.IP \fBall\fR 4
.IX Item "all"
Deinterlace all frames,
.IP \fBinterlaced\fR 4
.IX Item "interlaced"
Only deinterlace frames marked as interlaced.
.RE
.RS 4
.Sp
Default value is \fBall\fR.
.RE
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports same \fBcommands\fR as options.
.SS waveform
.IX Subsection "waveform"
Video waveform monitor.
.PP
The waveform monitor plots color component intensity. By default luminance
only. Each column of the waveform corresponds to a column of pixels in the
source video.
.PP
It accepts the following options:
.IP "\fBmode, m\fR" 4
.IX Item "mode, m"
Can be either \f(CW\*(C`row\*(C'\fR, or \f(CW\*(C`column\*(C'\fR. Default is \f(CW\*(C`column\*(C'\fR.
In row mode, the graph on the left side represents color component value 0 and
the right side represents value = 255. In column mode, the top side represents
color component value = 0 and bottom side represents value = 255.
.IP "\fBintensity, i\fR" 4
.IX Item "intensity, i"
Set intensity. Smaller values are useful to find out how many values of the same
luminance are distributed across input rows/columns.
Default value is \f(CW0.04\fR. Allowed range is [0, 1].
.IP "\fBmirror, r\fR" 4
.IX Item "mirror, r"
Set mirroring mode. \f(CW0\fR means unmirrored, \f(CW1\fR means mirrored.
In mirrored mode, higher values will be represented on the left
side for \f(CW\*(C`row\*(C'\fR mode and at the top for \f(CW\*(C`column\*(C'\fR mode. Default is
\&\f(CW1\fR (mirrored).
.IP "\fBdisplay, d\fR" 4
.IX Item "display, d"
Set display mode.
It accepts the following values:
.RS 4
.IP \fBoverlay\fR 4
.IX Item "overlay"
Presents information identical to that in the \f(CW\*(C`parade\*(C'\fR, except
that the graphs representing color components are superimposed directly
over one another.
.Sp
This display mode makes it easier to spot relative differences or similarities
in overlapping areas of the color components that are supposed to be identical,
such as neutral whites, grays, or blacks.
.IP \fBstack\fR 4
.IX Item "stack"
Display separate graph for the color components side by side in
\&\f(CW\*(C`row\*(C'\fR mode or one below the other in \f(CW\*(C`column\*(C'\fR mode.
.IP \fBparade\fR 4
.IX Item "parade"
Display separate graph for the color components side by side in
\&\f(CW\*(C`column\*(C'\fR mode or one below the other in \f(CW\*(C`row\*(C'\fR mode.
.Sp
Using this display mode makes it easy to spot color casts in the highlights
and shadows of an image, by comparing the contours of the top and the bottom
graphs of each waveform. Since whites, grays, and blacks are characterized
by exactly equal amounts of red, green, and blue, neutral areas of the picture
should display three waveforms of roughly equal width/height. If not, the
correction is easy to perform by making level adjustments the three waveforms.
.RE
.RS 4
.Sp
Default is \f(CW\*(C`stack\*(C'\fR.
.RE
.IP "\fBcomponents, c\fR" 4
.IX Item "components, c"
Set which color components to display. Default is 1, which means only luminance
or red color component if input is in RGB colorspace. If is set for example to
7 it will display all 3 (if) available color components.
.IP "\fBenvelope, e\fR" 4
.IX Item "envelope, e"
.RS 4
.PD 0
.IP \fBnone\fR 4
.IX Item "none"
.PD
No envelope, this is default.
.IP \fBinstant\fR 4
.IX Item "instant"
Instant envelope, minimum and maximum values presented in graph will be easily
visible even with small \f(CW\*(C`step\*(C'\fR value.
.IP \fBpeak\fR 4
.IX Item "peak"
Hold minimum and maximum values presented in graph across time. This way you
can still spot out of range values without constantly looking at waveforms.
.IP \fBpeak+instant\fR 4
.IX Item "peak+instant"
Peak and instant envelope combined together.
.RE
.RS 4
.RE
.IP "\fBfilter, f\fR" 4
.IX Item "filter, f"
.RS 4
.PD 0
.IP \fBlowpass\fR 4
.IX Item "lowpass"
.PD
No filtering, this is default.
.IP \fBflat\fR 4
.IX Item "flat"
Luma and chroma combined together.
.IP \fBaflat\fR 4
.IX Item "aflat"
Similar as above, but shows difference between blue and red chroma.
.IP \fBxflat\fR 4
.IX Item "xflat"
Similar as above, but use different colors.
.IP \fByflat\fR 4
.IX Item "yflat"
Similar as above, but again with different colors.
.IP \fBchroma\fR 4
.IX Item "chroma"
Displays only chroma.
.IP \fBcolor\fR 4
.IX Item "color"
Displays actual color value on waveform.
.IP \fBacolor\fR 4
.IX Item "acolor"
Similar as above, but with luma showing frequency of chroma values.
.RE
.RS 4
.RE
.IP "\fBgraticule, g\fR" 4
.IX Item "graticule, g"
Set which graticule to display.
.RS 4
.IP \fBnone\fR 4
.IX Item "none"
Do not display graticule.
.IP \fBgreen\fR 4
.IX Item "green"
Display green graticule showing legal broadcast ranges.
.IP \fBorange\fR 4
.IX Item "orange"
Display orange graticule showing legal broadcast ranges.
.IP \fBinvert\fR 4
.IX Item "invert"
Display invert graticule showing legal broadcast ranges.
.RE
.RS 4
.RE
.IP "\fBopacity, o\fR" 4
.IX Item "opacity, o"
Set graticule opacity.
.IP "\fBflags, fl\fR" 4
.IX Item "flags, fl"
Set graticule flags.
.RS 4
.IP \fBnumbers\fR 4
.IX Item "numbers"
Draw numbers above lines. By default enabled.
.IP \fBdots\fR 4
.IX Item "dots"
Draw dots instead of lines.
.RE
.RS 4
.RE
.IP "\fBscale, s\fR" 4
.IX Item "scale, s"
Set scale used for displaying graticule.
.RS 4
.IP \fBdigital\fR 4
.IX Item "digital"
.PD 0
.IP \fBmillivolts\fR 4
.IX Item "millivolts"
.IP \fBire\fR 4
.IX Item "ire"
.RE
.RS 4
.PD
.Sp
Default is digital.
.RE
.IP "\fBbgopacity, b\fR" 4
.IX Item "bgopacity, b"
Set background opacity.
.IP "\fBtint0, t0\fR" 4
.IX Item "tint0, t0"
.PD 0
.IP "\fBtint1, t1\fR" 4
.IX Item "tint1, t1"
.PD
Set tint for output.
Only used with lowpass filter and when display is not overlay and input
pixel formats are not RGB.
.SS "weave, doubleweave"
.IX Subsection "weave, doubleweave"
The \f(CW\*(C`weave\*(C'\fR takes a field-based video input and join
each two sequential fields into single frame, producing a new double
height clip with half the frame rate and half the frame count.
.PP
The \f(CW\*(C`doubleweave\*(C'\fR works same as \f(CW\*(C`weave\*(C'\fR but without
halving frame rate and frame count.
.PP
It accepts the following option:
.IP \fBfirst_field\fR 4
.IX Item "first_field"
Set first field. Available values are:
.RS 4
.IP "\fBtop, t\fR" 4
.IX Item "top, t"
Set the frame as top-field-first.
.IP "\fBbottom, b\fR" 4
.IX Item "bottom, b"
Set the frame as bottom-field-first.
.RE
.RS 4
.RE
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Interlace video using \fBselect\fR and \fBseparatefields\fR filter:
.Sp
.Vb 1
\&        separatefields,select=eq(mod(n,4),0)+eq(mod(n,4),3),weave
.Ve
.SS xbr
.IX Subsection "xbr"
Apply the xBR high-quality magnification filter which is designed for pixel
art. It follows a set of edge-detection rules, see
<\fBhttps://forums.libretro.com/t/xbr\-algorithm\-tutorial/123\fR>.
.PP
It accepts the following option:
.IP \fBn\fR 4
.IX Item "n"
Set the scaling dimension: \f(CW2\fR for \f(CW\*(C`2xBR\*(C'\fR, \f(CW3\fR for
\&\f(CW\*(C`3xBR\*(C'\fR and \f(CW4\fR for \f(CW\*(C`4xBR\*(C'\fR.
Default is \f(CW3\fR.
.SS xfade
.IX Subsection "xfade"
Apply cross fade from one input video stream to another input video stream.
The cross fade is applied for specified duration.
.PP
The filter accepts the following options:
.IP \fBtransition\fR 4
.IX Item "transition"
Set one of available transition effects:
.RS 4
.IP \fBcustom\fR 4
.IX Item "custom"
.PD 0
.IP \fBfade\fR 4
.IX Item "fade"
.IP \fBwipeleft\fR 4
.IX Item "wipeleft"
.IP \fBwiperight\fR 4
.IX Item "wiperight"
.IP \fBwipeup\fR 4
.IX Item "wipeup"
.IP \fBwipedown\fR 4
.IX Item "wipedown"
.IP \fBslideleft\fR 4
.IX Item "slideleft"
.IP \fBslideright\fR 4
.IX Item "slideright"
.IP \fBslideup\fR 4
.IX Item "slideup"
.IP \fBslidedown\fR 4
.IX Item "slidedown"
.IP \fBcirclecrop\fR 4
.IX Item "circlecrop"
.IP \fBrectcrop\fR 4
.IX Item "rectcrop"
.IP \fBdistance\fR 4
.IX Item "distance"
.IP \fBfadeblack\fR 4
.IX Item "fadeblack"
.IP \fBfadewhite\fR 4
.IX Item "fadewhite"
.IP \fBradial\fR 4
.IX Item "radial"
.IP \fBsmoothleft\fR 4
.IX Item "smoothleft"
.IP \fBsmoothright\fR 4
.IX Item "smoothright"
.IP \fBsmoothup\fR 4
.IX Item "smoothup"
.IP \fBsmoothdown\fR 4
.IX Item "smoothdown"
.IP \fBcircleopen\fR 4
.IX Item "circleopen"
.IP \fBcircleclose\fR 4
.IX Item "circleclose"
.IP \fBvertopen\fR 4
.IX Item "vertopen"
.IP \fBvertclose\fR 4
.IX Item "vertclose"
.IP \fBhorzopen\fR 4
.IX Item "horzopen"
.IP \fBhorzclose\fR 4
.IX Item "horzclose"
.IP \fBdissolve\fR 4
.IX Item "dissolve"
.IP \fBpixelize\fR 4
.IX Item "pixelize"
.IP \fBdiagtl\fR 4
.IX Item "diagtl"
.IP \fBdiagtr\fR 4
.IX Item "diagtr"
.IP \fBdiagbl\fR 4
.IX Item "diagbl"
.IP \fBdiagbr\fR 4
.IX Item "diagbr"
.IP \fBhlslice\fR 4
.IX Item "hlslice"
.IP \fBhrslice\fR 4
.IX Item "hrslice"
.IP \fBvuslice\fR 4
.IX Item "vuslice"
.IP \fBvdslice\fR 4
.IX Item "vdslice"
.IP \fBhblur\fR 4
.IX Item "hblur"
.IP \fBfadegrays\fR 4
.IX Item "fadegrays"
.IP \fBwipetl\fR 4
.IX Item "wipetl"
.IP \fBwipetr\fR 4
.IX Item "wipetr"
.IP \fBwipebl\fR 4
.IX Item "wipebl"
.IP \fBwipebr\fR 4
.IX Item "wipebr"
.IP \fBsqueezeh\fR 4
.IX Item "squeezeh"
.IP \fBsqueezev\fR 4
.IX Item "squeezev"
.RE
.RS 4
.PD
.Sp
Default transition effect is fade.
.RE
.IP \fBduration\fR 4
.IX Item "duration"
Set cross fade duration in seconds.
Default duration is 1 second.
.IP \fBoffset\fR 4
.IX Item "offset"
Set cross fade start relative to first input stream in seconds.
Default offset is 0.
.IP \fBexpr\fR 4
.IX Item "expr"
Set expression for custom transition effect.
.Sp
The expressions can use the following variables and functions:
.RS 4
.IP \fBX\fR 4
.IX Item "X"
.PD 0
.IP \fBY\fR 4
.IX Item "Y"
.PD
The coordinates of the current sample.
.IP \fBW\fR 4
.IX Item "W"
.PD 0
.IP \fBH\fR 4
.IX Item "H"
.PD
The width and height of the image.
.IP \fBP\fR 4
.IX Item "P"
Progress of transition effect.
.IP \fBPLANE\fR 4
.IX Item "PLANE"
Currently processed plane.
.IP \fBA\fR 4
.IX Item "A"
Return value of first input at current location and plane.
.IP \fBB\fR 4
.IX Item "B"
Return value of second input at current location and plane.
.IP "\fBa0(x, y)\fR" 4
.IX Item "a0(x, y)"
.PD 0
.IP "\fBa1(x, y)\fR" 4
.IX Item "a1(x, y)"
.IP "\fBa2(x, y)\fR" 4
.IX Item "a2(x, y)"
.IP "\fBa3(x, y)\fR" 4
.IX Item "a3(x, y)"
.PD
Return the value of the pixel at location (\fIx\fR,\fIy\fR) of the
first/second/third/fourth component of first input.
.IP "\fBb0(x, y)\fR" 4
.IX Item "b0(x, y)"
.PD 0
.IP "\fBb1(x, y)\fR" 4
.IX Item "b1(x, y)"
.IP "\fBb2(x, y)\fR" 4
.IX Item "b2(x, y)"
.IP "\fBb3(x, y)\fR" 4
.IX Item "b3(x, y)"
.PD
Return the value of the pixel at location (\fIx\fR,\fIy\fR) of the
first/second/third/fourth component of second input.
.RE
.RS 4
.RE
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Cross fade from one input video to another input video, with fade transition and duration of transition
of 2 seconds starting at offset of 5 seconds:
.Sp
.Vb 1
\&        ffmpeg \-i first.mp4 \-i second.mp4 \-filter_complex xfade=transition=fade:duration=2:offset=5 output.mp4
.Ve
.SS xmedian
.IX Subsection "xmedian"
Pick median pixels from several input videos.
.PP
The filter accepts the following options:
.IP \fBinputs\fR 4
.IX Item "inputs"
Set number of inputs.
Default is 3. Allowed range is from 3 to 255.
If number of inputs is even number, than result will be mean value between two median values.
.IP \fBplanes\fR 4
.IX Item "planes"
Set which planes to filter. Default value is \f(CW15\fR, by which all planes are processed.
.IP \fBpercentile\fR 4
.IX Item "percentile"
Set median percentile. Default value is \f(CW0.5\fR.
Default value of \f(CW0.5\fR will pick always median values, while \f(CW0\fR will pick
minimum values, and \f(CW1\fR maximum values.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports all above options as \fBcommands\fR, excluding option \f(CW\*(C`inputs\*(C'\fR.
.SS xstack
.IX Subsection "xstack"
Stack video inputs into custom layout.
.PP
All streams must be of same pixel format.
.PP
The filter accepts the following options:
.IP \fBinputs\fR 4
.IX Item "inputs"
Set number of input streams. Default is 2.
.IP \fBlayout\fR 4
.IX Item "layout"
Specify layout of inputs.
This option requires the desired layout configuration to be explicitly set by the user.
This sets position of each video input in output. Each input
is separated by '|'.
The first number represents the column, and the second number represents the row.
Numbers start at 0 and are separated by '_'. Optionally one can use wX and hX,
where X is video input from which to take width or height.
Multiple values can be used when separated by '+'. In such
case values are summed together.
.Sp
Note that if inputs are of different sizes gaps may appear, as not all of
the output video frame will be filled. Similarly, videos can overlap each
other if their position doesn't leave enough space for the full frame of
adjoining videos.
.Sp
For 2 inputs, a default layout of \f(CW\*(C`0_0|w0_0\*(C'\fR is set. In all other cases,
a layout must be set by the user.
.IP \fBshortest\fR 4
.IX Item "shortest"
If set to 1, force the output to terminate when the shortest input
terminates. Default value is 0.
.IP \fBfill\fR 4
.IX Item "fill"
If set to valid color, all unused pixels will be filled with that color.
By default fill is set to none, so it is disabled.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Display 4 inputs into 2x2 grid.
.Sp
Layout:
.Sp
.Vb 2
\&        input1(0, 0)  | input3(w0, 0)
\&        input2(0, h0) | input4(w0, h0)
\&
\&
\&        
\&        xstack=inputs=4:layout=0_0|0_h0|w0_0|w0_h0
.Ve
.Sp
Note that if inputs are of different sizes, gaps or overlaps may occur.
.IP \(bu 4
Display 4 inputs into 1x4 grid.
.Sp
Layout:
.Sp
.Vb 4
\&        input1(0, 0)
\&        input2(0, h0)
\&        input3(0, h0+h1)
\&        input4(0, h0+h1+h2)
\&
\&
\&        
\&        xstack=inputs=4:layout=0_0|0_h0|0_h0+h1|0_h0+h1+h2
.Ve
.Sp
Note that if inputs are of different widths, unused space will appear.
.IP \(bu 4
Display 9 inputs into 3x3 grid.
.Sp
Layout:
.Sp
.Vb 3
\&        input1(0, 0)       | input4(w0, 0)      | input7(w0+w3, 0)
\&        input2(0, h0)      | input5(w0, h0)     | input8(w0+w3, h0)
\&        input3(0, h0+h1)   | input6(w0, h0+h1)  | input9(w0+w3, h0+h1)
\&
\&
\&        
\&        xstack=inputs=9:layout=0_0|0_h0|0_h0+h1|w0_0|w0_h0|w0_h0+h1|w0+w3_0|w0+w3_h0|w0+w3_h0+h1
.Ve
.Sp
Note that if inputs are of different sizes, gaps or overlaps may occur.
.IP \(bu 4
Display 16 inputs into 4x4 grid.
.Sp
Layout:
.Sp
.Vb 4
\&        input1(0, 0)       | input5(w0, 0)       | input9 (w0+w4, 0)       | input13(w0+w4+w8, 0)
\&        input2(0, h0)      | input6(w0, h0)      | input10(w0+w4, h0)      | input14(w0+w4+w8, h0)
\&        input3(0, h0+h1)   | input7(w0, h0+h1)   | input11(w0+w4, h0+h1)   | input15(w0+w4+w8, h0+h1)
\&        input4(0, h0+h1+h2)| input8(w0, h0+h1+h2)| input12(w0+w4, h0+h1+h2)| input16(w0+w4+w8, h0+h1+h2)
\&
\&
\&        
\&        xstack=inputs=16:layout=0_0|0_h0|0_h0+h1|0_h0+h1+h2|w0_0|w0_h0|w0_h0+h1|w0_h0+h1+h2|w0+w4_0|
\&        w0+w4_h0|w0+w4_h0+h1|w0+w4_h0+h1+h2|w0+w4+w8_0|w0+w4+w8_h0|w0+w4+w8_h0+h1|w0+w4+w8_h0+h1+h2
.Ve
.Sp
Note that if inputs are of different sizes, gaps or overlaps may occur.
.SS yadif
.IX Subsection "yadif"
Deinterlace the input video ("yadif" means "yet another deinterlacing
filter").
.PP
It accepts the following parameters:
.IP \fBmode\fR 4
.IX Item "mode"
The interlacing mode to adopt. It accepts one of the following values:
.RS 4
.IP "\fB0, send_frame\fR" 4
.IX Item "0, send_frame"
Output one frame for each frame.
.IP "\fB1, send_field\fR" 4
.IX Item "1, send_field"
Output one frame for each field.
.IP "\fB2, send_frame_nospatial\fR" 4
.IX Item "2, send_frame_nospatial"
Like \f(CW\*(C`send_frame\*(C'\fR, but it skips the spatial interlacing check.
.IP "\fB3, send_field_nospatial\fR" 4
.IX Item "3, send_field_nospatial"
Like \f(CW\*(C`send_field\*(C'\fR, but it skips the spatial interlacing check.
.RE
.RS 4
.Sp
The default value is \f(CW\*(C`send_frame\*(C'\fR.
.RE
.IP \fBparity\fR 4
.IX Item "parity"
The picture field parity assumed for the input interlaced video. It accepts one
of the following values:
.RS 4
.IP "\fB0, tff\fR" 4
.IX Item "0, tff"
Assume the top field is first.
.IP "\fB1, bff\fR" 4
.IX Item "1, bff"
Assume the bottom field is first.
.IP "\fB\-1, auto\fR" 4
.IX Item "-1, auto"
Enable automatic detection of field parity.
.RE
.RS 4
.Sp
The default value is \f(CW\*(C`auto\*(C'\fR.
If the interlacing is unknown or the decoder does not export this information,
top field first will be assumed.
.RE
.IP \fBdeint\fR 4
.IX Item "deint"
Specify which frames to deinterlace. Accepts one of the following
values:
.RS 4
.IP "\fB0, all\fR" 4
.IX Item "0, all"
Deinterlace all frames.
.IP "\fB1, interlaced\fR" 4
.IX Item "1, interlaced"
Only deinterlace frames marked as interlaced.
.RE
.RS 4
.Sp
The default value is \f(CW\*(C`all\*(C'\fR.
.RE
.SS yadif_cuda
.IX Subsection "yadif_cuda"
Deinterlace the input video using the \fByadif\fR algorithm, but implemented
in CUDA so that it can work as part of a GPU accelerated pipeline with nvdec
and/or nvenc.
.PP
It accepts the following parameters:
.IP \fBmode\fR 4
.IX Item "mode"
The interlacing mode to adopt. It accepts one of the following values:
.RS 4
.IP "\fB0, send_frame\fR" 4
.IX Item "0, send_frame"
Output one frame for each frame.
.IP "\fB1, send_field\fR" 4
.IX Item "1, send_field"
Output one frame for each field.
.IP "\fB2, send_frame_nospatial\fR" 4
.IX Item "2, send_frame_nospatial"
Like \f(CW\*(C`send_frame\*(C'\fR, but it skips the spatial interlacing check.
.IP "\fB3, send_field_nospatial\fR" 4
.IX Item "3, send_field_nospatial"
Like \f(CW\*(C`send_field\*(C'\fR, but it skips the spatial interlacing check.
.RE
.RS 4
.Sp
The default value is \f(CW\*(C`send_frame\*(C'\fR.
.RE
.IP \fBparity\fR 4
.IX Item "parity"
The picture field parity assumed for the input interlaced video. It accepts one
of the following values:
.RS 4
.IP "\fB0, tff\fR" 4
.IX Item "0, tff"
Assume the top field is first.
.IP "\fB1, bff\fR" 4
.IX Item "1, bff"
Assume the bottom field is first.
.IP "\fB\-1, auto\fR" 4
.IX Item "-1, auto"
Enable automatic detection of field parity.
.RE
.RS 4
.Sp
The default value is \f(CW\*(C`auto\*(C'\fR.
If the interlacing is unknown or the decoder does not export this information,
top field first will be assumed.
.RE
.IP \fBdeint\fR 4
.IX Item "deint"
Specify which frames to deinterlace. Accepts one of the following
values:
.RS 4
.IP "\fB0, all\fR" 4
.IX Item "0, all"
Deinterlace all frames.
.IP "\fB1, interlaced\fR" 4
.IX Item "1, interlaced"
Only deinterlace frames marked as interlaced.
.RE
.RS 4
.Sp
The default value is \f(CW\*(C`all\*(C'\fR.
.RE
.SS yaepblur
.IX Subsection "yaepblur"
Apply blur filter while preserving edges ("yaepblur" means "yet another edge preserving blur filter").
The algorithm is described in
"J. S. Lee, Digital image enhancement and noise filtering by use of local statistics, IEEE Trans. Pattern Anal. Mach. Intell. PAMI\-2, 1980."
.PP
It accepts the following parameters:
.IP "\fBradius, r\fR" 4
.IX Item "radius, r"
Set the window radius. Default value is 3.
.IP "\fBplanes, p\fR" 4
.IX Item "planes, p"
Set which planes to filter. Default is only the first plane.
.IP "\fBsigma, s\fR" 4
.IX Item "sigma, s"
Set blur strength. Default value is 128.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports same \fBcommands\fR as options.
.SS zoompan
.IX Subsection "zoompan"
Apply Zoom & Pan effect.
.PP
This filter accepts the following options:
.IP "\fBzoom, z\fR" 4
.IX Item "zoom, z"
Set the zoom expression. Range is 1\-10. Default is 1.
.IP \fBx\fR 4
.IX Item "x"
.PD 0
.IP \fBy\fR 4
.IX Item "y"
.PD
Set the x and y expression. Default is 0.
.IP \fBd\fR 4
.IX Item "d"
Set the duration expression in number of frames.
This sets for how many number of frames effect will last for
single input image. Default is 90.
.IP \fBs\fR 4
.IX Item "s"
Set the output image size, default is 'hd720'.
.IP \fBfps\fR 4
.IX Item "fps"
Set the output frame rate, default is '25'.
.PP
Each expression can contain the following constants:
.IP "\fBin_w, iw\fR" 4
.IX Item "in_w, iw"
Input width.
.IP "\fBin_h, ih\fR" 4
.IX Item "in_h, ih"
Input height.
.IP "\fBout_w, ow\fR" 4
.IX Item "out_w, ow"
Output width.
.IP "\fBout_h, oh\fR" 4
.IX Item "out_h, oh"
Output height.
.IP \fBin\fR 4
.IX Item "in"
Input frame count.
.IP \fBon\fR 4
.IX Item "on"
Output frame count.
.IP "\fBin_time, it\fR" 4
.IX Item "in_time, it"
The input timestamp expressed in seconds. It's NAN if the input timestamp is unknown.
.IP "\fBout_time, time, ot\fR" 4
.IX Item "out_time, time, ot"
The output timestamp expressed in seconds.
.IP \fBx\fR 4
.IX Item "x"
.PD 0
.IP \fBy\fR 4
.IX Item "y"
.PD
Last calculated 'x' and 'y' position from 'x' and 'y' expression
for current input frame.
.IP \fBpx\fR 4
.IX Item "px"
.PD 0
.IP \fBpy\fR 4
.IX Item "py"
.PD
\&'x' and 'y' of last output frame of previous input frame or 0 when there was
not yet such frame (first input frame).
.IP \fBzoom\fR 4
.IX Item "zoom"
Last calculated zoom from 'z' expression for current input frame.
.IP \fBpzoom\fR 4
.IX Item "pzoom"
Last calculated zoom of last output frame of previous input frame.
.IP \fBduration\fR 4
.IX Item "duration"
Number of output frames for current input frame. Calculated from 'd' expression
for each input frame.
.IP \fBpduration\fR 4
.IX Item "pduration"
number of output frames created for previous input frame
.IP \fBa\fR 4
.IX Item "a"
Rational number: input width / input height
.IP \fBsar\fR 4
.IX Item "sar"
sample aspect ratio
.IP \fBdar\fR 4
.IX Item "dar"
display aspect ratio
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Zoom in up to 1.5x and pan at same time to some spot near center of picture:
.Sp
.Vb 1
\&        zoompan=z=\*(Aqmin(zoom+0.0015,1.5)\*(Aq:d=700:x=\*(Aqif(gte(zoom,1.5),x,x+1/a)\*(Aq:y=\*(Aqif(gte(zoom,1.5),y,y+1)\*(Aq:s=640x360
.Ve
.IP \(bu 4
Zoom in up to 1.5x and pan always at center of picture:
.Sp
.Vb 1
\&        zoompan=z=\*(Aqmin(zoom+0.0015,1.5)\*(Aq:d=700:x=\*(Aqiw/2\-(iw/zoom/2)\*(Aq:y=\*(Aqih/2\-(ih/zoom/2)\*(Aq
.Ve
.IP \(bu 4
Same as above but without pausing:
.Sp
.Vb 1
\&        zoompan=z=\*(Aqmin(max(zoom,pzoom)+0.0015,1.5)\*(Aq:d=1:x=\*(Aqiw/2\-(iw/zoom/2)\*(Aq:y=\*(Aqih/2\-(ih/zoom/2)\*(Aq
.Ve
.IP \(bu 4
Zoom in 2x into center of picture only for the first second of the input video:
.Sp
.Vb 1
\&        zoompan=z=\*(Aqif(between(in_time,0,1),2,1)\*(Aq:d=1:x=\*(Aqiw/2\-(iw/zoom/2)\*(Aq:y=\*(Aqih/2\-(ih/zoom/2)\*(Aq
.Ve
.SS zscale
.IX Subsection "zscale"
Scale (resize) the input video, using the z.lib library:
<\fBhttps://github.com/sekrit\-twc/zimg\fR>. To enable compilation of this
filter, you need to configure FFmpeg with \f(CW\*(C`\-\-enable\-libzimg\*(C'\fR.
.PP
The zscale filter forces the output display aspect ratio to be the same
as the input, by changing the output sample aspect ratio.
.PP
If the input image format is different from the format requested by
the next filter, the zscale filter will convert the input to the
requested format.
.PP
\fIOptions\fR
.IX Subsection "Options"
.PP
The filter accepts the following options.
.IP "\fBwidth, w\fR" 4
.IX Item "width, w"
.PD 0
.IP "\fBheight, h\fR" 4
.IX Item "height, h"
.PD
Set the output video dimension expression. Default value is the input
dimension.
.Sp
If the \fIwidth\fR or \fIw\fR value is 0, the input width is used for
the output. If the \fIheight\fR or \fIh\fR value is 0, the input height
is used for the output.
.Sp
If one and only one of the values is \-n with n >= 1, the zscale filter
will use a value that maintains the aspect ratio of the input image,
calculated from the other specified dimension. After that it will,
however, make sure that the calculated dimension is divisible by n and
adjust the value if necessary.
.Sp
If both values are \-n with n >= 1, the behavior will be identical to
both values being set to 0 as previously detailed.
.Sp
See below for the list of accepted constants for use in the dimension
expression.
.IP "\fBsize, s\fR" 4
.IX Item "size, s"
Set the video size. For the syntax of this option, check the
\&\fB"Video size" section in the ffmpeg-utils manual\fR.
.IP "\fBdither, d\fR" 4
.IX Item "dither, d"
Set the dither type.
.Sp
Possible values are:
.RS 4
.IP \fInone\fR 4
.IX Item "none"
.PD 0
.IP \fIordered\fR 4
.IX Item "ordered"
.IP \fIrandom\fR 4
.IX Item "random"
.IP \fIerror_diffusion\fR 4
.IX Item "error_diffusion"
.RE
.RS 4
.PD
.Sp
Default is none.
.RE
.IP "\fBfilter, f\fR" 4
.IX Item "filter, f"
Set the resize filter type.
.Sp
Possible values are:
.RS 4
.IP \fIpoint\fR 4
.IX Item "point"
.PD 0
.IP \fIbilinear\fR 4
.IX Item "bilinear"
.IP \fIbicubic\fR 4
.IX Item "bicubic"
.IP \fIspline16\fR 4
.IX Item "spline16"
.IP \fIspline36\fR 4
.IX Item "spline36"
.IP \fIlanczos\fR 4
.IX Item "lanczos"
.RE
.RS 4
.PD
.Sp
Default is bilinear.
.RE
.IP "\fBrange, r\fR" 4
.IX Item "range, r"
Set the color range.
.Sp
Possible values are:
.RS 4
.IP \fIinput\fR 4
.IX Item "input"
.PD 0
.IP \fIlimited\fR 4
.IX Item "limited"
.IP \fIfull\fR 4
.IX Item "full"
.RE
.RS 4
.PD
.Sp
Default is same as input.
.RE
.IP "\fBprimaries, p\fR" 4
.IX Item "primaries, p"
Set the color primaries.
.Sp
Possible values are:
.RS 4
.IP \fIinput\fR 4
.IX Item "input"
.PD 0
.IP \fI709\fR 4
.IX Item "709"
.IP \fIunspecified\fR 4
.IX Item "unspecified"
.IP \fI170m\fR 4
.IX Item "170m"
.IP \fI240m\fR 4
.IX Item "240m"
.IP \fI2020\fR 4
.IX Item "2020"
.RE
.RS 4
.PD
.Sp
Default is same as input.
.RE
.IP "\fBtransfer, t\fR" 4
.IX Item "transfer, t"
Set the transfer characteristics.
.Sp
Possible values are:
.RS 4
.IP \fIinput\fR 4
.IX Item "input"
.PD 0
.IP \fI709\fR 4
.IX Item "709"
.IP \fIunspecified\fR 4
.IX Item "unspecified"
.IP \fI601\fR 4
.IX Item "601"
.IP \fIlinear\fR 4
.IX Item "linear"
.IP \fI2020_10\fR 4
.IX Item "2020_10"
.IP \fI2020_12\fR 4
.IX Item "2020_12"
.IP \fIsmpte2084\fR 4
.IX Item "smpte2084"
.IP \fIiec61966\-2\-1\fR 4
.IX Item "iec61966-2-1"
.IP \fIarib\-std\-b67\fR 4
.IX Item "arib-std-b67"
.RE
.RS 4
.PD
.Sp
Default is same as input.
.RE
.IP "\fBmatrix, m\fR" 4
.IX Item "matrix, m"
Set the colorspace matrix.
.Sp
Possible value are:
.RS 4
.IP \fIinput\fR 4
.IX Item "input"
.PD 0
.IP \fI709\fR 4
.IX Item "709"
.IP \fIunspecified\fR 4
.IX Item "unspecified"
.IP \fI470bg\fR 4
.IX Item "470bg"
.IP \fI170m\fR 4
.IX Item "170m"
.IP \fI2020_ncl\fR 4
.IX Item "2020_ncl"
.IP \fI2020_cl\fR 4
.IX Item "2020_cl"
.RE
.RS 4
.PD
.Sp
Default is same as input.
.RE
.IP "\fBrangein, rin\fR" 4
.IX Item "rangein, rin"
Set the input color range.
.Sp
Possible values are:
.RS 4
.IP \fIinput\fR 4
.IX Item "input"
.PD 0
.IP \fIlimited\fR 4
.IX Item "limited"
.IP \fIfull\fR 4
.IX Item "full"
.RE
.RS 4
.PD
.Sp
Default is same as input.
.RE
.IP "\fBprimariesin, pin\fR" 4
.IX Item "primariesin, pin"
Set the input color primaries.
.Sp
Possible values are:
.RS 4
.IP \fIinput\fR 4
.IX Item "input"
.PD 0
.IP \fI709\fR 4
.IX Item "709"
.IP \fIunspecified\fR 4
.IX Item "unspecified"
.IP \fI170m\fR 4
.IX Item "170m"
.IP \fI240m\fR 4
.IX Item "240m"
.IP \fI2020\fR 4
.IX Item "2020"
.RE
.RS 4
.PD
.Sp
Default is same as input.
.RE
.IP "\fBtransferin, tin\fR" 4
.IX Item "transferin, tin"
Set the input transfer characteristics.
.Sp
Possible values are:
.RS 4
.IP \fIinput\fR 4
.IX Item "input"
.PD 0
.IP \fI709\fR 4
.IX Item "709"
.IP \fIunspecified\fR 4
.IX Item "unspecified"
.IP \fI601\fR 4
.IX Item "601"
.IP \fIlinear\fR 4
.IX Item "linear"
.IP \fI2020_10\fR 4
.IX Item "2020_10"
.IP \fI2020_12\fR 4
.IX Item "2020_12"
.RE
.RS 4
.PD
.Sp
Default is same as input.
.RE
.IP "\fBmatrixin, min\fR" 4
.IX Item "matrixin, min"
Set the input colorspace matrix.
.Sp
Possible value are:
.RS 4
.IP \fIinput\fR 4
.IX Item "input"
.PD 0
.IP \fI709\fR 4
.IX Item "709"
.IP \fIunspecified\fR 4
.IX Item "unspecified"
.IP \fI470bg\fR 4
.IX Item "470bg"
.IP \fI170m\fR 4
.IX Item "170m"
.IP \fI2020_ncl\fR 4
.IX Item "2020_ncl"
.IP \fI2020_cl\fR 4
.IX Item "2020_cl"
.RE
.RS 4
.RE
.IP "\fBchromal, c\fR" 4
.IX Item "chromal, c"
.PD
Set the output chroma location.
.Sp
Possible values are:
.RS 4
.IP \fIinput\fR 4
.IX Item "input"
.PD 0
.IP \fIleft\fR 4
.IX Item "left"
.IP \fIcenter\fR 4
.IX Item "center"
.IP \fItopleft\fR 4
.IX Item "topleft"
.IP \fItop\fR 4
.IX Item "top"
.IP \fIbottomleft\fR 4
.IX Item "bottomleft"
.IP \fIbottom\fR 4
.IX Item "bottom"
.RE
.RS 4
.RE
.IP "\fBchromalin, cin\fR" 4
.IX Item "chromalin, cin"
.PD
Set the input chroma location.
.Sp
Possible values are:
.RS 4
.IP \fIinput\fR 4
.IX Item "input"
.PD 0
.IP \fIleft\fR 4
.IX Item "left"
.IP \fIcenter\fR 4
.IX Item "center"
.IP \fItopleft\fR 4
.IX Item "topleft"
.IP \fItop\fR 4
.IX Item "top"
.IP \fIbottomleft\fR 4
.IX Item "bottomleft"
.IP \fIbottom\fR 4
.IX Item "bottom"
.RE
.RS 4
.RE
.IP \fBnpl\fR 4
.IX Item "npl"
.PD
Set the nominal peak luminance.
.IP \fBparam_a\fR 4
.IX Item "param_a"
Parameter A for scaling filters. Parameter "b" for bicubic, and the number of
filter taps for lanczos.
.IP \fBparam_b\fR 4
.IX Item "param_b"
Parameter B for scaling filters. Parameter "c" for bicubic.
.PP
The values of the \fBw\fR and \fBh\fR options are expressions
containing the following constants:
.IP \fIin_w\fR 4
.IX Item "in_w"
.PD 0
.IP \fIin_h\fR 4
.IX Item "in_h"
.PD
The input width and height
.IP \fIiw\fR 4
.IX Item "iw"
.PD 0
.IP \fIih\fR 4
.IX Item "ih"
.PD
These are the same as \fIin_w\fR and \fIin_h\fR.
.IP \fIout_w\fR 4
.IX Item "out_w"
.PD 0
.IP \fIout_h\fR 4
.IX Item "out_h"
.PD
The output (scaled) width and height
.IP \fIow\fR 4
.IX Item "ow"
.PD 0
.IP \fIoh\fR 4
.IX Item "oh"
.PD
These are the same as \fIout_w\fR and \fIout_h\fR
.IP \fIa\fR 4
.IX Item "a"
The same as \fIiw\fR / \fIih\fR
.IP \fIsar\fR 4
.IX Item "sar"
input sample aspect ratio
.IP \fIdar\fR 4
.IX Item "dar"
The input display aspect ratio. Calculated from \f(CW\*(C`(iw / ih) * sar\*(C'\fR.
.IP \fIhsub\fR 4
.IX Item "hsub"
.PD 0
.IP \fIvsub\fR 4
.IX Item "vsub"
.PD
horizontal and vertical input chroma subsample values. For example for the
pixel format "yuv422p" \fIhsub\fR is 2 and \fIvsub\fR is 1.
.IP \fIohsub\fR 4
.IX Item "ohsub"
.PD 0
.IP \fIovsub\fR 4
.IX Item "ovsub"
.PD
horizontal and vertical output chroma subsample values. For example for the
pixel format "yuv422p" \fIhsub\fR is 2 and \fIvsub\fR is 1.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the following commands:
.IP "\fBwidth, w\fR" 4
.IX Item "width, w"
.PD 0
.IP "\fBheight, h\fR" 4
.IX Item "height, h"
.PD
Set the output video dimension expression.
The command accepts the same syntax of the corresponding option.
.Sp
If the specified expression is not valid, it is kept at its current
value.
.SH "OPENCL VIDEO FILTERS"
.IX Header "OPENCL VIDEO FILTERS"
Below is a description of the currently available OpenCL video filters.
.PP
To enable compilation of these filters you need to configure FFmpeg with
\&\f(CW\*(C`\-\-enable\-opencl\*(C'\fR.
.PP
Running OpenCL filters requires you to initialize a hardware device and to pass that device to all filters in any filter graph.
.IP "\fB\-init_hw_device opencl[=\fR\fIname\fR\fB][:\fR\fIdevice\fR\fB[,\fR\fIkey=value\fR\fB...]]\fR" 4
.IX Item "-init_hw_device opencl[=name][:device[,key=value...]]"
Initialise a new hardware device of type \fIopencl\fR called \fIname\fR, using the
given device parameters.
.IP "\fB\-filter_hw_device\fR \fIname\fR" 4
.IX Item "-filter_hw_device name"
Pass the hardware device called \fIname\fR to all filters in any filter graph.
.PP
For more detailed information see <\fBhttps://www.ffmpeg.org/ffmpeg.html#Advanced\-Video\-options\fR>
.IP \(bu 4
Example of choosing the first device on the second platform and running avgblur_opencl filter with default parameters on it.
.Sp
.Vb 1
\&        \-init_hw_device opencl=gpu:1.0 \-filter_hw_device gpu \-i INPUT \-vf "hwupload, avgblur_opencl, hwdownload" OUTPUT
.Ve
.PP
Since OpenCL filters are not able to access frame data in normal memory, all frame data needs to be uploaded(\fBhwupload\fR) to hardware surfaces connected to the appropriate device before being used and then downloaded(\fBhwdownload\fR) back to normal memory. Note that \fBhwupload\fR will upload to a surface with the same layout as the software frame, so it may be necessary to add a \fBformat\fR filter immediately before to get the input into the right format and \fBhwdownload\fR does not support all formats on the output \- it may be necessary to insert an additional \fBformat\fR filter immediately following in the graph to get the output in a supported format.
.SS avgblur_opencl
.IX Subsection "avgblur_opencl"
Apply average blur filter.
.PP
The filter accepts the following options:
.IP \fBsizeX\fR 4
.IX Item "sizeX"
Set horizontal radius size.
Range is \f(CW\*(C`[1, 1024]\*(C'\fR and default value is \f(CW1\fR.
.IP \fBplanes\fR 4
.IX Item "planes"
Set which planes to filter. Default value is \f(CW0xf\fR, by which all planes are processed.
.IP \fBsizeY\fR 4
.IX Item "sizeY"
Set vertical radius size. Range is \f(CW\*(C`[1, 1024]\*(C'\fR and default value is \f(CW0\fR. If zero, \f(CW\*(C`sizeX\*(C'\fR value will be used.
.PP
\fIExample\fR
.IX Subsection "Example"
.IP \(bu 4
Apply average blur filter with horizontal and vertical size of 3, setting each pixel of the output to the average value of the 7x7 region centered on it in the input. For pixels on the edges of the image, the region does not extend beyond the image boundaries, and so out-of-range coordinates are not used in the calculations.
.Sp
.Vb 1
\&        \-i INPUT \-vf "hwupload, avgblur_opencl=3, hwdownload" OUTPUT
.Ve
.SS boxblur_opencl
.IX Subsection "boxblur_opencl"
Apply a boxblur algorithm to the input video.
.PP
It accepts the following parameters:
.IP "\fBluma_radius, lr\fR" 4
.IX Item "luma_radius, lr"
.PD 0
.IP "\fBluma_power, lp\fR" 4
.IX Item "luma_power, lp"
.IP "\fBchroma_radius, cr\fR" 4
.IX Item "chroma_radius, cr"
.IP "\fBchroma_power, cp\fR" 4
.IX Item "chroma_power, cp"
.IP "\fBalpha_radius, ar\fR" 4
.IX Item "alpha_radius, ar"
.IP "\fBalpha_power, ap\fR" 4
.IX Item "alpha_power, ap"
.PD
.PP
A description of the accepted options follows.
.IP "\fBluma_radius, lr\fR" 4
.IX Item "luma_radius, lr"
.PD 0
.IP "\fBchroma_radius, cr\fR" 4
.IX Item "chroma_radius, cr"
.IP "\fBalpha_radius, ar\fR" 4
.IX Item "alpha_radius, ar"
.PD
Set an expression for the box radius in pixels used for blurring the
corresponding input plane.
.Sp
The radius value must be a non-negative number, and must not be
greater than the value of the expression \f(CW\*(C`min(w,h)/2\*(C'\fR for the
luma and alpha planes, and of \f(CW\*(C`min(cw,ch)/2\*(C'\fR for the chroma
planes.
.Sp
Default value for \fBluma_radius\fR is "2". If not specified,
\&\fBchroma_radius\fR and \fBalpha_radius\fR default to the
corresponding value set for \fBluma_radius\fR.
.Sp
The expressions can contain the following constants:
.RS 4
.IP \fBw\fR 4
.IX Item "w"
.PD 0
.IP \fBh\fR 4
.IX Item "h"
.PD
The input width and height in pixels.
.IP \fBcw\fR 4
.IX Item "cw"
.PD 0
.IP \fBch\fR 4
.IX Item "ch"
.PD
The input chroma image width and height in pixels.
.IP \fBhsub\fR 4
.IX Item "hsub"
.PD 0
.IP \fBvsub\fR 4
.IX Item "vsub"
.PD
The horizontal and vertical chroma subsample values. For example, for the
pixel format "yuv422p", \fIhsub\fR is 2 and \fIvsub\fR is 1.
.RE
.RS 4
.RE
.IP "\fBluma_power, lp\fR" 4
.IX Item "luma_power, lp"
.PD 0
.IP "\fBchroma_power, cp\fR" 4
.IX Item "chroma_power, cp"
.IP "\fBalpha_power, ap\fR" 4
.IX Item "alpha_power, ap"
.PD
Specify how many times the boxblur filter is applied to the
corresponding plane.
.Sp
Default value for \fBluma_power\fR is 2. If not specified,
\&\fBchroma_power\fR and \fBalpha_power\fR default to the
corresponding value set for \fBluma_power\fR.
.Sp
A value of 0 will disable the effect.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.PP
Apply boxblur filter, setting each pixel of the output to the average value of box-radiuses \fIluma_radius\fR, \fIchroma_radius\fR, \fIalpha_radius\fR for each plane respectively. The filter will apply \fIluma_power\fR, \fIchroma_power\fR, \fIalpha_power\fR times onto the corresponding plane. For pixels on the edges of the image, the radius does not extend beyond the image boundaries, and so out-of-range coordinates are not used in the calculations.
.IP \(bu 4
Apply a boxblur filter with the luma, chroma, and alpha radius
set to 2 and luma, chroma, and alpha power set to 3. The filter will run 3 times with box-radius set to 2 for every plane of the image.
.Sp
.Vb 2
\&        \-i INPUT \-vf "hwupload, boxblur_opencl=luma_radius=2:luma_power=3, hwdownload" OUTPUT
\&        \-i INPUT \-vf "hwupload, boxblur_opencl=2:3, hwdownload" OUTPUT
.Ve
.IP \(bu 4
Apply a boxblur filter with luma radius set to 2, luma_power to 1, chroma_radius to 4, chroma_power to 5, alpha_radius to 3 and alpha_power to 7.
.Sp
For the luma plane, a 2x2 box radius will be run once.
.Sp
For the chroma plane, a 4x4 box radius will be run 5 times.
.Sp
For the alpha plane, a 3x3 box radius will be run 7 times.
.Sp
.Vb 1
\&        \-i INPUT \-vf "hwupload, boxblur_opencl=2:1:4:5:3:7, hwdownload" OUTPUT
.Ve
.SS colorkey_opencl
.IX Subsection "colorkey_opencl"
RGB colorspace color keying.
.PP
The filter accepts the following options:
.IP \fBcolor\fR 4
.IX Item "color"
The color which will be replaced with transparency.
.IP \fBsimilarity\fR 4
.IX Item "similarity"
Similarity percentage with the key color.
.Sp
0.01 matches only the exact key color, while 1.0 matches everything.
.IP \fBblend\fR 4
.IX Item "blend"
Blend percentage.
.Sp
0.0 makes pixels either fully transparent, or not transparent at all.
.Sp
Higher values result in semi-transparent pixels, with a higher transparency
the more similar the pixels color is to the key color.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Make every semi-green pixel in the input transparent with some slight blending:
.Sp
.Vb 1
\&        \-i INPUT \-vf "hwupload, colorkey_opencl=green:0.3:0.1, hwdownload" OUTPUT
.Ve
.SS convolution_opencl
.IX Subsection "convolution_opencl"
Apply convolution of 3x3, 5x5, 7x7 matrix.
.PP
The filter accepts the following options:
.IP \fB0m\fR 4
.IX Item "0m"
.PD 0
.IP \fB1m\fR 4
.IX Item "1m"
.IP \fB2m\fR 4
.IX Item "2m"
.IP \fB3m\fR 4
.IX Item "3m"
.PD
Set matrix for each plane.
Matrix is sequence of 9, 25 or 49 signed numbers.
Default value for each plane is \f(CW\*(C`0 0 0 0 1 0 0 0 0\*(C'\fR.
.IP \fB0rdiv\fR 4
.IX Item "0rdiv"
.PD 0
.IP \fB1rdiv\fR 4
.IX Item "1rdiv"
.IP \fB2rdiv\fR 4
.IX Item "2rdiv"
.IP \fB3rdiv\fR 4
.IX Item "3rdiv"
.PD
Set multiplier for calculated value for each plane.
If unset or 0, it will be sum of all matrix elements.
The option value must be a float number greater or equal to \f(CW0.0\fR. Default value is \f(CW1.0\fR.
.IP \fB0bias\fR 4
.IX Item "0bias"
.PD 0
.IP \fB1bias\fR 4
.IX Item "1bias"
.IP \fB2bias\fR 4
.IX Item "2bias"
.IP \fB3bias\fR 4
.IX Item "3bias"
.PD
Set bias for each plane. This value is added to the result of the multiplication.
Useful for making the overall image brighter or darker.
The option value must be a float number greater or equal to \f(CW0.0\fR. Default value is \f(CW0.0\fR.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Apply sharpen:
.Sp
.Vb 1
\&        \-i INPUT \-vf "hwupload, convolution_opencl=0 \-1 0 \-1 5 \-1 0 \-1 0:0 \-1 0 \-1 5 \-1 0 \-1 0:0 \-1 0 \-1 5 \-1 0 \-1 0:0 \-1 0 \-1 5 \-1 0 \-1 0, hwdownload" OUTPUT
.Ve
.IP \(bu 4
Apply blur:
.Sp
.Vb 1
\&        \-i INPUT \-vf "hwupload, convolution_opencl=1 1 1 1 1 1 1 1 1:1 1 1 1 1 1 1 1 1:1 1 1 1 1 1 1 1 1:1 1 1 1 1 1 1 1 1:1/9:1/9:1/9:1/9, hwdownload" OUTPUT
.Ve
.IP \(bu 4
Apply edge enhance:
.Sp
.Vb 1
\&        \-i INPUT \-vf "hwupload, convolution_opencl=0 0 0 \-1 1 0 0 0 0:0 0 0 \-1 1 0 0 0 0:0 0 0 \-1 1 0 0 0 0:0 0 0 \-1 1 0 0 0 0:5:1:1:1:0:128:128:128, hwdownload" OUTPUT
.Ve
.IP \(bu 4
Apply edge detect:
.Sp
.Vb 1
\&        \-i INPUT \-vf "hwupload, convolution_opencl=0 1 0 1 \-4 1 0 1 0:0 1 0 1 \-4 1 0 1 0:0 1 0 1 \-4 1 0 1 0:0 1 0 1 \-4 1 0 1 0:5:5:5:1:0:128:128:128, hwdownload" OUTPUT
.Ve
.IP \(bu 4
Apply laplacian edge detector which includes diagonals:
.Sp
.Vb 1
\&        \-i INPUT \-vf "hwupload, convolution_opencl=1 1 1 1 \-8 1 1 1 1:1 1 1 1 \-8 1 1 1 1:1 1 1 1 \-8 1 1 1 1:1 1 1 1 \-8 1 1 1 1:5:5:5:1:0:128:128:0, hwdownload" OUTPUT
.Ve
.IP \(bu 4
Apply emboss:
.Sp
.Vb 1
\&        \-i INPUT \-vf "hwupload, convolution_opencl=\-2 \-1 0 \-1 1 1 0 1 2:\-2 \-1 0 \-1 1 1 0 1 2:\-2 \-1 0 \-1 1 1 0 1 2:\-2 \-1 0 \-1 1 1 0 1 2, hwdownload" OUTPUT
.Ve
.SS erosion_opencl
.IX Subsection "erosion_opencl"
Apply erosion effect to the video.
.PP
This filter replaces the pixel by the local(3x3) minimum.
.PP
It accepts the following options:
.IP \fBthreshold0\fR 4
.IX Item "threshold0"
.PD 0
.IP \fBthreshold1\fR 4
.IX Item "threshold1"
.IP \fBthreshold2\fR 4
.IX Item "threshold2"
.IP \fBthreshold3\fR 4
.IX Item "threshold3"
.PD
Limit the maximum change for each plane. Range is \f(CW\*(C`[0, 65535]\*(C'\fR and default value is \f(CW65535\fR.
If \f(CW0\fR, plane will remain unchanged.
.IP \fBcoordinates\fR 4
.IX Item "coordinates"
Flag which specifies the pixel to refer to.
Range is \f(CW\*(C`[0, 255]\*(C'\fR and default value is \f(CW255\fR, i.e. all eight pixels are used.
.Sp
Flags to local 3x3 coordinates region centered on \f(CW\*(C`x\*(C'\fR:
.Sp
.Vb 1
\&    1 2 3
\&
\&    4 x 5
\&
\&    6 7 8
.Ve
.PP
\fIExample\fR
.IX Subsection "Example"
.IP \(bu 4
Apply erosion filter with threshold0 set to 30, threshold1 set 40, threshold2 set to 50 and coordinates set to 231, setting each pixel of the output to the local minimum between pixels: 1, 2, 3, 6, 7, 8 of the 3x3 region centered on it in the input. If the difference between input pixel and local minimum is more then threshold of the corresponding plane, output pixel will be set to input pixel \- threshold of corresponding plane.
.Sp
.Vb 1
\&        \-i INPUT \-vf "hwupload, erosion_opencl=30:40:50:coordinates=231, hwdownload" OUTPUT
.Ve
.SS deshake_opencl
.IX Subsection "deshake_opencl"
Feature-point based video stabilization filter.
.PP
The filter accepts the following options:
.IP \fBtripod\fR 4
.IX Item "tripod"
Simulates a tripod by preventing any camera movement whatsoever from the original frame. Defaults to \f(CW0\fR.
.IP \fBdebug\fR 4
.IX Item "debug"
Whether or not additional debug info should be displayed, both in the processed output and in the console.
.Sp
Note that in order to see console debug output you will also need to pass \f(CW\*(C`\-v verbose\*(C'\fR to ffmpeg.
.Sp
Viewing point matches in the output video is only supported for RGB input.
.Sp
Defaults to \f(CW0\fR.
.IP \fBadaptive_crop\fR 4
.IX Item "adaptive_crop"
Whether or not to do a tiny bit of cropping at the borders to cut down on the amount of mirrored pixels.
.Sp
Defaults to \f(CW1\fR.
.IP \fBrefine_features\fR 4
.IX Item "refine_features"
Whether or not feature points should be refined at a sub-pixel level.
.Sp
This can be turned off for a slight performance gain at the cost of precision.
.Sp
Defaults to \f(CW1\fR.
.IP \fBsmooth_strength\fR 4
.IX Item "smooth_strength"
The strength of the smoothing applied to the camera path from \f(CW0.0\fR to \f(CW1.0\fR.
.Sp
\&\f(CW1.0\fR is the maximum smoothing strength while values less than that result in less smoothing.
.Sp
\&\f(CW0.0\fR causes the filter to adaptively choose a smoothing strength on a per-frame basis.
.Sp
Defaults to \f(CW0.0\fR.
.IP \fBsmooth_window_multiplier\fR 4
.IX Item "smooth_window_multiplier"
Controls the size of the smoothing window (the number of frames buffered to determine motion information from).
.Sp
The size of the smoothing window is determined by multiplying the framerate of the video by this number.
.Sp
Acceptable values range from \f(CW0.1\fR to \f(CW10.0\fR.
.Sp
Larger values increase the amount of motion data available for determining how to smooth the camera path,
potentially improving smoothness, but also increase latency and memory usage.
.Sp
Defaults to \f(CW2.0\fR.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Stabilize a video with a fixed, medium smoothing strength:
.Sp
.Vb 1
\&        \-i INPUT \-vf "hwupload, deshake_opencl=smooth_strength=0.5, hwdownload" OUTPUT
.Ve
.IP \(bu 4
Stabilize a video with debugging (both in console and in rendered video):
.Sp
.Vb 1
\&        \-i INPUT \-filter_complex "[0:v]format=rgba, hwupload, deshake_opencl=debug=1, hwdownload, format=rgba, format=yuv420p" \-v verbose OUTPUT
.Ve
.SS dilation_opencl
.IX Subsection "dilation_opencl"
Apply dilation effect to the video.
.PP
This filter replaces the pixel by the local(3x3) maximum.
.PP
It accepts the following options:
.IP \fBthreshold0\fR 4
.IX Item "threshold0"
.PD 0
.IP \fBthreshold1\fR 4
.IX Item "threshold1"
.IP \fBthreshold2\fR 4
.IX Item "threshold2"
.IP \fBthreshold3\fR 4
.IX Item "threshold3"
.PD
Limit the maximum change for each plane. Range is \f(CW\*(C`[0, 65535]\*(C'\fR and default value is \f(CW65535\fR.
If \f(CW0\fR, plane will remain unchanged.
.IP \fBcoordinates\fR 4
.IX Item "coordinates"
Flag which specifies the pixel to refer to.
Range is \f(CW\*(C`[0, 255]\*(C'\fR and default value is \f(CW255\fR, i.e. all eight pixels are used.
.Sp
Flags to local 3x3 coordinates region centered on \f(CW\*(C`x\*(C'\fR:
.Sp
.Vb 1
\&    1 2 3
\&
\&    4 x 5
\&
\&    6 7 8
.Ve
.PP
\fIExample\fR
.IX Subsection "Example"
.IP \(bu 4
Apply dilation filter with threshold0 set to 30, threshold1 set 40, threshold2 set to 50 and coordinates set to 231, setting each pixel of the output to the local maximum between pixels: 1, 2, 3, 6, 7, 8 of the 3x3 region centered on it in the input. If the difference between input pixel and local maximum is more then threshold of the corresponding plane, output pixel will be set to input pixel + threshold of corresponding plane.
.Sp
.Vb 1
\&        \-i INPUT \-vf "hwupload, dilation_opencl=30:40:50:coordinates=231, hwdownload" OUTPUT
.Ve
.SS nlmeans_opencl
.IX Subsection "nlmeans_opencl"
Non-local Means denoise filter through OpenCL, this filter accepts same options as \fBnlmeans\fR.
.SS overlay_opencl
.IX Subsection "overlay_opencl"
Overlay one video on top of another.
.PP
It takes two inputs and has one output. The first input is the "main" video on which the second input is overlaid.
This filter requires same memory layout for all the inputs. So, format conversion may be needed.
.PP
The filter accepts the following options:
.IP \fBx\fR 4
.IX Item "x"
Set the x coordinate of the overlaid video on the main video.
Default value is \f(CW0\fR.
.IP \fBy\fR 4
.IX Item "y"
Set the y coordinate of the overlaid video on the main video.
Default value is \f(CW0\fR.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Overlay an image LOGO at the top-left corner of the INPUT video. Both inputs are yuv420p format.
.Sp
.Vb 1
\&        \-i INPUT \-i LOGO \-filter_complex "[0:v]hwupload[a], [1:v]format=yuv420p, hwupload[b], [a][b]overlay_opencl, hwdownload" OUTPUT
.Ve
.IP \(bu 4
The inputs have same memory layout for color channels , the overlay has additional alpha plane, like INPUT is yuv420p, and the LOGO is yuva420p.
.Sp
.Vb 1
\&        \-i INPUT \-i LOGO \-filter_complex "[0:v]hwupload[a], [1:v]format=yuva420p, hwupload[b], [a][b]overlay_opencl, hwdownload" OUTPUT
.Ve
.SS pad_opencl
.IX Subsection "pad_opencl"
Add paddings to the input image, and place the original input at the
provided \fIx\fR, \fIy\fR coordinates.
.PP
It accepts the following options:
.IP "\fBwidth, w\fR" 4
.IX Item "width, w"
.PD 0
.IP "\fBheight, h\fR" 4
.IX Item "height, h"
.PD
Specify an expression for the size of the output image with the
paddings added. If the value for \fIwidth\fR or \fIheight\fR is 0, the
corresponding input size is used for the output.
.Sp
The \fIwidth\fR expression can reference the value set by the
\&\fIheight\fR expression, and vice versa.
.Sp
The default value of \fIwidth\fR and \fIheight\fR is 0.
.IP \fBx\fR 4
.IX Item "x"
.PD 0
.IP \fBy\fR 4
.IX Item "y"
.PD
Specify the offsets to place the input image at within the padded area,
with respect to the top/left border of the output image.
.Sp
The \fIx\fR expression can reference the value set by the \fIy\fR
expression, and vice versa.
.Sp
The default value of \fIx\fR and \fIy\fR is 0.
.Sp
If \fIx\fR or \fIy\fR evaluate to a negative number, they'll be changed
so the input image is centered on the padded area.
.IP \fBcolor\fR 4
.IX Item "color"
Specify the color of the padded area. For the syntax of this option,
check the \fB"Color" section in the ffmpeg-utils
manual\fR.
.IP \fBaspect\fR 4
.IX Item "aspect"
Pad to an aspect instead to a resolution.
.PP
The value for the \fIwidth\fR, \fIheight\fR, \fIx\fR, and \fIy\fR
options are expressions containing the following constants:
.IP \fBin_w\fR 4
.IX Item "in_w"
.PD 0
.IP \fBin_h\fR 4
.IX Item "in_h"
.PD
The input video width and height.
.IP \fBiw\fR 4
.IX Item "iw"
.PD 0
.IP \fBih\fR 4
.IX Item "ih"
.PD
These are the same as \fIin_w\fR and \fIin_h\fR.
.IP \fBout_w\fR 4
.IX Item "out_w"
.PD 0
.IP \fBout_h\fR 4
.IX Item "out_h"
.PD
The output width and height (the size of the padded area), as
specified by the \fIwidth\fR and \fIheight\fR expressions.
.IP \fBow\fR 4
.IX Item "ow"
.PD 0
.IP \fBoh\fR 4
.IX Item "oh"
.PD
These are the same as \fIout_w\fR and \fIout_h\fR.
.IP \fBx\fR 4
.IX Item "x"
.PD 0
.IP \fBy\fR 4
.IX Item "y"
.PD
The x and y offsets as specified by the \fIx\fR and \fIy\fR
expressions, or NAN if not yet specified.
.IP \fBa\fR 4
.IX Item "a"
same as \fIiw\fR / \fIih\fR
.IP \fBsar\fR 4
.IX Item "sar"
input sample aspect ratio
.IP \fBdar\fR 4
.IX Item "dar"
input display aspect ratio, it is the same as (\fIiw\fR / \fIih\fR) * \fIsar\fR
.SS prewitt_opencl
.IX Subsection "prewitt_opencl"
Apply the Prewitt operator (<\fBhttps://en.wikipedia.org/wiki/Prewitt_operator\fR>) to input video stream.
.PP
The filter accepts the following option:
.IP \fBplanes\fR 4
.IX Item "planes"
Set which planes to filter. Default value is \f(CW0xf\fR, by which all planes are processed.
.IP \fBscale\fR 4
.IX Item "scale"
Set value which will be multiplied with filtered result.
Range is \f(CW\*(C`[0.0, 65535]\*(C'\fR and default value is \f(CW1.0\fR.
.IP \fBdelta\fR 4
.IX Item "delta"
Set value which will be added to filtered result.
Range is \f(CW\*(C`[\-65535, 65535]\*(C'\fR and default value is \f(CW0.0\fR.
.PP
\fIExample\fR
.IX Subsection "Example"
.IP \(bu 4
Apply the Prewitt operator with scale set to 2 and delta set to 10.
.Sp
.Vb 1
\&        \-i INPUT \-vf "hwupload, prewitt_opencl=scale=2:delta=10, hwdownload" OUTPUT
.Ve
.SS program_opencl
.IX Subsection "program_opencl"
Filter video using an OpenCL program.
.IP \fBsource\fR 4
.IX Item "source"
OpenCL program source file.
.IP \fBkernel\fR 4
.IX Item "kernel"
Kernel name in program.
.IP \fBinputs\fR 4
.IX Item "inputs"
Number of inputs to the filter.  Defaults to 1.
.IP "\fBsize, s\fR" 4
.IX Item "size, s"
Size of output frames.  Defaults to the same as the first input.
.PP
The \f(CW\*(C`program_opencl\*(C'\fR filter also supports the \fBframesync\fR options.
.PP
The program source file must contain a kernel function with the given name,
which will be run once for each plane of the output.  Each run on a plane
gets enqueued as a separate 2D global NDRange with one work-item for each
pixel to be generated.  The global ID offset for each work-item is therefore
the coordinates of a pixel in the destination image.
.PP
The kernel function needs to take the following arguments:
.IP \(bu 4
Destination image, \fI_\|_write_only image2d_t\fR.
.Sp
This image will become the output; the kernel should write all of it.
.IP \(bu 4
Frame index, \fIunsigned int\fR.
.Sp
This is a counter starting from zero and increasing by one for each frame.
.IP \(bu 4
Source images, \fI_\|_read_only image2d_t\fR.
.Sp
These are the most recent images on each input.  The kernel may read from
them to generate the output, but they can't be written to.
.PP
Example programs:
.IP \(bu 4
Copy the input to the output (output must be the same size as the input).
.Sp
.Vb 5
\&        _\|_kernel void copy(_\|_write_only image2d_t destination,
\&                           unsigned int index,
\&                           _\|_read_only  image2d_t source)
\&        {
\&            const sampler_t sampler = CLK_NORMALIZED_COORDS_FALSE;
\&        
\&            int2 location = (int2)(get_global_id(0), get_global_id(1));
\&        
\&            float4 value = read_imagef(source, sampler, location);
\&        
\&            write_imagef(destination, location, value);
\&        }
.Ve
.IP \(bu 4
Apply a simple transformation, rotating the input by an amount increasing
with the index counter.  Pixel values are linearly interpolated by the
sampler, and the output need not have the same dimensions as the input.
.Sp
.Vb 6
\&        _\|_kernel void rotate_image(_\|_write_only image2d_t dst,
\&                                   unsigned int index,
\&                                   _\|_read_only  image2d_t src)
\&        {
\&            const sampler_t sampler = (CLK_NORMALIZED_COORDS_FALSE |
\&                                       CLK_FILTER_LINEAR);
\&        
\&            float angle = (float)index / 100.0f;
\&        
\&            float2 dst_dim = convert_float2(get_image_dim(dst));
\&            float2 src_dim = convert_float2(get_image_dim(src));
\&        
\&            float2 dst_cen = dst_dim / 2.0f;
\&            float2 src_cen = src_dim / 2.0f;
\&        
\&            int2   dst_loc = (int2)(get_global_id(0), get_global_id(1));
\&        
\&            float2 dst_pos = convert_float2(dst_loc) \- dst_cen;
\&            float2 src_pos = {
\&                cos(angle) * dst_pos.x \- sin(angle) * dst_pos.y,
\&                sin(angle) * dst_pos.x + cos(angle) * dst_pos.y
\&            };
\&            src_pos = src_pos * src_dim / dst_dim;
\&        
\&            float2 src_loc = src_pos + src_cen;
\&        
\&            if (src_loc.x < 0.0f      || src_loc.y < 0.0f ||
\&                src_loc.x > src_dim.x || src_loc.y > src_dim.y)
\&                write_imagef(dst, dst_loc, 0.5f);
\&            else
\&                write_imagef(dst, dst_loc, read_imagef(src, sampler, src_loc));
\&        }
.Ve
.IP \(bu 4
Blend two inputs together, with the amount of each input used varying
with the index counter.
.Sp
.Vb 7
\&        _\|_kernel void blend_images(_\|_write_only image2d_t dst,
\&                                   unsigned int index,
\&                                   _\|_read_only  image2d_t src1,
\&                                   _\|_read_only  image2d_t src2)
\&        {
\&            const sampler_t sampler = (CLK_NORMALIZED_COORDS_FALSE |
\&                                       CLK_FILTER_LINEAR);
\&        
\&            float blend = (cos((float)index / 50.0f) + 1.0f) / 2.0f;
\&        
\&            int2  dst_loc = (int2)(get_global_id(0), get_global_id(1));
\&            int2 src1_loc = dst_loc * get_image_dim(src1) / get_image_dim(dst);
\&            int2 src2_loc = dst_loc * get_image_dim(src2) / get_image_dim(dst);
\&        
\&            float4 val1 = read_imagef(src1, sampler, src1_loc);
\&            float4 val2 = read_imagef(src2, sampler, src2_loc);
\&        
\&            write_imagef(dst, dst_loc, val1 * blend + val2 * (1.0f \- blend));
\&        }
.Ve
.SS roberts_opencl
.IX Subsection "roberts_opencl"
Apply the Roberts cross operator (<\fBhttps://en.wikipedia.org/wiki/Roberts_cross\fR>) to input video stream.
.PP
The filter accepts the following option:
.IP \fBplanes\fR 4
.IX Item "planes"
Set which planes to filter. Default value is \f(CW0xf\fR, by which all planes are processed.
.IP \fBscale\fR 4
.IX Item "scale"
Set value which will be multiplied with filtered result.
Range is \f(CW\*(C`[0.0, 65535]\*(C'\fR and default value is \f(CW1.0\fR.
.IP \fBdelta\fR 4
.IX Item "delta"
Set value which will be added to filtered result.
Range is \f(CW\*(C`[\-65535, 65535]\*(C'\fR and default value is \f(CW0.0\fR.
.PP
\fIExample\fR
.IX Subsection "Example"
.IP \(bu 4
Apply the Roberts cross operator with scale set to 2 and delta set to 10
.Sp
.Vb 1
\&        \-i INPUT \-vf "hwupload, roberts_opencl=scale=2:delta=10, hwdownload" OUTPUT
.Ve
.SS sobel_opencl
.IX Subsection "sobel_opencl"
Apply the Sobel operator (<\fBhttps://en.wikipedia.org/wiki/Sobel_operator\fR>) to input video stream.
.PP
The filter accepts the following option:
.IP \fBplanes\fR 4
.IX Item "planes"
Set which planes to filter. Default value is \f(CW0xf\fR, by which all planes are processed.
.IP \fBscale\fR 4
.IX Item "scale"
Set value which will be multiplied with filtered result.
Range is \f(CW\*(C`[0.0, 65535]\*(C'\fR and default value is \f(CW1.0\fR.
.IP \fBdelta\fR 4
.IX Item "delta"
Set value which will be added to filtered result.
Range is \f(CW\*(C`[\-65535, 65535]\*(C'\fR and default value is \f(CW0.0\fR.
.PP
\fIExample\fR
.IX Subsection "Example"
.IP \(bu 4
Apply sobel operator with scale set to 2 and delta set to 10
.Sp
.Vb 1
\&        \-i INPUT \-vf "hwupload, sobel_opencl=scale=2:delta=10, hwdownload" OUTPUT
.Ve
.SS tonemap_opencl
.IX Subsection "tonemap_opencl"
Perform HDR(PQ/HLG) to SDR conversion with tone-mapping.
.PP
It accepts the following parameters:
.IP \fBtonemap\fR 4
.IX Item "tonemap"
Specify the tone-mapping operator to be used. Same as tonemap option in \fBtonemap\fR.
.IP \fBparam\fR 4
.IX Item "param"
Tune the tone mapping algorithm. same as param option in \fBtonemap\fR.
.IP \fBdesat\fR 4
.IX Item "desat"
Apply desaturation for highlights that exceed this level of brightness. The
higher the parameter, the more color information will be preserved. This
setting helps prevent unnaturally blown-out colors for super-highlights, by
(smoothly) turning into white instead. This makes images feel more natural,
at the cost of reducing information about out-of-range colors.
.Sp
The default value is 0.5, and the algorithm here is a little different from
the cpu version tonemap currently. A setting of 0.0 disables this option.
.IP \fBthreshold\fR 4
.IX Item "threshold"
The tonemapping algorithm parameters is fine-tuned per each scene. And a threshold
is used to detect whether the scene has changed or not. If the distance between
the current frame average brightness and the current running average exceeds
a threshold value, we would re-calculate scene average and peak brightness.
The default value is 0.2.
.IP \fBformat\fR 4
.IX Item "format"
Specify the output pixel format.
.Sp
Currently supported formats are:
.RS 4
.IP \fIp010\fR 4
.IX Item "p010"
.PD 0
.IP \fInv12\fR 4
.IX Item "nv12"
.RE
.RS 4
.RE
.IP "\fBrange, r\fR" 4
.IX Item "range, r"
.PD
Set the output color range.
.Sp
Possible values are:
.RS 4
.IP \fItv/mpeg\fR 4
.IX Item "tv/mpeg"
.PD 0
.IP \fIpc/jpeg\fR 4
.IX Item "pc/jpeg"
.RE
.RS 4
.PD
.Sp
Default is same as input.
.RE
.IP "\fBprimaries, p\fR" 4
.IX Item "primaries, p"
Set the output color primaries.
.Sp
Possible values are:
.RS 4
.IP \fIbt709\fR 4
.IX Item "bt709"
.PD 0
.IP \fIbt2020\fR 4
.IX Item "bt2020"
.RE
.RS 4
.PD
.Sp
Default is same as input.
.RE
.IP "\fBtransfer, t\fR" 4
.IX Item "transfer, t"
Set the output transfer characteristics.
.Sp
Possible values are:
.RS 4
.IP \fIbt709\fR 4
.IX Item "bt709"
.PD 0
.IP \fIbt2020\fR 4
.IX Item "bt2020"
.RE
.RS 4
.PD
.Sp
Default is bt709.
.RE
.IP "\fBmatrix, m\fR" 4
.IX Item "matrix, m"
Set the output colorspace matrix.
.Sp
Possible value are:
.RS 4
.IP \fIbt709\fR 4
.IX Item "bt709"
.PD 0
.IP \fIbt2020\fR 4
.IX Item "bt2020"
.RE
.RS 4
.PD
.Sp
Default is same as input.
.RE
.PP
\fIExample\fR
.IX Subsection "Example"
.IP \(bu 4
Convert HDR(PQ/HLG) video to bt2020\-transfer\-characteristic p010 format using linear operator.
.Sp
.Vb 1
\&        \-i INPUT \-vf "format=p010,hwupload,tonemap_opencl=t=bt2020:tonemap=linear:format=p010,hwdownload,format=p010" OUTPUT
.Ve
.SS unsharp_opencl
.IX Subsection "unsharp_opencl"
Sharpen or blur the input video.
.PP
It accepts the following parameters:
.IP "\fBluma_msize_x, lx\fR" 4
.IX Item "luma_msize_x, lx"
Set the luma matrix horizontal size.
Range is \f(CW\*(C`[1, 23]\*(C'\fR and default value is \f(CW5\fR.
.IP "\fBluma_msize_y, ly\fR" 4
.IX Item "luma_msize_y, ly"
Set the luma matrix vertical size.
Range is \f(CW\*(C`[1, 23]\*(C'\fR and default value is \f(CW5\fR.
.IP "\fBluma_amount, la\fR" 4
.IX Item "luma_amount, la"
Set the luma effect strength.
Range is \f(CW\*(C`[\-10, 10]\*(C'\fR and default value is \f(CW1.0\fR.
.Sp
Negative values will blur the input video, while positive values will
sharpen it, a value of zero will disable the effect.
.IP "\fBchroma_msize_x, cx\fR" 4
.IX Item "chroma_msize_x, cx"
Set the chroma matrix horizontal size.
Range is \f(CW\*(C`[1, 23]\*(C'\fR and default value is \f(CW5\fR.
.IP "\fBchroma_msize_y, cy\fR" 4
.IX Item "chroma_msize_y, cy"
Set the chroma matrix vertical size.
Range is \f(CW\*(C`[1, 23]\*(C'\fR and default value is \f(CW5\fR.
.IP "\fBchroma_amount, ca\fR" 4
.IX Item "chroma_amount, ca"
Set the chroma effect strength.
Range is \f(CW\*(C`[\-10, 10]\*(C'\fR and default value is \f(CW0.0\fR.
.Sp
Negative values will blur the input video, while positive values will
sharpen it, a value of zero will disable the effect.
.PP
All parameters are optional and default to the equivalent of the
string '5:5:1.0:5:5:0.0'.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Apply strong luma sharpen effect:
.Sp
.Vb 1
\&        \-i INPUT \-vf "hwupload, unsharp_opencl=luma_msize_x=7:luma_msize_y=7:luma_amount=2.5, hwdownload" OUTPUT
.Ve
.IP \(bu 4
Apply a strong blur of both luma and chroma parameters:
.Sp
.Vb 1
\&        \-i INPUT \-vf "hwupload, unsharp_opencl=7:7:\-2:7:7:\-2, hwdownload" OUTPUT
.Ve
.SS xfade_opencl
.IX Subsection "xfade_opencl"
Cross fade two videos with custom transition effect by using OpenCL.
.PP
It accepts the following options:
.IP \fBtransition\fR 4
.IX Item "transition"
Set one of possible transition effects.
.RS 4
.IP \fBcustom\fR 4
.IX Item "custom"
Select custom transition effect, the actual transition description
will be picked from source and kernel options.
.IP \fBfade\fR 4
.IX Item "fade"
.PD 0
.IP \fBwipeleft\fR 4
.IX Item "wipeleft"
.IP \fBwiperight\fR 4
.IX Item "wiperight"
.IP \fBwipeup\fR 4
.IX Item "wipeup"
.IP \fBwipedown\fR 4
.IX Item "wipedown"
.IP \fBslideleft\fR 4
.IX Item "slideleft"
.IP \fBslideright\fR 4
.IX Item "slideright"
.IP \fBslideup\fR 4
.IX Item "slideup"
.IP \fBslidedown\fR 4
.IX Item "slidedown"
.PD
Default transition is fade.
.RE
.RS 4
.RE
.IP \fBsource\fR 4
.IX Item "source"
OpenCL program source file for custom transition.
.IP \fBkernel\fR 4
.IX Item "kernel"
Set name of kernel to use for custom transition from program source file.
.IP \fBduration\fR 4
.IX Item "duration"
Set duration of video transition.
.IP \fBoffset\fR 4
.IX Item "offset"
Set time of start of transition relative to first video.
.PP
The program source file must contain a kernel function with the given name,
which will be run once for each plane of the output.  Each run on a plane
gets enqueued as a separate 2D global NDRange with one work-item for each
pixel to be generated.  The global ID offset for each work-item is therefore
the coordinates of a pixel in the destination image.
.PP
The kernel function needs to take the following arguments:
.IP \(bu 4
Destination image, \fI_\|_write_only image2d_t\fR.
.Sp
This image will become the output; the kernel should write all of it.
.IP \(bu 4
First Source image, \fI_\|_read_only image2d_t\fR.
Second Source image, \fI_\|_read_only image2d_t\fR.
.Sp
These are the most recent images on each input.  The kernel may read from
them to generate the output, but they can't be written to.
.IP \(bu 4
Transition progress, \fIfloat\fR. This value is always between 0 and 1 inclusive.
.PP
Example programs:
.IP \(bu 4
Apply dots curtain transition effect:
.Sp
.Vb 11
\&        _\|_kernel void blend_images(_\|_write_only image2d_t dst,
\&                                   _\|_read_only  image2d_t src1,
\&                                   _\|_read_only  image2d_t src2,
\&                                   float progress)
\&        {
\&            const sampler_t sampler = (CLK_NORMALIZED_COORDS_FALSE |
\&                                       CLK_FILTER_LINEAR);
\&            int2  p = (int2)(get_global_id(0), get_global_id(1));
\&            float2 rp = (float2)(get_global_id(0), get_global_id(1));
\&            float2 dim = (float2)(get_image_dim(src1).x, get_image_dim(src1).y);
\&            rp = rp / dim;
\&        
\&            float2 dots = (float2)(20.0, 20.0);
\&            float2 center = (float2)(0,0);
\&            float2 unused;
\&        
\&            float4 val1 = read_imagef(src1, sampler, p);
\&            float4 val2 = read_imagef(src2, sampler, p);
\&            bool next = distance(fract(rp * dots, &unused), (float2)(0.5, 0.5)) < (progress / distance(rp, center));
\&        
\&            write_imagef(dst, p, next ? val1 : val2);
\&        }
.Ve
.SH "VAAPI VIDEO FILTERS"
.IX Header "VAAPI VIDEO FILTERS"
VAAPI Video filters are usually used with VAAPI decoder and VAAPI encoder. Below is a description of VAAPI video filters.
.PP
To enable compilation of these filters you need to configure FFmpeg with
\&\f(CW\*(C`\-\-enable\-vaapi\*(C'\fR.
.PP
To use vaapi filters, you need to setup the vaapi device correctly. For more information, please read <\fBhttps://trac.ffmpeg.org/wiki/Hardware/VAAPI\fR>
.SS tonemap_vaapi
.IX Subsection "tonemap_vaapi"
Perform HDR(High Dynamic Range) to SDR(Standard Dynamic Range) conversion with tone-mapping.
It maps the dynamic range of HDR10 content to the SDR content.
It currently only accepts HDR10 as input.
.PP
It accepts the following parameters:
.IP \fBformat\fR 4
.IX Item "format"
Specify the output pixel format.
.Sp
Currently supported formats are:
.RS 4
.IP \fIp010\fR 4
.IX Item "p010"
.PD 0
.IP \fInv12\fR 4
.IX Item "nv12"
.RE
.RS 4
.PD
.Sp
Default is nv12.
.RE
.IP "\fBprimaries, p\fR" 4
.IX Item "primaries, p"
Set the output color primaries.
.Sp
Default is same as input.
.IP "\fBtransfer, t\fR" 4
.IX Item "transfer, t"
Set the output transfer characteristics.
.Sp
Default is bt709.
.IP "\fBmatrix, m\fR" 4
.IX Item "matrix, m"
Set the output colorspace matrix.
.Sp
Default is same as input.
.PP
\fIExample\fR
.IX Subsection "Example"
.IP \(bu 4
Convert HDR(HDR10) video to bt2020\-transfer\-characteristic p010 format
.Sp
.Vb 1
\&        tonemap_vaapi=format=p010:t=bt2020\-10
.Ve
.SH "VIDEO SOURCES"
.IX Header "VIDEO SOURCES"
Below is a description of the currently available video sources.
.SS buffer
.IX Subsection "buffer"
Buffer video frames, and make them available to the filter chain.
.PP
This source is mainly intended for a programmatic use, in particular
through the interface defined in \fIlibavfilter/buffersrc.h\fR.
.PP
It accepts the following parameters:
.IP \fBvideo_size\fR 4
.IX Item "video_size"
Specify the size (width and height) of the buffered video frames. For the
syntax of this option, check the
\&\fB"Video size" section in the ffmpeg-utils manual\fR.
.IP \fBwidth\fR 4
.IX Item "width"
The input video width.
.IP \fBheight\fR 4
.IX Item "height"
The input video height.
.IP \fBpix_fmt\fR 4
.IX Item "pix_fmt"
A string representing the pixel format of the buffered video frames.
It may be a number corresponding to a pixel format, or a pixel format
name.
.IP \fBtime_base\fR 4
.IX Item "time_base"
Specify the timebase assumed by the timestamps of the buffered frames.
.IP \fBframe_rate\fR 4
.IX Item "frame_rate"
Specify the frame rate expected for the video stream.
.IP "\fBpixel_aspect, sar\fR" 4
.IX Item "pixel_aspect, sar"
The sample (pixel) aspect ratio of the input video.
.IP \fBsws_param\fR 4
.IX Item "sws_param"
This option is deprecated and ignored. Prepend \f(CW\*(C`sws_flags=\fR\f(CIflags\fR\f(CW;\*(C'\fR
to the filtergraph description to specify swscale flags for automatically
inserted scalers. See \fBFiltergraph syntax\fR.
.IP \fBhw_frames_ctx\fR 4
.IX Item "hw_frames_ctx"
When using a hardware pixel format, this should be a reference to an
AVHWFramesContext describing input frames.
.PP
For example:
.PP
.Vb 1
\&        buffer=width=320:height=240:pix_fmt=yuv410p:time_base=1/24:sar=1
.Ve
.PP
will instruct the source to accept video frames with size 320x240 and
with format "yuv410p", assuming 1/24 as the timestamps timebase and
square pixels (1:1 sample aspect ratio).
Since the pixel format with name "yuv410p" corresponds to the number 6
(check the enum AVPixelFormat definition in \fIlibavutil/pixfmt.h\fR),
this example corresponds to:
.PP
.Vb 1
\&        buffer=size=320x240:pixfmt=6:time_base=1/24:pixel_aspect=1/1
.Ve
.PP
Alternatively, the options can be specified as a flat string, but this
syntax is deprecated:
.PP
\&\fIwidth\fR:\fIheight\fR:\fIpix_fmt\fR:\fItime_base.num\fR:\fItime_base.den\fR:\fIpixel_aspect.num\fR:\fIpixel_aspect.den\fR
.SS cellauto
.IX Subsection "cellauto"
Create a pattern generated by an elementary cellular automaton.
.PP
The initial state of the cellular automaton can be defined through the
\&\fBfilename\fR and \fBpattern\fR options. If such options are
not specified an initial state is created randomly.
.PP
At each new frame a new row in the video is filled with the result of
the cellular automaton next generation. The behavior when the whole
frame is filled is defined by the \fBscroll\fR option.
.PP
This source accepts the following options:
.IP "\fBfilename, f\fR" 4
.IX Item "filename, f"
Read the initial cellular automaton state, i.e. the starting row, from
the specified file.
In the file, each non-whitespace character is considered an alive
cell, a newline will terminate the row, and further characters in the
file will be ignored.
.IP "\fBpattern, p\fR" 4
.IX Item "pattern, p"
Read the initial cellular automaton state, i.e. the starting row, from
the specified string.
.Sp
Each non-whitespace character in the string is considered an alive
cell, a newline will terminate the row, and further characters in the
string will be ignored.
.IP "\fBrate, r\fR" 4
.IX Item "rate, r"
Set the video rate, that is the number of frames generated per second.
Default is 25.
.IP "\fBrandom_fill_ratio, ratio\fR" 4
.IX Item "random_fill_ratio, ratio"
Set the random fill ratio for the initial cellular automaton row. It
is a floating point number value ranging from 0 to 1, defaults to
1/PHI.
.Sp
This option is ignored when a file or a pattern is specified.
.IP "\fBrandom_seed, seed\fR" 4
.IX Item "random_seed, seed"
Set the seed for filling randomly the initial row, must be an integer
included between 0 and UINT32_MAX. If not specified, or if explicitly
set to \-1, the filter will try to use a good random seed on a best
effort basis.
.IP \fBrule\fR 4
.IX Item "rule"
Set the cellular automaton rule, it is a number ranging from 0 to 255.
Default value is 110.
.IP "\fBsize, s\fR" 4
.IX Item "size, s"
Set the size of the output video. For the syntax of this option, check the
\&\fB"Video size" section in the ffmpeg-utils manual\fR.
.Sp
If \fBfilename\fR or \fBpattern\fR is specified, the size is set
by default to the width of the specified initial state row, and the
height is set to \fIwidth\fR * PHI.
.Sp
If \fBsize\fR is set, it must contain the width of the specified
pattern string, and the specified pattern will be centered in the
larger row.
.Sp
If a filename or a pattern string is not specified, the size value
defaults to "320x518" (used for a randomly generated initial state).
.IP \fBscroll\fR 4
.IX Item "scroll"
If set to 1, scroll the output upward when all the rows in the output
have been already filled. If set to 0, the new generated row will be
written over the top row just after the bottom row is filled.
Defaults to 1.
.IP "\fBstart_full, full\fR" 4
.IX Item "start_full, full"
If set to 1, completely fill the output with generated rows before
outputting the first frame.
This is the default behavior, for disabling set the value to 0.
.IP \fBstitch\fR 4
.IX Item "stitch"
If set to 1, stitch the left and right row edges together.
This is the default behavior, for disabling set the value to 0.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Read the initial state from \fIpattern\fR, and specify an output of
size 200x400.
.Sp
.Vb 1
\&        cellauto=f=pattern:s=200x400
.Ve
.IP \(bu 4
Generate a random initial row with a width of 200 cells, with a fill
ratio of 2/3:
.Sp
.Vb 1
\&        cellauto=ratio=2/3:s=200x200
.Ve
.IP \(bu 4
Create a pattern generated by rule 18 starting by a single alive cell
centered on an initial row with width 100:
.Sp
.Vb 1
\&        cellauto=p=@s=100x400:full=0:rule=18
.Ve
.IP \(bu 4
Specify a more elaborated initial pattern:
.Sp
.Vb 1
\&        cellauto=p=\*(Aq@@ @ @@\*(Aq:s=100x400:full=0:rule=18
.Ve
.SS coreimagesrc
.IX Subsection "coreimagesrc"
Video source generated on GPU using Apple's CoreImage API on OSX.
.PP
This video source is a specialized version of the \fBcoreimage\fR video filter.
Use a core image generator at the beginning of the applied filterchain to
generate the content.
.PP
The coreimagesrc video source accepts the following options:
.IP \fBlist_generators\fR 4
.IX Item "list_generators"
List all available generators along with all their respective options as well as
possible minimum and maximum values along with the default values.
.Sp
.Vb 1
\&        list_generators=true
.Ve
.IP "\fBsize, s\fR" 4
.IX Item "size, s"
Specify the size of the sourced video. For the syntax of this option, check the
\&\fB"Video size" section in the ffmpeg-utils manual\fR.
The default value is \f(CW\*(C`320x240\*(C'\fR.
.IP "\fBrate, r\fR" 4
.IX Item "rate, r"
Specify the frame rate of the sourced video, as the number of frames
generated per second. It has to be a string in the format
\&\fIframe_rate_num\fR/\fIframe_rate_den\fR, an integer number, a floating point
number or a valid video frame rate abbreviation. The default value is
"25".
.IP \fBsar\fR 4
.IX Item "sar"
Set the sample aspect ratio of the sourced video.
.IP "\fBduration, d\fR" 4
.IX Item "duration, d"
Set the duration of the sourced video. See
\&\fBthe Time duration section in the ffmpeg\-utils\|(1) manual\fR
for the accepted syntax.
.Sp
If not specified, or the expressed duration is negative, the video is
supposed to be generated forever.
.PP
Additionally, all options of the \fBcoreimage\fR video filter are accepted.
A complete filterchain can be used for further processing of the
generated input without CPU-HOST transfer. See \fBcoreimage\fR documentation
and examples for details.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Use CIQRCodeGenerator to create a QR code for the FFmpeg homepage,
given as complete and escaped command-line for Apple's standard bash shell:
.Sp
.Vb 1
\&        ffmpeg \-f lavfi \-i coreimagesrc=s=100x100:filter=CIQRCodeGenerator@inputMessage=https\e\e\e\e\e://FFmpeg.org/@inputCorrectionLevel=H \-frames:v 1 QRCode.png
.Ve
.Sp
This example is equivalent to the QRCode example of \fBcoreimage\fR without the
need for a nullsrc video source.
.SS gradients
.IX Subsection "gradients"
Generate several gradients.
.IP "\fBsize, s\fR" 4
.IX Item "size, s"
Set frame size. For the syntax of this option, check the \fB"Video
size" section in the ffmpeg-utils manual\fR. Default value is "640x480".
.IP "\fBrate, r\fR" 4
.IX Item "rate, r"
Set frame rate, expressed as number of frames per second. Default
value is "25".
.IP "\fBc0, c1, c2, c3, c4, c5, c6, c7\fR" 4
.IX Item "c0, c1, c2, c3, c4, c5, c6, c7"
Set 8 colors. Default values for colors is to pick random one.
.IP "\fBx0, y0, y0, y1\fR" 4
.IX Item "x0, y0, y0, y1"
Set gradient line source and destination points. If negative or out of range, random ones
are picked.
.IP "\fBnb_colors, n\fR" 4
.IX Item "nb_colors, n"
Set number of colors to use at once. Allowed range is from 2 to 8. Default value is 2.
.IP \fBseed\fR 4
.IX Item "seed"
Set seed for picking gradient line points.
.IP "\fBduration, d\fR" 4
.IX Item "duration, d"
Set the duration of the sourced video. See
\&\fBthe Time duration section in the ffmpeg\-utils\|(1) manual\fR
for the accepted syntax.
.Sp
If not specified, or the expressed duration is negative, the video is
supposed to be generated forever.
.IP \fBspeed\fR 4
.IX Item "speed"
Set speed of gradients rotation.
.SS mandelbrot
.IX Subsection "mandelbrot"
Generate a Mandelbrot set fractal, and progressively zoom towards the
point specified with \fIstart_x\fR and \fIstart_y\fR.
.PP
This source accepts the following options:
.IP \fBend_pts\fR 4
.IX Item "end_pts"
Set the terminal pts value. Default value is 400.
.IP \fBend_scale\fR 4
.IX Item "end_scale"
Set the terminal scale value.
Must be a floating point value. Default value is 0.3.
.IP \fBinner\fR 4
.IX Item "inner"
Set the inner coloring mode, that is the algorithm used to draw the
Mandelbrot fractal internal region.
.Sp
It shall assume one of the following values:
.RS 4
.IP \fBblack\fR 4
.IX Item "black"
Set black mode.
.IP \fBconvergence\fR 4
.IX Item "convergence"
Show time until convergence.
.IP \fBmincol\fR 4
.IX Item "mincol"
Set color based on point closest to the origin of the iterations.
.IP \fBperiod\fR 4
.IX Item "period"
Set period mode.
.RE
.RS 4
.Sp
Default value is \fImincol\fR.
.RE
.IP \fBbailout\fR 4
.IX Item "bailout"
Set the bailout value. Default value is 10.0.
.IP \fBmaxiter\fR 4
.IX Item "maxiter"
Set the maximum of iterations performed by the rendering
algorithm. Default value is 7189.
.IP \fBouter\fR 4
.IX Item "outer"
Set outer coloring mode.
It shall assume one of following values:
.RS 4
.IP \fBiteration_count\fR 4
.IX Item "iteration_count"
Set iteration count mode.
.IP \fBnormalized_iteration_count\fR 4
.IX Item "normalized_iteration_count"
set normalized iteration count mode.
.RE
.RS 4
.Sp
Default value is \fInormalized_iteration_count\fR.
.RE
.IP "\fBrate, r\fR" 4
.IX Item "rate, r"
Set frame rate, expressed as number of frames per second. Default
value is "25".
.IP "\fBsize, s\fR" 4
.IX Item "size, s"
Set frame size. For the syntax of this option, check the \fB"Video
size" section in the ffmpeg-utils manual\fR. Default value is "640x480".
.IP \fBstart_scale\fR 4
.IX Item "start_scale"
Set the initial scale value. Default value is 3.0.
.IP \fBstart_x\fR 4
.IX Item "start_x"
Set the initial x position. Must be a floating point value between
\&\-100 and 100. Default value is \-0.743643887037158704752191506114774.
.IP \fBstart_y\fR 4
.IX Item "start_y"
Set the initial y position. Must be a floating point value between
\&\-100 and 100. Default value is \-0.131825904205311970493132056385139.
.SS mptestsrc
.IX Subsection "mptestsrc"
Generate various test patterns, as generated by the MPlayer test filter.
.PP
The size of the generated video is fixed, and is 256x256.
This source is useful in particular for testing encoding features.
.PP
This source accepts the following options:
.IP "\fBrate, r\fR" 4
.IX Item "rate, r"
Specify the frame rate of the sourced video, as the number of frames
generated per second. It has to be a string in the format
\&\fIframe_rate_num\fR/\fIframe_rate_den\fR, an integer number, a floating point
number or a valid video frame rate abbreviation. The default value is
"25".
.IP "\fBduration, d\fR" 4
.IX Item "duration, d"
Set the duration of the sourced video. See
\&\fBthe Time duration section in the ffmpeg\-utils\|(1) manual\fR
for the accepted syntax.
.Sp
If not specified, or the expressed duration is negative, the video is
supposed to be generated forever.
.IP "\fBtest, t\fR" 4
.IX Item "test, t"
Set the number or the name of the test to perform. Supported tests are:
.RS 4
.IP \fBdc_luma\fR 4
.IX Item "dc_luma"
.PD 0
.IP \fBdc_chroma\fR 4
.IX Item "dc_chroma"
.IP \fBfreq_luma\fR 4
.IX Item "freq_luma"
.IP \fBfreq_chroma\fR 4
.IX Item "freq_chroma"
.IP \fBamp_luma\fR 4
.IX Item "amp_luma"
.IP \fBamp_chroma\fR 4
.IX Item "amp_chroma"
.IP \fBcbp\fR 4
.IX Item "cbp"
.IP \fBmv\fR 4
.IX Item "mv"
.IP \fBring1\fR 4
.IX Item "ring1"
.IP \fBring2\fR 4
.IX Item "ring2"
.IP \fBall\fR 4
.IX Item "all"
.IP "\fBmax_frames, m\fR" 4
.IX Item "max_frames, m"
.PD
Set the maximum number of frames generated for each test, default value is 30.
.RE
.RS 4
.Sp
Default value is "all", which will cycle through the list of all tests.
.RE
.PP
Some examples:
.PP
.Vb 1
\&        mptestsrc=t=dc_luma
.Ve
.PP
will generate a "dc_luma" test pattern.
.SS frei0r_src
.IX Subsection "frei0r_src"
Provide a frei0r source.
.PP
To enable compilation of this filter you need to install the frei0r
header and configure FFmpeg with \f(CW\*(C`\-\-enable\-frei0r\*(C'\fR.
.PP
This source accepts the following parameters:
.IP \fBsize\fR 4
.IX Item "size"
The size of the video to generate. For the syntax of this option, check the
\&\fB"Video size" section in the ffmpeg-utils manual\fR.
.IP \fBframerate\fR 4
.IX Item "framerate"
The framerate of the generated video. It may be a string of the form
\&\fInum\fR/\fIden\fR or a frame rate abbreviation.
.IP \fBfilter_name\fR 4
.IX Item "filter_name"
The name to the frei0r source to load. For more information regarding frei0r and
how to set the parameters, read the \fBfrei0r\fR section in the video filters
documentation.
.IP \fBfilter_params\fR 4
.IX Item "filter_params"
A '|'\-separated list of parameters to pass to the frei0r source.
.PP
For example, to generate a frei0r partik0l source with size 200x200
and frame rate 10 which is overlaid on the overlay filter main input:
.PP
.Vb 1
\&        frei0r_src=size=200x200:framerate=10:filter_name=partik0l:filter_params=1234 [overlay]; [in][overlay] overlay
.Ve
.SS life
.IX Subsection "life"
Generate a life pattern.
.PP
This source is based on a generalization of John Conway's life game.
.PP
The sourced input represents a life grid, each pixel represents a cell
which can be in one of two possible states, alive or dead. Every cell
interacts with its eight neighbours, which are the cells that are
horizontally, vertically, or diagonally adjacent.
.PP
At each interaction the grid evolves according to the adopted rule,
which specifies the number of neighbor alive cells which will make a
cell stay alive or born. The \fBrule\fR option allows one to specify
the rule to adopt.
.PP
This source accepts the following options:
.IP "\fBfilename, f\fR" 4
.IX Item "filename, f"
Set the file from which to read the initial grid state. In the file,
each non-whitespace character is considered an alive cell, and newline
is used to delimit the end of each row.
.Sp
If this option is not specified, the initial grid is generated
randomly.
.IP "\fBrate, r\fR" 4
.IX Item "rate, r"
Set the video rate, that is the number of frames generated per second.
Default is 25.
.IP "\fBrandom_fill_ratio, ratio\fR" 4
.IX Item "random_fill_ratio, ratio"
Set the random fill ratio for the initial random grid. It is a
floating point number value ranging from 0 to 1, defaults to 1/PHI.
It is ignored when a file is specified.
.IP "\fBrandom_seed, seed\fR" 4
.IX Item "random_seed, seed"
Set the seed for filling the initial random grid, must be an integer
included between 0 and UINT32_MAX. If not specified, or if explicitly
set to \-1, the filter will try to use a good random seed on a best
effort basis.
.IP \fBrule\fR 4
.IX Item "rule"
Set the life rule.
.Sp
A rule can be specified with a code of the kind "S\fINS\fR/B\fINB\fR",
where \fINS\fR and \fINB\fR are sequences of numbers in the range 0\-8,
\&\fINS\fR specifies the number of alive neighbor cells which make a
live cell stay alive, and \fINB\fR the number of alive neighbor cells
which make a dead cell to become alive (i.e. to "born").
"s" and "b" can be used in place of "S" and "B", respectively.
.Sp
Alternatively a rule can be specified by an 18\-bits integer. The 9
high order bits are used to encode the next cell state if it is alive
for each number of neighbor alive cells, the low order bits specify
the rule for "borning" new cells. Higher order bits encode for an
higher number of neighbor cells.
For example the number 6153 = \f(CW\*(C`(12<<9)+9\*(C'\fR specifies a stay alive
rule of 12 and a born rule of 9, which corresponds to "S23/B03".
.Sp
Default value is "S23/B3", which is the original Conway's game of life
rule, and will keep a cell alive if it has 2 or 3 neighbor alive
cells, and will born a new cell if there are three alive cells around
a dead cell.
.IP "\fBsize, s\fR" 4
.IX Item "size, s"
Set the size of the output video. For the syntax of this option, check the
\&\fB"Video size" section in the ffmpeg-utils manual\fR.
.Sp
If \fBfilename\fR is specified, the size is set by default to the
same size of the input file. If \fBsize\fR is set, it must contain
the size specified in the input file, and the initial grid defined in
that file is centered in the larger resulting area.
.Sp
If a filename is not specified, the size value defaults to "320x240"
(used for a randomly generated initial grid).
.IP \fBstitch\fR 4
.IX Item "stitch"
If set to 1, stitch the left and right grid edges together, and the
top and bottom edges also. Defaults to 1.
.IP \fBmold\fR 4
.IX Item "mold"
Set cell mold speed. If set, a dead cell will go from \fBdeath_color\fR to
\&\fBmold_color\fR with a step of \fBmold\fR. \fBmold\fR can have a
value from 0 to 255.
.IP \fBlife_color\fR 4
.IX Item "life_color"
Set the color of living (or new born) cells.
.IP \fBdeath_color\fR 4
.IX Item "death_color"
Set the color of dead cells. If \fBmold\fR is set, this is the first color
used to represent a dead cell.
.IP \fBmold_color\fR 4
.IX Item "mold_color"
Set mold color, for definitely dead and moldy cells.
.Sp
For the syntax of these 3 color options, check the \fB"Color" section in the
ffmpeg-utils manual\fR.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Read a grid from \fIpattern\fR, and center it on a grid of size
300x300 pixels:
.Sp
.Vb 1
\&        life=f=pattern:s=300x300
.Ve
.IP \(bu 4
Generate a random grid of size 200x200, with a fill ratio of 2/3:
.Sp
.Vb 1
\&        life=ratio=2/3:s=200x200
.Ve
.IP \(bu 4
Specify a custom rule for evolving a randomly generated grid:
.Sp
.Vb 1
\&        life=rule=S14/B34
.Ve
.IP \(bu 4
Full example with slow death effect (mold) using \fBffplay\fR:
.Sp
.Vb 1
\&        ffplay \-f lavfi life=s=300x200:mold=10:r=60:ratio=0.1:death_color=#C83232:life_color=#00ff00,scale=1200:800:flags=16
.Ve
.SS "allrgb, allyuv, color, haldclutsrc, nullsrc, pal75bars, pal100bars, rgbtestsrc, smptebars, smptehdbars, testsrc, testsrc2, yuvtestsrc"
.IX Subsection "allrgb, allyuv, color, haldclutsrc, nullsrc, pal75bars, pal100bars, rgbtestsrc, smptebars, smptehdbars, testsrc, testsrc2, yuvtestsrc"
The \f(CW\*(C`allrgb\*(C'\fR source returns frames of size 4096x4096 of all rgb colors.
.PP
The \f(CW\*(C`allyuv\*(C'\fR source returns frames of size 4096x4096 of all yuv colors.
.PP
The \f(CW\*(C`color\*(C'\fR source provides an uniformly colored input.
.PP
The \f(CW\*(C`haldclutsrc\*(C'\fR source provides an identity Hald CLUT. See also
\&\fBhaldclut\fR filter.
.PP
The \f(CW\*(C`nullsrc\*(C'\fR source returns unprocessed video frames. It is
mainly useful to be employed in analysis / debugging tools, or as the
source for filters which ignore the input data.
.PP
The \f(CW\*(C`pal75bars\*(C'\fR source generates a color bars pattern, based on
EBU PAL recommendations with 75% color levels.
.PP
The \f(CW\*(C`pal100bars\*(C'\fR source generates a color bars pattern, based on
EBU PAL recommendations with 100% color levels.
.PP
The \f(CW\*(C`rgbtestsrc\*(C'\fR source generates an RGB test pattern useful for
detecting RGB vs BGR issues. You should see a red, green and blue
stripe from top to bottom.
.PP
The \f(CW\*(C`smptebars\*(C'\fR source generates a color bars pattern, based on
the SMPTE Engineering Guideline EG 1\-1990.
.PP
The \f(CW\*(C`smptehdbars\*(C'\fR source generates a color bars pattern, based on
the SMPTE RP 219\-2002.
.PP
The \f(CW\*(C`testsrc\*(C'\fR source generates a test video pattern, showing a
color pattern, a scrolling gradient and a timestamp. This is mainly
intended for testing purposes.
.PP
The \f(CW\*(C`testsrc2\*(C'\fR source is similar to testsrc, but supports more
pixel formats instead of just \f(CW\*(C`rgb24\*(C'\fR. This allows using it as an
input for other tests without requiring a format conversion.
.PP
The \f(CW\*(C`yuvtestsrc\*(C'\fR source generates an YUV test pattern. You should
see a y, cb and cr stripe from top to bottom.
.PP
The sources accept the following parameters:
.IP \fBlevel\fR 4
.IX Item "level"
Specify the level of the Hald CLUT, only available in the \f(CW\*(C`haldclutsrc\*(C'\fR
source. A level of \f(CW\*(C`N\*(C'\fR generates a picture of \f(CW\*(C`N*N*N\*(C'\fR by \f(CW\*(C`N*N*N\*(C'\fR
pixels to be used as identity matrix for 3D lookup tables. Each component is
coded on a \f(CW\*(C`1/(N*N)\*(C'\fR scale.
.IP "\fBcolor, c\fR" 4
.IX Item "color, c"
Specify the color of the source, only available in the \f(CW\*(C`color\*(C'\fR
source. For the syntax of this option, check the
\&\fB"Color" section in the ffmpeg-utils manual\fR.
.IP "\fBsize, s\fR" 4
.IX Item "size, s"
Specify the size of the sourced video. For the syntax of this option, check the
\&\fB"Video size" section in the ffmpeg-utils manual\fR.
The default value is \f(CW\*(C`320x240\*(C'\fR.
.Sp
This option is not available with the \f(CW\*(C`allrgb\*(C'\fR, \f(CW\*(C`allyuv\*(C'\fR, and
\&\f(CW\*(C`haldclutsrc\*(C'\fR filters.
.IP "\fBrate, r\fR" 4
.IX Item "rate, r"
Specify the frame rate of the sourced video, as the number of frames
generated per second. It has to be a string in the format
\&\fIframe_rate_num\fR/\fIframe_rate_den\fR, an integer number, a floating point
number or a valid video frame rate abbreviation. The default value is
"25".
.IP "\fBduration, d\fR" 4
.IX Item "duration, d"
Set the duration of the sourced video. See
\&\fBthe Time duration section in the ffmpeg\-utils\|(1) manual\fR
for the accepted syntax.
.Sp
If not specified, or the expressed duration is negative, the video is
supposed to be generated forever.
.Sp
Since the frame rate is used as time base, all frames including the last one
will have their full duration. If the specified duration is not a multiple
of the frame duration, it will be rounded up.
.IP \fBsar\fR 4
.IX Item "sar"
Set the sample aspect ratio of the sourced video.
.IP \fBalpha\fR 4
.IX Item "alpha"
Specify the alpha (opacity) of the background, only available in the
\&\f(CW\*(C`testsrc2\*(C'\fR source. The value must be between 0 (fully transparent) and
255 (fully opaque, the default).
.IP "\fBdecimals, n\fR" 4
.IX Item "decimals, n"
Set the number of decimals to show in the timestamp, only available in the
\&\f(CW\*(C`testsrc\*(C'\fR source.
.Sp
The displayed timestamp value will correspond to the original
timestamp value multiplied by the power of 10 of the specified
value. Default value is 0.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Generate a video with a duration of 5.3 seconds, with size
176x144 and a frame rate of 10 frames per second:
.Sp
.Vb 1
\&        testsrc=duration=5.3:size=qcif:rate=10
.Ve
.IP \(bu 4
The following graph description will generate a red source
with an opacity of 0.2, with size "qcif" and a frame rate of 10
frames per second:
.Sp
.Vb 1
\&        color=c=red@0.2:s=qcif:r=10
.Ve
.IP \(bu 4
If the input content is to be ignored, \f(CW\*(C`nullsrc\*(C'\fR can be used. The
following command generates noise in the luminance plane by employing
the \f(CW\*(C`geq\*(C'\fR filter:
.Sp
.Vb 1
\&        nullsrc=s=256x256, geq=random(1)*255:128:128
.Ve
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
The \f(CW\*(C`color\*(C'\fR source supports the following commands:
.IP "\fBc, color\fR" 4
.IX Item "c, color"
Set the color of the created image. Accepts the same syntax of the
corresponding \fBcolor\fR option.
.SS openclsrc
.IX Subsection "openclsrc"
Generate video using an OpenCL program.
.IP \fBsource\fR 4
.IX Item "source"
OpenCL program source file.
.IP \fBkernel\fR 4
.IX Item "kernel"
Kernel name in program.
.IP "\fBsize, s\fR" 4
.IX Item "size, s"
Size of frames to generate.  This must be set.
.IP \fBformat\fR 4
.IX Item "format"
Pixel format to use for the generated frames.  This must be set.
.IP "\fBrate, r\fR" 4
.IX Item "rate, r"
Number of frames generated every second.  Default value is '25'.
.PP
For details of how the program loading works, see the \fBprogram_opencl\fR
filter.
.PP
Example programs:
.IP \(bu 4
Generate a colour ramp by setting pixel values from the position of the pixel
in the output image.  (Note that this will work with all pixel formats, but
the generated output will not be the same.)
.Sp
.Vb 4
\&        _\|_kernel void ramp(_\|_write_only image2d_t dst,
\&                           unsigned int index)
\&        {
\&            int2 loc = (int2)(get_global_id(0), get_global_id(1));
\&        
\&            float4 val;
\&            val.xy = val.zw = convert_float2(loc) / convert_float2(get_image_dim(dst));
\&        
\&            write_imagef(dst, loc, val);
\&        }
.Ve
.IP \(bu 4
Generate a Sierpinski carpet pattern, panning by a single pixel each frame.
.Sp
.Vb 4
\&        _\|_kernel void sierpinski_carpet(_\|_write_only image2d_t dst,
\&                                        unsigned int index)
\&        {
\&            int2 loc = (int2)(get_global_id(0), get_global_id(1));
\&        
\&            float4 value = 0.0f;
\&            int x = loc.x + index;
\&            int y = loc.y + index;
\&            while (x > 0 || y > 0) {
\&                if (x % 3 == 1 && y % 3 == 1) {
\&                    value = 1.0f;
\&                    break;
\&                }
\&                x /= 3;
\&                y /= 3;
\&            }
\&        
\&            write_imagef(dst, loc, value);
\&        }
.Ve
.SS sierpinski
.IX Subsection "sierpinski"
Generate a Sierpinski carpet/triangle fractal, and randomly pan around.
.PP
This source accepts the following options:
.IP "\fBsize, s\fR" 4
.IX Item "size, s"
Set frame size. For the syntax of this option, check the \fB"Video
size" section in the ffmpeg-utils manual\fR. Default value is "640x480".
.IP "\fBrate, r\fR" 4
.IX Item "rate, r"
Set frame rate, expressed as number of frames per second. Default
value is "25".
.IP \fBseed\fR 4
.IX Item "seed"
Set seed which is used for random panning.
.IP \fBjump\fR 4
.IX Item "jump"
Set max jump for single pan destination. Allowed range is from 1 to 10000.
.IP \fBtype\fR 4
.IX Item "type"
Set fractal type, can be default \f(CW\*(C`carpet\*(C'\fR or \f(CW\*(C`triangle\*(C'\fR.
.SH "VIDEO SINKS"
.IX Header "VIDEO SINKS"
Below is a description of the currently available video sinks.
.SS buffersink
.IX Subsection "buffersink"
Buffer video frames, and make them available to the end of the filter
graph.
.PP
This sink is mainly intended for programmatic use, in particular
through the interface defined in \fIlibavfilter/buffersink.h\fR
or the options system.
.PP
It accepts a pointer to an AVBufferSinkContext structure, which
defines the incoming buffers' formats, to be passed as the opaque
parameter to \f(CW\*(C`avfilter_init_filter\*(C'\fR for initialization.
.SS nullsink
.IX Subsection "nullsink"
Null video sink: do absolutely nothing with the input video. It is
mainly useful as a template and for use in analysis / debugging
tools.
.SH "MULTIMEDIA FILTERS"
.IX Header "MULTIMEDIA FILTERS"
Below is a description of the currently available multimedia filters.
.SS abitscope
.IX Subsection "abitscope"
Convert input audio to a video output, displaying the audio bit scope.
.PP
The filter accepts the following options:
.IP "\fBrate, r\fR" 4
.IX Item "rate, r"
Set frame rate, expressed as number of frames per second. Default
value is "25".
.IP "\fBsize, s\fR" 4
.IX Item "size, s"
Specify the video size for the output. For the syntax of this option, check the
\&\fB"Video size" section in the ffmpeg-utils manual\fR.
Default value is \f(CW\*(C`1024x256\*(C'\fR.
.IP \fBcolors\fR 4
.IX Item "colors"
Specify list of colors separated by space or by '|' which will be used to
draw channels. Unrecognized or missing colors will be replaced
by white color.
.SS adrawgraph
.IX Subsection "adrawgraph"
Draw a graph using input audio metadata.
.PP
See \fBdrawgraph\fR
.SS agraphmonitor
.IX Subsection "agraphmonitor"
See \fBgraphmonitor\fR.
.SS ahistogram
.IX Subsection "ahistogram"
Convert input audio to a video output, displaying the volume histogram.
.PP
The filter accepts the following options:
.IP \fBdmode\fR 4
.IX Item "dmode"
Specify how histogram is calculated.
.Sp
It accepts the following values:
.RS 4
.IP \fBsingle\fR 4
.IX Item "single"
Use single histogram for all channels.
.IP \fBseparate\fR 4
.IX Item "separate"
Use separate histogram for each channel.
.RE
.RS 4
.Sp
Default is \f(CW\*(C`single\*(C'\fR.
.RE
.IP "\fBrate, r\fR" 4
.IX Item "rate, r"
Set frame rate, expressed as number of frames per second. Default
value is "25".
.IP "\fBsize, s\fR" 4
.IX Item "size, s"
Specify the video size for the output. For the syntax of this option, check the
\&\fB"Video size" section in the ffmpeg-utils manual\fR.
Default value is \f(CW\*(C`hd720\*(C'\fR.
.IP \fBscale\fR 4
.IX Item "scale"
Set display scale.
.Sp
It accepts the following values:
.RS 4
.IP \fBlog\fR 4
.IX Item "log"
logarithmic
.IP \fBsqrt\fR 4
.IX Item "sqrt"
square root
.IP \fBcbrt\fR 4
.IX Item "cbrt"
cubic root
.IP \fBlin\fR 4
.IX Item "lin"
linear
.IP \fBrlog\fR 4
.IX Item "rlog"
reverse logarithmic
.RE
.RS 4
.Sp
Default is \f(CW\*(C`log\*(C'\fR.
.RE
.IP \fBascale\fR 4
.IX Item "ascale"
Set amplitude scale.
.Sp
It accepts the following values:
.RS 4
.IP \fBlog\fR 4
.IX Item "log"
logarithmic
.IP \fBlin\fR 4
.IX Item "lin"
linear
.RE
.RS 4
.Sp
Default is \f(CW\*(C`log\*(C'\fR.
.RE
.IP \fBacount\fR 4
.IX Item "acount"
Set how much frames to accumulate in histogram.
Default is 1. Setting this to \-1 accumulates all frames.
.IP \fBrheight\fR 4
.IX Item "rheight"
Set histogram ratio of window height.
.IP \fBslide\fR 4
.IX Item "slide"
Set sonogram sliding.
.Sp
It accepts the following values:
.RS 4
.IP \fBreplace\fR 4
.IX Item "replace"
replace old rows with new ones.
.IP \fBscroll\fR 4
.IX Item "scroll"
scroll from top to bottom.
.RE
.RS 4
.Sp
Default is \f(CW\*(C`replace\*(C'\fR.
.RE
.SS aphasemeter
.IX Subsection "aphasemeter"
Measures phase of input audio, which is exported as metadata \f(CW\*(C`lavfi.aphasemeter.phase\*(C'\fR,
representing mean phase of current audio frame. A video output can also be produced and is
enabled by default. The audio is passed through as first output.
.PP
Audio will be rematrixed to stereo if it has a different channel layout. Phase value is in
range \f(CW\*(C`[\-1, 1]\*(C'\fR where \f(CW\-1\fR means left and right channels are completely out of phase
and \f(CW1\fR means channels are in phase.
.PP
The filter accepts the following options, all related to its video output:
.IP "\fBrate, r\fR" 4
.IX Item "rate, r"
Set the output frame rate. Default value is \f(CW25\fR.
.IP "\fBsize, s\fR" 4
.IX Item "size, s"
Set the video size for the output. For the syntax of this option, check the
\&\fB"Video size" section in the ffmpeg-utils manual\fR.
Default value is \f(CW\*(C`800x400\*(C'\fR.
.IP \fBrc\fR 4
.IX Item "rc"
.PD 0
.IP \fBgc\fR 4
.IX Item "gc"
.IP \fBbc\fR 4
.IX Item "bc"
.PD
Specify the red, green, blue contrast. Default values are \f(CW2\fR,
\&\f(CW7\fR and \f(CW1\fR.
Allowed range is \f(CW\*(C`[0, 255]\*(C'\fR.
.IP \fBmpc\fR 4
.IX Item "mpc"
Set color which will be used for drawing median phase. If color is
\&\f(CW\*(C`none\*(C'\fR which is default, no median phase value will be drawn.
.IP \fBvideo\fR 4
.IX Item "video"
Enable video output. Default is enabled.
.PP
\fIphasing detection\fR
.IX Subsection "phasing detection"
.PP
The filter also detects out of phase and mono sequences in stereo streams.
It logs the sequence start, end and duration when it lasts longer or as long as the minimum set.
.PP
The filter accepts the following options for this detection:
.IP \fBphasing\fR 4
.IX Item "phasing"
Enable mono and out of phase detection. Default is disabled.
.IP "\fBtolerance, t\fR" 4
.IX Item "tolerance, t"
Set phase tolerance for mono detection, in amplitude ratio. Default is \f(CW0\fR.
Allowed range is \f(CW\*(C`[0, 1]\*(C'\fR.
.IP "\fBangle, a\fR" 4
.IX Item "angle, a"
Set angle threshold for out of phase detection, in degree. Default is \f(CW170\fR.
Allowed range is \f(CW\*(C`[90, 180]\*(C'\fR.
.IP "\fBduration, d\fR" 4
.IX Item "duration, d"
Set mono or out of phase duration until notification, expressed in seconds. Default is \f(CW2\fR.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Complete example with \fBffmpeg\fR to detect 1 second of mono with 0.001 phase tolerance:
.Sp
.Vb 1
\&        ffmpeg \-i stereo.wav \-af aphasemeter=video=0:phasing=1:duration=1:tolerance=0.001 \-f null \-
.Ve
.SS avectorscope
.IX Subsection "avectorscope"
Convert input audio to a video output, representing the audio vector
scope.
.PP
The filter is used to measure the difference between channels of stereo
audio stream. A monaural signal, consisting of identical left and right
signal, results in straight vertical line. Any stereo separation is visible
as a deviation from this line, creating a Lissajous figure.
If the straight (or deviation from it) but horizontal line appears this
indicates that the left and right channels are out of phase.
.PP
The filter accepts the following options:
.IP "\fBmode, m\fR" 4
.IX Item "mode, m"
Set the vectorscope mode.
.Sp
Available values are:
.RS 4
.IP \fBlissajous\fR 4
.IX Item "lissajous"
Lissajous rotated by 45 degrees.
.IP \fBlissajous_xy\fR 4
.IX Item "lissajous_xy"
Same as above but not rotated.
.IP \fBpolar\fR 4
.IX Item "polar"
Shape resembling half of circle.
.RE
.RS 4
.Sp
Default value is \fBlissajous\fR.
.RE
.IP "\fBsize, s\fR" 4
.IX Item "size, s"
Set the video size for the output. For the syntax of this option, check the
\&\fB"Video size" section in the ffmpeg-utils manual\fR.
Default value is \f(CW\*(C`400x400\*(C'\fR.
.IP "\fBrate, r\fR" 4
.IX Item "rate, r"
Set the output frame rate. Default value is \f(CW25\fR.
.IP \fBrc\fR 4
.IX Item "rc"
.PD 0
.IP \fBgc\fR 4
.IX Item "gc"
.IP \fBbc\fR 4
.IX Item "bc"
.IP \fBac\fR 4
.IX Item "ac"
.PD
Specify the red, green, blue and alpha contrast. Default values are \f(CW40\fR,
\&\f(CW160\fR, \f(CW80\fR and \f(CW255\fR.
Allowed range is \f(CW\*(C`[0, 255]\*(C'\fR.
.IP \fBrf\fR 4
.IX Item "rf"
.PD 0
.IP \fBgf\fR 4
.IX Item "gf"
.IP \fBbf\fR 4
.IX Item "bf"
.IP \fBaf\fR 4
.IX Item "af"
.PD
Specify the red, green, blue and alpha fade. Default values are \f(CW15\fR,
\&\f(CW10\fR, \f(CW5\fR and \f(CW5\fR.
Allowed range is \f(CW\*(C`[0, 255]\*(C'\fR.
.IP \fBzoom\fR 4
.IX Item "zoom"
Set the zoom factor. Default value is \f(CW1\fR. Allowed range is \f(CW\*(C`[0, 10]\*(C'\fR.
Values lower than \fI1\fR will auto adjust zoom factor to maximal possible value.
.IP \fBdraw\fR 4
.IX Item "draw"
Set the vectorscope drawing mode.
.Sp
Available values are:
.RS 4
.IP \fBdot\fR 4
.IX Item "dot"
Draw dot for each sample.
.IP \fBline\fR 4
.IX Item "line"
Draw line between previous and current sample.
.RE
.RS 4
.Sp
Default value is \fBdot\fR.
.RE
.IP \fBscale\fR 4
.IX Item "scale"
Specify amplitude scale of audio samples.
.Sp
Available values are:
.RS 4
.IP \fBlin\fR 4
.IX Item "lin"
Linear.
.IP \fBsqrt\fR 4
.IX Item "sqrt"
Square root.
.IP \fBcbrt\fR 4
.IX Item "cbrt"
Cubic root.
.IP \fBlog\fR 4
.IX Item "log"
Logarithmic.
.RE
.RS 4
.RE
.IP \fBswap\fR 4
.IX Item "swap"
Swap left channel axis with right channel axis.
.IP \fBmirror\fR 4
.IX Item "mirror"
Mirror axis.
.RS 4
.IP \fBnone\fR 4
.IX Item "none"
No mirror.
.IP \fBx\fR 4
.IX Item "x"
Mirror only x axis.
.IP \fBy\fR 4
.IX Item "y"
Mirror only y axis.
.IP \fBxy\fR 4
.IX Item "xy"
Mirror both axis.
.RE
.RS 4
.RE
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Complete example using \fBffplay\fR:
.Sp
.Vb 2
\&        ffplay \-f lavfi \*(Aqamovie=input.mp3, asplit [a][out1];
\&                     [a] avectorscope=zoom=1.3:rc=2:gc=200:bc=10:rf=1:gf=8:bf=7 [out0]\*(Aq
.Ve
.SS "bench, abench"
.IX Subsection "bench, abench"
Benchmark part of a filtergraph.
.PP
The filter accepts the following options:
.IP \fBaction\fR 4
.IX Item "action"
Start or stop a timer.
.Sp
Available values are:
.RS 4
.IP \fBstart\fR 4
.IX Item "start"
Get the current time, set it as frame metadata (using the key
\&\f(CW\*(C`lavfi.bench.start_time\*(C'\fR), and forward the frame to the next filter.
.IP \fBstop\fR 4
.IX Item "stop"
Get the current time and fetch the \f(CW\*(C`lavfi.bench.start_time\*(C'\fR metadata from
the input frame metadata to get the time difference. Time difference, average,
maximum and minimum time (respectively \f(CW\*(C`t\*(C'\fR, \f(CW\*(C`avg\*(C'\fR, \f(CW\*(C`max\*(C'\fR and
\&\f(CW\*(C`min\*(C'\fR) are then printed. The timestamps are expressed in seconds.
.RE
.RS 4
.RE
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Benchmark \fBselectivecolor\fR filter:
.Sp
.Vb 1
\&        bench=start,selectivecolor=reds=\-.2 .12 \-.49,bench=stop
.Ve
.SS concat
.IX Subsection "concat"
Concatenate audio and video streams, joining them together one after the
other.
.PP
The filter works on segments of synchronized video and audio streams. All
segments must have the same number of streams of each type, and that will
also be the number of streams at output.
.PP
The filter accepts the following options:
.IP \fBn\fR 4
.IX Item "n"
Set the number of segments. Default is 2.
.IP \fBv\fR 4
.IX Item "v"
Set the number of output video streams, that is also the number of video
streams in each segment. Default is 1.
.IP \fBa\fR 4
.IX Item "a"
Set the number of output audio streams, that is also the number of audio
streams in each segment. Default is 0.
.IP \fBunsafe\fR 4
.IX Item "unsafe"
Activate unsafe mode: do not fail if segments have a different format.
.PP
The filter has \fIv\fR+\fIa\fR outputs: first \fIv\fR video outputs, then
\&\fIa\fR audio outputs.
.PP
There are \fIn\fRx(\fIv\fR+\fIa\fR) inputs: first the inputs for the first
segment, in the same order as the outputs, then the inputs for the second
segment, etc.
.PP
Related streams do not always have exactly the same duration, for various
reasons including codec frame size or sloppy authoring. For that reason,
related synchronized streams (e.g. a video and its audio track) should be
concatenated at once. The concat filter will use the duration of the longest
stream in each segment (except the last one), and if necessary pad shorter
audio streams with silence.
.PP
For this filter to work correctly, all segments must start at timestamp 0.
.PP
All corresponding streams must have the same parameters in all segments; the
filtering system will automatically select a common pixel format for video
streams, and a common sample format, sample rate and channel layout for
audio streams, but other settings, such as resolution, must be converted
explicitly by the user.
.PP
Different frame rates are acceptable but will result in variable frame rate
at output; be sure to configure the output file to handle it.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Concatenate an opening, an episode and an ending, all in bilingual version
(video in stream 0, audio in streams 1 and 2):
.Sp
.Vb 4
\&        ffmpeg \-i opening.mkv \-i episode.mkv \-i ending.mkv \-filter_complex \e
\&          \*(Aq[0:0] [0:1] [0:2] [1:0] [1:1] [1:2] [2:0] [2:1] [2:2]
\&           concat=n=3:v=1:a=2 [v] [a1] [a2]\*(Aq \e
\&          \-map \*(Aq[v]\*(Aq \-map \*(Aq[a1]\*(Aq \-map \*(Aq[a2]\*(Aq output.mkv
.Ve
.IP \(bu 4
Concatenate two parts, handling audio and video separately, using the
(a)movie sources, and adjusting the resolution:
.Sp
.Vb 3
\&        movie=part1.mp4, scale=512:288 [v1] ; amovie=part1.mp4 [a1] ;
\&        movie=part2.mp4, scale=512:288 [v2] ; amovie=part2.mp4 [a2] ;
\&        [v1] [v2] concat [outv] ; [a1] [a2] concat=v=0:a=1 [outa]
.Ve
.Sp
Note that a desync will happen at the stitch if the audio and video streams
do not have exactly the same duration in the first file.
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
This filter supports the following commands:
.IP \fBnext\fR 4
.IX Item "next"
Close the current segment and step to the next one
.SS ebur128
.IX Subsection "ebur128"
EBU R128 scanner filter. This filter takes an audio stream and analyzes its loudness
level. By default, it logs a message at a frequency of 10Hz with the
Momentary loudness (identified by \f(CW\*(C`M\*(C'\fR), Short-term loudness (\f(CW\*(C`S\*(C'\fR),
Integrated loudness (\f(CW\*(C`I\*(C'\fR) and Loudness Range (\f(CW\*(C`LRA\*(C'\fR).
.PP
The filter can only analyze streams which have a sampling rate of 48000 Hz and whose
sample format is double-precision floating point. The input stream will be converted to
this specification, if needed. Users may need to insert aformat and/or aresample filters
after this filter to obtain the original parameters.
.PP
The filter also has a video output (see the \fIvideo\fR option) with a real
time graph to observe the loudness evolution. The graphic contains the logged
message mentioned above, so it is not printed anymore when this option is set,
unless the verbose logging is set. The main graphing area contains the
short-term loudness (3 seconds of analysis), and the gauge on the right is for
the momentary loudness (400 milliseconds), but can optionally be configured
to instead display short-term loudness (see \fIgauge\fR).
.PP
The green area marks a  +/\- 1LU target range around the target loudness
(\-23LUFS by default, unless modified through \fItarget\fR).
.PP
More information about the Loudness Recommendation EBU R128 on
<\fBhttp://tech.ebu.ch/loudness\fR>.
.PP
The filter accepts the following options:
.IP \fBvideo\fR 4
.IX Item "video"
Activate the video output. The audio stream is passed unchanged whether this
option is set or no. The video stream will be the first output stream if
activated. Default is \f(CW0\fR.
.IP \fBsize\fR 4
.IX Item "size"
Set the video size. This option is for video only. For the syntax of this
option, check the
\&\fB"Video size" section in the ffmpeg-utils manual\fR.
Default and minimum resolution is \f(CW\*(C`640x480\*(C'\fR.
.IP \fBmeter\fR 4
.IX Item "meter"
Set the EBU scale meter. Default is \f(CW9\fR. Common values are \f(CW9\fR and
\&\f(CW18\fR, respectively for EBU scale meter +9 and EBU scale meter +18. Any
other integer value between this range is allowed.
.IP \fBmetadata\fR 4
.IX Item "metadata"
Set metadata injection. If set to \f(CW1\fR, the audio input will be segmented
into 100ms output frames, each of them containing various loudness information
in metadata.  All the metadata keys are prefixed with \f(CW\*(C`lavfi.r128.\*(C'\fR.
.Sp
Default is \f(CW0\fR.
.IP \fBframelog\fR 4
.IX Item "framelog"
Force the frame logging level.
.Sp
Available values are:
.RS 4
.IP \fBinfo\fR 4
.IX Item "info"
information logging level
.IP \fBverbose\fR 4
.IX Item "verbose"
verbose logging level
.RE
.RS 4
.Sp
By default, the logging level is set to \fIinfo\fR. If the \fBvideo\fR or
the \fBmetadata\fR options are set, it switches to \fIverbose\fR.
.RE
.IP \fBpeak\fR 4
.IX Item "peak"
Set peak mode(s).
.Sp
Available modes can be cumulated (the option is a \f(CW\*(C`flag\*(C'\fR type). Possible
values are:
.RS 4
.IP \fBnone\fR 4
.IX Item "none"
Disable any peak mode (default).
.IP \fBsample\fR 4
.IX Item "sample"
Enable sample-peak mode.
.Sp
Simple peak mode looking for the higher sample value. It logs a message
for sample-peak (identified by \f(CW\*(C`SPK\*(C'\fR).
.IP \fBtrue\fR 4
.IX Item "true"
Enable true-peak mode.
.Sp
If enabled, the peak lookup is done on an over-sampled version of the input
stream for better peak accuracy. It logs a message for true-peak.
(identified by \f(CW\*(C`TPK\*(C'\fR) and true-peak per frame (identified by \f(CW\*(C`FTPK\*(C'\fR).
This mode requires a build with \f(CW\*(C`libswresample\*(C'\fR.
.RE
.RS 4
.RE
.IP \fBdualmono\fR 4
.IX Item "dualmono"
Treat mono input files as "dual mono". If a mono file is intended for playback
on a stereo system, its EBU R128 measurement will be perceptually incorrect.
If set to \f(CW\*(C`true\*(C'\fR, this option will compensate for this effect.
Multi-channel input files are not affected by this option.
.IP \fBpanlaw\fR 4
.IX Item "panlaw"
Set a specific pan law to be used for the measurement of dual mono files.
This parameter is optional, and has a default value of \-3.01dB.
.IP \fBtarget\fR 4
.IX Item "target"
Set a specific target level (in LUFS) used as relative zero in the visualization.
This parameter is optional and has a default value of \-23LUFS as specified
by EBU R128. However, material published online may prefer a level of \-16LUFS
(e.g. for use with podcasts or video platforms).
.IP \fBgauge\fR 4
.IX Item "gauge"
Set the value displayed by the gauge. Valid values are \f(CW\*(C`momentary\*(C'\fR and s
\&\f(CW\*(C`shortterm\*(C'\fR. By default the momentary value will be used, but in certain
scenarios it may be more useful to observe the short term value instead (e.g.
live mixing).
.IP \fBscale\fR 4
.IX Item "scale"
Sets the display scale for the loudness. Valid parameters are \f(CW\*(C`absolute\*(C'\fR
(in LUFS) or \f(CW\*(C`relative\*(C'\fR (LU) relative to the target. This only affects the
video output, not the summary or continuous log output.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Real-time graph using \fBffplay\fR, with a EBU scale meter +18:
.Sp
.Vb 1
\&        ffplay \-f lavfi \-i "amovie=input.mp3,ebur128=video=1:meter=18 [out0][out1]"
.Ve
.IP \(bu 4
Run an analysis with \fBffmpeg\fR:
.Sp
.Vb 1
\&        ffmpeg \-nostats \-i input.mp3 \-filter_complex ebur128 \-f null \-
.Ve
.SS "interleave, ainterleave"
.IX Subsection "interleave, ainterleave"
Temporally interleave frames from several inputs.
.PP
\&\f(CW\*(C`interleave\*(C'\fR works with video inputs, \f(CW\*(C`ainterleave\*(C'\fR with audio.
.PP
These filters read frames from several inputs and send the oldest
queued frame to the output.
.PP
Input streams must have well defined, monotonically increasing frame
timestamp values.
.PP
In order to submit one frame to output, these filters need to enqueue
at least one frame for each input, so they cannot work in case one
input is not yet terminated and will not receive incoming frames.
.PP
For example consider the case when one input is a \f(CW\*(C`select\*(C'\fR filter
which always drops input frames. The \f(CW\*(C`interleave\*(C'\fR filter will keep
reading from that input, but it will never be able to send new frames
to output until the input sends an end-of-stream signal.
.PP
Also, depending on inputs synchronization, the filters will drop
frames in case one input receives more frames than the other ones, and
the queue is already filled.
.PP
These filters accept the following options:
.IP "\fBnb_inputs, n\fR" 4
.IX Item "nb_inputs, n"
Set the number of different inputs, it is 2 by default.
.IP \fBduration\fR 4
.IX Item "duration"
How to determine the end-of-stream.
.RS 4
.IP \fBlongest\fR 4
.IX Item "longest"
The duration of the longest input. (default)
.IP \fBshortest\fR 4
.IX Item "shortest"
The duration of the shortest input.
.IP \fBfirst\fR 4
.IX Item "first"
The duration of the first input.
.RE
.RS 4
.RE
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Interleave frames belonging to different streams using \fBffmpeg\fR:
.Sp
.Vb 1
\&        ffmpeg \-i bambi.avi \-i pr0n.mkv \-filter_complex "[0:v][1:v] interleave" out.avi
.Ve
.IP \(bu 4
Add flickering blur effect:
.Sp
.Vb 1
\&        select=\*(Aqif(gt(random(0), 0.2), 1, 2)\*(Aq:n=2 [tmp], boxblur=2:2, [tmp] interleave
.Ve
.SS "metadata, ametadata"
.IX Subsection "metadata, ametadata"
Manipulate frame metadata.
.PP
This filter accepts the following options:
.IP \fBmode\fR 4
.IX Item "mode"
Set mode of operation of the filter.
.Sp
Can be one of the following:
.RS 4
.IP \fBselect\fR 4
.IX Item "select"
If both \f(CW\*(C`value\*(C'\fR and \f(CW\*(C`key\*(C'\fR is set, select frames
which have such metadata. If only \f(CW\*(C`key\*(C'\fR is set, select
every frame that has such key in metadata.
.IP \fBadd\fR 4
.IX Item "add"
Add new metadata \f(CW\*(C`key\*(C'\fR and \f(CW\*(C`value\*(C'\fR. If key is already available
do nothing.
.IP \fBmodify\fR 4
.IX Item "modify"
Modify value of already present key.
.IP \fBdelete\fR 4
.IX Item "delete"
If \f(CW\*(C`value\*(C'\fR is set, delete only keys that have such value.
Otherwise, delete key. If \f(CW\*(C`key\*(C'\fR is not set, delete all metadata values in
the frame.
.IP \fBprint\fR 4
.IX Item "print"
Print key and its value if metadata was found. If \f(CW\*(C`key\*(C'\fR is not set print all
metadata values available in frame.
.RE
.RS 4
.RE
.IP \fBkey\fR 4
.IX Item "key"
Set key used with all modes. Must be set for all modes except \f(CW\*(C`print\*(C'\fR and \f(CW\*(C`delete\*(C'\fR.
.IP \fBvalue\fR 4
.IX Item "value"
Set metadata value which will be used. This option is mandatory for
\&\f(CW\*(C`modify\*(C'\fR and \f(CW\*(C`add\*(C'\fR mode.
.IP \fBfunction\fR 4
.IX Item "function"
Which function to use when comparing metadata value and \f(CW\*(C`value\*(C'\fR.
.Sp
Can be one of following:
.RS 4
.IP \fBsame_str\fR 4
.IX Item "same_str"
Values are interpreted as strings, returns true if metadata value is same as \f(CW\*(C`value\*(C'\fR.
.IP \fBstarts_with\fR 4
.IX Item "starts_with"
Values are interpreted as strings, returns true if metadata value starts with
the \f(CW\*(C`value\*(C'\fR option string.
.IP \fBless\fR 4
.IX Item "less"
Values are interpreted as floats, returns true if metadata value is less than \f(CW\*(C`value\*(C'\fR.
.IP \fBequal\fR 4
.IX Item "equal"
Values are interpreted as floats, returns true if \f(CW\*(C`value\*(C'\fR is equal with metadata value.
.IP \fBgreater\fR 4
.IX Item "greater"
Values are interpreted as floats, returns true if metadata value is greater than \f(CW\*(C`value\*(C'\fR.
.IP \fBexpr\fR 4
.IX Item "expr"
Values are interpreted as floats, returns true if expression from option \f(CW\*(C`expr\*(C'\fR
evaluates to true.
.IP \fBends_with\fR 4
.IX Item "ends_with"
Values are interpreted as strings, returns true if metadata value ends with
the \f(CW\*(C`value\*(C'\fR option string.
.RE
.RS 4
.RE
.IP \fBexpr\fR 4
.IX Item "expr"
Set expression which is used when \f(CW\*(C`function\*(C'\fR is set to \f(CW\*(C`expr\*(C'\fR.
The expression is evaluated through the eval API and can contain the following
constants:
.RS 4
.IP \fBVALUE1\fR 4
.IX Item "VALUE1"
Float representation of \f(CW\*(C`value\*(C'\fR from metadata key.
.IP \fBVALUE2\fR 4
.IX Item "VALUE2"
Float representation of \f(CW\*(C`value\*(C'\fR as supplied by user in \f(CW\*(C`value\*(C'\fR option.
.RE
.RS 4
.RE
.IP \fBfile\fR 4
.IX Item "file"
If specified in \f(CW\*(C`print\*(C'\fR mode, output is written to the named file. Instead of
plain filename any writable url can be specified. Filename ``\-'' is a shorthand
for standard output. If \f(CW\*(C`file\*(C'\fR option is not set, output is written to the log
with AV_LOG_INFO loglevel.
.IP \fBdirect\fR 4
.IX Item "direct"
Reduces buffering in print mode when output is written to a URL set using \fIfile\fR.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Print all metadata values for frames with key \f(CW\*(C`lavfi.signalstats.YDIF\*(C'\fR with values
between 0 and 1.
.Sp
.Vb 1
\&        signalstats,metadata=print:key=lavfi.signalstats.YDIF:value=0:function=expr:expr=\*(Aqbetween(VALUE1,0,1)\*(Aq
.Ve
.IP \(bu 4
Print silencedetect output to file \fImetadata.txt\fR.
.Sp
.Vb 1
\&        silencedetect,ametadata=mode=print:file=metadata.txt
.Ve
.IP \(bu 4
Direct all metadata to a pipe with file descriptor 4.
.Sp
.Vb 1
\&        metadata=mode=print:file=\*(Aqpipe\e:4\*(Aq
.Ve
.SS "perms, aperms"
.IX Subsection "perms, aperms"
Set read/write permissions for the output frames.
.PP
These filters are mainly aimed at developers to test direct path in the
following filter in the filtergraph.
.PP
The filters accept the following options:
.IP \fBmode\fR 4
.IX Item "mode"
Select the permissions mode.
.Sp
It accepts the following values:
.RS 4
.IP \fBnone\fR 4
.IX Item "none"
Do nothing. This is the default.
.IP \fBro\fR 4
.IX Item "ro"
Set all the output frames read-only.
.IP \fBrw\fR 4
.IX Item "rw"
Set all the output frames directly writable.
.IP \fBtoggle\fR 4
.IX Item "toggle"
Make the frame read-only if writable, and writable if read-only.
.IP \fBrandom\fR 4
.IX Item "random"
Set each output frame read-only or writable randomly.
.RE
.RS 4
.RE
.IP \fBseed\fR 4
.IX Item "seed"
Set the seed for the \fIrandom\fR mode, must be an integer included between
\&\f(CW0\fR and \f(CW\*(C`UINT32_MAX\*(C'\fR. If not specified, or if explicitly set to
\&\f(CW\-1\fR, the filter will try to use a good random seed on a best effort
basis.
.PP
Note: in case of auto-inserted filter between the permission filter and the
following one, the permission might not be received as expected in that
following filter. Inserting a \fBformat\fR or \fBaformat\fR filter before the
perms/aperms filter can avoid this problem.
.SS "realtime, arealtime"
.IX Subsection "realtime, arealtime"
Slow down filtering to match real time approximately.
.PP
These filters will pause the filtering for a variable amount of time to
match the output rate with the input timestamps.
They are similar to the \fBre\fR option to \f(CW\*(C`ffmpeg\*(C'\fR.
.PP
They accept the following options:
.IP \fBlimit\fR 4
.IX Item "limit"
Time limit for the pauses. Any pause longer than that will be considered
a timestamp discontinuity and reset the timer. Default is 2 seconds.
.IP \fBspeed\fR 4
.IX Item "speed"
Speed factor for processing. The value must be a float larger than zero.
Values larger than 1.0 will result in faster than realtime processing,
smaller will slow processing down. The \fIlimit\fR is automatically adapted
accordingly. Default is 1.0.
.Sp
A processing speed faster than what is possible without these filters cannot
be achieved.
.SS "select, aselect"
.IX Subsection "select, aselect"
Select frames to pass in output.
.PP
This filter accepts the following options:
.IP "\fBexpr, e\fR" 4
.IX Item "expr, e"
Set expression, which is evaluated for each input frame.
.Sp
If the expression is evaluated to zero, the frame is discarded.
.Sp
If the evaluation result is negative or NaN, the frame is sent to the
first output; otherwise it is sent to the output with index
\&\f(CW\*(C`ceil(val)\-1\*(C'\fR, assuming that the input index starts from 0.
.Sp
For example a value of \f(CW1.2\fR corresponds to the output with index
\&\f(CW\*(C`ceil(1.2)\-1 = 2\-1 = 1\*(C'\fR, that is the second output.
.IP "\fBoutputs, n\fR" 4
.IX Item "outputs, n"
Set the number of outputs. The output to which to send the selected
frame is based on the result of the evaluation. Default value is 1.
.PP
The expression can contain the following constants:
.IP \fBn\fR 4
.IX Item "n"
The (sequential) number of the filtered frame, starting from 0.
.IP \fBselected_n\fR 4
.IX Item "selected_n"
The (sequential) number of the selected frame, starting from 0.
.IP \fBprev_selected_n\fR 4
.IX Item "prev_selected_n"
The sequential number of the last selected frame. It's NAN if undefined.
.IP \fBTB\fR 4
.IX Item "TB"
The timebase of the input timestamps.
.IP \fBpts\fR 4
.IX Item "pts"
The PTS (Presentation TimeStamp) of the filtered video frame,
expressed in \fITB\fR units. It's NAN if undefined.
.IP \fBt\fR 4
.IX Item "t"
The PTS of the filtered video frame,
expressed in seconds. It's NAN if undefined.
.IP \fBprev_pts\fR 4
.IX Item "prev_pts"
The PTS of the previously filtered video frame. It's NAN if undefined.
.IP \fBprev_selected_pts\fR 4
.IX Item "prev_selected_pts"
The PTS of the last previously filtered video frame. It's NAN if undefined.
.IP \fBprev_selected_t\fR 4
.IX Item "prev_selected_t"
The PTS of the last previously selected video frame, expressed in seconds. It's NAN if undefined.
.IP \fBstart_pts\fR 4
.IX Item "start_pts"
The PTS of the first video frame in the video. It's NAN if undefined.
.IP \fBstart_t\fR 4
.IX Item "start_t"
The time of the first video frame in the video. It's NAN if undefined.
.IP "\fBpict_type\fR \fI(video only)\fR" 4
.IX Item "pict_type (video only)"
The type of the filtered frame. It can assume one of the following
values:
.RS 4
.IP \fBI\fR 4
.IX Item "I"
.PD 0
.IP \fBP\fR 4
.IX Item "P"
.IP \fBB\fR 4
.IX Item "B"
.IP \fBS\fR 4
.IX Item "S"
.IP \fBSI\fR 4
.IX Item "SI"
.IP \fBSP\fR 4
.IX Item "SP"
.IP \fBBI\fR 4
.IX Item "BI"
.RE
.RS 4
.RE
.IP "\fBinterlace_type\fR \fI(video only)\fR" 4
.IX Item "interlace_type (video only)"
.PD
The frame interlace type. It can assume one of the following values:
.RS 4
.IP \fBPROGRESSIVE\fR 4
.IX Item "PROGRESSIVE"
The frame is progressive (not interlaced).
.IP \fBTOPFIRST\fR 4
.IX Item "TOPFIRST"
The frame is top-field-first.
.IP \fBBOTTOMFIRST\fR 4
.IX Item "BOTTOMFIRST"
The frame is bottom-field-first.
.RE
.RS 4
.RE
.IP "\fBconsumed_sample_n\fR \fI(audio only)\fR" 4
.IX Item "consumed_sample_n (audio only)"
the number of selected samples before the current frame
.IP "\fBsamples_n\fR \fI(audio only)\fR" 4
.IX Item "samples_n (audio only)"
the number of samples in the current frame
.IP "\fBsample_rate\fR \fI(audio only)\fR" 4
.IX Item "sample_rate (audio only)"
the input sample rate
.IP \fBkey\fR 4
.IX Item "key"
This is 1 if the filtered frame is a key-frame, 0 otherwise.
.IP \fBpos\fR 4
.IX Item "pos"
the position in the file of the filtered frame, \-1 if the information
is not available (e.g. for synthetic video)
.IP "\fBscene\fR \fI(video only)\fR" 4
.IX Item "scene (video only)"
value between 0 and 1 to indicate a new scene; a low value reflects a low
probability for the current frame to introduce a new scene, while a higher
value means the current frame is more likely to be one (see the example below)
.IP \fBconcatdec_select\fR 4
.IX Item "concatdec_select"
The concat demuxer can select only part of a concat input file by setting an
inpoint and an outpoint, but the output packets may not be entirely contained
in the selected interval. By using this variable, it is possible to skip frames
generated by the concat demuxer which are not exactly contained in the selected
interval.
.Sp
This works by comparing the frame pts against the \fIlavf.concat.start_time\fR
and the \fIlavf.concat.duration\fR packet metadata values which are also
present in the decoded frames.
.Sp
The \fIconcatdec_select\fR variable is \-1 if the frame pts is at least
start_time and either the duration metadata is missing or the frame pts is less
than start_time + duration, 0 otherwise, and NaN if the start_time metadata is
missing.
.Sp
That basically means that an input frame is selected if its pts is within the
interval set by the concat demuxer.
.PP
The default value of the select expression is "1".
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Select all frames in input:
.Sp
.Vb 1
\&        select
.Ve
.Sp
The example above is the same as:
.Sp
.Vb 1
\&        select=1
.Ve
.IP \(bu 4
Skip all frames:
.Sp
.Vb 1
\&        select=0
.Ve
.IP \(bu 4
Select only I\-frames:
.Sp
.Vb 1
\&        select=\*(Aqeq(pict_type\e,I)\*(Aq
.Ve
.IP \(bu 4
Select one frame every 100:
.Sp
.Vb 1
\&        select=\*(Aqnot(mod(n\e,100))\*(Aq
.Ve
.IP \(bu 4
Select only frames contained in the 10\-20 time interval:
.Sp
.Vb 1
\&        select=between(t\e,10\e,20)
.Ve
.IP \(bu 4
Select only I\-frames contained in the 10\-20 time interval:
.Sp
.Vb 1
\&        select=between(t\e,10\e,20)*eq(pict_type\e,I)
.Ve
.IP \(bu 4
Select frames with a minimum distance of 10 seconds:
.Sp
.Vb 1
\&        select=\*(Aqisnan(prev_selected_t)+gte(t\-prev_selected_t\e,10)\*(Aq
.Ve
.IP \(bu 4
Use aselect to select only audio frames with samples number > 100:
.Sp
.Vb 1
\&        aselect=\*(Aqgt(samples_n\e,100)\*(Aq
.Ve
.IP \(bu 4
Create a mosaic of the first scenes:
.Sp
.Vb 1
\&        ffmpeg \-i video.avi \-vf select=\*(Aqgt(scene\e,0.4)\*(Aq,scale=160:120,tile \-frames:v 1 preview.png
.Ve
.Sp
Comparing \fIscene\fR against a value between 0.3 and 0.5 is generally a sane
choice.
.IP \(bu 4
Send even and odd frames to separate outputs, and compose them:
.Sp
.Vb 1
\&        select=n=2:e=\*(Aqmod(n, 2)+1\*(Aq [odd][even]; [odd] pad=h=2*ih [tmp]; [tmp][even] overlay=y=h
.Ve
.IP \(bu 4
Select useful frames from an ffconcat file which is using inpoints and
outpoints but where the source files are not intra frame only.
.Sp
.Vb 1
\&        ffmpeg \-copyts \-vsync 0 \-segment_time_metadata 1 \-i input.ffconcat \-vf select=concatdec_select \-af aselect=concatdec_select output.avi
.Ve
.SS "sendcmd, asendcmd"
.IX Subsection "sendcmd, asendcmd"
Send commands to filters in the filtergraph.
.PP
These filters read commands to be sent to other filters in the
filtergraph.
.PP
\&\f(CW\*(C`sendcmd\*(C'\fR must be inserted between two video filters,
\&\f(CW\*(C`asendcmd\*(C'\fR must be inserted between two audio filters, but apart
from that they act the same way.
.PP
The specification of commands can be provided in the filter arguments
with the \fIcommands\fR option, or in a file specified by the
\&\fIfilename\fR option.
.PP
These filters accept the following options:
.IP "\fBcommands, c\fR" 4
.IX Item "commands, c"
Set the commands to be read and sent to the other filters.
.IP "\fBfilename, f\fR" 4
.IX Item "filename, f"
Set the filename of the commands to be read and sent to the other
filters.
.PP
\fICommands syntax\fR
.IX Subsection "Commands syntax"
.PP
A commands description consists of a sequence of interval
specifications, comprising a list of commands to be executed when a
particular event related to that interval occurs. The occurring event
is typically the current frame time entering or leaving a given time
interval.
.PP
An interval is specified by the following syntax:
.PP
.Vb 1
\&        <START>[\-<END>] <COMMANDS>;
.Ve
.PP
The time interval is specified by the \fISTART\fR and \fIEND\fR times.
\&\fIEND\fR is optional and defaults to the maximum time.
.PP
The current frame time is considered within the specified interval if
it is included in the interval [\fISTART\fR, \fIEND\fR), that is when
the time is greater or equal to \fISTART\fR and is lesser than
\&\fIEND\fR.
.PP
\&\fICOMMANDS\fR consists of a sequence of one or more command
specifications, separated by ",", relating to that interval.  The
syntax of a command specification is given by:
.PP
.Vb 1
\&        [<FLAGS>] <TARGET> <COMMAND> <ARG>
.Ve
.PP
\&\fIFLAGS\fR is optional and specifies the type of events relating to
the time interval which enable sending the specified command, and must
be a non-null sequence of identifier flags separated by "+" or "|" and
enclosed between "[" and "]".
.PP
The following flags are recognized:
.IP \fBenter\fR 4
.IX Item "enter"
The command is sent when the current frame timestamp enters the
specified interval. In other words, the command is sent when the
previous frame timestamp was not in the given interval, and the
current is.
.IP \fBleave\fR 4
.IX Item "leave"
The command is sent when the current frame timestamp leaves the
specified interval. In other words, the command is sent when the
previous frame timestamp was in the given interval, and the
current is not.
.IP \fBexpr\fR 4
.IX Item "expr"
The command \fIARG\fR is interpreted as expression and result of
expression is passed as \fIARG\fR.
.Sp
The expression is evaluated through the eval API and can contain the following
constants:
.RS 4
.IP \fBPOS\fR 4
.IX Item "POS"
Original position in the file of the frame, or undefined if undefined
for the current frame.
.IP \fBPTS\fR 4
.IX Item "PTS"
The presentation timestamp in input.
.IP \fBN\fR 4
.IX Item "N"
The count of the input frame for video or audio, starting from 0.
.IP \fBT\fR 4
.IX Item "T"
The time in seconds of the current frame.
.IP \fBTS\fR 4
.IX Item "TS"
The start time in seconds of the current command interval.
.IP \fBTE\fR 4
.IX Item "TE"
The end time in seconds of the current command interval.
.IP \fBTI\fR 4
.IX Item "TI"
The interpolated time of the current command interval, TI = (T \- TS) / (TE \- TS).
.RE
.RS 4
.RE
.PP
If \fIFLAGS\fR is not specified, a default value of \f(CW\*(C`[enter]\*(C'\fR is
assumed.
.PP
\&\fITARGET\fR specifies the target of the command, usually the name of
the filter class or a specific filter instance name.
.PP
\&\fICOMMAND\fR specifies the name of the command for the target filter.
.PP
\&\fIARG\fR is optional and specifies the optional list of argument for
the given \fICOMMAND\fR.
.PP
Between one interval specification and another, whitespaces, or
sequences of characters starting with \f(CW\*(C`#\*(C'\fR until the end of line,
are ignored and can be used to annotate comments.
.PP
A simplified BNF description of the commands specification syntax
follows:
.PP
.Vb 6
\&        <COMMAND_FLAG>  ::= "enter" | "leave"
\&        <COMMAND_FLAGS> ::= <COMMAND_FLAG> [(+|"|")<COMMAND_FLAG>]
\&        <COMMAND>       ::= ["[" <COMMAND_FLAGS> "]"] <TARGET> <COMMAND> [<ARG>]
\&        <COMMANDS>      ::= <COMMAND> [,<COMMANDS>]
\&        <INTERVAL>      ::= <START>[\-<END>] <COMMANDS>
\&        <INTERVALS>     ::= <INTERVAL>[;<INTERVALS>]
.Ve
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Specify audio tempo change at second 4:
.Sp
.Vb 1
\&        asendcmd=c=\*(Aq4.0 atempo tempo 1.5\*(Aq,atempo
.Ve
.IP \(bu 4
Target a specific filter instance:
.Sp
.Vb 1
\&        asendcmd=c=\*(Aq4.0 atempo@my tempo 1.5\*(Aq,atempo@my
.Ve
.IP \(bu 4
Specify a list of drawtext and hue commands in a file.
.Sp
.Vb 3
\&        # show text in the interval 5\-10
\&        5.0\-10.0 [enter] drawtext reinit \*(Aqfontfile=FreeSerif.ttf:text=hello world\*(Aq,
\&                 [leave] drawtext reinit \*(Aqfontfile=FreeSerif.ttf:text=\*(Aq;
\&        
\&        # desaturate the image in the interval 15\-20
\&        15.0\-20.0 [enter] hue s 0,
\&                  [enter] drawtext reinit \*(Aqfontfile=FreeSerif.ttf:text=nocolor\*(Aq,
\&                  [leave] hue s 1,
\&                  [leave] drawtext reinit \*(Aqfontfile=FreeSerif.ttf:text=color\*(Aq;
\&        
\&        # apply an exponential saturation fade\-out effect, starting from time 25
\&        25 [enter] hue s exp(25\-t)
.Ve
.Sp
A filtergraph allowing to read and process the above command list
stored in a file \fItest.cmd\fR, can be specified with:
.Sp
.Vb 1
\&        sendcmd=f=test.cmd,drawtext=fontfile=FreeSerif.ttf:text=\*(Aq\*(Aq,hue
.Ve
.SS "setpts, asetpts"
.IX Subsection "setpts, asetpts"
Change the PTS (presentation timestamp) of the input frames.
.PP
\&\f(CW\*(C`setpts\*(C'\fR works on video frames, \f(CW\*(C`asetpts\*(C'\fR on audio frames.
.PP
This filter accepts the following options:
.IP \fBexpr\fR 4
.IX Item "expr"
The expression which is evaluated for each frame to construct its timestamp.
.PP
The expression is evaluated through the eval API and can contain the following
constants:
.IP "\fBFRAME_RATE, FR\fR" 4
.IX Item "FRAME_RATE, FR"
frame rate, only defined for constant frame-rate video
.IP \fBPTS\fR 4
.IX Item "PTS"
The presentation timestamp in input
.IP \fBN\fR 4
.IX Item "N"
The count of the input frame for video or the number of consumed samples,
not including the current frame for audio, starting from 0.
.IP \fBNB_CONSUMED_SAMPLES\fR 4
.IX Item "NB_CONSUMED_SAMPLES"
The number of consumed samples, not including the current frame (only
audio)
.IP "\fBNB_SAMPLES, S\fR" 4
.IX Item "NB_SAMPLES, S"
The number of samples in the current frame (only audio)
.IP "\fBSAMPLE_RATE, SR\fR" 4
.IX Item "SAMPLE_RATE, SR"
The audio sample rate.
.IP \fBSTARTPTS\fR 4
.IX Item "STARTPTS"
The PTS of the first frame.
.IP \fBSTARTT\fR 4
.IX Item "STARTT"
the time in seconds of the first frame
.IP \fBINTERLACED\fR 4
.IX Item "INTERLACED"
State whether the current frame is interlaced.
.IP \fBT\fR 4
.IX Item "T"
the time in seconds of the current frame
.IP \fBPOS\fR 4
.IX Item "POS"
original position in the file of the frame, or undefined if undefined
for the current frame
.IP \fBPREV_INPTS\fR 4
.IX Item "PREV_INPTS"
The previous input PTS.
.IP \fBPREV_INT\fR 4
.IX Item "PREV_INT"
previous input time in seconds
.IP \fBPREV_OUTPTS\fR 4
.IX Item "PREV_OUTPTS"
The previous output PTS.
.IP \fBPREV_OUTT\fR 4
.IX Item "PREV_OUTT"
previous output time in seconds
.IP \fBRTCTIME\fR 4
.IX Item "RTCTIME"
The wallclock (RTC) time in microseconds. This is deprecated, use \fBtime\fR\|(0)
instead.
.IP \fBRTCSTART\fR 4
.IX Item "RTCSTART"
The wallclock (RTC) time at the start of the movie in microseconds.
.IP \fBTB\fR 4
.IX Item "TB"
The timebase of the input timestamps.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Start counting PTS from zero
.Sp
.Vb 1
\&        setpts=PTS\-STARTPTS
.Ve
.IP \(bu 4
Apply fast motion effect:
.Sp
.Vb 1
\&        setpts=0.5*PTS
.Ve
.IP \(bu 4
Apply slow motion effect:
.Sp
.Vb 1
\&        setpts=2.0*PTS
.Ve
.IP \(bu 4
Set fixed rate of 25 frames per second:
.Sp
.Vb 1
\&        setpts=N/(25*TB)
.Ve
.IP \(bu 4
Set fixed rate 25 fps with some jitter:
.Sp
.Vb 1
\&        setpts=\*(Aq1/(25*TB) * (N + 0.05 * sin(N*2*PI/25))\*(Aq
.Ve
.IP \(bu 4
Apply an offset of 10 seconds to the input PTS:
.Sp
.Vb 1
\&        setpts=PTS+10/TB
.Ve
.IP \(bu 4
Generate timestamps from a "live source" and rebase onto the current timebase:
.Sp
.Vb 1
\&        setpts=\*(Aq(RTCTIME \- RTCSTART) / (TB * 1000000)\*(Aq
.Ve
.IP \(bu 4
Generate timestamps by counting samples:
.Sp
.Vb 1
\&        asetpts=N/SR/TB
.Ve
.SS setrange
.IX Subsection "setrange"
Force color range for the output video frame.
.PP
The \f(CW\*(C`setrange\*(C'\fR filter marks the color range property for the
output frames. It does not change the input frame, but only sets the
corresponding property, which affects how the frame is treated by
following filters.
.PP
The filter accepts the following options:
.IP \fBrange\fR 4
.IX Item "range"
Available values are:
.RS 4
.IP \fBauto\fR 4
.IX Item "auto"
Keep the same color range property.
.IP "\fBunspecified, unknown\fR" 4
.IX Item "unspecified, unknown"
Set the color range as unspecified.
.IP "\fBlimited, tv, mpeg\fR" 4
.IX Item "limited, tv, mpeg"
Set the color range as limited.
.IP "\fBfull, pc, jpeg\fR" 4
.IX Item "full, pc, jpeg"
Set the color range as full.
.RE
.RS 4
.RE
.SS "settb, asettb"
.IX Subsection "settb, asettb"
Set the timebase to use for the output frames timestamps.
It is mainly useful for testing timebase configuration.
.PP
It accepts the following parameters:
.IP "\fBexpr, tb\fR" 4
.IX Item "expr, tb"
The expression which is evaluated into the output timebase.
.PP
The value for \fBtb\fR is an arithmetic expression representing a
rational. The expression can contain the constants "AVTB" (the default
timebase), "intb" (the input timebase) and "sr" (the sample rate,
audio only). Default value is "intb".
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Set the timebase to 1/25:
.Sp
.Vb 1
\&        settb=expr=1/25
.Ve
.IP \(bu 4
Set the timebase to 1/10:
.Sp
.Vb 1
\&        settb=expr=0.1
.Ve
.IP \(bu 4
Set the timebase to 1001/1000:
.Sp
.Vb 1
\&        settb=1+0.001
.Ve
.IP \(bu 4
Set the timebase to 2*intb:
.Sp
.Vb 1
\&        settb=2*intb
.Ve
.IP \(bu 4
Set the default timebase value:
.Sp
.Vb 1
\&        settb=AVTB
.Ve
.SS showcqt
.IX Subsection "showcqt"
Convert input audio to a video output representing frequency spectrum
logarithmically using Brown-Puckette constant Q transform algorithm with
direct frequency domain coefficient calculation (but the transform itself
is not really constant Q, instead the Q factor is actually variable/clamped),
with musical tone scale, from E0 to D#10.
.PP
The filter accepts the following options:
.IP "\fBsize, s\fR" 4
.IX Item "size, s"
Specify the video size for the output. It must be even. For the syntax of this option,
check the \fB"Video size" section in the ffmpeg-utils manual\fR.
Default value is \f(CW\*(C`1920x1080\*(C'\fR.
.IP "\fBfps, rate, r\fR" 4
.IX Item "fps, rate, r"
Set the output frame rate. Default value is \f(CW25\fR.
.IP \fBbar_h\fR 4
.IX Item "bar_h"
Set the bargraph height. It must be even. Default value is \f(CW\-1\fR which
computes the bargraph height automatically.
.IP \fBaxis_h\fR 4
.IX Item "axis_h"
Set the axis height. It must be even. Default value is \f(CW\-1\fR which computes
the axis height automatically.
.IP \fBsono_h\fR 4
.IX Item "sono_h"
Set the sonogram height. It must be even. Default value is \f(CW\-1\fR which
computes the sonogram height automatically.
.IP \fBfullhd\fR 4
.IX Item "fullhd"
Set the fullhd resolution. This option is deprecated, use \fIsize\fR, \fIs\fR
instead. Default value is \f(CW1\fR.
.IP "\fBsono_v, volume\fR" 4
.IX Item "sono_v, volume"
Specify the sonogram volume expression. It can contain variables:
.RS 4
.IP \fBbar_v\fR 4
.IX Item "bar_v"
the \fIbar_v\fR evaluated expression
.IP "\fBfrequency, freq, f\fR" 4
.IX Item "frequency, freq, f"
the frequency where it is evaluated
.IP "\fBtimeclamp, tc\fR" 4
.IX Item "timeclamp, tc"
the value of \fItimeclamp\fR option
.RE
.RS 4
.Sp
and functions:
.IP \fBa_weighting(f)\fR 4
.IX Item "a_weighting(f)"
A\-weighting of equal loudness
.IP \fBb_weighting(f)\fR 4
.IX Item "b_weighting(f)"
B\-weighting of equal loudness
.IP \fBc_weighting(f)\fR 4
.IX Item "c_weighting(f)"
C\-weighting of equal loudness.
.RE
.RS 4
.Sp
Default value is \f(CW16\fR.
.RE
.IP "\fBbar_v, volume2\fR" 4
.IX Item "bar_v, volume2"
Specify the bargraph volume expression. It can contain variables:
.RS 4
.IP \fBsono_v\fR 4
.IX Item "sono_v"
the \fIsono_v\fR evaluated expression
.IP "\fBfrequency, freq, f\fR" 4
.IX Item "frequency, freq, f"
the frequency where it is evaluated
.IP "\fBtimeclamp, tc\fR" 4
.IX Item "timeclamp, tc"
the value of \fItimeclamp\fR option
.RE
.RS 4
.Sp
and functions:
.IP \fBa_weighting(f)\fR 4
.IX Item "a_weighting(f)"
A\-weighting of equal loudness
.IP \fBb_weighting(f)\fR 4
.IX Item "b_weighting(f)"
B\-weighting of equal loudness
.IP \fBc_weighting(f)\fR 4
.IX Item "c_weighting(f)"
C\-weighting of equal loudness.
.RE
.RS 4
.Sp
Default value is \f(CW\*(C`sono_v\*(C'\fR.
.RE
.IP "\fBsono_g, gamma\fR" 4
.IX Item "sono_g, gamma"
Specify the sonogram gamma. Lower gamma makes the spectrum more contrast,
higher gamma makes the spectrum having more range. Default value is \f(CW3\fR.
Acceptable range is \f(CW\*(C`[1, 7]\*(C'\fR.
.IP "\fBbar_g, gamma2\fR" 4
.IX Item "bar_g, gamma2"
Specify the bargraph gamma. Default value is \f(CW1\fR. Acceptable range is
\&\f(CW\*(C`[1, 7]\*(C'\fR.
.IP \fBbar_t\fR 4
.IX Item "bar_t"
Specify the bargraph transparency level. Lower value makes the bargraph sharper.
Default value is \f(CW1\fR. Acceptable range is \f(CW\*(C`[0, 1]\*(C'\fR.
.IP "\fBtimeclamp, tc\fR" 4
.IX Item "timeclamp, tc"
Specify the transform timeclamp. At low frequency, there is trade-off between
accuracy in time domain and frequency domain. If timeclamp is lower,
event in time domain is represented more accurately (such as fast bass drum),
otherwise event in frequency domain is represented more accurately
(such as bass guitar). Acceptable range is \f(CW\*(C`[0.002, 1]\*(C'\fR. Default value is \f(CW0.17\fR.
.IP \fBattack\fR 4
.IX Item "attack"
Set attack time in seconds. The default is \f(CW0\fR (disabled). Otherwise, it
limits future samples by applying asymmetric windowing in time domain, useful
when low latency is required. Accepted range is \f(CW\*(C`[0, 1]\*(C'\fR.
.IP \fBbasefreq\fR 4
.IX Item "basefreq"
Specify the transform base frequency. Default value is \f(CW20.01523126408007475\fR,
which is frequency 50 cents below E0. Acceptable range is \f(CW\*(C`[10, 100000]\*(C'\fR.
.IP \fBendfreq\fR 4
.IX Item "endfreq"
Specify the transform end frequency. Default value is \f(CW20495.59681441799654\fR,
which is frequency 50 cents above D#10. Acceptable range is \f(CW\*(C`[10, 100000]\*(C'\fR.
.IP \fBcoeffclamp\fR 4
.IX Item "coeffclamp"
This option is deprecated and ignored.
.IP \fBtlength\fR 4
.IX Item "tlength"
Specify the transform length in time domain. Use this option to control accuracy
trade-off between time domain and frequency domain at every frequency sample.
It can contain variables:
.RS 4
.IP "\fBfrequency, freq, f\fR" 4
.IX Item "frequency, freq, f"
the frequency where it is evaluated
.IP "\fBtimeclamp, tc\fR" 4
.IX Item "timeclamp, tc"
the value of \fItimeclamp\fR option.
.RE
.RS 4
.Sp
Default value is \f(CW\*(C`384*tc/(384+tc*f)\*(C'\fR.
.RE
.IP \fBcount\fR 4
.IX Item "count"
Specify the transform count for every video frame. Default value is \f(CW6\fR.
Acceptable range is \f(CW\*(C`[1, 30]\*(C'\fR.
.IP \fBfcount\fR 4
.IX Item "fcount"
Specify the transform count for every single pixel. Default value is \f(CW0\fR,
which makes it computed automatically. Acceptable range is \f(CW\*(C`[0, 10]\*(C'\fR.
.IP \fBfontfile\fR 4
.IX Item "fontfile"
Specify font file for use with freetype to draw the axis. If not specified,
use embedded font. Note that drawing with font file or embedded font is not
implemented with custom \fIbasefreq\fR and \fIendfreq\fR, use \fIaxisfile\fR
option instead.
.IP \fBfont\fR 4
.IX Item "font"
Specify fontconfig pattern. This has lower priority than \fIfontfile\fR. The
\&\f(CW\*(C`:\*(C'\fR in the pattern may be replaced by \f(CW\*(C`|\*(C'\fR to avoid unnecessary
escaping.
.IP \fBfontcolor\fR 4
.IX Item "fontcolor"
Specify font color expression. This is arithmetic expression that should return
integer value 0xRRGGBB. It can contain variables:
.RS 4
.IP "\fBfrequency, freq, f\fR" 4
.IX Item "frequency, freq, f"
the frequency where it is evaluated
.IP "\fBtimeclamp, tc\fR" 4
.IX Item "timeclamp, tc"
the value of \fItimeclamp\fR option
.RE
.RS 4
.Sp
and functions:
.IP \fBmidi(f)\fR 4
.IX Item "midi(f)"
midi number of frequency f, some midi numbers: E0(16), C1(24), C2(36), A4(69)
.IP "\fBr(x), g(x), b(x)\fR" 4
.IX Item "r(x), g(x), b(x)"
red, green, and blue value of intensity x.
.RE
.RS 4
.Sp
Default value is \f(CW\*(C`st(0, (midi(f)\-59.5)/12);
st(1, if(between(ld(0),0,1), 0.5\-0.5*cos(2*PI*ld(0)), 0));
r(1\-ld(1)) + b(ld(1))\*(C'\fR.
.RE
.IP \fBaxisfile\fR 4
.IX Item "axisfile"
Specify image file to draw the axis. This option override \fIfontfile\fR and
\&\fIfontcolor\fR option.
.IP "\fBaxis, text\fR" 4
.IX Item "axis, text"
Enable/disable drawing text to the axis. If it is set to \f(CW0\fR, drawing to
the axis is disabled, ignoring \fIfontfile\fR and \fIaxisfile\fR option.
Default value is \f(CW1\fR.
.IP \fBcsp\fR 4
.IX Item "csp"
Set colorspace. The accepted values are:
.RS 4
.IP \fBunspecified\fR 4
.IX Item "unspecified"
Unspecified (default)
.IP \fBbt709\fR 4
.IX Item "bt709"
BT.709
.IP \fBfcc\fR 4
.IX Item "fcc"
FCC
.IP \fBbt470bg\fR 4
.IX Item "bt470bg"
BT.470BG or BT.601\-6 625
.IP \fBsmpte170m\fR 4
.IX Item "smpte170m"
SMPTE\-170M or BT.601\-6 525
.IP \fBsmpte240m\fR 4
.IX Item "smpte240m"
SMPTE\-240M
.IP \fBbt2020ncl\fR 4
.IX Item "bt2020ncl"
BT.2020 with non-constant luminance
.RE
.RS 4
.RE
.IP \fBcscheme\fR 4
.IX Item "cscheme"
Set spectrogram color scheme. This is list of floating point values with format
\&\f(CW\*(C`left_r|left_g|left_b|right_r|right_g|right_b\*(C'\fR.
The default is \f(CW\*(C`1|0.5|0|0|0.5|1\*(C'\fR.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Playing audio while showing the spectrum:
.Sp
.Vb 1
\&        ffplay \-f lavfi \*(Aqamovie=a.mp3, asplit [a][out1]; [a] showcqt [out0]\*(Aq
.Ve
.IP \(bu 4
Same as above, but with frame rate 30 fps:
.Sp
.Vb 1
\&        ffplay \-f lavfi \*(Aqamovie=a.mp3, asplit [a][out1]; [a] showcqt=fps=30:count=5 [out0]\*(Aq
.Ve
.IP \(bu 4
Playing at 1280x720:
.Sp
.Vb 1
\&        ffplay \-f lavfi \*(Aqamovie=a.mp3, asplit [a][out1]; [a] showcqt=s=1280x720:count=4 [out0]\*(Aq
.Ve
.IP \(bu 4
Disable sonogram display:
.Sp
.Vb 1
\&        sono_h=0
.Ve
.IP \(bu 4
A1 and its harmonics: A1, A2, (near)E3, A3:
.Sp
.Vb 2
\&        ffplay \-f lavfi \*(Aqaevalsrc=0.1*sin(2*PI*55*t)+0.1*sin(4*PI*55*t)+0.1*sin(6*PI*55*t)+0.1*sin(8*PI*55*t),
\&                         asplit[a][out1]; [a] showcqt [out0]\*(Aq
.Ve
.IP \(bu 4
Same as above, but with more accuracy in frequency domain:
.Sp
.Vb 2
\&        ffplay \-f lavfi \*(Aqaevalsrc=0.1*sin(2*PI*55*t)+0.1*sin(4*PI*55*t)+0.1*sin(6*PI*55*t)+0.1*sin(8*PI*55*t),
\&                         asplit[a][out1]; [a] showcqt=timeclamp=0.5 [out0]\*(Aq
.Ve
.IP \(bu 4
Custom volume:
.Sp
.Vb 1
\&        bar_v=10:sono_v=bar_v*a_weighting(f)
.Ve
.IP \(bu 4
Custom gamma, now spectrum is linear to the amplitude.
.Sp
.Vb 1
\&        bar_g=2:sono_g=2
.Ve
.IP \(bu 4
Custom tlength equation:
.Sp
.Vb 1
\&        tc=0.33:tlength=\*(Aqst(0,0.17); 384*tc / (384 / ld(0) + tc*f /(1\-ld(0))) + 384*tc / (tc*f / ld(0) + 384 /(1\-ld(0)))\*(Aq
.Ve
.IP \(bu 4
Custom fontcolor and fontfile, C\-note is colored green, others are colored blue:
.Sp
.Vb 1
\&        fontcolor=\*(Aqif(mod(floor(midi(f)+0.5),12), 0x0000FF, g(1))\*(Aq:fontfile=myfont.ttf
.Ve
.IP \(bu 4
Custom font using fontconfig:
.Sp
.Vb 1
\&        font=\*(AqCourier New,Monospace,mono|bold\*(Aq
.Ve
.IP \(bu 4
Custom frequency range with custom axis using image file:
.Sp
.Vb 1
\&        axisfile=myaxis.png:basefreq=40:endfreq=10000
.Ve
.SS showfreqs
.IX Subsection "showfreqs"
Convert input audio to video output representing the audio power spectrum.
Audio amplitude is on Y\-axis while frequency is on X\-axis.
.PP
The filter accepts the following options:
.IP "\fBsize, s\fR" 4
.IX Item "size, s"
Specify size of video. For the syntax of this option, check the
\&\fB"Video size" section in the ffmpeg-utils manual\fR.
Default is \f(CW\*(C`1024x512\*(C'\fR.
.IP \fBmode\fR 4
.IX Item "mode"
Set display mode.
This set how each frequency bin will be represented.
.Sp
It accepts the following values:
.RS 4
.IP \fBline\fR 4
.IX Item "line"
.PD 0
.IP \fBbar\fR 4
.IX Item "bar"
.IP \fBdot\fR 4
.IX Item "dot"
.RE
.RS 4
.PD
.Sp
Default is \f(CW\*(C`bar\*(C'\fR.
.RE
.IP \fBascale\fR 4
.IX Item "ascale"
Set amplitude scale.
.Sp
It accepts the following values:
.RS 4
.IP \fBlin\fR 4
.IX Item "lin"
Linear scale.
.IP \fBsqrt\fR 4
.IX Item "sqrt"
Square root scale.
.IP \fBcbrt\fR 4
.IX Item "cbrt"
Cubic root scale.
.IP \fBlog\fR 4
.IX Item "log"
Logarithmic scale.
.RE
.RS 4
.Sp
Default is \f(CW\*(C`log\*(C'\fR.
.RE
.IP \fBfscale\fR 4
.IX Item "fscale"
Set frequency scale.
.Sp
It accepts the following values:
.RS 4
.IP \fBlin\fR 4
.IX Item "lin"
Linear scale.
.IP \fBlog\fR 4
.IX Item "log"
Logarithmic scale.
.IP \fBrlog\fR 4
.IX Item "rlog"
Reverse logarithmic scale.
.RE
.RS 4
.Sp
Default is \f(CW\*(C`lin\*(C'\fR.
.RE
.IP \fBwin_size\fR 4
.IX Item "win_size"
Set window size. Allowed range is from 16 to 65536.
.Sp
Default is \f(CW2048\fR
.IP \fBwin_func\fR 4
.IX Item "win_func"
Set windowing function.
.Sp
It accepts the following values:
.RS 4
.IP \fBrect\fR 4
.IX Item "rect"
.PD 0
.IP \fBbartlett\fR 4
.IX Item "bartlett"
.IP \fBhanning\fR 4
.IX Item "hanning"
.IP \fBhamming\fR 4
.IX Item "hamming"
.IP \fBblackman\fR 4
.IX Item "blackman"
.IP \fBwelch\fR 4
.IX Item "welch"
.IP \fBflattop\fR 4
.IX Item "flattop"
.IP \fBbharris\fR 4
.IX Item "bharris"
.IP \fBbnuttall\fR 4
.IX Item "bnuttall"
.IP \fBbhann\fR 4
.IX Item "bhann"
.IP \fBsine\fR 4
.IX Item "sine"
.IP \fBnuttall\fR 4
.IX Item "nuttall"
.IP \fBlanczos\fR 4
.IX Item "lanczos"
.IP \fBgauss\fR 4
.IX Item "gauss"
.IP \fBtukey\fR 4
.IX Item "tukey"
.IP \fBdolph\fR 4
.IX Item "dolph"
.IP \fBcauchy\fR 4
.IX Item "cauchy"
.IP \fBparzen\fR 4
.IX Item "parzen"
.IP \fBpoisson\fR 4
.IX Item "poisson"
.IP \fBbohman\fR 4
.IX Item "bohman"
.RE
.RS 4
.PD
.Sp
Default is \f(CW\*(C`hanning\*(C'\fR.
.RE
.IP \fBoverlap\fR 4
.IX Item "overlap"
Set window overlap. In range \f(CW\*(C`[0, 1]\*(C'\fR. Default is \f(CW1\fR,
which means optimal overlap for selected window function will be picked.
.IP \fBaveraging\fR 4
.IX Item "averaging"
Set time averaging. Setting this to 0 will display current maximal peaks.
Default is \f(CW1\fR, which means time averaging is disabled.
.IP \fBcolors\fR 4
.IX Item "colors"
Specify list of colors separated by space or by '|' which will be used to
draw channel frequencies. Unrecognized or missing colors will be replaced
by white color.
.IP \fBcmode\fR 4
.IX Item "cmode"
Set channel display mode.
.Sp
It accepts the following values:
.RS 4
.IP \fBcombined\fR 4
.IX Item "combined"
.PD 0
.IP \fBseparate\fR 4
.IX Item "separate"
.RE
.RS 4
.PD
.Sp
Default is \f(CW\*(C`combined\*(C'\fR.
.RE
.IP \fBminamp\fR 4
.IX Item "minamp"
Set minimum amplitude used in \f(CW\*(C`log\*(C'\fR amplitude scaler.
.IP \fBdata\fR 4
.IX Item "data"
Set data display mode.
.Sp
It accepts the following values:
.RS 4
.IP \fBmagnitude\fR 4
.IX Item "magnitude"
.PD 0
.IP \fBphase\fR 4
.IX Item "phase"
.IP \fBdelay\fR 4
.IX Item "delay"
.RE
.RS 4
.PD
.Sp
Default is \f(CW\*(C`magnitude\*(C'\fR.
.RE
.SS showspatial
.IX Subsection "showspatial"
Convert stereo input audio to a video output, representing the spatial relationship
between two channels.
.PP
The filter accepts the following options:
.IP "\fBsize, s\fR" 4
.IX Item "size, s"
Specify the video size for the output. For the syntax of this option, check the
\&\fB"Video size" section in the ffmpeg-utils manual\fR.
Default value is \f(CW\*(C`512x512\*(C'\fR.
.IP \fBwin_size\fR 4
.IX Item "win_size"
Set window size. Allowed range is from \fI1024\fR to \fI65536\fR. Default size is \fI4096\fR.
.IP \fBwin_func\fR 4
.IX Item "win_func"
Set window function.
.Sp
It accepts the following values:
.RS 4
.IP \fBrect\fR 4
.IX Item "rect"
.PD 0
.IP \fBbartlett\fR 4
.IX Item "bartlett"
.IP \fBhann\fR 4
.IX Item "hann"
.IP \fBhanning\fR 4
.IX Item "hanning"
.IP \fBhamming\fR 4
.IX Item "hamming"
.IP \fBblackman\fR 4
.IX Item "blackman"
.IP \fBwelch\fR 4
.IX Item "welch"
.IP \fBflattop\fR 4
.IX Item "flattop"
.IP \fBbharris\fR 4
.IX Item "bharris"
.IP \fBbnuttall\fR 4
.IX Item "bnuttall"
.IP \fBbhann\fR 4
.IX Item "bhann"
.IP \fBsine\fR 4
.IX Item "sine"
.IP \fBnuttall\fR 4
.IX Item "nuttall"
.IP \fBlanczos\fR 4
.IX Item "lanczos"
.IP \fBgauss\fR 4
.IX Item "gauss"
.IP \fBtukey\fR 4
.IX Item "tukey"
.IP \fBdolph\fR 4
.IX Item "dolph"
.IP \fBcauchy\fR 4
.IX Item "cauchy"
.IP \fBparzen\fR 4
.IX Item "parzen"
.IP \fBpoisson\fR 4
.IX Item "poisson"
.IP \fBbohman\fR 4
.IX Item "bohman"
.RE
.RS 4
.PD
.Sp
Default value is \f(CW\*(C`hann\*(C'\fR.
.RE
.IP \fBoverlap\fR 4
.IX Item "overlap"
Set ratio of overlap window. Default value is \f(CW0.5\fR.
When value is \f(CW1\fR overlap is set to recommended size for specific
window function currently used.
.SS showspectrum
.IX Subsection "showspectrum"
Convert input audio to a video output, representing the audio frequency
spectrum.
.PP
The filter accepts the following options:
.IP "\fBsize, s\fR" 4
.IX Item "size, s"
Specify the video size for the output. For the syntax of this option, check the
\&\fB"Video size" section in the ffmpeg-utils manual\fR.
Default value is \f(CW\*(C`640x512\*(C'\fR.
.IP \fBslide\fR 4
.IX Item "slide"
Specify how the spectrum should slide along the window.
.Sp
It accepts the following values:
.RS 4
.IP \fBreplace\fR 4
.IX Item "replace"
the samples start again on the left when they reach the right
.IP \fBscroll\fR 4
.IX Item "scroll"
the samples scroll from right to left
.IP \fBfullframe\fR 4
.IX Item "fullframe"
frames are only produced when the samples reach the right
.IP \fBrscroll\fR 4
.IX Item "rscroll"
the samples scroll from left to right
.RE
.RS 4
.Sp
Default value is \f(CW\*(C`replace\*(C'\fR.
.RE
.IP \fBmode\fR 4
.IX Item "mode"
Specify display mode.
.Sp
It accepts the following values:
.RS 4
.IP \fBcombined\fR 4
.IX Item "combined"
all channels are displayed in the same row
.IP \fBseparate\fR 4
.IX Item "separate"
all channels are displayed in separate rows
.RE
.RS 4
.Sp
Default value is \fBcombined\fR.
.RE
.IP \fBcolor\fR 4
.IX Item "color"
Specify display color mode.
.Sp
It accepts the following values:
.RS 4
.IP \fBchannel\fR 4
.IX Item "channel"
each channel is displayed in a separate color
.IP \fBintensity\fR 4
.IX Item "intensity"
each channel is displayed using the same color scheme
.IP \fBrainbow\fR 4
.IX Item "rainbow"
each channel is displayed using the rainbow color scheme
.IP \fBmoreland\fR 4
.IX Item "moreland"
each channel is displayed using the moreland color scheme
.IP \fBnebulae\fR 4
.IX Item "nebulae"
each channel is displayed using the nebulae color scheme
.IP \fBfire\fR 4
.IX Item "fire"
each channel is displayed using the fire color scheme
.IP \fBfiery\fR 4
.IX Item "fiery"
each channel is displayed using the fiery color scheme
.IP \fBfruit\fR 4
.IX Item "fruit"
each channel is displayed using the fruit color scheme
.IP \fBcool\fR 4
.IX Item "cool"
each channel is displayed using the cool color scheme
.IP \fBmagma\fR 4
.IX Item "magma"
each channel is displayed using the magma color scheme
.IP \fBgreen\fR 4
.IX Item "green"
each channel is displayed using the green color scheme
.IP \fBviridis\fR 4
.IX Item "viridis"
each channel is displayed using the viridis color scheme
.IP \fBplasma\fR 4
.IX Item "plasma"
each channel is displayed using the plasma color scheme
.IP \fBcividis\fR 4
.IX Item "cividis"
each channel is displayed using the cividis color scheme
.IP \fBterrain\fR 4
.IX Item "terrain"
each channel is displayed using the terrain color scheme
.RE
.RS 4
.Sp
Default value is \fBchannel\fR.
.RE
.IP \fBscale\fR 4
.IX Item "scale"
Specify scale used for calculating intensity color values.
.Sp
It accepts the following values:
.RS 4
.IP \fBlin\fR 4
.IX Item "lin"
linear
.IP \fBsqrt\fR 4
.IX Item "sqrt"
square root, default
.IP \fBcbrt\fR 4
.IX Item "cbrt"
cubic root
.IP \fBlog\fR 4
.IX Item "log"
logarithmic
.IP \fB4thrt\fR 4
.IX Item "4thrt"
4th root
.IP \fB5thrt\fR 4
.IX Item "5thrt"
5th root
.RE
.RS 4
.Sp
Default value is \fBsqrt\fR.
.RE
.IP \fBfscale\fR 4
.IX Item "fscale"
Specify frequency scale.
.Sp
It accepts the following values:
.RS 4
.IP \fBlin\fR 4
.IX Item "lin"
linear
.IP \fBlog\fR 4
.IX Item "log"
logarithmic
.RE
.RS 4
.Sp
Default value is \fBlin\fR.
.RE
.IP \fBsaturation\fR 4
.IX Item "saturation"
Set saturation modifier for displayed colors. Negative values provide
alternative color scheme. \f(CW0\fR is no saturation at all.
Saturation must be in [\-10.0, 10.0] range.
Default value is \f(CW1\fR.
.IP \fBwin_func\fR 4
.IX Item "win_func"
Set window function.
.Sp
It accepts the following values:
.RS 4
.IP \fBrect\fR 4
.IX Item "rect"
.PD 0
.IP \fBbartlett\fR 4
.IX Item "bartlett"
.IP \fBhann\fR 4
.IX Item "hann"
.IP \fBhanning\fR 4
.IX Item "hanning"
.IP \fBhamming\fR 4
.IX Item "hamming"
.IP \fBblackman\fR 4
.IX Item "blackman"
.IP \fBwelch\fR 4
.IX Item "welch"
.IP \fBflattop\fR 4
.IX Item "flattop"
.IP \fBbharris\fR 4
.IX Item "bharris"
.IP \fBbnuttall\fR 4
.IX Item "bnuttall"
.IP \fBbhann\fR 4
.IX Item "bhann"
.IP \fBsine\fR 4
.IX Item "sine"
.IP \fBnuttall\fR 4
.IX Item "nuttall"
.IP \fBlanczos\fR 4
.IX Item "lanczos"
.IP \fBgauss\fR 4
.IX Item "gauss"
.IP \fBtukey\fR 4
.IX Item "tukey"
.IP \fBdolph\fR 4
.IX Item "dolph"
.IP \fBcauchy\fR 4
.IX Item "cauchy"
.IP \fBparzen\fR 4
.IX Item "parzen"
.IP \fBpoisson\fR 4
.IX Item "poisson"
.IP \fBbohman\fR 4
.IX Item "bohman"
.RE
.RS 4
.PD
.Sp
Default value is \f(CW\*(C`hann\*(C'\fR.
.RE
.IP \fBorientation\fR 4
.IX Item "orientation"
Set orientation of time vs frequency axis. Can be \f(CW\*(C`vertical\*(C'\fR or
\&\f(CW\*(C`horizontal\*(C'\fR. Default is \f(CW\*(C`vertical\*(C'\fR.
.IP \fBoverlap\fR 4
.IX Item "overlap"
Set ratio of overlap window. Default value is \f(CW0\fR.
When value is \f(CW1\fR overlap is set to recommended size for specific
window function currently used.
.IP \fBgain\fR 4
.IX Item "gain"
Set scale gain for calculating intensity color values.
Default value is \f(CW1\fR.
.IP \fBdata\fR 4
.IX Item "data"
Set which data to display. Can be \f(CW\*(C`magnitude\*(C'\fR, default or \f(CW\*(C`phase\*(C'\fR.
.IP \fBrotation\fR 4
.IX Item "rotation"
Set color rotation, must be in [\-1.0, 1.0] range.
Default value is \f(CW0\fR.
.IP \fBstart\fR 4
.IX Item "start"
Set start frequency from which to display spectrogram. Default is \f(CW0\fR.
.IP \fBstop\fR 4
.IX Item "stop"
Set stop frequency to which to display spectrogram. Default is \f(CW0\fR.
.IP \fBfps\fR 4
.IX Item "fps"
Set upper frame rate limit. Default is \f(CW\*(C`auto\*(C'\fR, unlimited.
.IP \fBlegend\fR 4
.IX Item "legend"
Draw time and frequency axes and legends. Default is disabled.
.PP
The usage is very similar to the showwaves filter; see the examples in that
section.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Large window with logarithmic color scaling:
.Sp
.Vb 1
\&        showspectrum=s=1280x480:scale=log
.Ve
.IP \(bu 4
Complete example for a colored and sliding spectrum per channel using \fBffplay\fR:
.Sp
.Vb 2
\&        ffplay \-f lavfi \*(Aqamovie=input.mp3, asplit [a][out1];
\&                     [a] showspectrum=mode=separate:color=intensity:slide=1:scale=cbrt [out0]\*(Aq
.Ve
.SS showspectrumpic
.IX Subsection "showspectrumpic"
Convert input audio to a single video frame, representing the audio frequency
spectrum.
.PP
The filter accepts the following options:
.IP "\fBsize, s\fR" 4
.IX Item "size, s"
Specify the video size for the output. For the syntax of this option, check the
\&\fB"Video size" section in the ffmpeg-utils manual\fR.
Default value is \f(CW\*(C`4096x2048\*(C'\fR.
.IP \fBmode\fR 4
.IX Item "mode"
Specify display mode.
.Sp
It accepts the following values:
.RS 4
.IP \fBcombined\fR 4
.IX Item "combined"
all channels are displayed in the same row
.IP \fBseparate\fR 4
.IX Item "separate"
all channels are displayed in separate rows
.RE
.RS 4
.Sp
Default value is \fBcombined\fR.
.RE
.IP \fBcolor\fR 4
.IX Item "color"
Specify display color mode.
.Sp
It accepts the following values:
.RS 4
.IP \fBchannel\fR 4
.IX Item "channel"
each channel is displayed in a separate color
.IP \fBintensity\fR 4
.IX Item "intensity"
each channel is displayed using the same color scheme
.IP \fBrainbow\fR 4
.IX Item "rainbow"
each channel is displayed using the rainbow color scheme
.IP \fBmoreland\fR 4
.IX Item "moreland"
each channel is displayed using the moreland color scheme
.IP \fBnebulae\fR 4
.IX Item "nebulae"
each channel is displayed using the nebulae color scheme
.IP \fBfire\fR 4
.IX Item "fire"
each channel is displayed using the fire color scheme
.IP \fBfiery\fR 4
.IX Item "fiery"
each channel is displayed using the fiery color scheme
.IP \fBfruit\fR 4
.IX Item "fruit"
each channel is displayed using the fruit color scheme
.IP \fBcool\fR 4
.IX Item "cool"
each channel is displayed using the cool color scheme
.IP \fBmagma\fR 4
.IX Item "magma"
each channel is displayed using the magma color scheme
.IP \fBgreen\fR 4
.IX Item "green"
each channel is displayed using the green color scheme
.IP \fBviridis\fR 4
.IX Item "viridis"
each channel is displayed using the viridis color scheme
.IP \fBplasma\fR 4
.IX Item "plasma"
each channel is displayed using the plasma color scheme
.IP \fBcividis\fR 4
.IX Item "cividis"
each channel is displayed using the cividis color scheme
.IP \fBterrain\fR 4
.IX Item "terrain"
each channel is displayed using the terrain color scheme
.RE
.RS 4
.Sp
Default value is \fBintensity\fR.
.RE
.IP \fBscale\fR 4
.IX Item "scale"
Specify scale used for calculating intensity color values.
.Sp
It accepts the following values:
.RS 4
.IP \fBlin\fR 4
.IX Item "lin"
linear
.IP \fBsqrt\fR 4
.IX Item "sqrt"
square root, default
.IP \fBcbrt\fR 4
.IX Item "cbrt"
cubic root
.IP \fBlog\fR 4
.IX Item "log"
logarithmic
.IP \fB4thrt\fR 4
.IX Item "4thrt"
4th root
.IP \fB5thrt\fR 4
.IX Item "5thrt"
5th root
.RE
.RS 4
.Sp
Default value is \fBlog\fR.
.RE
.IP \fBfscale\fR 4
.IX Item "fscale"
Specify frequency scale.
.Sp
It accepts the following values:
.RS 4
.IP \fBlin\fR 4
.IX Item "lin"
linear
.IP \fBlog\fR 4
.IX Item "log"
logarithmic
.RE
.RS 4
.Sp
Default value is \fBlin\fR.
.RE
.IP \fBsaturation\fR 4
.IX Item "saturation"
Set saturation modifier for displayed colors. Negative values provide
alternative color scheme. \f(CW0\fR is no saturation at all.
Saturation must be in [\-10.0, 10.0] range.
Default value is \f(CW1\fR.
.IP \fBwin_func\fR 4
.IX Item "win_func"
Set window function.
.Sp
It accepts the following values:
.RS 4
.IP \fBrect\fR 4
.IX Item "rect"
.PD 0
.IP \fBbartlett\fR 4
.IX Item "bartlett"
.IP \fBhann\fR 4
.IX Item "hann"
.IP \fBhanning\fR 4
.IX Item "hanning"
.IP \fBhamming\fR 4
.IX Item "hamming"
.IP \fBblackman\fR 4
.IX Item "blackman"
.IP \fBwelch\fR 4
.IX Item "welch"
.IP \fBflattop\fR 4
.IX Item "flattop"
.IP \fBbharris\fR 4
.IX Item "bharris"
.IP \fBbnuttall\fR 4
.IX Item "bnuttall"
.IP \fBbhann\fR 4
.IX Item "bhann"
.IP \fBsine\fR 4
.IX Item "sine"
.IP \fBnuttall\fR 4
.IX Item "nuttall"
.IP \fBlanczos\fR 4
.IX Item "lanczos"
.IP \fBgauss\fR 4
.IX Item "gauss"
.IP \fBtukey\fR 4
.IX Item "tukey"
.IP \fBdolph\fR 4
.IX Item "dolph"
.IP \fBcauchy\fR 4
.IX Item "cauchy"
.IP \fBparzen\fR 4
.IX Item "parzen"
.IP \fBpoisson\fR 4
.IX Item "poisson"
.IP \fBbohman\fR 4
.IX Item "bohman"
.RE
.RS 4
.PD
.Sp
Default value is \f(CW\*(C`hann\*(C'\fR.
.RE
.IP \fBorientation\fR 4
.IX Item "orientation"
Set orientation of time vs frequency axis. Can be \f(CW\*(C`vertical\*(C'\fR or
\&\f(CW\*(C`horizontal\*(C'\fR. Default is \f(CW\*(C`vertical\*(C'\fR.
.IP \fBgain\fR 4
.IX Item "gain"
Set scale gain for calculating intensity color values.
Default value is \f(CW1\fR.
.IP \fBlegend\fR 4
.IX Item "legend"
Draw time and frequency axes and legends. Default is enabled.
.IP \fBrotation\fR 4
.IX Item "rotation"
Set color rotation, must be in [\-1.0, 1.0] range.
Default value is \f(CW0\fR.
.IP \fBstart\fR 4
.IX Item "start"
Set start frequency from which to display spectrogram. Default is \f(CW0\fR.
.IP \fBstop\fR 4
.IX Item "stop"
Set stop frequency to which to display spectrogram. Default is \f(CW0\fR.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Extract an audio spectrogram of a whole audio track
in a 1024x1024 picture using \fBffmpeg\fR:
.Sp
.Vb 1
\&        ffmpeg \-i audio.flac \-lavfi showspectrumpic=s=1024x1024 spectrogram.png
.Ve
.SS showvolume
.IX Subsection "showvolume"
Convert input audio volume to a video output.
.PP
The filter accepts the following options:
.IP "\fBrate, r\fR" 4
.IX Item "rate, r"
Set video rate.
.IP \fBb\fR 4
.IX Item "b"
Set border width, allowed range is [0, 5]. Default is 1.
.IP \fBw\fR 4
.IX Item "w"
Set channel width, allowed range is [80, 8192]. Default is 400.
.IP \fBh\fR 4
.IX Item "h"
Set channel height, allowed range is [1, 900]. Default is 20.
.IP \fBf\fR 4
.IX Item "f"
Set fade, allowed range is [0, 1]. Default is 0.95.
.IP \fBc\fR 4
.IX Item "c"
Set volume color expression.
.Sp
The expression can use the following variables:
.RS 4
.IP \fBVOLUME\fR 4
.IX Item "VOLUME"
Current max volume of channel in dB.
.IP \fBPEAK\fR 4
.IX Item "PEAK"
Current peak.
.IP \fBCHANNEL\fR 4
.IX Item "CHANNEL"
Current channel number, starting from 0.
.RE
.RS 4
.RE
.IP \fBt\fR 4
.IX Item "t"
If set, displays channel names. Default is enabled.
.IP \fBv\fR 4
.IX Item "v"
If set, displays volume values. Default is enabled.
.IP \fBo\fR 4
.IX Item "o"
Set orientation, can be horizontal: \f(CW\*(C`h\*(C'\fR or vertical: \f(CW\*(C`v\*(C'\fR,
default is \f(CW\*(C`h\*(C'\fR.
.IP \fBs\fR 4
.IX Item "s"
Set step size, allowed range is [0, 5]. Default is 0, which means
step is disabled.
.IP \fBp\fR 4
.IX Item "p"
Set background opacity, allowed range is [0, 1]. Default is 0.
.IP \fBm\fR 4
.IX Item "m"
Set metering mode, can be peak: \f(CW\*(C`p\*(C'\fR or rms: \f(CW\*(C`r\*(C'\fR,
default is \f(CW\*(C`p\*(C'\fR.
.IP \fBds\fR 4
.IX Item "ds"
Set display scale, can be linear: \f(CW\*(C`lin\*(C'\fR or log: \f(CW\*(C`log\*(C'\fR,
default is \f(CW\*(C`lin\*(C'\fR.
.IP \fBdm\fR 4
.IX Item "dm"
In second.
If set to > 0., display a line for the max level
in the previous seconds.
default is disabled: \f(CW0.\fR
.IP \fBdmc\fR 4
.IX Item "dmc"
The color of the max line. Use when \f(CW\*(C`dm\*(C'\fR option is set to > 0.
default is: \f(CW\*(C`orange\*(C'\fR
.SS showwaves
.IX Subsection "showwaves"
Convert input audio to a video output, representing the samples waves.
.PP
The filter accepts the following options:
.IP "\fBsize, s\fR" 4
.IX Item "size, s"
Specify the video size for the output. For the syntax of this option, check the
\&\fB"Video size" section in the ffmpeg-utils manual\fR.
Default value is \f(CW\*(C`600x240\*(C'\fR.
.IP \fBmode\fR 4
.IX Item "mode"
Set display mode.
.Sp
Available values are:
.RS 4
.IP \fBpoint\fR 4
.IX Item "point"
Draw a point for each sample.
.IP \fBline\fR 4
.IX Item "line"
Draw a vertical line for each sample.
.IP \fBp2p\fR 4
.IX Item "p2p"
Draw a point for each sample and a line between them.
.IP \fBcline\fR 4
.IX Item "cline"
Draw a centered vertical line for each sample.
.RE
.RS 4
.Sp
Default value is \f(CW\*(C`point\*(C'\fR.
.RE
.IP \fBn\fR 4
.IX Item "n"
Set the number of samples which are printed on the same column. A
larger value will decrease the frame rate. Must be a positive
integer. This option can be set only if the value for \fIrate\fR
is not explicitly specified.
.IP "\fBrate, r\fR" 4
.IX Item "rate, r"
Set the (approximate) output frame rate. This is done by setting the
option \fIn\fR. Default value is "25".
.IP \fBsplit_channels\fR 4
.IX Item "split_channels"
Set if channels should be drawn separately or overlap. Default value is 0.
.IP \fBcolors\fR 4
.IX Item "colors"
Set colors separated by '|' which are going to be used for drawing of each channel.
.IP \fBscale\fR 4
.IX Item "scale"
Set amplitude scale.
.Sp
Available values are:
.RS 4
.IP \fBlin\fR 4
.IX Item "lin"
Linear.
.IP \fBlog\fR 4
.IX Item "log"
Logarithmic.
.IP \fBsqrt\fR 4
.IX Item "sqrt"
Square root.
.IP \fBcbrt\fR 4
.IX Item "cbrt"
Cubic root.
.RE
.RS 4
.Sp
Default is linear.
.RE
.IP \fBdraw\fR 4
.IX Item "draw"
Set the draw mode. This is mostly useful to set for high \fIn\fR.
.Sp
Available values are:
.RS 4
.IP \fBscale\fR 4
.IX Item "scale"
Scale pixel values for each drawn sample.
.IP \fBfull\fR 4
.IX Item "full"
Draw every sample directly.
.RE
.RS 4
.Sp
Default value is \f(CW\*(C`scale\*(C'\fR.
.RE
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Output the input file audio and the corresponding video representation
at the same time:
.Sp
.Vb 1
\&        amovie=a.mp3,asplit[out0],showwaves[out1]
.Ve
.IP \(bu 4
Create a synthetic signal and show it with showwaves, forcing a
frame rate of 30 frames per second:
.Sp
.Vb 1
\&        aevalsrc=sin(1*2*PI*t)*sin(880*2*PI*t):cos(2*PI*200*t),asplit[out0],showwaves=r=30[out1]
.Ve
.SS showwavespic
.IX Subsection "showwavespic"
Convert input audio to a single video frame, representing the samples waves.
.PP
The filter accepts the following options:
.IP "\fBsize, s\fR" 4
.IX Item "size, s"
Specify the video size for the output. For the syntax of this option, check the
\&\fB"Video size" section in the ffmpeg-utils manual\fR.
Default value is \f(CW\*(C`600x240\*(C'\fR.
.IP \fBsplit_channels\fR 4
.IX Item "split_channels"
Set if channels should be drawn separately or overlap. Default value is 0.
.IP \fBcolors\fR 4
.IX Item "colors"
Set colors separated by '|' which are going to be used for drawing of each channel.
.IP \fBscale\fR 4
.IX Item "scale"
Set amplitude scale.
.Sp
Available values are:
.RS 4
.IP \fBlin\fR 4
.IX Item "lin"
Linear.
.IP \fBlog\fR 4
.IX Item "log"
Logarithmic.
.IP \fBsqrt\fR 4
.IX Item "sqrt"
Square root.
.IP \fBcbrt\fR 4
.IX Item "cbrt"
Cubic root.
.RE
.RS 4
.Sp
Default is linear.
.RE
.IP \fBdraw\fR 4
.IX Item "draw"
Set the draw mode.
.Sp
Available values are:
.RS 4
.IP \fBscale\fR 4
.IX Item "scale"
Scale pixel values for each drawn sample.
.IP \fBfull\fR 4
.IX Item "full"
Draw every sample directly.
.RE
.RS 4
.Sp
Default value is \f(CW\*(C`scale\*(C'\fR.
.RE
.IP \fBfilter\fR 4
.IX Item "filter"
Set the filter mode.
.Sp
Available values are:
.RS 4
.IP \fBaverage\fR 4
.IX Item "average"
Use average samples values for each drawn sample.
.IP \fBpeak\fR 4
.IX Item "peak"
Use peak samples values for each drawn sample.
.RE
.RS 4
.Sp
Default value is \f(CW\*(C`average\*(C'\fR.
.RE
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Extract a channel split representation of the wave form of a whole audio track
in a 1024x800 picture using \fBffmpeg\fR:
.Sp
.Vb 1
\&        ffmpeg \-i audio.flac \-lavfi showwavespic=split_channels=1:s=1024x800 waveform.png
.Ve
.SS "sidedata, asidedata"
.IX Subsection "sidedata, asidedata"
Delete frame side data, or select frames based on it.
.PP
This filter accepts the following options:
.IP \fBmode\fR 4
.IX Item "mode"
Set mode of operation of the filter.
.Sp
Can be one of the following:
.RS 4
.IP \fBselect\fR 4
.IX Item "select"
Select every frame with side data of \f(CW\*(C`type\*(C'\fR.
.IP \fBdelete\fR 4
.IX Item "delete"
Delete side data of \f(CW\*(C`type\*(C'\fR. If \f(CW\*(C`type\*(C'\fR is not set, delete all side
data in the frame.
.RE
.RS 4
.RE
.IP \fBtype\fR 4
.IX Item "type"
Set side data type used with all modes. Must be set for \f(CW\*(C`select\*(C'\fR mode. For
the list of frame side data types, refer to the \f(CW\*(C`AVFrameSideDataType\*(C'\fR enum
in \fIlibavutil/frame.h\fR. For example, to choose
\&\f(CW\*(C`AV_FRAME_DATA_PANSCAN\*(C'\fR side data, you must specify \f(CW\*(C`PANSCAN\*(C'\fR.
.SS spectrumsynth
.IX Subsection "spectrumsynth"
Synthesize audio from 2 input video spectrums, first input stream represents
magnitude across time and second represents phase across time.
The filter will transform from frequency domain as displayed in videos back
to time domain as presented in audio output.
.PP
This filter is primarily created for reversing processed \fBshowspectrum\fR
filter outputs, but can synthesize sound from other spectrograms too.
But in such case results are going to be poor if the phase data is not
available, because in such cases phase data need to be recreated, usually
it's just recreated from random noise.
For best results use gray only output (\f(CW\*(C`channel\*(C'\fR color mode in
\&\fBshowspectrum\fR filter) and \f(CW\*(C`log\*(C'\fR scale for magnitude video and
\&\f(CW\*(C`lin\*(C'\fR scale for phase video. To produce phase, for 2nd video, use
\&\f(CW\*(C`data\*(C'\fR option. Inputs videos should generally use \f(CW\*(C`fullframe\*(C'\fR
slide mode as that saves resources needed for decoding video.
.PP
The filter accepts the following options:
.IP \fBsample_rate\fR 4
.IX Item "sample_rate"
Specify sample rate of output audio, the sample rate of audio from which
spectrum was generated may differ.
.IP \fBchannels\fR 4
.IX Item "channels"
Set number of channels represented in input video spectrums.
.IP \fBscale\fR 4
.IX Item "scale"
Set scale which was used when generating magnitude input spectrum.
Can be \f(CW\*(C`lin\*(C'\fR or \f(CW\*(C`log\*(C'\fR. Default is \f(CW\*(C`log\*(C'\fR.
.IP \fBslide\fR 4
.IX Item "slide"
Set slide which was used when generating inputs spectrums.
Can be \f(CW\*(C`replace\*(C'\fR, \f(CW\*(C`scroll\*(C'\fR, \f(CW\*(C`fullframe\*(C'\fR or \f(CW\*(C`rscroll\*(C'\fR.
Default is \f(CW\*(C`fullframe\*(C'\fR.
.IP \fBwin_func\fR 4
.IX Item "win_func"
Set window function used for resynthesis.
.IP \fBoverlap\fR 4
.IX Item "overlap"
Set window overlap. In range \f(CW\*(C`[0, 1]\*(C'\fR. Default is \f(CW1\fR,
which means optimal overlap for selected window function will be picked.
.IP \fBorientation\fR 4
.IX Item "orientation"
Set orientation of input videos. Can be \f(CW\*(C`vertical\*(C'\fR or \f(CW\*(C`horizontal\*(C'\fR.
Default is \f(CW\*(C`vertical\*(C'\fR.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
First create magnitude and phase videos from audio, assuming audio is stereo with 44100 sample rate,
then resynthesize videos back to audio with spectrumsynth:
.Sp
.Vb 3
\&        ffmpeg \-i input.flac \-lavfi showspectrum=mode=separate:scale=log:overlap=0.875:color=channel:slide=fullframe:data=magnitude \-an \-c:v rawvideo magnitude.nut
\&        ffmpeg \-i input.flac \-lavfi showspectrum=mode=separate:scale=lin:overlap=0.875:color=channel:slide=fullframe:data=phase \-an \-c:v rawvideo phase.nut
\&        ffmpeg \-i magnitude.nut \-i phase.nut \-lavfi spectrumsynth=channels=2:sample_rate=44100:win_func=hann:overlap=0.875:slide=fullframe output.flac
.Ve
.SS "split, asplit"
.IX Subsection "split, asplit"
Split input into several identical outputs.
.PP
\&\f(CW\*(C`asplit\*(C'\fR works with audio input, \f(CW\*(C`split\*(C'\fR with video.
.PP
The filter accepts a single parameter which specifies the number of outputs. If
unspecified, it defaults to 2.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Create two separate outputs from the same input:
.Sp
.Vb 1
\&        [in] split [out0][out1]
.Ve
.IP \(bu 4
To create 3 or more outputs, you need to specify the number of
outputs, like in:
.Sp
.Vb 1
\&        [in] asplit=3 [out0][out1][out2]
.Ve
.IP \(bu 4
Create two separate outputs from the same input, one cropped and
one padded:
.Sp
.Vb 3
\&        [in] split [splitout1][splitout2];
\&        [splitout1] crop=100:100:0:0    [cropout];
\&        [splitout2] pad=200:200:100:100 [padout];
.Ve
.IP \(bu 4
Create 5 copies of the input audio with \fBffmpeg\fR:
.Sp
.Vb 1
\&        ffmpeg \-i INPUT \-filter_complex asplit=5 OUTPUT
.Ve
.SS "zmq, azmq"
.IX Subsection "zmq, azmq"
Receive commands sent through a libzmq client, and forward them to
filters in the filtergraph.
.PP
\&\f(CW\*(C`zmq\*(C'\fR and \f(CW\*(C`azmq\*(C'\fR work as a pass-through filters. \f(CW\*(C`zmq\*(C'\fR
must be inserted between two video filters, \f(CW\*(C`azmq\*(C'\fR between two
audio filters. Both are capable to send messages to any filter type.
.PP
To enable these filters you need to install the libzmq library and
headers and configure FFmpeg with \f(CW\*(C`\-\-enable\-libzmq\*(C'\fR.
.PP
For more information about libzmq see:
<\fBhttp://www.zeromq.org/\fR>
.PP
The \f(CW\*(C`zmq\*(C'\fR and \f(CW\*(C`azmq\*(C'\fR filters work as a libzmq server, which
receives messages sent through a network interface defined by the
\&\fBbind_address\fR (or the abbreviation "\fBb\fR") option.
Default value of this option is \fItcp://localhost:5555\fR. You may
want to alter this value to your needs, but do not forget to escape any
\&':' signs (see \fBfiltergraph escaping\fR).
.PP
The received message must be in the form:
.PP
.Vb 1
\&        <TARGET> <COMMAND> [<ARG>]
.Ve
.PP
\&\fITARGET\fR specifies the target of the command, usually the name of
the filter class or a specific filter instance name. The default
filter instance name uses the pattern \fBParsed_<filter_name>_<index>\fR,
but you can override this by using the \fBfilter_name@id\fR syntax
(see \fBFiltergraph syntax\fR).
.PP
\&\fICOMMAND\fR specifies the name of the command for the target filter.
.PP
\&\fIARG\fR is optional and specifies the optional argument list for the
given \fICOMMAND\fR.
.PP
Upon reception, the message is processed and the corresponding command
is injected into the filtergraph. Depending on the result, the filter
will send a reply to the client, adopting the format:
.PP
.Vb 2
\&        <ERROR_CODE> <ERROR_REASON>
\&        <MESSAGE>
.Ve
.PP
\&\fIMESSAGE\fR is optional.
.PP
\fIExamples\fR
.IX Subsection "Examples"
.PP
Look at \fItools/zmqsend\fR for an example of a zmq client which can
be used to send commands processed by these filters.
.PP
Consider the following filtergraph generated by \fBffplay\fR.
In this example the last overlay filter has an instance name. All other
filters will have default instance names.
.PP
.Vb 6
\&        ffplay \-dumpgraph 1 \-f lavfi "
\&        color=s=100x100:c=red  [l];
\&        color=s=100x100:c=blue [r];
\&        nullsrc=s=200x100, zmq [bg];
\&        [bg][l]   overlay     [bg+l];
\&        [bg+l][r] overlay@my=x=100 "
.Ve
.PP
To change the color of the left side of the video, the following
command can be used:
.PP
.Vb 1
\&        echo Parsed_color_0 c yellow | tools/zmqsend
.Ve
.PP
To change the right side:
.PP
.Vb 1
\&        echo Parsed_color_1 c pink | tools/zmqsend
.Ve
.PP
To change the position of the right side:
.PP
.Vb 1
\&        echo overlay@my x 150 | tools/zmqsend
.Ve
.SH "MULTIMEDIA SOURCES"
.IX Header "MULTIMEDIA SOURCES"
Below is a description of the currently available multimedia sources.
.SS amovie
.IX Subsection "amovie"
This is the same as \fBmovie\fR source, except it selects an audio
stream by default.
.SS movie
.IX Subsection "movie"
Read audio and/or video stream(s) from a movie container.
.PP
It accepts the following parameters:
.IP \fBfilename\fR 4
.IX Item "filename"
The name of the resource to read (not necessarily a file; it can also be a
device or a stream accessed through some protocol).
.IP "\fBformat_name, f\fR" 4
.IX Item "format_name, f"
Specifies the format assumed for the movie to read, and can be either
the name of a container or an input device. If not specified, the
format is guessed from \fImovie_name\fR or by probing.
.IP "\fBseek_point, sp\fR" 4
.IX Item "seek_point, sp"
Specifies the seek point in seconds. The frames will be output
starting from this seek point. The parameter is evaluated with
\&\f(CW\*(C`av_strtod\*(C'\fR, so the numerical value may be suffixed by an IS
postfix. The default value is "0".
.IP "\fBstreams, s\fR" 4
.IX Item "streams, s"
Specifies the streams to read. Several streams can be specified,
separated by "+". The source will then have as many outputs, in the
same order. The syntax is explained in the \fB"Stream specifiers"
section in the ffmpeg manual\fR. Two special names, "dv" and "da" specify
respectively the default (best suited) video and audio stream. Default
is "dv", or "da" if the filter is called as "amovie".
.IP "\fBstream_index, si\fR" 4
.IX Item "stream_index, si"
Specifies the index of the video stream to read. If the value is \-1,
the most suitable video stream will be automatically selected. The default
value is "\-1". Deprecated. If the filter is called "amovie", it will select
audio instead of video.
.IP \fBloop\fR 4
.IX Item "loop"
Specifies how many times to read the stream in sequence.
If the value is 0, the stream will be looped infinitely.
Default value is "1".
.Sp
Note that when the movie is looped the source timestamps are not
changed, so it will generate non monotonically increasing timestamps.
.IP \fBdiscontinuity\fR 4
.IX Item "discontinuity"
Specifies the time difference between frames above which the point is
considered a timestamp discontinuity which is removed by adjusting the later
timestamps.
.PP
It allows overlaying a second video on top of the main input of
a filtergraph, as shown in this graph:
.PP
.Vb 4
\&        input \-\-\-\-\-\-\-\-\-\-\-> deltapts0 \-\-> overlay \-\-> output
\&                                            ^
\&                                            |
\&        movie \-\-> scale\-\-> deltapts1 \-\-\-\-\-\-\-+
.Ve
.PP
\fIExamples\fR
.IX Subsection "Examples"
.IP \(bu 4
Skip 3.2 seconds from the start of the AVI file in.avi, and overlay it
on top of the input labelled "in":
.Sp
.Vb 3
\&        movie=in.avi:seek_point=3.2, scale=180:\-1, setpts=PTS\-STARTPTS [over];
\&        [in] setpts=PTS\-STARTPTS [main];
\&        [main][over] overlay=16:16 [out]
.Ve
.IP \(bu 4
Read from a video4linux2 device, and overlay it on top of the input
labelled "in":
.Sp
.Vb 3
\&        movie=/dev/video0:f=video4linux2, scale=180:\-1, setpts=PTS\-STARTPTS [over];
\&        [in] setpts=PTS\-STARTPTS [main];
\&        [main][over] overlay=16:16 [out]
.Ve
.IP \(bu 4
Read the first video stream and the audio stream with id 0x81 from
dvd.vob; the video is connected to the pad named "video" and the audio is
connected to the pad named "audio":
.Sp
.Vb 1
\&        movie=dvd.vob:s=v:0+#0x81 [video] [audio]
.Ve
.PP
\fICommands\fR
.IX Subsection "Commands"
.PP
Both movie and amovie support the following commands:
.IP \fBseek\fR 4
.IX Item "seek"
Perform seek using "av_seek_frame".
The syntax is: seek \fIstream_index\fR|\fItimestamp\fR|\fIflags\fR
.RS 4
.IP \(bu 4
\&\fIstream_index\fR: If stream_index is \-1, a default
stream is selected, and \fItimestamp\fR is automatically converted
from AV_TIME_BASE units to the stream specific time_base.
.IP \(bu 4
\&\fItimestamp\fR: Timestamp in AVStream.time_base units
or, if no stream is specified, in AV_TIME_BASE units.
.IP \(bu 4
\&\fIflags\fR: Flags which select direction and seeking mode.
.RE
.RS 4
.RE
.IP \fBget_duration\fR 4
.IX Item "get_duration"
Get movie duration in AV_TIME_BASE units.
.SH "EXTERNAL LIBRARIES"
.IX Header "EXTERNAL LIBRARIES"
FFmpeg can be hooked up with a number of external libraries to add support
for more formats. None of them are used by default, their use has to be
explicitly requested by passing the appropriate flags to
\&\fB./configure\fR.
.SS "Alliance for Open Media (AOM)"
.IX Subsection "Alliance for Open Media (AOM)"
FFmpeg can make use of the AOM library for AV1 decoding and encoding.
.PP
Go to <\fBhttp://aomedia.org/\fR> and follow the instructions for
installing the library. Then pass \f(CW\*(C`\-\-enable\-libaom\*(C'\fR to configure to
enable it.
.SS "AMD AMF/VCE"
.IX Subsection "AMD AMF/VCE"
FFmpeg can use the AMD Advanced Media Framework library
for accelerated H.264 and HEVC(only windows) encoding on hardware with Video Coding Engine (VCE).
.PP
To enable support you must obtain the AMF framework header files(version 1.4.9+) from
<\fBhttps://github.com/GPUOpen\-LibrariesAndSDKs/AMF.git\fR>.
.PP
Create an \f(CW\*(C`AMF/\*(C'\fR directory in the system include path.
Copy the contents of \f(CW\*(C`AMF/amf/public/include/\*(C'\fR into that directory.
Then configure FFmpeg with \f(CW\*(C`\-\-enable\-amf\*(C'\fR.
.PP
Initialization of amf encoder occurs in this order:
1) trying to initialize through dx11(only windows)
2) trying to initialize through dx9(only windows)
3) trying to initialize through vulkan
.PP
To use h.264(AMD VCE) encoder on linux amdgru-pro version 19.20+ and amf-amdgpu-pro
package(amdgru\-pro contains, but does not install automatically) are required.
.PP
This driver can be installed using amdgpu-pro-install script in official amd driver archive.
.SS AviSynth
.IX Subsection "AviSynth"
FFmpeg can read AviSynth scripts as input. To enable support, pass
\&\f(CW\*(C`\-\-enable\-avisynth\*(C'\fR to configure after installing the headers
provided by <\fBhttps://github.com/AviSynth/AviSynthPlus\fR>.
AviSynth+ can be configured to install only the headers by either
passing \f(CW\*(C`\-DHEADERS_ONLY:bool=on\*(C'\fR to the normal CMake-based build
system, or by using the supplied \f(CW\*(C`GNUmakefile\*(C'\fR.
.PP
For Windows, supported AviSynth variants are
<\fBhttp://avisynth.nl\fR> for 32\-bit builds and
<\fBhttp://avisynth.nl/index.php/AviSynth+\fR> for 32\-bit and 64\-bit builds.
.PP
For Linux, macOS, and BSD, the only supported AviSynth variant is
<\fBhttps://github.com/AviSynth/AviSynthPlus\fR>, starting with version 3.5.
.Sp
.RS 4
In 2016, AviSynth+ added support for building with GCC. However, due to
the eccentricities of Windows' calling conventions, 32\-bit GCC builds
of AviSynth+ are not compatible with typical 32\-bit builds of FFmpeg.
.Sp
By default, FFmpeg assumes compatibility with 32\-bit MSVC builds of
AviSynth+ since that is the most widely-used and entrenched build
configuration.  Users can override this and enable support for 32\-bit
GCC builds of AviSynth+ by passing \f(CW\*(C`\-DAVSC_WIN32_GCC32\*(C'\fR to
\&\f(CW\*(C`\-\-extra\-cflags\*(C'\fR when configuring FFmpeg.
.Sp
64\-bit builds of FFmpeg are not affected, and can use either MSVC or
GCC builds of AviSynth+ without any special flags.
.RE
.Sp
.RS 4
AviSynth(+) is loaded dynamically.  Distributors can build FFmpeg
with \f(CW\*(C`\-\-enable\-avisynth\*(C'\fR, and the binaries will work regardless
of the end user having AviSynth installed.  If/when an end user
would like to use AviSynth scripts, then they can install AviSynth(+)
and FFmpeg will be able to find and use it to open scripts.
.RE
.SS Chromaprint
.IX Subsection "Chromaprint"
FFmpeg can make use of the Chromaprint library for generating audio fingerprints.
Pass \f(CW\*(C`\-\-enable\-chromaprint\*(C'\fR to configure to
enable it. See <\fBhttps://acoustid.org/chromaprint\fR>.
.SS codec2
.IX Subsection "codec2"
FFmpeg can make use of the codec2 library for codec2 decoding and encoding.
There is currently no native decoder, so libcodec2 must be used for decoding.
.PP
Go to <\fBhttp://freedv.org/\fR>, download "Codec 2 source archive".
Build and install using CMake. Debian users can install the libcodec2\-dev package instead.
Once libcodec2 is installed you can pass \f(CW\*(C`\-\-enable\-libcodec2\*(C'\fR to configure to enable it.
.PP
The easiest way to use codec2 is with .c2 files, since they contain the mode information required for decoding.
To encode such a file, use a .c2 file extension and give the libcodec2 encoder the \-mode option:
\&\f(CW\*(C`ffmpeg \-i input.wav \-mode 700C output.c2\*(C'\fR.
Playback is as simple as \f(CW\*(C`ffplay output.c2\*(C'\fR.
For a list of supported modes, run \f(CW\*(C`ffmpeg \-h encoder=libcodec2\*(C'\fR.
Raw codec2 files are also supported.
To make sense of them the mode in use needs to be specified as a format option:
\&\f(CW\*(C`ffmpeg \-f codec2raw \-mode 1300 \-i input.raw output.wav\*(C'\fR.
.SS dav1d
.IX Subsection "dav1d"
FFmpeg can make use of the dav1d library for AV1 video decoding.
.PP
Go to <\fBhttps://code.videolan.org/videolan/dav1d\fR> and follow the instructions for
installing the library. Then pass \f(CW\*(C`\-\-enable\-libdav1d\*(C'\fR to configure to enable it.
.SS davs2
.IX Subsection "davs2"
FFmpeg can make use of the davs2 library for AVS2\-P2/IEEE1857.4 video decoding.
.PP
Go to <\fBhttps://github.com/pkuvcl/davs2\fR> and follow the instructions for
installing the library. Then pass \f(CW\*(C`\-\-enable\-libdavs2\*(C'\fR to configure to
enable it.
.Sp
.RS 4
libdavs2 is under the GNU Public License Version 2 or later
(see <\fBhttp://www.gnu.org/licenses/old\-licenses/gpl\-2.0.html\fR> for
details), you must upgrade FFmpeg's license to GPL in order to use it.
.RE
.SS uavs3d
.IX Subsection "uavs3d"
FFmpeg can make use of the uavs3d library for AVS3\-P2/IEEE1857.10 video decoding.
.PP
Go to <\fBhttps://github.com/uavs3/uavs3d\fR> and follow the instructions for
installing the library. Then pass \f(CW\*(C`\-\-enable\-libuavs3d\*(C'\fR to configure to
enable it.
.SS "Game Music Emu"
.IX Subsection "Game Music Emu"
FFmpeg can make use of the Game Music Emu library to read audio from supported video game
music file formats. Pass \f(CW\*(C`\-\-enable\-libgme\*(C'\fR to configure to
enable it. See <\fBhttps://bitbucket.org/mpyne/game\-music\-emu/overview\fR>.
.SS "Intel QuickSync Video"
.IX Subsection "Intel QuickSync Video"
FFmpeg can use Intel QuickSync Video (QSV) for accelerated decoding and encoding
of multiple codecs. To use QSV, FFmpeg must be linked against the \f(CW\*(C`libmfx\*(C'\fR
dispatcher, which loads the actual decoding libraries.
.PP
The dispatcher is open source and can be downloaded from
<\fBhttps://github.com/lu\-zero/mfx_dispatch.git\fR>. FFmpeg needs to be configured
with the \f(CW\*(C`\-\-enable\-libmfx\*(C'\fR option and \f(CW\*(C`pkg\-config\*(C'\fR needs to be able to
locate the dispatcher's \f(CW\*(C`.pc\*(C'\fR files.
.SS Kvazaar
.IX Subsection "Kvazaar"
FFmpeg can make use of the Kvazaar library for HEVC encoding.
.PP
Go to <\fBhttps://github.com/ultravideo/kvazaar\fR> and follow the
instructions for installing the library. Then pass
\&\f(CW\*(C`\-\-enable\-libkvazaar\*(C'\fR to configure to enable it.
.SS LAME
.IX Subsection "LAME"
FFmpeg can make use of the LAME library for MP3 encoding.
.PP
Go to <\fBhttp://lame.sourceforge.net/\fR> and follow the
instructions for installing the library.
Then pass \f(CW\*(C`\-\-enable\-libmp3lame\*(C'\fR to configure to enable it.
.SS libilbc
.IX Subsection "libilbc"
iLBC is a narrowband speech codec that has been made freely available
by Google as part of the WebRTC project. libilbc is a packaging friendly
copy of the iLBC codec. FFmpeg can make use of the libilbc library for
iLBC decoding and encoding.
.PP
Go to <\fBhttps://github.com/TimothyGu/libilbc\fR> and follow the instructions for
installing the library. Then pass \f(CW\*(C`\-\-enable\-libilbc\*(C'\fR to configure to
enable it.
.SS libvpx
.IX Subsection "libvpx"
FFmpeg can make use of the libvpx library for VP8/VP9 decoding and encoding.
.PP
Go to <\fBhttp://www.webmproject.org/\fR> and follow the instructions for
installing the library. Then pass \f(CW\*(C`\-\-enable\-libvpx\*(C'\fR to configure to
enable it.
.SS ModPlug
.IX Subsection "ModPlug"
FFmpeg can make use of this library, originating in Modplug-XMMS, to read from MOD-like music files.
See <\fBhttps://github.com/Konstanty/libmodplug\fR>. Pass \f(CW\*(C`\-\-enable\-libmodplug\*(C'\fR to configure to
enable it.
.SS "OpenCORE, VisualOn, and Fraunhofer libraries"
.IX Subsection "OpenCORE, VisualOn, and Fraunhofer libraries"
Spun off Google Android sources, OpenCore, VisualOn and Fraunhofer
libraries provide encoders for a number of audio codecs.
.Sp
.RS 4
OpenCORE and VisualOn libraries are under the Apache License 2.0
(see <\fBhttp://www.apache.org/licenses/LICENSE\-2.0\fR> for details), which is
incompatible to the LGPL version 2.1 and GPL version 2. You have to
upgrade FFmpeg's license to LGPL version 3 (or if you have enabled
GPL components, GPL version 3) by passing \f(CW\*(C`\-\-enable\-version3\*(C'\fR to configure in
order to use it.
.Sp
The license of the Fraunhofer AAC library is incompatible with the GPL.
Therefore, for GPL builds, you have to pass \f(CW\*(C`\-\-enable\-nonfree\*(C'\fR to
configure in order to use it. To the best of our knowledge, it is
compatible with the LGPL.
.RE
.PP
\fIOpenCORE AMR\fR
.IX Subsection "OpenCORE AMR"
.PP
FFmpeg can make use of the OpenCORE libraries for AMR-NB
decoding/encoding and AMR-WB decoding.
.PP
Go to <\fBhttp://sourceforge.net/projects/opencore\-amr/\fR> and follow the
instructions for installing the libraries.
Then pass \f(CW\*(C`\-\-enable\-libopencore\-amrnb\*(C'\fR and/or
\&\f(CW\*(C`\-\-enable\-libopencore\-amrwb\*(C'\fR to configure to enable them.
.PP
\fIVisualOn AMR-WB encoder library\fR
.IX Subsection "VisualOn AMR-WB encoder library"
.PP
FFmpeg can make use of the VisualOn AMR-WBenc library for AMR-WB encoding.
.PP
Go to <\fBhttp://sourceforge.net/projects/opencore\-amr/\fR> and follow the
instructions for installing the library.
Then pass \f(CW\*(C`\-\-enable\-libvo\-amrwbenc\*(C'\fR to configure to enable it.
.PP
\fIFraunhofer AAC library\fR
.IX Subsection "Fraunhofer AAC library"
.PP
FFmpeg can make use of the Fraunhofer AAC library for AAC decoding & encoding.
.PP
Go to <\fBhttp://sourceforge.net/projects/opencore\-amr/\fR> and follow the
instructions for installing the library.
Then pass \f(CW\*(C`\-\-enable\-libfdk\-aac\*(C'\fR to configure to enable it.
.SS OpenH264
.IX Subsection "OpenH264"
FFmpeg can make use of the OpenH264 library for H.264 decoding and encoding.
.PP
Go to <\fBhttp://www.openh264.org/\fR> and follow the instructions for
installing the library. Then pass \f(CW\*(C`\-\-enable\-libopenh264\*(C'\fR to configure to
enable it.
.PP
For decoding, this library is much more limited than the built-in decoder
in libavcodec; currently, this library lacks support for decoding B\-frames
and some other main/high profile features. (It currently only supports
constrained baseline profile and CABAC.) Using it is mostly useful for
testing and for taking advantage of Cisco's patent portfolio license
(<\fBhttp://www.openh264.org/BINARY_LICENSE.txt\fR>).
.SS OpenJPEG
.IX Subsection "OpenJPEG"
FFmpeg can use the OpenJPEG libraries for decoding/encoding J2K videos.  Go to
<\fBhttp://www.openjpeg.org/\fR> to get the libraries and follow the installation
instructions.  To enable using OpenJPEG in FFmpeg, pass \f(CW\*(C`\-\-enable\-libopenjpeg\*(C'\fR to
\&\fI./configure\fR.
.SS rav1e
.IX Subsection "rav1e"
FFmpeg can make use of rav1e (Rust AV1 Encoder) via its C bindings to encode videos.
Go to <\fBhttps://github.com/xiph/rav1e/\fR> and follow the instructions to build
the C library. To enable using rav1e in FFmpeg, pass \f(CW\*(C`\-\-enable\-librav1e\*(C'\fR
to \fI./configure\fR.
.SS SVT\-AV1
.IX Subsection "SVT-AV1"
FFmpeg can make use of the Scalable Video Technology for AV1 library for AV1 encoding.
.PP
Go to <\fBhttps://github.com/OpenVisualCloud/SVT\-AV1/\fR> and follow the instructions
for installing the library. Then pass \f(CW\*(C`\-\-enable\-libsvtav1\*(C'\fR to configure to
enable it.
.SS TwoLAME
.IX Subsection "TwoLAME"
FFmpeg can make use of the TwoLAME library for MP2 encoding.
.PP
Go to <\fBhttp://www.twolame.org/\fR> and follow the
instructions for installing the library.
Then pass \f(CW\*(C`\-\-enable\-libtwolame\*(C'\fR to configure to enable it.
.SS VapourSynth
.IX Subsection "VapourSynth"
FFmpeg can read VapourSynth scripts as input. To enable support, pass
\&\f(CW\*(C`\-\-enable\-vapoursynth\*(C'\fR to configure. Vapoursynth is detected via
\&\f(CW\*(C`pkg\-config\*(C'\fR. Versions 42 or greater supported.
See <\fBhttp://www.vapoursynth.com/\fR>.
.PP
Due to security concerns, Vapoursynth scripts will not
be autodetected so the input format has to be forced. For ff* CLI tools,
add \f(CW\*(C`\-f vapoursynth\*(C'\fR before the input \f(CW\*(C`\-i yourscript.vpy\*(C'\fR.
.SS x264
.IX Subsection "x264"
FFmpeg can make use of the x264 library for H.264 encoding.
.PP
Go to <\fBhttp://www.videolan.org/developers/x264.html\fR> and follow the
instructions for installing the library. Then pass \f(CW\*(C`\-\-enable\-libx264\*(C'\fR to
configure to enable it.
.Sp
.RS 4
x264 is under the GNU Public License Version 2 or later
(see <\fBhttp://www.gnu.org/licenses/old\-licenses/gpl\-2.0.html\fR> for
details), you must upgrade FFmpeg's license to GPL in order to use it.
.RE
.SS x265
.IX Subsection "x265"
FFmpeg can make use of the x265 library for HEVC encoding.
.PP
Go to <\fBhttp://x265.org/developers.html\fR> and follow the instructions
for installing the library. Then pass \f(CW\*(C`\-\-enable\-libx265\*(C'\fR to configure
to enable it.
.Sp
.RS 4
x265 is under the GNU Public License Version 2 or later
(see <\fBhttp://www.gnu.org/licenses/old\-licenses/gpl\-2.0.html\fR> for
details), you must upgrade FFmpeg's license to GPL in order to use it.
.RE
.SS xavs
.IX Subsection "xavs"
FFmpeg can make use of the xavs library for AVS encoding.
.PP
Go to <\fBhttp://xavs.sf.net/\fR> and follow the instructions for
installing the library. Then pass \f(CW\*(C`\-\-enable\-libxavs\*(C'\fR to configure to
enable it.
.SS xavs2
.IX Subsection "xavs2"
FFmpeg can make use of the xavs2 library for AVS2\-P2/IEEE1857.4 video encoding.
.PP
Go to <\fBhttps://github.com/pkuvcl/xavs2\fR> and follow the instructions for
installing the library. Then pass \f(CW\*(C`\-\-enable\-libxavs2\*(C'\fR to configure to
enable it.
.Sp
.RS 4
libxavs2 is under the GNU Public License Version 2 or later
(see <\fBhttp://www.gnu.org/licenses/old\-licenses/gpl\-2.0.html\fR> for
details), you must upgrade FFmpeg's license to GPL in order to use it.
.RE
.SS ZVBI
.IX Subsection "ZVBI"
ZVBI is a VBI decoding library which can be used by FFmpeg to decode DVB
teletext pages and DVB teletext subtitles.
.PP
Go to <\fBhttp://sourceforge.net/projects/zapping/\fR> and follow the instructions for
installing the library. Then pass \f(CW\*(C`\-\-enable\-libzvbi\*(C'\fR to configure to
enable it.
.SH "SUPPORTED FILE FORMATS"
.IX Header "SUPPORTED FILE FORMATS"
You can use the \f(CW\*(C`\-formats\*(C'\fR and \f(CW\*(C`\-codecs\*(C'\fR options to have an exhaustive list.
.SS "File Formats"
.IX Subsection "File Formats"
FFmpeg supports the following file formats through the \f(CW\*(C`libavformat\*(C'\fR
library:
.ie n .IP "\fBName  :  Encoding \fR\fB@tab\fR\fB Decoding \fR\fB@tab\fR\fB Comments\fR" 4
.el .IP "\fBName  :  Encoding \fR\f(CB@tab\fR\fB Decoding \fR\f(CB@tab\fR\fB Comments\fR" 4
.IX Item "Name : Encoding @tab Decoding @tab Comments"
.PD 0
.ie n .IP "\fB3dostr                     :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fB3dostr                     :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "3dostr : @tab X"
.ie n .IP "\fB4xm                        :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fB4xm                        :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "4xm : @tab X"
.PD
.Vb 1
\&    @tab 4X Technologies format, used in some games.
.Ve
.ie n .IP "\fB8088flex TMV               :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fB8088flex TMV               :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "8088flex TMV : @tab X"
.PD 0
.ie n .IP "\fBAAX                        :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBAAX                        :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "AAX : @tab X"
.PD
.Vb 1
\&    @tab Audible Enhanced Audio format, used in audiobooks.
.Ve
.ie n .IP "\fBAA                         :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBAA                         :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "AA : @tab X"
.Vb 1
\&    @tab Audible Format 2, 3, and 4, used in audiobooks.
.Ve
.ie n .IP "\fBACT Voice                  :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBACT Voice                  :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "ACT Voice : @tab X"
.Vb 1
\&    @tab contains G.729 audio
.Ve
.ie n .IP "\fBAdobe Filmstrip            :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBAdobe Filmstrip            :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Adobe Filmstrip : X @tab X"
.PD 0
.ie n .IP "\fBAudio IFF (AIFF)           :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBAudio IFF (AIFF)           :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Audio IFF (AIFF) : X @tab X"
.ie n .IP "\fBAmerican Laser Games MM    :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBAmerican Laser Games MM    :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "American Laser Games MM : @tab X"
.PD
.Vb 1
\&    @tab Multimedia format used in games like Mad Dog McCree.
.Ve
.ie n .IP "\fB3GPP AMR                   :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fB3GPP AMR                   :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "3GPP AMR : X @tab X"
.PD 0
.ie n .IP "\fBAmazing Studio Packed Animation File   :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBAmazing Studio Packed Animation File   :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Amazing Studio Packed Animation File : @tab X"
.PD
.Vb 1
\&    @tab Multimedia format used in game Heart Of Darkness.
.Ve
.ie n .IP "\fBApple HTTP Live Streaming  :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBApple HTTP Live Streaming  :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Apple HTTP Live Streaming : @tab X"
.PD 0
.ie n .IP "\fBArtworx Data Format        :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBArtworx Data Format        :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Artworx Data Format : @tab X"
.ie n .IP "\fBInterplay ACM              :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBInterplay ACM              :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Interplay ACM : @tab X"
.PD
.Vb 1
\&    @tab Audio only format used in some Interplay games.
.Ve
.ie n .IP "\fBADP                        :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBADP                        :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "ADP : @tab X"
.Vb 1
\&    @tab Audio format used on the Nintendo Gamecube.
.Ve
.ie n .IP "\fBAFC                        :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBAFC                        :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "AFC : @tab X"
.Vb 1
\&    @tab Audio format used on the Nintendo Gamecube.
.Ve
.ie n .IP "\fBADS/SS2                    :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBADS/SS2                    :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "ADS/SS2 : @tab X"
.Vb 1
\&    @tab Audio format used on the PS2.
.Ve
.ie n .IP "\fBAPNG                       :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBAPNG                       :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "APNG : X @tab X"
.PD 0
.ie n .IP "\fBASF                        :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBASF                        :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "ASF : X @tab X"
.PD
.Vb 1
\&    @tab Advanced / Active Streaming Format.
.Ve
.ie n .IP "\fBAST                        :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBAST                        :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "AST : X @tab X"
.Vb 1
\&    @tab Audio format used on the Nintendo Wii.
.Ve
.ie n .IP "\fBAVI                        :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBAVI                        :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "AVI : X @tab X"
.PD 0
.ie n .IP "\fBAviSynth                   :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBAviSynth                   :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "AviSynth : @tab X"
.ie n .IP "\fBAVR                        :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBAVR                        :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "AVR : @tab X"
.PD
.Vb 1
\&    @tab Audio format used on Mac.
.Ve
.ie n .IP "\fBAVS                        :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBAVS                        :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "AVS : @tab X"
.Vb 1
\&    @tab Multimedia format used by the Creature Shock game.
.Ve
.ie n .IP "\fBBeam Software SIFF         :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBBeam Software SIFF         :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Beam Software SIFF : @tab X"
.Vb 1
\&    @tab Audio and video format used in some games by Beam Software.
.Ve
.ie n .IP "\fBBethesda Softworks VID     :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBBethesda Softworks VID     :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Bethesda Softworks VID : @tab X"
.Vb 1
\&    @tab Used in some games from Bethesda Softworks.
.Ve
.ie n .IP "\fBBinary text                :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBBinary text                :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Binary text : @tab X"
.PD 0
.ie n .IP "\fBBink                       :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBBink                       :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Bink : @tab X"
.PD
.Vb 1
\&    @tab Multimedia format used by many games.
.Ve
.ie n .IP "\fBBink Audio                 :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBBink Audio                 :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Bink Audio : @tab X"
.Vb 1
\&    @tab Audio only multimedia format used by some games.
.Ve
.ie n .IP "\fBBitmap Brothers JV         :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBBitmap Brothers JV         :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Bitmap Brothers JV : @tab X"
.Vb 1
\&    @tab Used in Z and Z95 games.
.Ve
.ie n .IP "\fBBRP                        :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBBRP                        :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "BRP : @tab X"
.Vb 1
\&    @tab Argonaut Games format.
.Ve
.ie n .IP "\fBBrute Force & Ignorance    :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBBrute Force & Ignorance    :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Brute Force & Ignorance : @tab X"
.Vb 1
\&    @tab Used in the game Flash Traffic: City of Angels.
.Ve
.ie n .IP "\fBBFSTM                      :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBBFSTM                      :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "BFSTM : @tab X"
.Vb 1
\&    @tab Audio format used on the Nintendo WiiU (based on BRSTM).
.Ve
.ie n .IP "\fBBRSTM                      :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBBRSTM                      :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "BRSTM : @tab X"
.Vb 1
\&    @tab Audio format used on the Nintendo Wii.
.Ve
.ie n .IP "\fBBW64                       :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBBW64                       :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "BW64 : @tab X"
.Vb 1
\&    @tab Broadcast Wave 64bit.
.Ve
.ie n .IP "\fBBWF                        :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBBWF                        :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "BWF : X @tab X"
.PD 0
.ie n .IP "\fBcodec2 (raw)               :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBcodec2 (raw)               :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "codec2 (raw) : X @tab X"
.PD
.Vb 1
\&    @tab Must be given \-mode format option to decode correctly.
.Ve
.ie n .IP "\fBcodec2 (.c2 files)         :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBcodec2 (.c2 files)         :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "codec2 (.c2 files) : X @tab X"
.Vb 1
\&    @tab Contains header with version and mode info, simplifying playback.
.Ve
.ie n .IP "\fBCRI ADX                    :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBCRI ADX                    :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "CRI ADX : X @tab X"
.Vb 1
\&    @tab Audio\-only format used in console video games.
.Ve
.ie n .IP "\fBCRI AIX                    :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBCRI AIX                    :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "CRI AIX : @tab X"
.PD 0
.ie n .IP "\fBCRI HCA                    :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBCRI HCA                    :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "CRI HCA : @tab X"
.PD
.Vb 1
\&    @tab Audio\-only format used in console video games.
.Ve
.ie n .IP "\fBDiscworld II BMV           :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBDiscworld II BMV           :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Discworld II BMV : @tab X"
.PD 0
.ie n .IP "\fBInterplay C93              :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBInterplay C93              :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Interplay C93 : @tab X"
.PD
.Vb 1
\&    @tab Used in the game Cyberia from Interplay.
.Ve
.ie n .IP "\fBDelphine Software International CIN  :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBDelphine Software International CIN  :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Delphine Software International CIN : @tab X"
.Vb 1
\&    @tab Multimedia format used by Delphine Software games.
.Ve
.ie n .IP "\fBDigital Speech Standard (DSS)  :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBDigital Speech Standard (DSS)  :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Digital Speech Standard (DSS) : @tab X"
.PD 0
.ie n .IP "\fBCD+G                       :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBCD+G                       :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "CD+G : @tab X"
.PD
.Vb 1
\&    @tab Video format used by CD+G karaoke disks
.Ve
.ie n .IP "\fBPhantom Cine               :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBPhantom Cine               :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Phantom Cine : @tab X"
.PD 0
.ie n .IP "\fBCommodore CDXL             :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBCommodore CDXL             :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Commodore CDXL : @tab X"
.PD
.Vb 1
\&    @tab Amiga CD video format
.Ve
.ie n .IP "\fBCore Audio Format          :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBCore Audio Format          :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Core Audio Format : X @tab X"
.Vb 1
\&    @tab Apple Core Audio Format
.Ve
.ie n .IP "\fBCRC testing format         :  X \fR\fB@tab\fR" 4
.el .IP "\fBCRC testing format         :  X \fR\f(CB@tab\fR" 4
.IX Item "CRC testing format : X @tab"
.PD 0
.ie n .IP "\fBCreative Voice             :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBCreative Voice             :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Creative Voice : X @tab X"
.PD
.Vb 1
\&    @tab Created for the Sound Blaster Pro.
.Ve
.ie n .IP "\fBCRYO APC                   :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBCRYO APC                   :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "CRYO APC : @tab X"
.Vb 1
\&    @tab Audio format used in some games by CRYO Interactive Entertainment.
.Ve
.ie n .IP "\fBD\-Cinema audio             :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBD\-Cinema audio             :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "D-Cinema audio : X @tab X"
.PD 0
.ie n .IP "\fBDeluxe Paint Animation     :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBDeluxe Paint Animation     :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Deluxe Paint Animation : @tab X"
.ie n .IP "\fBDCSTR                      :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBDCSTR                      :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "DCSTR : @tab X"
.ie n .IP "\fBDFA                        :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBDFA                        :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "DFA : @tab X"
.PD
.Vb 1
\&    @tab This format is used in Chronomaster game
.Ve
.ie n .IP "\fBDirectDraw Surface         :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBDirectDraw Surface         :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "DirectDraw Surface : @tab X"
.PD 0
.ie n .IP "\fBDSD Stream File (DSF)      :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBDSD Stream File (DSF)      :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "DSD Stream File (DSF) : @tab X"
.ie n .IP "\fBDV video                   :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBDV video                   :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "DV video : X @tab X"
.ie n .IP "\fBDXA                        :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBDXA                        :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "DXA : @tab X"
.PD
.Vb 2
\&    @tab This format is used in the non\-Windows version of the Feeble Files
\&         game and different game cutscenes repacked for use with ScummVM.
.Ve
.ie n .IP "\fBElectronic Arts cdata   :     \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBElectronic Arts cdata   :     \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Electronic Arts cdata : @tab X"
.PD 0
.ie n .IP "\fBElectronic Arts Multimedia   :     \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBElectronic Arts Multimedia   :     \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Electronic Arts Multimedia : @tab X"
.PD
.Vb 1
\&    @tab Used in various EA games; files have extensions like WVE and UV2.
.Ve
.ie n .IP "\fBEnsoniq Paris Audio File   :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBEnsoniq Paris Audio File   :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Ensoniq Paris Audio File : @tab X"
.PD 0
.ie n .IP "\fBFFM (FFserver live feed)   :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBFFM (FFserver live feed)   :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "FFM (FFserver live feed) : X @tab X"
.ie n .IP "\fBFlash (SWF)                :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBFlash (SWF)                :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Flash (SWF) : X @tab X"
.ie n .IP "\fBFlash 9 (AVM2)             :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBFlash 9 (AVM2)             :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Flash 9 (AVM2) : X @tab X"
.PD
.Vb 1
\&    @tab Only embedded audio is decoded.
.Ve
.ie n .IP "\fBFLI/FLC/FLX animation      :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBFLI/FLC/FLX animation      :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "FLI/FLC/FLX animation : @tab X"
.Vb 1
\&    @tab .fli/.flc files
.Ve
.ie n .IP "\fBFlash Video (FLV)          :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBFlash Video (FLV)          :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Flash Video (FLV) : X @tab X"
.Vb 1
\&    @tab Macromedia Flash video files
.Ve
.ie n .IP "\fBframecrc testing format    :  X \fR\fB@tab\fR" 4
.el .IP "\fBframecrc testing format    :  X \fR\f(CB@tab\fR" 4
.IX Item "framecrc testing format : X @tab"
.PD 0
.ie n .IP "\fBFunCom ISS                 :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBFunCom ISS                 :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "FunCom ISS : @tab X"
.PD
.Vb 1
\&    @tab Audio format used in various games from FunCom like The Longest Journey.
.Ve
.ie n .IP "\fBG.723.1                    :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBG.723.1                    :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "G.723.1 : X @tab X"
.PD 0
.ie n .IP "\fBG.726                      :    \fR\fB@tab\fR\fB X \fR\fB@tab\fR\fB Both left\- and right-justified.\fR" 4
.el .IP "\fBG.726                      :    \fR\f(CB@tab\fR\fB X \fR\f(CB@tab\fR\fB Both left\- and right-justified.\fR" 4
.IX Item "G.726 : @tab X @tab Both left- and right-justified."
.ie n .IP "\fBG.729 BIT                  :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBG.729 BIT                  :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "G.729 BIT : X @tab X"
.ie n .IP "\fBG.729 raw                  :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBG.729 raw                  :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "G.729 raw : @tab X"
.ie n .IP "\fBGENH                       :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBGENH                       :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "GENH : @tab X"
.PD
.Vb 1
\&    @tab Audio format for various games.
.Ve
.ie n .IP "\fBGIF Animation              :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBGIF Animation              :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "GIF Animation : X @tab X"
.PD 0
.ie n .IP "\fBGXF                        :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBGXF                        :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "GXF : X @tab X"
.PD
.Vb 2
\&    @tab General eXchange Format SMPTE 360M, used by Thomson Grass Valley
\&         playout servers.
.Ve
.ie n .IP "\fBHNM  :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBHNM  :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "HNM : @tab X"
.Vb 1
\&    @tab Only version 4 supported, used in some games from Cryo Interactive
.Ve
.ie n .IP "\fBiCEDraw File               :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBiCEDraw File               :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "iCEDraw File : @tab X"
.PD 0
.ie n .IP "\fBICO                        :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBICO                        :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "ICO : X @tab X"
.PD
.Vb 1
\&    @tab Microsoft Windows ICO
.Ve
.ie n .IP "\fBid Quake II CIN video      :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBid Quake II CIN video      :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "id Quake II CIN video : @tab X"
.PD 0
.ie n .IP "\fBid RoQ                     :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBid RoQ                     :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "id RoQ : X @tab X"
.PD
.Vb 1
\&    @tab Used in Quake III, Jedi Knight 2 and other computer games.
.Ve
.ie n .IP "\fBIEC61937 encapsulation  :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBIEC61937 encapsulation  :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "IEC61937 encapsulation : X @tab X"
.PD 0
.ie n .IP "\fBIFF                        :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBIFF                        :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "IFF : @tab X"
.PD
.Vb 1
\&    @tab Interchange File Format
.Ve
.ie n .IP "\fBIFV                        :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBIFV                        :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "IFV : @tab X"
.Vb 1
\&    @tab A format used by some old CCTV DVRs.
.Ve
.ie n .IP "\fBiLBC                       :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBiLBC                       :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "iLBC : X @tab X"
.PD 0
.ie n .IP "\fBInterplay MVE              :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBInterplay MVE              :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Interplay MVE : @tab X"
.PD
.Vb 1
\&    @tab Format used in various Interplay computer games.
.Ve
.ie n .IP "\fBIterated Systems ClearVideo  :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBIterated Systems ClearVideo  :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Iterated Systems ClearVideo : @tab X"
.Vb 1
\&    @tab I\-frames only
.Ve
.ie n .IP "\fBIV8                        :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBIV8                        :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "IV8 : @tab X"
.Vb 1
\&    @tab A format generated by IndigoVision 8000 video server.
.Ve
.ie n .IP "\fBIVF (On2)                  :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBIVF (On2)                  :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "IVF (On2) : X @tab X"
.Vb 1
\&    @tab A format used by libvpx
.Ve
.ie n .IP "\fBInternet Video Recording   :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBInternet Video Recording   :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Internet Video Recording : @tab X"
.PD 0
.ie n .IP "\fBIRCAM                      :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBIRCAM                      :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "IRCAM : X @tab X"
.ie n .IP "\fBLATM                       :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBLATM                       :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "LATM : X @tab X"
.ie n .IP "\fBLMLM4                      :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBLMLM4                      :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "LMLM4 : @tab X"
.PD
.Vb 1
\&    @tab Used by Linux Media Labs MPEG\-4 PCI boards
.Ve
.ie n .IP "\fBLOAS                       :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBLOAS                       :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "LOAS : @tab X"
.Vb 1
\&    @tab contains LATM multiplexed AAC audio
.Ve
.ie n .IP "\fBLRC                        :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBLRC                        :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "LRC : X @tab X"
.PD 0
.ie n .IP "\fBLVF                        :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBLVF                        :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "LVF : @tab X"
.ie n .IP "\fBLXF                        :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBLXF                        :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "LXF : @tab X"
.PD
.Vb 1
\&    @tab VR native stream format, used by Leitch/Harris\*(Aq video servers.
.Ve
.ie n .IP "\fBMagic Lantern Video (MLV)  :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBMagic Lantern Video (MLV)  :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Magic Lantern Video (MLV) : @tab X"
.PD 0
.ie n .IP "\fBMatroska                   :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBMatroska                   :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Matroska : X @tab X"
.ie n .IP "\fBMatroska audio             :  X \fR\fB@tab\fR" 4
.el .IP "\fBMatroska audio             :  X \fR\f(CB@tab\fR" 4
.IX Item "Matroska audio : X @tab"
.ie n .IP "\fBFFmpeg metadata            :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBFFmpeg metadata            :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "FFmpeg metadata : X @tab X"
.PD
.Vb 1
\&    @tab Metadata in text format.
.Ve
.ie n .IP "\fBMAXIS XA                   :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBMAXIS XA                   :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "MAXIS XA : @tab X"
.Vb 1
\&    @tab Used in Sim City 3000; file extension .xa.
.Ve
.ie n .IP "\fBMCA                        :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBMCA                        :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "MCA : @tab X"
.Vb 1
\&    @tab Used in some games from Capcom; file extension .mca.
.Ve
.ie n .IP "\fBMD Studio                  :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBMD Studio                  :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "MD Studio : @tab X"
.PD 0
.ie n .IP "\fBMetal Gear Solid: The Twin Snakes  :  \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBMetal Gear Solid: The Twin Snakes  :  \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Metal Gear Solid: The Twin Snakes : @tab X"
.ie n .IP "\fBMegalux Frame              :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBMegalux Frame              :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Megalux Frame : @tab X"
.PD
.Vb 1
\&    @tab Used by Megalux Ultimate Paint
.Ve
.ie n .IP "\fBMobotix .mxg               :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBMobotix .mxg               :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Mobotix .mxg : @tab X"
.PD 0
.ie n .IP "\fBMonkey's Audio             :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBMonkey's Audio             :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Monkey's Audio : @tab X"
.ie n .IP "\fBMotion Pixels MVI          :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBMotion Pixels MVI          :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Motion Pixels MVI : @tab X"
.ie n .IP "\fBMOV/QuickTime/MP4          :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBMOV/QuickTime/MP4          :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "MOV/QuickTime/MP4 : X @tab X"
.PD
.Vb 1
\&    @tab 3GP, 3GP2, PSP, iPod variants supported
.Ve
.ie n .IP "\fBMP2                        :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBMP2                        :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "MP2 : X @tab X"
.PD 0
.ie n .IP "\fBMP3                        :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBMP3                        :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "MP3 : X @tab X"
.ie n .IP "\fBMPEG\-1 System              :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBMPEG\-1 System              :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "MPEG-1 System : X @tab X"
.PD
.Vb 1
\&    @tab muxed audio and video, VCD format supported
.Ve
.ie n .IP "\fBMPEG-PS (program stream)   :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBMPEG-PS (program stream)   :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "MPEG-PS (program stream) : X @tab X"
.Vb 1
\&    @tab also known as C<VOB> file, SVCD and DVD format supported
.Ve
.ie n .IP "\fBMPEG-TS (transport stream)  :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBMPEG-TS (transport stream)  :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "MPEG-TS (transport stream) : X @tab X"
.Vb 1
\&    @tab also known as DVB Transport Stream
.Ve
.ie n .IP "\fBMPEG\-4                     :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBMPEG\-4                     :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "MPEG-4 : X @tab X"
.Vb 1
\&    @tab MPEG\-4 is a variant of QuickTime.
.Ve
.ie n .IP "\fBMSF                        :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBMSF                        :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "MSF : @tab X"
.Vb 1
\&    @tab Audio format used on the PS3.
.Ve
.ie n .IP "\fBMirillis FIC video         :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBMirillis FIC video         :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Mirillis FIC video : @tab X"
.Vb 1
\&    @tab No cursor rendering.
.Ve
.ie n .IP "\fBMIDI Sample Dump Standard  :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBMIDI Sample Dump Standard  :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "MIDI Sample Dump Standard : @tab X"
.PD 0
.ie n .IP "\fBMIME multipart JPEG        :  X \fR\fB@tab\fR" 4
.el .IP "\fBMIME multipart JPEG        :  X \fR\f(CB@tab\fR" 4
.IX Item "MIME multipart JPEG : X @tab"
.ie n .IP "\fBMSN TCP webcam             :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBMSN TCP webcam             :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "MSN TCP webcam : @tab X"
.PD
.Vb 1
\&    @tab Used by MSN Messenger webcam streams.
.Ve
.ie n .IP "\fBMTV                        :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBMTV                        :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "MTV : @tab X"
.PD 0
.ie n .IP "\fBMusepack                   :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBMusepack                   :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Musepack : @tab X"
.ie n .IP "\fBMusepack SV8               :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBMusepack SV8               :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Musepack SV8 : @tab X"
.ie n .IP "\fBMaterial eXchange Format (MXF)  :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBMaterial eXchange Format (MXF)  :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Material eXchange Format (MXF) : X @tab X"
.PD
.Vb 1
\&    @tab SMPTE 377M, used by D\-Cinema, broadcast industry.
.Ve
.ie n .IP "\fBMaterial eXchange Format (MXF), D\-10 Mapping  :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBMaterial eXchange Format (MXF), D\-10 Mapping  :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Material eXchange Format (MXF), D-10 Mapping : X @tab X"
.Vb 1
\&    @tab SMPTE 386M, D\-10/IMX Mapping.
.Ve
.ie n .IP "\fBNC camera feed             :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBNC camera feed             :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "NC camera feed : @tab X"
.Vb 1
\&    @tab NC (AVIP NC4600) camera streams
.Ve
.ie n .IP "\fBNIST SPeech HEader REsources  :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBNIST SPeech HEader REsources  :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "NIST SPeech HEader REsources : @tab X"
.PD 0
.ie n .IP "\fBComputerized Speech Lab NSP  :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBComputerized Speech Lab NSP  :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Computerized Speech Lab NSP : @tab X"
.ie n .IP "\fBNTT TwinVQ (VQF)           :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBNTT TwinVQ (VQF)           :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "NTT TwinVQ (VQF) : @tab X"
.PD
.Vb 1
\&    @tab Nippon Telegraph and Telephone Corporation TwinVQ.
.Ve
.ie n .IP "\fBNullsoft Streaming Video   :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBNullsoft Streaming Video   :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Nullsoft Streaming Video : @tab X"
.PD 0
.ie n .IP "\fBNuppelVideo                :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBNuppelVideo                :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "NuppelVideo : @tab X"
.ie n .IP "\fBNUT                        :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBNUT                        :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "NUT : X @tab X"
.PD
.Vb 1
\&    @tab NUT Open Container Format
.Ve
.ie n .IP "\fBOgg                        :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBOgg                        :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Ogg : X @tab X"
.PD 0
.ie n .IP "\fBPlaystation Portable PMP   :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBPlaystation Portable PMP   :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Playstation Portable PMP : @tab X"
.ie n .IP "\fBPortable Voice Format      :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBPortable Voice Format      :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Portable Voice Format : @tab X"
.ie n .IP "\fBTechnoTrend PVA            :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBTechnoTrend PVA            :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "TechnoTrend PVA : @tab X"
.PD
.Vb 1
\&    @tab Used by TechnoTrend DVB PCI boards.
.Ve
.ie n .IP "\fBQCP                        :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBQCP                        :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "QCP : @tab X"
.PD 0
.ie n .IP "\fBraw ADTS (AAC)             :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw ADTS (AAC)             :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw ADTS (AAC) : X @tab X"
.ie n .IP "\fBraw AC\-3                   :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw AC\-3                   :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw AC-3 : X @tab X"
.ie n .IP "\fBraw AMR-NB                 :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw AMR-NB                 :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw AMR-NB : @tab X"
.ie n .IP "\fBraw AMR-WB                 :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw AMR-WB                 :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw AMR-WB : @tab X"
.ie n .IP "\fBraw aptX                   :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw aptX                   :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw aptX : X @tab X"
.ie n .IP "\fBraw aptX HD                :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw aptX HD                :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw aptX HD : X @tab X"
.ie n .IP "\fBraw Chinese AVS video      :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw Chinese AVS video      :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw Chinese AVS video : X @tab X"
.ie n .IP "\fBraw Dirac                  :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw Dirac                  :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw Dirac : X @tab X"
.ie n .IP "\fBraw DNxHD                  :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw DNxHD                  :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw DNxHD : X @tab X"
.ie n .IP "\fBraw DTS                    :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw DTS                    :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw DTS : X @tab X"
.ie n .IP "\fBraw DTS-HD                 :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw DTS-HD                 :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw DTS-HD : @tab X"
.ie n .IP "\fBraw E\-AC\-3                 :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw E\-AC\-3                 :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw E-AC-3 : X @tab X"
.ie n .IP "\fBraw FLAC                   :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw FLAC                   :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw FLAC : X @tab X"
.ie n .IP "\fBraw GSM                    :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw GSM                    :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw GSM : @tab X"
.ie n .IP "\fBraw H.261                  :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw H.261                  :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw H.261 : X @tab X"
.ie n .IP "\fBraw H.263                  :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw H.263                  :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw H.263 : X @tab X"
.ie n .IP "\fBraw H.264                  :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw H.264                  :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw H.264 : X @tab X"
.ie n .IP "\fBraw HEVC                   :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw HEVC                   :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw HEVC : X @tab X"
.ie n .IP "\fBraw Ingenient MJPEG        :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw Ingenient MJPEG        :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw Ingenient MJPEG : @tab X"
.ie n .IP "\fBraw MJPEG                  :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw MJPEG                  :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw MJPEG : X @tab X"
.ie n .IP "\fBraw MLP                    :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw MLP                    :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw MLP : @tab X"
.ie n .IP "\fBraw MPEG                   :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw MPEG                   :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw MPEG : @tab X"
.ie n .IP "\fBraw MPEG\-1                 :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw MPEG\-1                 :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw MPEG-1 : @tab X"
.ie n .IP "\fBraw MPEG\-2                 :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw MPEG\-2                 :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw MPEG-2 : @tab X"
.ie n .IP "\fBraw MPEG\-4                 :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw MPEG\-4                 :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw MPEG-4 : X @tab X"
.ie n .IP "\fBraw NULL                   :  X \fR\fB@tab\fR" 4
.el .IP "\fBraw NULL                   :  X \fR\f(CB@tab\fR" 4
.IX Item "raw NULL : X @tab"
.ie n .IP "\fBraw video                  :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw video                  :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw video : X @tab X"
.ie n .IP "\fBraw id RoQ                 :  X \fR\fB@tab\fR" 4
.el .IP "\fBraw id RoQ                 :  X \fR\f(CB@tab\fR" 4
.IX Item "raw id RoQ : X @tab"
.ie n .IP "\fBraw SBC                    :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw SBC                    :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw SBC : X @tab X"
.ie n .IP "\fBraw Shorten                :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw Shorten                :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw Shorten : @tab X"
.ie n .IP "\fBraw TAK                    :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw TAK                    :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw TAK : @tab X"
.ie n .IP "\fBraw TrueHD                 :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw TrueHD                 :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw TrueHD : X @tab X"
.ie n .IP "\fBraw VC\-1                   :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw VC\-1                   :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw VC-1 : X @tab X"
.ie n .IP "\fBraw PCM A\-law              :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw PCM A\-law              :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw PCM A-law : X @tab X"
.ie n .IP "\fBraw PCM mu-law             :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw PCM mu-law             :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw PCM mu-law : X @tab X"
.ie n .IP "\fBraw PCM Archimedes VIDC    :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw PCM Archimedes VIDC    :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw PCM Archimedes VIDC : X @tab X"
.ie n .IP "\fBraw PCM signed 8 bit       :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw PCM signed 8 bit       :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw PCM signed 8 bit : X @tab X"
.ie n .IP "\fBraw PCM signed 16 bit big-endian   :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw PCM signed 16 bit big-endian   :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw PCM signed 16 bit big-endian : X @tab X"
.ie n .IP "\fBraw PCM signed 16 bit little-endian   :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw PCM signed 16 bit little-endian   :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw PCM signed 16 bit little-endian : X @tab X"
.ie n .IP "\fBraw PCM signed 24 bit big-endian   :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw PCM signed 24 bit big-endian   :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw PCM signed 24 bit big-endian : X @tab X"
.ie n .IP "\fBraw PCM signed 24 bit little-endian   :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw PCM signed 24 bit little-endian   :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw PCM signed 24 bit little-endian : X @tab X"
.ie n .IP "\fBraw PCM signed 32 bit big-endian   :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw PCM signed 32 bit big-endian   :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw PCM signed 32 bit big-endian : X @tab X"
.ie n .IP "\fBraw PCM signed 32 bit little-endian   :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw PCM signed 32 bit little-endian   :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw PCM signed 32 bit little-endian : X @tab X"
.ie n .IP "\fBraw PCM signed 64 bit big-endian   :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw PCM signed 64 bit big-endian   :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw PCM signed 64 bit big-endian : X @tab X"
.ie n .IP "\fBraw PCM signed 64 bit little-endian   :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw PCM signed 64 bit little-endian   :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw PCM signed 64 bit little-endian : X @tab X"
.ie n .IP "\fBraw PCM unsigned 8 bit     :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw PCM unsigned 8 bit     :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw PCM unsigned 8 bit : X @tab X"
.ie n .IP "\fBraw PCM unsigned 16 bit big-endian   :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw PCM unsigned 16 bit big-endian   :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw PCM unsigned 16 bit big-endian : X @tab X"
.ie n .IP "\fBraw PCM unsigned 16 bit little-endian   :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw PCM unsigned 16 bit little-endian   :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw PCM unsigned 16 bit little-endian : X @tab X"
.ie n .IP "\fBraw PCM unsigned 24 bit big-endian   :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw PCM unsigned 24 bit big-endian   :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw PCM unsigned 24 bit big-endian : X @tab X"
.ie n .IP "\fBraw PCM unsigned 24 bit little-endian   :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw PCM unsigned 24 bit little-endian   :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw PCM unsigned 24 bit little-endian : X @tab X"
.ie n .IP "\fBraw PCM unsigned 32 bit big-endian   :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw PCM unsigned 32 bit big-endian   :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw PCM unsigned 32 bit big-endian : X @tab X"
.ie n .IP "\fBraw PCM unsigned 32 bit little-endian   :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw PCM unsigned 32 bit little-endian   :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw PCM unsigned 32 bit little-endian : X @tab X"
.ie n .IP "\fBraw PCM 16.8 floating point little-endian  :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw PCM 16.8 floating point little-endian  :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw PCM 16.8 floating point little-endian : @tab X"
.ie n .IP "\fBraw PCM 24.0 floating point little-endian  :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw PCM 24.0 floating point little-endian  :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw PCM 24.0 floating point little-endian : @tab X"
.ie n .IP "\fBraw PCM floating-point 32 bit big-endian   :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw PCM floating-point 32 bit big-endian   :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw PCM floating-point 32 bit big-endian : X @tab X"
.ie n .IP "\fBraw PCM floating-point 32 bit little-endian   :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw PCM floating-point 32 bit little-endian   :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw PCM floating-point 32 bit little-endian : X @tab X"
.ie n .IP "\fBraw PCM floating-point 64 bit big-endian   :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw PCM floating-point 64 bit big-endian   :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw PCM floating-point 64 bit big-endian : X @tab X"
.ie n .IP "\fBraw PCM floating-point 64 bit little-endian   :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBraw PCM floating-point 64 bit little-endian   :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "raw PCM floating-point 64 bit little-endian : X @tab X"
.ie n .IP "\fBRDT                        :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBRDT                        :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "RDT : @tab X"
.ie n .IP "\fBREDCODE R3D                :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBREDCODE R3D                :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "REDCODE R3D : @tab X"
.PD
.Vb 1
\&    @tab File format used by RED Digital cameras, contains JPEG 2000 frames and PCM audio.
.Ve
.ie n .IP "\fBRealMedia                  :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBRealMedia                  :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "RealMedia : X @tab X"
.PD 0
.ie n .IP "\fBRedirector                 :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBRedirector                 :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Redirector : @tab X"
.ie n .IP "\fBRedSpark                   :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBRedSpark                   :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "RedSpark : @tab X"
.ie n .IP "\fBRenderware TeXture Dictionary  :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBRenderware TeXture Dictionary  :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Renderware TeXture Dictionary : @tab X"
.ie n .IP "\fBResolume DXV               :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBResolume DXV               :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Resolume DXV : @tab X"
.ie n .IP "\fBRF64                       :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBRF64                       :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "RF64 : @tab X"
.ie n .IP "\fBRL2                        :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBRL2                        :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "RL2 : @tab X"
.PD
.Vb 1
\&    @tab Audio and video format used in some games by Entertainment Software Partners.
.Ve
.ie n .IP "\fBRPL/ARMovie                :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBRPL/ARMovie                :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "RPL/ARMovie : @tab X"
.PD 0
.ie n .IP "\fBLego Mindstorms RSO        :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBLego Mindstorms RSO        :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Lego Mindstorms RSO : X @tab X"
.ie n .IP "\fBRSD                        :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBRSD                        :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "RSD : @tab X"
.ie n .IP "\fBRTMP                       :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBRTMP                       :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "RTMP : X @tab X"
.PD
.Vb 1
\&    @tab Output is performed by publishing stream to RTMP server
.Ve
.ie n .IP "\fBRTP                        :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBRTP                        :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "RTP : X @tab X"
.PD 0
.ie n .IP "\fBRTSP                       :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBRTSP                       :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "RTSP : X @tab X"
.ie n .IP "\fBSample Dump eXchange       :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBSample Dump eXchange       :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Sample Dump eXchange : @tab X"
.ie n .IP "\fBSAP                        :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBSAP                        :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "SAP : X @tab X"
.ie n .IP "\fBSBG                        :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBSBG                        :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "SBG : @tab X"
.ie n .IP "\fBSDP                        :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBSDP                        :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "SDP : @tab X"
.ie n .IP "\fBSER                        :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBSER                        :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "SER : @tab X"
.ie n .IP "\fBSega FILM/CPK              :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBSega FILM/CPK              :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Sega FILM/CPK : X @tab X"
.PD
.Vb 1
\&    @tab Used in many Sega Saturn console games.
.Ve
.ie n .IP "\fBSilicon Graphics Movie     :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBSilicon Graphics Movie     :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Silicon Graphics Movie : @tab X"
.PD 0
.ie n .IP "\fBSierra SOL                 :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBSierra SOL                 :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Sierra SOL : @tab X"
.PD
.Vb 1
\&    @tab .sol files used in Sierra Online games.
.Ve
.ie n .IP "\fBSierra VMD                 :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBSierra VMD                 :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Sierra VMD : @tab X"
.Vb 1
\&    @tab Used in Sierra CD\-ROM games.
.Ve
.ie n .IP "\fBSmacker                    :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBSmacker                    :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Smacker : @tab X"
.Vb 1
\&    @tab Multimedia format used by many games.
.Ve
.ie n .IP "\fBSMJPEG                     :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBSMJPEG                     :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "SMJPEG : X @tab X"
.Vb 1
\&    @tab Used in certain Loki game ports.
.Ve
.ie n .IP "\fBSMPTE 337M encapsulation   :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBSMPTE 337M encapsulation   :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "SMPTE 337M encapsulation : @tab X"
.PD 0
.ie n .IP "\fBSmush                      :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBSmush                      :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Smush : @tab X"
.PD
.Vb 1
\&    @tab Multimedia format used in some LucasArts games.
.Ve
.ie n .IP "\fBSony OpenMG (OMA)          :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBSony OpenMG (OMA)          :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Sony OpenMG (OMA) : X @tab X"
.Vb 1
\&    @tab Audio format used in Sony Sonic Stage and Sony Vegas.
.Ve
.ie n .IP "\fBSony PlayStation STR       :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBSony PlayStation STR       :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Sony PlayStation STR : @tab X"
.PD 0
.ie n .IP "\fBSony Wave64 (W64)          :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBSony Wave64 (W64)          :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Sony Wave64 (W64) : X @tab X"
.ie n .IP "\fBSoX native format          :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBSoX native format          :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "SoX native format : X @tab X"
.ie n .IP "\fBSUN AU format              :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBSUN AU format              :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "SUN AU format : X @tab X"
.ie n .IP "\fBSUP raw PGS subtitles      :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBSUP raw PGS subtitles      :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "SUP raw PGS subtitles : X @tab X"
.ie n .IP "\fBSVAG                       :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBSVAG                       :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "SVAG : @tab X"
.PD
.Vb 1
\&    @tab Audio format used in Konami PS2 games.
.Ve
.ie n .IP "\fBTDSC                       :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBTDSC                       :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "TDSC : @tab X"
.PD 0
.ie n .IP "\fBText files                 :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBText files                 :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Text files : @tab X"
.ie n .IP "\fBTHP                        :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBTHP                        :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "THP : @tab X"
.PD
.Vb 1
\&    @tab Used on the Nintendo GameCube.
.Ve
.ie n .IP "\fBTiertex Limited SEQ        :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBTiertex Limited SEQ        :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Tiertex Limited SEQ : @tab X"
.Vb 1
\&    @tab Tiertex .seq files used in the DOS CD\-ROM version of the game Flashback.
.Ve
.ie n .IP "\fBTrue Audio                 :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBTrue Audio                 :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "True Audio : X @tab X"
.PD 0
.ie n .IP "\fBVAG                        :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBVAG                        :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "VAG : @tab X"
.PD
.Vb 1
\&    @tab Audio format used in many Sony PS2 games.
.Ve
.ie n .IP "\fBVC\-1 test bitstream        :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBVC\-1 test bitstream        :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "VC-1 test bitstream : X @tab X"
.PD 0
.ie n .IP "\fBVidvox Hap                 :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBVidvox Hap                 :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Vidvox Hap : X @tab X"
.ie n .IP "\fBVivo                       :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBVivo                       :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Vivo : @tab X"
.ie n .IP "\fBVPK                        :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBVPK                        :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "VPK : @tab X"
.PD
.Vb 1
\&    @tab Audio format used in Sony PS games.
.Ve
.ie n .IP "\fBWAV                        :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBWAV                        :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "WAV : X @tab X"
.PD 0
.ie n .IP "\fBWavPack                    :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBWavPack                    :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "WavPack : X @tab X"
.ie n .IP "\fBWebM                       :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBWebM                       :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "WebM : X @tab X"
.ie n .IP "\fBWindows Televison (WTV)    :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBWindows Televison (WTV)    :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Windows Televison (WTV) : X @tab X"
.ie n .IP "\fBWing Commander III movie   :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBWing Commander III movie   :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Wing Commander III movie : @tab X"
.PD
.Vb 1
\&    @tab Multimedia format used in Origin\*(Aqs Wing Commander III computer game.
.Ve
.ie n .IP "\fBWestwood Studios audio     :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBWestwood Studios audio     :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Westwood Studios audio : @tab X"
.Vb 1
\&    @tab Multimedia format used in Westwood Studios games.
.Ve
.ie n .IP "\fBWestwood Studios VQA       :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBWestwood Studios VQA       :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Westwood Studios VQA : @tab X"
.Vb 1
\&    @tab Multimedia format used in Westwood Studios games.
.Ve
.ie n .IP "\fBWideband Single-bit Data (WSD)  :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBWideband Single-bit Data (WSD)  :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Wideband Single-bit Data (WSD) : @tab X"
.PD 0
.ie n .IP "\fBWVE                        :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBWVE                        :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "WVE : @tab X"
.ie n .IP "\fBXMV                        :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBXMV                        :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "XMV : @tab X"
.PD
.Vb 1
\&    @tab Microsoft video container used in Xbox games.
.Ve
.ie n .IP "\fBXVAG                       :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBXVAG                       :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "XVAG : @tab X"
.Vb 1
\&    @tab Audio format used on the PS3.
.Ve
.ie n .IP "\fBxWMA                       :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBxWMA                       :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "xWMA : @tab X"
.Vb 1
\&    @tab Microsoft audio container used by XAudio 2.
.Ve
.ie n .IP "\fBeXtended BINary text (XBIN)  :  \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBeXtended BINary text (XBIN)  :  \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "eXtended BINary text (XBIN) : @tab X"
.PD 0
.ie n .IP "\fBYUV4MPEG pipe              :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBYUV4MPEG pipe              :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "YUV4MPEG pipe : X @tab X"
.ie n .IP "\fBPsygnosis YOP              :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBPsygnosis YOP              :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Psygnosis YOP : @tab X"
.PD
.PP
\&\f(CW\*(C`X\*(C'\fR means that the feature in that column (encoding / decoding) is supported.
.SS "Image Formats"
.IX Subsection "Image Formats"
FFmpeg can read and write images for each frame of a video sequence. The
following image formats are supported:
.ie n .IP "\fBName  :  Encoding \fR\fB@tab\fR\fB Decoding \fR\fB@tab\fR\fB Comments\fR" 4
.el .IP "\fBName  :  Encoding \fR\f(CB@tab\fR\fB Decoding \fR\f(CB@tab\fR\fB Comments\fR" 4
.IX Item "Name : Encoding @tab Decoding @tab Comments"
.PD 0
.ie n .IP "\fB.Y.U.V        :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fB.Y.U.V        :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item ".Y.U.V : X @tab X"
.PD
.Vb 1
\&    @tab one raw file per component
.Ve
.ie n .IP "\fBAlias PIX     :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBAlias PIX     :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Alias PIX : X @tab X"
.Vb 1
\&    @tab Alias/Wavefront PIX image format
.Ve
.ie n .IP "\fBanimated GIF  :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBanimated GIF  :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "animated GIF : X @tab X"
.PD 0
.ie n .IP "\fBAPNG          :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBAPNG          :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "APNG : X @tab X"
.PD
.Vb 1
\&    @tab Animated Portable Network Graphics
.Ve
.ie n .IP "\fBBMP           :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBBMP           :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "BMP : X @tab X"
.Vb 1
\&    @tab Microsoft BMP image
.Ve
.ie n .IP "\fBBRender PIX   :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBBRender PIX   :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "BRender PIX : @tab X"
.Vb 1
\&    @tab Argonaut BRender 3D engine image format.
.Ve
.ie n .IP "\fBCRI           :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBCRI           :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "CRI : @tab X"
.Vb 1
\&    @tab Cintel RAW
.Ve
.ie n .IP "\fBDPX           :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBDPX           :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "DPX : X @tab X"
.Vb 1
\&    @tab Digital Picture Exchange
.Ve
.ie n .IP "\fBEXR           :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBEXR           :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "EXR : @tab X"
.Vb 1
\&    @tab OpenEXR
.Ve
.ie n .IP "\fBFITS          :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBFITS          :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "FITS : X @tab X"
.Vb 1
\&    @tab Flexible Image Transport System
.Ve
.ie n .IP "\fBJPEG          :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBJPEG          :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "JPEG : X @tab X"
.Vb 1
\&    @tab Progressive JPEG is not supported.
.Ve
.ie n .IP "\fBJPEG 2000     :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBJPEG 2000     :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "JPEG 2000 : X @tab X"
.PD 0
.ie n .IP "\fBJPEG-LS       :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBJPEG-LS       :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "JPEG-LS : X @tab X"
.ie n .IP "\fBLJPEG         :  X \fR\fB@tab\fR" 4
.el .IP "\fBLJPEG         :  X \fR\f(CB@tab\fR" 4
.IX Item "LJPEG : X @tab"
.PD
.Vb 1
\&    @tab Lossless JPEG
.Ve
.ie n .IP "\fBMSP           :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBMSP           :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "MSP : @tab X"
.Vb 1
\&    @tab Microsoft Paint image
.Ve
.ie n .IP "\fBPAM           :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBPAM           :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "PAM : X @tab X"
.Vb 1
\&    @tab PAM is a PNM extension with alpha support.
.Ve
.ie n .IP "\fBPBM           :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBPBM           :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "PBM : X @tab X"
.Vb 1
\&    @tab Portable BitMap image
.Ve
.ie n .IP "\fBPCD           :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBPCD           :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "PCD : @tab X"
.Vb 1
\&    @tab PhotoCD
.Ve
.ie n .IP "\fBPCX           :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBPCX           :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "PCX : X @tab X"
.Vb 1
\&    @tab PC Paintbrush
.Ve
.ie n .IP "\fBPFM           :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBPFM           :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "PFM : X @tab X"
.Vb 1
\&    @tab Portable FloatMap image
.Ve
.ie n .IP "\fBPGM           :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBPGM           :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "PGM : X @tab X"
.Vb 1
\&    @tab Portable GrayMap image
.Ve
.ie n .IP "\fBPGMYUV        :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBPGMYUV        :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "PGMYUV : X @tab X"
.Vb 1
\&    @tab PGM with U and V components in YUV 4:2:0
.Ve
.ie n .IP "\fBPGX           :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBPGX           :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "PGX : @tab X"
.Vb 1
\&    @tab PGX file decoder
.Ve
.ie n .IP "\fBPIC           :  \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBPIC           :  \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "PIC : @tab X"
.Vb 1
\&    @tab Pictor/PC Paint
.Ve
.ie n .IP "\fBPNG           :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBPNG           :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "PNG : X @tab X"
.Vb 1
\&    @tab Portable Network Graphics image
.Ve
.ie n .IP "\fBPPM           :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBPPM           :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "PPM : X @tab X"
.Vb 1
\&    @tab Portable PixelMap image
.Ve
.ie n .IP "\fBPSD           :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBPSD           :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "PSD : @tab X"
.Vb 1
\&    @tab Photoshop
.Ve
.ie n .IP "\fBPTX           :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBPTX           :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "PTX : @tab X"
.Vb 1
\&    @tab V.Flash PTX format
.Ve
.ie n .IP "\fBSGI           :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBSGI           :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "SGI : X @tab X"
.Vb 1
\&    @tab SGI RGB image format
.Ve
.ie n .IP "\fBSun Rasterfile   :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBSun Rasterfile   :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Sun Rasterfile : X @tab X"
.Vb 1
\&    @tab Sun RAS image format
.Ve
.ie n .IP "\fBTIFF          :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBTIFF          :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "TIFF : X @tab X"
.Vb 1
\&    @tab YUV, JPEG and some extension is not supported yet.
.Ve
.ie n .IP "\fBTruevision Targa   :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBTruevision Targa   :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Truevision Targa : X @tab X"
.Vb 1
\&    @tab Targa (.TGA) image format
.Ve
.ie n .IP "\fBWebP          :  E \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBWebP          :  E \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "WebP : E @tab X"
.Vb 1
\&    @tab WebP image format, encoding supported through external library libwebp
.Ve
.ie n .IP "\fBXBM   :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBXBM   :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "XBM : X @tab X"
.Vb 1
\&    @tab X BitMap image format
.Ve
.ie n .IP "\fBXFace  :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBXFace  :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "XFace : X @tab X"
.Vb 1
\&    @tab X\-Face image format
.Ve
.ie n .IP "\fBXPM   :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBXPM   :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "XPM : @tab X"
.Vb 1
\&    @tab X PixMap image format
.Ve
.ie n .IP "\fBXWD   :  X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBXWD   :  X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "XWD : X @tab X"
.Vb 1
\&    @tab X Window Dump image format
.Ve
.PP
\&\f(CW\*(C`X\*(C'\fR means that the feature in that column (encoding / decoding) is supported.
.PP
\&\f(CW\*(C`E\*(C'\fR means that support is provided through an external library.
.SS "Video Codecs"
.IX Subsection "Video Codecs"
.ie n .IP "\fBName  :  Encoding \fR\fB@tab\fR\fB Decoding \fR\fB@tab\fR\fB Comments\fR" 4
.el .IP "\fBName  :  Encoding \fR\f(CB@tab\fR\fB Decoding \fR\f(CB@tab\fR\fB Comments\fR" 4
.IX Item "Name : Encoding @tab Decoding @tab Comments"
.PD 0
.ie n .IP "\fB4X Movie                :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fB4X Movie                :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "4X Movie : @tab X"
.PD
.Vb 1
\&    @tab Used in certain computer games.
.Ve
.ie n .IP "\fB8088flex TMV            :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fB8088flex TMV            :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "8088flex TMV : @tab X"
.PD 0
.ie n .IP "\fBA64 multicolor          :   X  \fR\fB@tab\fR" 4
.el .IP "\fBA64 multicolor          :   X  \fR\f(CB@tab\fR" 4
.IX Item "A64 multicolor : X @tab"
.PD
.Vb 1
\&    @tab Creates video suitable to be played on a commodore 64 (multicolor mode).
.Ve
.ie n .IP "\fBAmazing Studio PAF Video  :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBAmazing Studio PAF Video  :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Amazing Studio PAF Video : @tab X"
.PD 0
.ie n .IP "\fBAmerican Laser Games MM   :     \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBAmerican Laser Games MM   :     \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "American Laser Games MM : @tab X"
.PD
.Vb 1
\&    @tab Used in games like Mad Dog McCree.
.Ve
.ie n .IP "\fBAmuse Graphics Movie    :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBAmuse Graphics Movie    :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Amuse Graphics Movie : @tab X"
.PD 0
.ie n .IP "\fBAMV Video               :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBAMV Video               :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "AMV Video : X @tab X"
.PD
.Vb 1
\&    @tab Used in Chinese MP3 players.
.Ve
.ie n .IP "\fBANSI/ASCII art          :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBANSI/ASCII art          :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ANSI/ASCII art : @tab X"
.PD 0
.ie n .IP "\fBApple Intermediate Codec  :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBApple Intermediate Codec  :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Apple Intermediate Codec : @tab X"
.ie n .IP "\fBApple MJPEG-B           :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBApple MJPEG-B           :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Apple MJPEG-B : @tab X"
.ie n .IP "\fBApple Pixlet            :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBApple Pixlet            :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Apple Pixlet : @tab X"
.ie n .IP "\fBApple ProRes            :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBApple ProRes            :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Apple ProRes : X @tab X"
.PD
.Vb 1
\&    @tab fourcc: apch,apcn,apcs,apco,ap4h,ap4x
.Ve
.ie n .IP "\fBApple QuickDraw         :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBApple QuickDraw         :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Apple QuickDraw : @tab X"
.Vb 1
\&    @tab fourcc: qdrw
.Ve
.ie n .IP "\fBArgonaut Video          :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBArgonaut Video          :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Argonaut Video : @tab X"
.Vb 1
\&    @tab Used in some Argonaut games.
.Ve
.ie n .IP "\fBAsus v1                 :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBAsus v1                 :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Asus v1 : X @tab X"
.Vb 1
\&    @tab fourcc: ASV1
.Ve
.ie n .IP "\fBAsus v2                 :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBAsus v2                 :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Asus v2 : X @tab X"
.Vb 1
\&    @tab fourcc: ASV2
.Ve
.ie n .IP "\fBATI VCR1                :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBATI VCR1                :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ATI VCR1 : @tab X"
.Vb 1
\&    @tab fourcc: VCR1
.Ve
.ie n .IP "\fBATI VCR2                :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBATI VCR2                :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ATI VCR2 : @tab X"
.Vb 1
\&    @tab fourcc: VCR2
.Ve
.ie n .IP "\fBAuravision Aura         :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBAuravision Aura         :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Auravision Aura : @tab X"
.PD 0
.ie n .IP "\fBAuravision Aura 2       :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBAuravision Aura 2       :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Auravision Aura 2 : @tab X"
.ie n .IP "\fBAutodesk Animator Flic video   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBAutodesk Animator Flic video   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Autodesk Animator Flic video : @tab X"
.ie n .IP "\fBAutodesk RLE            :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBAutodesk RLE            :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Autodesk RLE : @tab X"
.PD
.Vb 1
\&    @tab fourcc: AASC
.Ve
.ie n .IP "\fBAV1                     :   E  \fR\fB@tab\fR\fB  E\fR" 4
.el .IP "\fBAV1                     :   E  \fR\f(CB@tab\fR\fB  E\fR" 4
.IX Item "AV1 : E @tab E"
.Vb 1
\&    @tab Supported through external libraries libaom, libdav1d, librav1e and libsvtav1
.Ve
.ie n .IP "\fBAvid 1:1 10\-bit RGB Packer   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBAvid 1:1 10\-bit RGB Packer   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Avid 1:1 10-bit RGB Packer : X @tab X"
.Vb 1
\&    @tab fourcc: AVrp
.Ve
.ie n .IP "\fBAVS (Audio Video Standard) video   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBAVS (Audio Video Standard) video   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "AVS (Audio Video Standard) video : @tab X"
.Vb 1
\&    @tab Video encoding used by the Creature Shock game.
.Ve
.ie n .IP "\fBAVS2\-P2/IEEE1857.4      :   E  \fR\fB@tab\fR\fB  E\fR" 4
.el .IP "\fBAVS2\-P2/IEEE1857.4      :   E  \fR\f(CB@tab\fR\fB  E\fR" 4
.IX Item "AVS2-P2/IEEE1857.4 : E @tab E"
.Vb 1
\&    @tab Supported through external libraries libxavs2 and libdavs2
.Ve
.ie n .IP "\fBAVS3\-P2/IEEE1857.10     :      \fR\fB@tab\fR\fB  E\fR" 4
.el .IP "\fBAVS3\-P2/IEEE1857.10     :      \fR\f(CB@tab\fR\fB  E\fR" 4
.IX Item "AVS3-P2/IEEE1857.10 : @tab E"
.Vb 1
\&    @tab Supported through external library libuavs3d
.Ve
.ie n .IP "\fBAYUV                    :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBAYUV                    :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "AYUV : X @tab X"
.Vb 1
\&    @tab Microsoft uncompressed packed 4:4:4:4
.Ve
.ie n .IP "\fBBeam Software VB        :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBBeam Software VB        :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Beam Software VB : @tab X"
.PD 0
.ie n .IP "\fBBethesda VID video      :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBBethesda VID video      :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Bethesda VID video : @tab X"
.PD
.Vb 1
\&    @tab Used in some games from Bethesda Softworks.
.Ve
.ie n .IP "\fBBink Video              :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBBink Video              :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Bink Video : @tab X"
.PD 0
.ie n .IP "\fBBitJazz SheerVideo      :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBBitJazz SheerVideo      :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "BitJazz SheerVideo : @tab X"
.ie n .IP "\fBBitmap Brothers JV video   :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBBitmap Brothers JV video   :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Bitmap Brothers JV video : @tab X"
.ie n .IP "\fBy41p Brooktree uncompressed 4:1:1 12\-bit      :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBy41p Brooktree uncompressed 4:1:1 12\-bit      :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "y41p Brooktree uncompressed 4:1:1 12-bit : X @tab X"
.ie n .IP "\fBBrooktree ProSumer Video   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBBrooktree ProSumer Video   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Brooktree ProSumer Video : @tab X"
.PD
.Vb 1
\&    @tab fourcc: BT20
.Ve
.ie n .IP "\fBBrute Force & Ignorance    :    \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBBrute Force & Ignorance    :    \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Brute Force & Ignorance : @tab X"
.Vb 1
\&    @tab Used in the game Flash Traffic: City of Angels.
.Ve
.ie n .IP "\fBC93 video               :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBC93 video               :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "C93 video : @tab X"
.Vb 1
\&    @tab Codec used in Cyberia game.
.Ve
.ie n .IP "\fBCamStudio               :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBCamStudio               :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "CamStudio : @tab X"
.Vb 1
\&    @tab fourcc: CSCD
.Ve
.ie n .IP "\fBCD+G                    :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBCD+G                    :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "CD+G : @tab X"
.Vb 1
\&    @tab Video codec for CD+G karaoke disks
.Ve
.ie n .IP "\fBCDXL                    :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBCDXL                    :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "CDXL : @tab X"
.Vb 1
\&    @tab Amiga CD video codec
.Ve
.ie n .IP "\fBChinese AVS video       :   E  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBChinese AVS video       :   E  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Chinese AVS video : E @tab X"
.Vb 1
\&    @tab AVS1\-P2, JiZhun profile, encoding through external library libxavs
.Ve
.ie n .IP "\fBDelphine Software International CIN video   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBDelphine Software International CIN video   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Delphine Software International CIN video : @tab X"
.Vb 1
\&    @tab Codec used in Delphine Software International games.
.Ve
.ie n .IP "\fBDiscworld II BMV Video  :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBDiscworld II BMV Video  :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Discworld II BMV Video : @tab X"
.PD 0
.ie n .IP "\fBCineForm HD             :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBCineForm HD             :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "CineForm HD : X @tab X"
.ie n .IP "\fBCanopus HQ              :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBCanopus HQ              :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Canopus HQ : @tab X"
.ie n .IP "\fBCanopus HQA             :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBCanopus HQA             :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Canopus HQA : @tab X"
.ie n .IP "\fBCanopus HQX             :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBCanopus HQX             :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Canopus HQX : @tab X"
.ie n .IP "\fBCanopus Lossless Codec  :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBCanopus Lossless Codec  :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Canopus Lossless Codec : @tab X"
.ie n .IP "\fBCDToons                 :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBCDToons                 :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "CDToons : @tab X"
.PD
.Vb 1
\&    @tab Codec used in various Broderbund games.
.Ve
.ie n .IP "\fBCinepak                 :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBCinepak                 :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Cinepak : @tab X"
.PD 0
.ie n .IP "\fBCirrus Logic AccuPak    :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBCirrus Logic AccuPak    :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Cirrus Logic AccuPak : X @tab X"
.PD
.Vb 1
\&    @tab fourcc: CLJR
.Ve
.ie n .IP "\fBCPiA Video Format       :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBCPiA Video Format       :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "CPiA Video Format : @tab X"
.PD 0
.ie n .IP "\fBCreative YUV (CYUV)     :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBCreative YUV (CYUV)     :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Creative YUV (CYUV) : @tab X"
.ie n .IP "\fBDFA                     :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBDFA                     :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "DFA : @tab X"
.PD
.Vb 1
\&    @tab Codec used in Chronomaster game.
.Ve
.ie n .IP "\fBDirac                   :   E  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBDirac                   :   E  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Dirac : E @tab X"
.Vb 1
\&    @tab supported though the native vc2 (Dirac Pro) encoder
.Ve
.ie n .IP "\fBDeluxe Paint Animation  :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBDeluxe Paint Animation  :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Deluxe Paint Animation : @tab X"
.PD 0
.ie n .IP "\fBDNxHD                   :    X \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBDNxHD                   :    X \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "DNxHD : X @tab X"
.PD
.Vb 1
\&    @tab aka SMPTE VC3
.Ve
.ie n .IP "\fBDuck TrueMotion 1.0    :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBDuck TrueMotion 1.0    :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Duck TrueMotion 1.0 : @tab X"
.Vb 1
\&    @tab fourcc: DUCK
.Ve
.ie n .IP "\fBDuck TrueMotion 2.0     :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBDuck TrueMotion 2.0     :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Duck TrueMotion 2.0 : @tab X"
.Vb 1
\&    @tab fourcc: TM20
.Ve
.ie n .IP "\fBDuck TrueMotion 2.0 RT  :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBDuck TrueMotion 2.0 RT  :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Duck TrueMotion 2.0 RT : @tab X"
.Vb 1
\&    @tab fourcc: TR20
.Ve
.ie n .IP "\fBDV (Digital Video)      :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBDV (Digital Video)      :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "DV (Digital Video) : X @tab X"
.PD 0
.ie n .IP "\fBDxtory capture format   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBDxtory capture format   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Dxtory capture format : @tab X"
.ie n .IP "\fBFeeble Files/ScummVM DXA   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBFeeble Files/ScummVM DXA   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Feeble Files/ScummVM DXA : @tab X"
.PD
.Vb 1
\&    @tab Codec originally used in Feeble Files game.
.Ve
.ie n .IP "\fBElectronic Arts CMV video   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBElectronic Arts CMV video   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Electronic Arts CMV video : @tab X"
.Vb 1
\&    @tab Used in NHL 95 game.
.Ve
.ie n .IP "\fBElectronic Arts Madcow video   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBElectronic Arts Madcow video   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Electronic Arts Madcow video : @tab X"
.PD 0
.ie n .IP "\fBElectronic Arts TGV video   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBElectronic Arts TGV video   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Electronic Arts TGV video : @tab X"
.ie n .IP "\fBElectronic Arts TGQ video   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBElectronic Arts TGQ video   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Electronic Arts TGQ video : @tab X"
.ie n .IP "\fBElectronic Arts TQI video   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBElectronic Arts TQI video   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Electronic Arts TQI video : @tab X"
.ie n .IP "\fBEscape 124              :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBEscape 124              :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Escape 124 : @tab X"
.ie n .IP "\fBEscape 130              :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBEscape 130              :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Escape 130 : @tab X"
.ie n .IP "\fBFFmpeg video codec #1   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBFFmpeg video codec #1   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "FFmpeg video codec #1 : X @tab X"
.PD
.Vb 1
\&    @tab lossless codec (fourcc: FFV1)
.Ve
.ie n .IP "\fBFlash Screen Video v1   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBFlash Screen Video v1   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Flash Screen Video v1 : X @tab X"
.Vb 1
\&    @tab fourcc: FSV1
.Ve
.ie n .IP "\fBFlash Screen Video v2   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBFlash Screen Video v2   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Flash Screen Video v2 : X @tab X"
.PD 0
.ie n .IP "\fBFlash Video (FLV)       :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBFlash Video (FLV)       :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Flash Video (FLV) : X @tab X"
.PD
.Vb 1
\&    @tab Sorenson H.263 used in Flash
.Ve
.ie n .IP "\fBFM Screen Capture Codec   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBFM Screen Capture Codec   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "FM Screen Capture Codec : @tab X"
.PD 0
.ie n .IP "\fBForward Uncompressed    :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBForward Uncompressed    :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Forward Uncompressed : @tab X"
.ie n .IP "\fBFraps                   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBFraps                   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Fraps : @tab X"
.ie n .IP "\fBGo2Meeting              :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBGo2Meeting              :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Go2Meeting : @tab X"
.PD
.Vb 1
\&    @tab fourcc: G2M2, G2M3
.Ve
.ie n .IP "\fBGo2Webinar              :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBGo2Webinar              :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Go2Webinar : @tab X"
.Vb 1
\&    @tab fourcc: G2M4
.Ve
.ie n .IP "\fBGremlin Digital Video   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBGremlin Digital Video   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Gremlin Digital Video : @tab X"
.PD 0
.ie n .IP "\fBH.261                   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBH.261                   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "H.261 : X @tab X"
.ie n .IP "\fBH.263 / H.263\-1996      :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBH.263 / H.263\-1996      :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "H.263 / H.263-1996 : X @tab X"
.ie n .IP "\fBH.263+ / H.263\-1998 / H.263 version 2   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBH.263+ / H.263\-1998 / H.263 version 2   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "H.263+ / H.263-1998 / H.263 version 2 : X @tab X"
.ie n .IP "\fBH.264 / AVC / MPEG\-4 AVC / MPEG\-4 part 10   :   E  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBH.264 / AVC / MPEG\-4 AVC / MPEG\-4 part 10   :   E  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 : E @tab X"
.PD
.Vb 1
\&    @tab encoding supported through external library libx264 and OpenH264
.Ve
.ie n .IP "\fBHEVC                    :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBHEVC                    :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "HEVC : X @tab X"
.Vb 1
\&    @tab encoding supported through external library libx265 and libkvazaar
.Ve
.ie n .IP "\fBHNM version 4           :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBHNM version 4           :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "HNM version 4 : @tab X"
.PD 0
.ie n .IP "\fBHuffYUV                 :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBHuffYUV                 :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "HuffYUV : X @tab X"
.ie n .IP "\fBHuffYUV FFmpeg variant  :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBHuffYUV FFmpeg variant  :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "HuffYUV FFmpeg variant : X @tab X"
.ie n .IP "\fBIBM Ultimotion          :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBIBM Ultimotion          :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "IBM Ultimotion : @tab X"
.PD
.Vb 1
\&    @tab fourcc: ULTI
.Ve
.ie n .IP "\fBid Cinematic video      :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBid Cinematic video      :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "id Cinematic video : @tab X"
.Vb 1
\&    @tab Used in Quake II.
.Ve
.ie n .IP "\fBid RoQ video            :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBid RoQ video            :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "id RoQ video : X @tab X"
.Vb 1
\&    @tab Used in Quake III, Jedi Knight 2, other computer games.
.Ve
.ie n .IP "\fBIFF ILBM                :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBIFF ILBM                :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "IFF ILBM : @tab X"
.Vb 1
\&    @tab IFF interleaved bitmap
.Ve
.ie n .IP "\fBIFF ByteRun1            :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBIFF ByteRun1            :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "IFF ByteRun1 : @tab X"
.Vb 1
\&    @tab IFF run length encoded bitmap
.Ve
.ie n .IP "\fBInfinity IMM4           :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBInfinity IMM4           :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Infinity IMM4 : @tab X"
.PD 0
.ie n .IP "\fBIntel H.263             :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBIntel H.263             :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Intel H.263 : @tab X"
.ie n .IP "\fBIntel Indeo 2           :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBIntel Indeo 2           :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Intel Indeo 2 : @tab X"
.ie n .IP "\fBIntel Indeo 3           :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBIntel Indeo 3           :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Intel Indeo 3 : @tab X"
.ie n .IP "\fBIntel Indeo 4           :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBIntel Indeo 4           :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Intel Indeo 4 : @tab X"
.ie n .IP "\fBIntel Indeo 5           :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBIntel Indeo 5           :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Intel Indeo 5 : @tab X"
.ie n .IP "\fBInterplay C93           :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBInterplay C93           :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Interplay C93 : @tab X"
.PD
.Vb 1
\&    @tab Used in the game Cyberia from Interplay.
.Ve
.ie n .IP "\fBInterplay MVE video     :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBInterplay MVE video     :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Interplay MVE video : @tab X"
.Vb 1
\&    @tab Used in Interplay .MVE files.
.Ve
.ie n .IP "\fBJ2K  :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBJ2K  :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "J2K : X @tab X"
.PD 0
.ie n .IP "\fBKarl Morton's video codec   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBKarl Morton's video codec   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Karl Morton's video codec : @tab X"
.PD
.Vb 1
\&    @tab Codec used in Worms games.
.Ve
.ie n .IP "\fBKega Game Video (KGV1)  :       \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBKega Game Video (KGV1)  :       \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Kega Game Video (KGV1) : @tab X"
.Vb 1
\&    @tab Kega emulator screen capture codec.
.Ve
.ie n .IP "\fBLagarith                :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBLagarith                :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Lagarith : @tab X"
.PD 0
.ie n .IP "\fBLCL (LossLess Codec Library) MSZH   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBLCL (LossLess Codec Library) MSZH   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "LCL (LossLess Codec Library) MSZH : @tab X"
.ie n .IP "\fBLCL (LossLess Codec Library) ZLIB   :   E  \fR\fB@tab\fR\fB  E\fR" 4
.el .IP "\fBLCL (LossLess Codec Library) ZLIB   :   E  \fR\f(CB@tab\fR\fB  E\fR" 4
.IX Item "LCL (LossLess Codec Library) ZLIB : E @tab E"
.ie n .IP "\fBLOCO                    :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBLOCO                    :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "LOCO : @tab X"
.ie n .IP "\fBLucasArts SANM/Smush    :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBLucasArts SANM/Smush    :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "LucasArts SANM/Smush : @tab X"
.PD
.Vb 1
\&    @tab Used in LucasArts games / SMUSH animations.
.Ve
.ie n .IP "\fBlossless MJPEG          :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBlossless MJPEG          :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "lossless MJPEG : X @tab X"
.PD 0
.ie n .IP "\fBMagicYUV Video          :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBMagicYUV Video          :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "MagicYUV Video : X @tab X"
.ie n .IP "\fBMandsoft Screen Capture Codec   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBMandsoft Screen Capture Codec   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Mandsoft Screen Capture Codec : @tab X"
.ie n .IP "\fBMicrosoft ATC Screen    :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBMicrosoft ATC Screen    :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Microsoft ATC Screen : @tab X"
.PD
.Vb 1
\&    @tab Also known as Microsoft Screen 3.
.Ve
.ie n .IP "\fBMicrosoft Expression Encoder Screen   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBMicrosoft Expression Encoder Screen   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Microsoft Expression Encoder Screen : @tab X"
.Vb 1
\&    @tab Also known as Microsoft Titanium Screen 2.
.Ve
.ie n .IP "\fBMicrosoft RLE           :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBMicrosoft RLE           :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Microsoft RLE : @tab X"
.PD 0
.ie n .IP "\fBMicrosoft Screen 1      :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBMicrosoft Screen 1      :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Microsoft Screen 1 : @tab X"
.PD
.Vb 1
\&    @tab Also known as Windows Media Video V7 Screen.
.Ve
.ie n .IP "\fBMicrosoft Screen 2      :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBMicrosoft Screen 2      :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Microsoft Screen 2 : @tab X"
.Vb 1
\&    @tab Also known as Windows Media Video V9 Screen.
.Ve
.ie n .IP "\fBMicrosoft Video 1       :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBMicrosoft Video 1       :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Microsoft Video 1 : @tab X"
.PD 0
.ie n .IP "\fBMimic                   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBMimic                   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Mimic : @tab X"
.PD
.Vb 1
\&    @tab Used in MSN Messenger Webcam streams.
.Ve
.ie n .IP "\fBMiro VideoXL            :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBMiro VideoXL            :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Miro VideoXL : @tab X"
.Vb 1
\&    @tab fourcc: VIXL
.Ve
.ie n .IP "\fBMJPEG (Motion JPEG)     :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBMJPEG (Motion JPEG)     :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "MJPEG (Motion JPEG) : X @tab X"
.PD 0
.ie n .IP "\fBMobotix MxPEG video     :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBMobotix MxPEG video     :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Mobotix MxPEG video : @tab X"
.ie n .IP "\fBMotion Pixels video     :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBMotion Pixels video     :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Motion Pixels video : @tab X"
.ie n .IP "\fBMPEG\-1 video            :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBMPEG\-1 video            :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "MPEG-1 video : X @tab X"
.ie n .IP "\fBMPEG\-2 video            :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBMPEG\-2 video            :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "MPEG-2 video : X @tab X"
.ie n .IP "\fBMPEG\-4 part 2           :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBMPEG\-4 part 2           :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "MPEG-4 part 2 : X @tab X"
.PD
.Vb 1
\&    @tab libxvidcore can be used alternatively for encoding.
.Ve
.ie n .IP "\fBMPEG\-4 part 2 Microsoft variant version 1   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBMPEG\-4 part 2 Microsoft variant version 1   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "MPEG-4 part 2 Microsoft variant version 1 : @tab X"
.PD 0
.ie n .IP "\fBMPEG\-4 part 2 Microsoft variant version 2   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBMPEG\-4 part 2 Microsoft variant version 2   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "MPEG-4 part 2 Microsoft variant version 2 : X @tab X"
.ie n .IP "\fBMPEG\-4 part 2 Microsoft variant version 3   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBMPEG\-4 part 2 Microsoft variant version 3   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "MPEG-4 part 2 Microsoft variant version 3 : X @tab X"
.ie n .IP "\fBNewtek SpeedHQ                :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBNewtek SpeedHQ                :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Newtek SpeedHQ : X @tab X"
.ie n .IP "\fBNintendo Gamecube THP video   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBNintendo Gamecube THP video   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Nintendo Gamecube THP video : @tab X"
.ie n .IP "\fBNotchLC                 :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBNotchLC                 :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "NotchLC : @tab X"
.ie n .IP "\fBNuppelVideo/RTjpeg      :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBNuppelVideo/RTjpeg      :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "NuppelVideo/RTjpeg : @tab X"
.PD
.Vb 1
\&    @tab Video encoding used in NuppelVideo files.
.Ve
.ie n .IP "\fBOn2 VP3                 :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBOn2 VP3                 :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "On2 VP3 : @tab X"
.Vb 1
\&    @tab still experimental
.Ve
.ie n .IP "\fBOn2 VP4                 :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBOn2 VP4                 :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "On2 VP4 : @tab X"
.Vb 1
\&    @tab fourcc: VP40
.Ve
.ie n .IP "\fBOn2 VP5                 :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBOn2 VP5                 :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "On2 VP5 : @tab X"
.Vb 1
\&    @tab fourcc: VP50
.Ve
.ie n .IP "\fBOn2 VP6                 :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBOn2 VP6                 :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "On2 VP6 : @tab X"
.Vb 1
\&    @tab fourcc: VP60,VP61,VP62
.Ve
.ie n .IP "\fBOn2 VP7                 :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBOn2 VP7                 :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "On2 VP7 : @tab X"
.Vb 1
\&    @tab fourcc: VP70,VP71
.Ve
.ie n .IP "\fBVP8                     :   E  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBVP8                     :   E  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "VP8 : E @tab X"
.Vb 1
\&    @tab fourcc: VP80, encoding supported through external library libvpx
.Ve
.ie n .IP "\fBVP9                     :   E  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBVP9                     :   E  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "VP9 : E @tab X"
.Vb 1
\&    @tab encoding supported through external library libvpx
.Ve
.ie n .IP "\fBPinnacle TARGA CineWave YUV16  :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBPinnacle TARGA CineWave YUV16  :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Pinnacle TARGA CineWave YUV16 : @tab X"
.Vb 1
\&    @tab fourcc: Y216
.Ve
.ie n .IP "\fBQ\-team QPEG             :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBQ\-team QPEG             :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Q-team QPEG : @tab X"
.Vb 1
\&    @tab fourccs: QPEG, Q1.0, Q1.1
.Ve
.ie n .IP "\fBQuickTime 8BPS video    :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBQuickTime 8BPS video    :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "QuickTime 8BPS video : @tab X"
.PD 0
.ie n .IP "\fBQuickTime Animation (RLE) video   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBQuickTime Animation (RLE) video   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "QuickTime Animation (RLE) video : X @tab X"
.PD
.Vb 1
\&    @tab fourcc: \*(Aqrle \*(Aq
.Ve
.ie n .IP "\fBQuickTime Graphics (SMC)   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBQuickTime Graphics (SMC)   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "QuickTime Graphics (SMC) : @tab X"
.Vb 1
\&    @tab fourcc: \*(Aqsmc \*(Aq
.Ve
.ie n .IP "\fBQuickTime video (RPZA)  :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBQuickTime video (RPZA)  :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "QuickTime video (RPZA) : X @tab X"
.Vb 1
\&    @tab fourcc: rpza
.Ve
.ie n .IP "\fBR10K AJA Kona 10\-bit RGB Codec      :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBR10K AJA Kona 10\-bit RGB Codec      :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "R10K AJA Kona 10-bit RGB Codec : X @tab X"
.PD 0
.ie n .IP "\fBR210 Quicktime Uncompressed RGB 10\-bit      :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBR210 Quicktime Uncompressed RGB 10\-bit      :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "R210 Quicktime Uncompressed RGB 10-bit : X @tab X"
.ie n .IP "\fBRaw Video               :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBRaw Video               :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Raw Video : X @tab X"
.ie n .IP "\fBRealVideo 1.0           :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBRealVideo 1.0           :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "RealVideo 1.0 : X @tab X"
.ie n .IP "\fBRealVideo 2.0           :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBRealVideo 2.0           :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "RealVideo 2.0 : X @tab X"
.ie n .IP "\fBRealVideo 3.0           :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBRealVideo 3.0           :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "RealVideo 3.0 : @tab X"
.PD
.Vb 1
\&    @tab still far from ideal
.Ve
.ie n .IP "\fBRealVideo 4.0           :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBRealVideo 4.0           :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "RealVideo 4.0 : @tab X"
.PD 0
.ie n .IP "\fBRenderware TXD (TeXture Dictionary)   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBRenderware TXD (TeXture Dictionary)   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Renderware TXD (TeXture Dictionary) : @tab X"
.PD
.Vb 1
\&    @tab Texture dictionaries used by the Renderware Engine.
.Ve
.ie n .IP "\fBRL2 video               :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBRL2 video               :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "RL2 video : @tab X"
.Vb 1
\&    @tab used in some games by Entertainment Software Partners
.Ve
.ie n .IP "\fBScreenPressor           :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBScreenPressor           :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ScreenPressor : @tab X"
.PD 0
.ie n .IP "\fBScreenpresso            :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBScreenpresso            :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Screenpresso : @tab X"
.ie n .IP "\fBScreen Recorder Gold Codec   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBScreen Recorder Gold Codec   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Screen Recorder Gold Codec : @tab X"
.ie n .IP "\fBSierra VMD video        :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBSierra VMD video        :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Sierra VMD video : @tab X"
.PD
.Vb 1
\&    @tab Used in Sierra VMD files.
.Ve
.ie n .IP "\fBSilicon Graphics Motion Video Compressor 1 (MVC1)   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBSilicon Graphics Motion Video Compressor 1 (MVC1)   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Silicon Graphics Motion Video Compressor 1 (MVC1) : @tab X"
.PD 0
.ie n .IP "\fBSilicon Graphics Motion Video Compressor 2 (MVC2)   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBSilicon Graphics Motion Video Compressor 2 (MVC2)   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Silicon Graphics Motion Video Compressor 2 (MVC2) : @tab X"
.ie n .IP "\fBSilicon Graphics RLE 8\-bit video   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBSilicon Graphics RLE 8\-bit video   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Silicon Graphics RLE 8-bit video : @tab X"
.ie n .IP "\fBSmacker video           :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBSmacker video           :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Smacker video : @tab X"
.PD
.Vb 1
\&    @tab Video encoding used in Smacker.
.Ve
.ie n .IP "\fBSMPTE VC\-1              :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBSMPTE VC\-1              :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "SMPTE VC-1 : @tab X"
.PD 0
.ie n .IP "\fBSnow                    :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBSnow                    :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Snow : X @tab X"
.PD
.Vb 1
\&    @tab experimental wavelet codec (fourcc: SNOW)
.Ve
.ie n .IP "\fBSony PlayStation MDEC (Motion DECoder)   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBSony PlayStation MDEC (Motion DECoder)   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Sony PlayStation MDEC (Motion DECoder) : @tab X"
.PD 0
.ie n .IP "\fBSorenson Vector Quantizer 1   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBSorenson Vector Quantizer 1   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Sorenson Vector Quantizer 1 : X @tab X"
.PD
.Vb 1
\&    @tab fourcc: SVQ1
.Ve
.ie n .IP "\fBSorenson Vector Quantizer 3   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBSorenson Vector Quantizer 3   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Sorenson Vector Quantizer 3 : @tab X"
.Vb 1
\&    @tab fourcc: SVQ3
.Ve
.ie n .IP "\fBSunplus JPEG (SP5X)     :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBSunplus JPEG (SP5X)     :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Sunplus JPEG (SP5X) : @tab X"
.Vb 1
\&    @tab fourcc: SP5X
.Ve
.ie n .IP "\fBTechSmith Screen Capture Codec   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBTechSmith Screen Capture Codec   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "TechSmith Screen Capture Codec : @tab X"
.Vb 1
\&    @tab fourcc: TSCC
.Ve
.ie n .IP "\fBTechSmith Screen Capture Codec 2   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBTechSmith Screen Capture Codec 2   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "TechSmith Screen Capture Codec 2 : @tab X"
.Vb 1
\&    @tab fourcc: TSC2
.Ve
.ie n .IP "\fBTheora                  :   E  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBTheora                  :   E  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Theora : E @tab X"
.Vb 1
\&    @tab encoding supported through external library libtheora
.Ve
.ie n .IP "\fBTiertex Limited SEQ video   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBTiertex Limited SEQ video   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Tiertex Limited SEQ video : @tab X"
.Vb 1
\&    @tab Codec used in DOS CD\-ROM FlashBack game.
.Ve
.ie n .IP "\fBUt Video                :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBUt Video                :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Ut Video : X @tab X"
.PD 0
.ie n .IP "\fBv210 QuickTime uncompressed 4:2:2 10\-bit      :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBv210 QuickTime uncompressed 4:2:2 10\-bit      :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "v210 QuickTime uncompressed 4:2:2 10-bit : X @tab X"
.ie n .IP "\fBv308 QuickTime uncompressed 4:4:4             :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBv308 QuickTime uncompressed 4:4:4             :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "v308 QuickTime uncompressed 4:4:4 : X @tab X"
.ie n .IP "\fBv408 QuickTime uncompressed 4:4:4:4           :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBv408 QuickTime uncompressed 4:4:4:4           :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "v408 QuickTime uncompressed 4:4:4:4 : X @tab X"
.ie n .IP "\fBv410 QuickTime uncompressed 4:4:4 10\-bit      :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBv410 QuickTime uncompressed 4:4:4 10\-bit      :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "v410 QuickTime uncompressed 4:4:4 10-bit : X @tab X"
.ie n .IP "\fBVBLE Lossless Codec     :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBVBLE Lossless Codec     :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "VBLE Lossless Codec : @tab X"
.ie n .IP "\fBVMware Screen Codec / VMware Video   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBVMware Screen Codec / VMware Video   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "VMware Screen Codec / VMware Video : @tab X"
.PD
.Vb 1
\&    @tab Codec used in videos captured by VMware.
.Ve
.ie n .IP "\fBWestwood Studios VQA (Vector Quantized Animation) video   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBWestwood Studios VQA (Vector Quantized Animation) video   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Westwood Studios VQA (Vector Quantized Animation) video : @tab X"
.PD 0
.ie n .IP "\fBWindows Media Image     :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBWindows Media Image     :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Windows Media Image : @tab X"
.ie n .IP "\fBWindows Media Video 7   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBWindows Media Video 7   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Windows Media Video 7 : X @tab X"
.ie n .IP "\fBWindows Media Video 8   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBWindows Media Video 8   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Windows Media Video 8 : X @tab X"
.ie n .IP "\fBWindows Media Video 9   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBWindows Media Video 9   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Windows Media Video 9 : @tab X"
.PD
.Vb 1
\&    @tab not completely working
.Ve
.ie n .IP "\fBWing Commander III / Xan   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBWing Commander III / Xan   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Wing Commander III / Xan : @tab X"
.Vb 1
\&    @tab Used in Wing Commander III .MVE files.
.Ve
.ie n .IP "\fBWing Commander IV / Xan   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBWing Commander IV / Xan   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Wing Commander IV / Xan : @tab X"
.Vb 1
\&    @tab Used in Wing Commander IV.
.Ve
.ie n .IP "\fBWinnov WNV1             :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBWinnov WNV1             :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Winnov WNV1 : @tab X"
.PD 0
.ie n .IP "\fBWMV7                    :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBWMV7                    :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "WMV7 : X @tab X"
.ie n .IP "\fBYAMAHA SMAF             :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBYAMAHA SMAF             :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "YAMAHA SMAF : X @tab X"
.ie n .IP "\fBPsygnosis YOP Video     :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBPsygnosis YOP Video     :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Psygnosis YOP Video : @tab X"
.ie n .IP "\fByuv4                    :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fByuv4                    :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "yuv4 : X @tab X"
.PD
.Vb 1
\&    @tab libquicktime uncompressed packed 4:2:0
.Ve
.ie n .IP "\fBZeroCodec Lossless Video  :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBZeroCodec Lossless Video  :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ZeroCodec Lossless Video : @tab X"
.PD 0
.ie n .IP "\fBZLIB                    :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBZLIB                    :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ZLIB : X @tab X"
.PD
.Vb 1
\&    @tab part of LCL, encoder experimental
.Ve
.ie n .IP "\fBZip Motion Blocks Video   :    X \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBZip Motion Blocks Video   :    X \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Zip Motion Blocks Video : X @tab X"
.Vb 1
\&    @tab Encoder works only in PAL8.
.Ve
.PP
\&\f(CW\*(C`X\*(C'\fR means that the feature in that column (encoding / decoding) is supported.
.PP
\&\f(CW\*(C`E\*(C'\fR means that support is provided through an external library.
.SS "Audio Codecs"
.IX Subsection "Audio Codecs"
.ie n .IP "\fBName  :  Encoding \fR\fB@tab\fR\fB Decoding \fR\fB@tab\fR\fB Comments\fR" 4
.el .IP "\fBName  :  Encoding \fR\f(CB@tab\fR\fB Decoding \fR\f(CB@tab\fR\fB Comments\fR" 4
.IX Item "Name : Encoding @tab Decoding @tab Comments"
.PD 0
.ie n .IP "\fB8SVX exponential        :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fB8SVX exponential        :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "8SVX exponential : @tab X"
.ie n .IP "\fB8SVX fibonacci          :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fB8SVX fibonacci          :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "8SVX fibonacci : @tab X"
.ie n .IP "\fBAAC                     :  EX  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBAAC                     :  EX  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "AAC : EX @tab X"
.PD
.Vb 1
\&    @tab encoding supported through internal encoder and external library libfdk\-aac
.Ve
.ie n .IP "\fBAAC+                    :   E  \fR\fB@tab\fR\fB  IX\fR" 4
.el .IP "\fBAAC+                    :   E  \fR\f(CB@tab\fR\fB  IX\fR" 4
.IX Item "AAC+ : E @tab IX"
.Vb 1
\&    @tab encoding supported through external library libfdk\-aac
.Ve
.ie n .IP "\fBAC\-3                    :  IX  \fR\fB@tab\fR\fB  IX\fR" 4
.el .IP "\fBAC\-3                    :  IX  \fR\f(CB@tab\fR\fB  IX\fR" 4
.IX Item "AC-3 : IX @tab IX"
.PD 0
.ie n .IP "\fBACELP.KELVIN            :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBACELP.KELVIN            :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ACELP.KELVIN : @tab X"
.ie n .IP "\fBADPCM 4X Movie          :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM 4X Movie          :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM 4X Movie : @tab X"
.ie n .IP "\fBADPCM Yamaha AICA       :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM Yamaha AICA       :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM Yamaha AICA : @tab X"
.ie n .IP "\fBADPCM AmuseGraphics Movie  :     \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM AmuseGraphics Movie  :     \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM AmuseGraphics Movie : @tab X"
.ie n .IP "\fBADPCM Argonaut Games    :  X   \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM Argonaut Games    :  X   \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM Argonaut Games : X @tab X"
.ie n .IP "\fBADPCM CDROM XA          :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM CDROM XA          :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM CDROM XA : @tab X"
.ie n .IP "\fBADPCM Creative Technology  :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM Creative Technology  :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM Creative Technology : @tab X"
.PD
.Vb 1
\&    @tab 16 \-E<gt> 4, 8 \-E<gt> 4, 8 \-E<gt> 3, 8 \-E<gt> 2
.Ve
.ie n .IP "\fBADPCM Electronic Arts   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM Electronic Arts   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM Electronic Arts : @tab X"
.Vb 1
\&    @tab Used in various EA titles.
.Ve
.ie n .IP "\fBADPCM Electronic Arts Maxis CDROM XS   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM Electronic Arts Maxis CDROM XS   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM Electronic Arts Maxis CDROM XS : @tab X"
.Vb 1
\&    @tab Used in Sim City 3000.
.Ve
.ie n .IP "\fBADPCM Electronic Arts R1   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM Electronic Arts R1   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM Electronic Arts R1 : @tab X"
.PD 0
.ie n .IP "\fBADPCM Electronic Arts R2   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM Electronic Arts R2   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM Electronic Arts R2 : @tab X"
.ie n .IP "\fBADPCM Electronic Arts R3   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM Electronic Arts R3   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM Electronic Arts R3 : @tab X"
.ie n .IP "\fBADPCM Electronic Arts XAS  :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM Electronic Arts XAS  :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM Electronic Arts XAS : @tab X"
.ie n .IP "\fBADPCM G.722             :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM G.722             :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM G.722 : X @tab X"
.ie n .IP "\fBADPCM G.726             :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM G.726             :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM G.726 : X @tab X"
.ie n .IP "\fBADPCM IMA AMV           :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM IMA AMV           :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM IMA AMV : X @tab X"
.PD
.Vb 1
\&    @tab Used in AMV files
.Ve
.ie n .IP "\fBADPCM IMA Cunning Developments   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM IMA Cunning Developments   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM IMA Cunning Developments : @tab X"
.PD 0
.ie n .IP "\fBADPCM IMA Electronic Arts EACS   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM IMA Electronic Arts EACS   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM IMA Electronic Arts EACS : @tab X"
.ie n .IP "\fBADPCM IMA Electronic Arts SEAD   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM IMA Electronic Arts SEAD   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM IMA Electronic Arts SEAD : @tab X"
.ie n .IP "\fBADPCM IMA Funcom        :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM IMA Funcom        :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM IMA Funcom : @tab X"
.ie n .IP "\fBADPCM IMA High Voltage Software ALP       :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM IMA High Voltage Software ALP       :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM IMA High Voltage Software ALP : X @tab X"
.ie n .IP "\fBADPCM IMA QuickTime     :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM IMA QuickTime     :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM IMA QuickTime : X @tab X"
.ie n .IP "\fBADPCM IMA Simon & Schuster Interactive    :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM IMA Simon & Schuster Interactive    :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM IMA Simon & Schuster Interactive : X @tab X"
.ie n .IP "\fBADPCM IMA Ubisoft APM   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM IMA Ubisoft APM   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM IMA Ubisoft APM : X @tab X"
.ie n .IP "\fBADPCM IMA Loki SDL MJPEG   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM IMA Loki SDL MJPEG   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM IMA Loki SDL MJPEG : @tab X"
.ie n .IP "\fBADPCM IMA WAV           :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM IMA WAV           :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM IMA WAV : X @tab X"
.ie n .IP "\fBADPCM IMA Westwood      :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM IMA Westwood      :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM IMA Westwood : @tab X"
.ie n .IP "\fBADPCM ISS IMA           :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM ISS IMA           :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM ISS IMA : @tab X"
.PD
.Vb 1
\&    @tab Used in FunCom games.
.Ve
.ie n .IP "\fBADPCM IMA Dialogic      :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM IMA Dialogic      :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM IMA Dialogic : @tab X"
.PD 0
.ie n .IP "\fBADPCM IMA Duck DK3      :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM IMA Duck DK3      :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM IMA Duck DK3 : @tab X"
.PD
.Vb 1
\&    @tab Used in some Sega Saturn console games.
.Ve
.ie n .IP "\fBADPCM IMA Duck DK4      :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM IMA Duck DK4      :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM IMA Duck DK4 : @tab X"
.Vb 1
\&    @tab Used in some Sega Saturn console games.
.Ve
.ie n .IP "\fBADPCM IMA Radical       :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM IMA Radical       :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM IMA Radical : @tab X"
.PD 0
.ie n .IP "\fBADPCM Microsoft         :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM Microsoft         :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM Microsoft : X @tab X"
.ie n .IP "\fBADPCM MS IMA            :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM MS IMA            :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM MS IMA : X @tab X"
.ie n .IP "\fBADPCM Nintendo Gamecube AFC   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM Nintendo Gamecube AFC   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM Nintendo Gamecube AFC : @tab X"
.ie n .IP "\fBADPCM Nintendo Gamecube DTK   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM Nintendo Gamecube DTK   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM Nintendo Gamecube DTK : @tab X"
.ie n .IP "\fBADPCM Nintendo THP   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM Nintendo THP   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM Nintendo THP : @tab X"
.ie n .IP "\fBADPCM Playstation       :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM Playstation       :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM Playstation : @tab X"
.ie n .IP "\fBADPCM QT IMA            :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM QT IMA            :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM QT IMA : X @tab X"
.ie n .IP "\fBADPCM SEGA CRI ADX      :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM SEGA CRI ADX      :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM SEGA CRI ADX : X @tab X"
.PD
.Vb 1
\&    @tab Used in Sega Dreamcast games.
.Ve
.ie n .IP "\fBADPCM Shockwave Flash   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM Shockwave Flash   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM Shockwave Flash : X @tab X"
.PD 0
.ie n .IP "\fBADPCM Sound Blaster Pro 2\-bit   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM Sound Blaster Pro 2\-bit   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM Sound Blaster Pro 2-bit : @tab X"
.ie n .IP "\fBADPCM Sound Blaster Pro 2.6\-bit   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM Sound Blaster Pro 2.6\-bit   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM Sound Blaster Pro 2.6-bit : @tab X"
.ie n .IP "\fBADPCM Sound Blaster Pro 4\-bit   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM Sound Blaster Pro 4\-bit   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM Sound Blaster Pro 4-bit : @tab X"
.ie n .IP "\fBADPCM VIMA              :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM VIMA              :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM VIMA : @tab X"
.PD
.Vb 1
\&    @tab Used in LucasArts SMUSH animations.
.Ve
.ie n .IP "\fBADPCM Westwood Studios IMA  :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM Westwood Studios IMA  :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM Westwood Studios IMA : @tab X"
.Vb 1
\&    @tab Used in Westwood Studios games like Command and Conquer.
.Ve
.ie n .IP "\fBADPCM Yamaha            :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM Yamaha            :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM Yamaha : X @tab X"
.PD 0
.ie n .IP "\fBADPCM Zork              :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBADPCM Zork              :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ADPCM Zork : @tab X"
.ie n .IP "\fBAMR-NB                  :   E  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBAMR-NB                  :   E  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "AMR-NB : E @tab X"
.PD
.Vb 1
\&    @tab encoding supported through external library libopencore\-amrnb
.Ve
.ie n .IP "\fBAMR-WB                  :   E  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBAMR-WB                  :   E  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "AMR-WB : E @tab X"
.Vb 1
\&    @tab encoding supported through external library libvo\-amrwbenc
.Ve
.ie n .IP "\fBAmazing Studio PAF Audio  :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBAmazing Studio PAF Audio  :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Amazing Studio PAF Audio : @tab X"
.PD 0
.ie n .IP "\fBApple lossless audio    :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBApple lossless audio    :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Apple lossless audio : X @tab X"
.PD
.Vb 1
\&    @tab QuickTime fourcc \*(Aqalac\*(Aq
.Ve
.ie n .IP "\fBaptX                    :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBaptX                    :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "aptX : X @tab X"
.Vb 1
\&    @tab Used in Bluetooth A2DP
.Ve
.ie n .IP "\fBaptX HD                 :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBaptX HD                 :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "aptX HD : X @tab X"
.Vb 1
\&    @tab Used in Bluetooth A2DP
.Ve
.ie n .IP "\fBATRAC1                  :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBATRAC1                  :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ATRAC1 : @tab X"
.PD 0
.ie n .IP "\fBATRAC3                  :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBATRAC3                  :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ATRAC3 : @tab X"
.ie n .IP "\fBATRAC3+                 :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBATRAC3+                 :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ATRAC3+ : @tab X"
.ie n .IP "\fBATRAC9                  :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBATRAC9                  :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "ATRAC9 : @tab X"
.ie n .IP "\fBBink Audio              :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBBink Audio              :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Bink Audio : @tab X"
.PD
.Vb 1
\&    @tab Used in Bink and Smacker files in many games.
.Ve
.ie n .IP "\fBCELT                    :      \fR\fB@tab\fR\fB  E\fR" 4
.el .IP "\fBCELT                    :      \fR\f(CB@tab\fR\fB  E\fR" 4
.IX Item "CELT : @tab E"
.Vb 1
\&    @tab decoding supported through external library libcelt
.Ve
.ie n .IP "\fBcodec2                  :   E  \fR\fB@tab\fR\fB  E\fR" 4
.el .IP "\fBcodec2                  :   E  \fR\f(CB@tab\fR\fB  E\fR" 4
.IX Item "codec2 : E @tab E"
.Vb 1
\&    @tab en/decoding supported through external library libcodec2
.Ve
.ie n .IP "\fBCRI HCA                 :      \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBCRI HCA                 :      \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "CRI HCA : @tab X"
.PD 0
.ie n .IP "\fBDelphine Software International CIN audio   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBDelphine Software International CIN audio   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Delphine Software International CIN audio : @tab X"
.PD
.Vb 1
\&    @tab Codec used in Delphine Software International games.
.Ve
.ie n .IP "\fBDigital Speech Standard \- Standard Play mode (DSS SP)  :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBDigital Speech Standard \- Standard Play mode (DSS SP)  :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Digital Speech Standard - Standard Play mode (DSS SP) : @tab X"
.PD 0
.ie n .IP "\fBDiscworld II BMV Audio  :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBDiscworld II BMV Audio  :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Discworld II BMV Audio : @tab X"
.ie n .IP "\fBCOOK                    :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBCOOK                    :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "COOK : @tab X"
.PD
.Vb 1
\&    @tab All versions except 5.1 are supported.
.Ve
.ie n .IP "\fBDCA (DTS Coherent Acoustics)   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBDCA (DTS Coherent Acoustics)   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "DCA (DTS Coherent Acoustics) : X @tab X"
.Vb 1
\&    @tab supported extensions: XCh, XXCH, X96, XBR, XLL, LBR (partially)
.Ve
.ie n .IP "\fBDolby E   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBDolby E   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Dolby E : @tab X"
.PD 0
.ie n .IP "\fBDPCM Gremlin            :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBDPCM Gremlin            :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "DPCM Gremlin : @tab X"
.ie n .IP "\fBDPCM id RoQ             :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBDPCM id RoQ             :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "DPCM id RoQ : X @tab X"
.PD
.Vb 1
\&    @tab Used in Quake III, Jedi Knight 2 and other computer games.
.Ve
.ie n .IP "\fBDPCM Interplay          :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBDPCM Interplay          :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "DPCM Interplay : @tab X"
.Vb 1
\&    @tab Used in various Interplay computer games.
.Ve
.ie n .IP "\fBDPCM Squareroot-Delta-Exact   :   \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBDPCM Squareroot-Delta-Exact   :   \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "DPCM Squareroot-Delta-Exact : @tab X"
.Vb 1
\&    @tab Used in various games.
.Ve
.ie n .IP "\fBDPCM Sierra Online      :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBDPCM Sierra Online      :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "DPCM Sierra Online : @tab X"
.Vb 1
\&    @tab Used in Sierra Online game audio files.
.Ve
.ie n .IP "\fBDPCM Sol                :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBDPCM Sol                :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "DPCM Sol : @tab X"
.PD 0
.ie n .IP "\fBDPCM Xan                :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBDPCM Xan                :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "DPCM Xan : @tab X"
.PD
.Vb 1
\&    @tab Used in Origin\*(Aqs Wing Commander IV AVI files.
.Ve
.ie n .IP "\fBDPCM Xilam DERF         :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBDPCM Xilam DERF         :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "DPCM Xilam DERF : @tab X"
.PD 0
.ie n .IP "\fBDSD (Direct Stream Digital), least significant bit first   :   \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBDSD (Direct Stream Digital), least significant bit first   :   \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "DSD (Direct Stream Digital), least significant bit first : @tab X"
.ie n .IP "\fBDSD (Direct Stream Digital), most significant bit first    :   \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBDSD (Direct Stream Digital), most significant bit first    :   \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "DSD (Direct Stream Digital), most significant bit first : @tab X"
.ie n .IP "\fBDSD (Direct Stream Digital), least significant bit first, planar   :   \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBDSD (Direct Stream Digital), least significant bit first, planar   :   \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "DSD (Direct Stream Digital), least significant bit first, planar : @tab X"
.ie n .IP "\fBDSD (Direct Stream Digital), most significant bit first, planar    :   \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBDSD (Direct Stream Digital), most significant bit first, planar    :   \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "DSD (Direct Stream Digital), most significant bit first, planar : @tab X"
.ie n .IP "\fBDSP Group TrueSpeech    :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBDSP Group TrueSpeech    :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "DSP Group TrueSpeech : @tab X"
.ie n .IP "\fBDST (Direct Stream Transfer)  :   \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBDST (Direct Stream Transfer)  :   \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "DST (Direct Stream Transfer) : @tab X"
.ie n .IP "\fBDV audio                :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBDV audio                :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "DV audio : @tab X"
.ie n .IP "\fBEnhanced AC\-3           :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBEnhanced AC\-3           :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Enhanced AC-3 : X @tab X"
.ie n .IP "\fBEVRC (Enhanced Variable Rate Codec)  :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBEVRC (Enhanced Variable Rate Codec)  :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "EVRC (Enhanced Variable Rate Codec) : @tab X"
.ie n .IP "\fBFLAC (Free Lossless Audio Codec)   :   X  \fR\fB@tab\fR\fB  IX\fR" 4
.el .IP "\fBFLAC (Free Lossless Audio Codec)   :   X  \fR\f(CB@tab\fR\fB  IX\fR" 4
.IX Item "FLAC (Free Lossless Audio Codec) : X @tab IX"
.ie n .IP "\fBG.723.1                 :  X   \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBG.723.1                 :  X   \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "G.723.1 : X @tab X"
.ie n .IP "\fBG.729                   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBG.729                   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "G.729 : @tab X"
.ie n .IP "\fBGSM                     :   E  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBGSM                     :   E  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "GSM : E @tab X"
.PD
.Vb 1
\&    @tab encoding supported through external library libgsm
.Ve
.ie n .IP "\fBGSM Microsoft variant   :   E  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBGSM Microsoft variant   :   E  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "GSM Microsoft variant : E @tab X"
.Vb 1
\&    @tab encoding supported through external library libgsm
.Ve
.ie n .IP "\fBIAC (Indeo Audio Coder)   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBIAC (Indeo Audio Coder)   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "IAC (Indeo Audio Coder) : @tab X"
.PD 0
.ie n .IP "\fBiLBC (Internet Low Bitrate Codec)  :   E  \fR\fB@tab\fR\fB  E\fR" 4
.el .IP "\fBiLBC (Internet Low Bitrate Codec)  :   E  \fR\f(CB@tab\fR\fB  E\fR" 4
.IX Item "iLBC (Internet Low Bitrate Codec) : E @tab E"
.PD
.Vb 1
\&    @tab encoding and decoding supported through external library libilbc
.Ve
.ie n .IP "\fBIMC (Intel Music Coder)   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBIMC (Intel Music Coder)   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "IMC (Intel Music Coder) : @tab X"
.PD 0
.ie n .IP "\fBInterplay ACM             :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBInterplay ACM             :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Interplay ACM : @tab X"
.ie n .IP "\fBMACE (Macintosh Audio Compression/Expansion) 3:1   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBMACE (Macintosh Audio Compression/Expansion) 3:1   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "MACE (Macintosh Audio Compression/Expansion) 3:1 : @tab X"
.ie n .IP "\fBMACE (Macintosh Audio Compression/Expansion) 6:1   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBMACE (Macintosh Audio Compression/Expansion) 6:1   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "MACE (Macintosh Audio Compression/Expansion) 6:1 : @tab X"
.ie n .IP "\fBMLP (Meridian Lossless Packing)   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBMLP (Meridian Lossless Packing)   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "MLP (Meridian Lossless Packing) : X @tab X"
.PD
.Vb 1
\&    @tab Used in DVD\-Audio discs.
.Ve
.ie n .IP "\fBMonkey's Audio          :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBMonkey's Audio          :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Monkey's Audio : @tab X"
.PD 0
.ie n .IP "\fBMP1 (MPEG audio layer 1)   :      \fR\fB@tab\fR\fB IX\fR" 4
.el .IP "\fBMP1 (MPEG audio layer 1)   :      \fR\f(CB@tab\fR\fB IX\fR" 4
.IX Item "MP1 (MPEG audio layer 1) : @tab IX"
.ie n .IP "\fBMP2 (MPEG audio layer 2)   :  IX  \fR\fB@tab\fR\fB IX\fR" 4
.el .IP "\fBMP2 (MPEG audio layer 2)   :  IX  \fR\f(CB@tab\fR\fB IX\fR" 4
.IX Item "MP2 (MPEG audio layer 2) : IX @tab IX"
.PD
.Vb 1
\&    @tab encoding supported also through external library TwoLAME
.Ve
.ie n .IP "\fBMP3 (MPEG audio layer 3)   :   E  \fR\fB@tab\fR\fB IX\fR" 4
.el .IP "\fBMP3 (MPEG audio layer 3)   :   E  \fR\f(CB@tab\fR\fB IX\fR" 4
.IX Item "MP3 (MPEG audio layer 3) : E @tab IX"
.Vb 1
\&    @tab encoding supported through external library LAME, ADU MP3 and MP3onMP4 also supported
.Ve
.ie n .IP "\fBMPEG\-4 Audio Lossless Coding (ALS)   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBMPEG\-4 Audio Lossless Coding (ALS)   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "MPEG-4 Audio Lossless Coding (ALS) : @tab X"
.PD 0
.ie n .IP "\fBMusepack SV7            :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBMusepack SV7            :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Musepack SV7 : @tab X"
.ie n .IP "\fBMusepack SV8            :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBMusepack SV8            :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Musepack SV8 : @tab X"
.ie n .IP "\fBNellymoser Asao         :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBNellymoser Asao         :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Nellymoser Asao : X @tab X"
.ie n .IP "\fBOn2 AVC (Audio for Video Codec)  :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBOn2 AVC (Audio for Video Codec)  :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "On2 AVC (Audio for Video Codec) : @tab X"
.ie n .IP "\fBOpus                    :   E  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBOpus                    :   E  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Opus : E @tab X"
.PD
.Vb 1
\&    @tab encoding supported through external library libopus
.Ve
.ie n .IP "\fBPCM A\-law               :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBPCM A\-law               :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "PCM A-law : X @tab X"
.PD 0
.ie n .IP "\fBPCM mu-law              :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBPCM mu-law              :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "PCM mu-law : X @tab X"
.ie n .IP "\fBPCM Archimedes VIDC     :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBPCM Archimedes VIDC     :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "PCM Archimedes VIDC : X @tab X"
.ie n .IP "\fBPCM signed 8\-bit planar   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBPCM signed 8\-bit planar   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "PCM signed 8-bit planar : X @tab X"
.ie n .IP "\fBPCM signed 16\-bit big-endian planar   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBPCM signed 16\-bit big-endian planar   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "PCM signed 16-bit big-endian planar : X @tab X"
.ie n .IP "\fBPCM signed 16\-bit little-endian planar   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBPCM signed 16\-bit little-endian planar   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "PCM signed 16-bit little-endian planar : X @tab X"
.ie n .IP "\fBPCM signed 24\-bit little-endian planar   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBPCM signed 24\-bit little-endian planar   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "PCM signed 24-bit little-endian planar : X @tab X"
.ie n .IP "\fBPCM signed 32\-bit little-endian planar   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBPCM signed 32\-bit little-endian planar   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "PCM signed 32-bit little-endian planar : X @tab X"
.ie n .IP "\fBPCM 32\-bit floating point big-endian   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBPCM 32\-bit floating point big-endian   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "PCM 32-bit floating point big-endian : X @tab X"
.ie n .IP "\fBPCM 32\-bit floating point little-endian   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBPCM 32\-bit floating point little-endian   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "PCM 32-bit floating point little-endian : X @tab X"
.ie n .IP "\fBPCM 64\-bit floating point big-endian   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBPCM 64\-bit floating point big-endian   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "PCM 64-bit floating point big-endian : X @tab X"
.ie n .IP "\fBPCM 64\-bit floating point little-endian   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBPCM 64\-bit floating point little-endian   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "PCM 64-bit floating point little-endian : X @tab X"
.ie n .IP "\fBPCM D\-Cinema audio signed 24\-bit    :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBPCM D\-Cinema audio signed 24\-bit    :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "PCM D-Cinema audio signed 24-bit : X @tab X"
.ie n .IP "\fBPCM signed 8\-bit        :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBPCM signed 8\-bit        :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "PCM signed 8-bit : X @tab X"
.ie n .IP "\fBPCM signed 16\-bit big-endian   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBPCM signed 16\-bit big-endian   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "PCM signed 16-bit big-endian : X @tab X"
.ie n .IP "\fBPCM signed 16\-bit little-endian   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBPCM signed 16\-bit little-endian   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "PCM signed 16-bit little-endian : X @tab X"
.ie n .IP "\fBPCM signed 24\-bit big-endian   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBPCM signed 24\-bit big-endian   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "PCM signed 24-bit big-endian : X @tab X"
.ie n .IP "\fBPCM signed 24\-bit little-endian   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBPCM signed 24\-bit little-endian   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "PCM signed 24-bit little-endian : X @tab X"
.ie n .IP "\fBPCM signed 32\-bit big-endian   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBPCM signed 32\-bit big-endian   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "PCM signed 32-bit big-endian : X @tab X"
.ie n .IP "\fBPCM signed 32\-bit little-endian   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBPCM signed 32\-bit little-endian   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "PCM signed 32-bit little-endian : X @tab X"
.ie n .IP "\fBPCM signed 16/20/24\-bit big-endian in MPEG-TS   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBPCM signed 16/20/24\-bit big-endian in MPEG-TS   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "PCM signed 16/20/24-bit big-endian in MPEG-TS : @tab X"
.ie n .IP "\fBPCM unsigned 8\-bit      :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBPCM unsigned 8\-bit      :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "PCM unsigned 8-bit : X @tab X"
.ie n .IP "\fBPCM unsigned 16\-bit big-endian   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBPCM unsigned 16\-bit big-endian   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "PCM unsigned 16-bit big-endian : X @tab X"
.ie n .IP "\fBPCM unsigned 16\-bit little-endian   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBPCM unsigned 16\-bit little-endian   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "PCM unsigned 16-bit little-endian : X @tab X"
.ie n .IP "\fBPCM unsigned 24\-bit big-endian   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBPCM unsigned 24\-bit big-endian   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "PCM unsigned 24-bit big-endian : X @tab X"
.ie n .IP "\fBPCM unsigned 24\-bit little-endian   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBPCM unsigned 24\-bit little-endian   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "PCM unsigned 24-bit little-endian : X @tab X"
.ie n .IP "\fBPCM unsigned 32\-bit big-endian   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBPCM unsigned 32\-bit big-endian   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "PCM unsigned 32-bit big-endian : X @tab X"
.ie n .IP "\fBPCM unsigned 32\-bit little-endian   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBPCM unsigned 32\-bit little-endian   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "PCM unsigned 32-bit little-endian : X @tab X"
.ie n .IP "\fBQCELP / PureVoice       :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBQCELP / PureVoice       :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "QCELP / PureVoice : @tab X"
.ie n .IP "\fBQDesign Music Codec 1   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBQDesign Music Codec 1   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "QDesign Music Codec 1 : @tab X"
.ie n .IP "\fBQDesign Music Codec 2   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBQDesign Music Codec 2   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "QDesign Music Codec 2 : @tab X"
.PD
.Vb 1
\&    @tab There are still some distortions.
.Ve
.ie n .IP "\fBRealAudio 1.0 (14.4K)   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBRealAudio 1.0 (14.4K)   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "RealAudio 1.0 (14.4K) : X @tab X"
.Vb 1
\&    @tab Real 14400 bit/s codec
.Ve
.ie n .IP "\fBRealAudio 2.0 (28.8K)   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBRealAudio 2.0 (28.8K)   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "RealAudio 2.0 (28.8K) : @tab X"
.Vb 1
\&    @tab Real 28800 bit/s codec
.Ve
.ie n .IP "\fBRealAudio 3.0 (dnet)    :  IX  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBRealAudio 3.0 (dnet)    :  IX  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "RealAudio 3.0 (dnet) : IX @tab X"
.Vb 1
\&    @tab Real low bitrate AC\-3 codec
.Ve
.ie n .IP "\fBRealAudio Lossless      :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBRealAudio Lossless      :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "RealAudio Lossless : @tab X"
.PD 0
.ie n .IP "\fBRealAudio SIPR / ACELP.NET  :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBRealAudio SIPR / ACELP.NET  :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "RealAudio SIPR / ACELP.NET : @tab X"
.ie n .IP "\fBSBC (low-complexity subband codec)  :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBSBC (low-complexity subband codec)  :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "SBC (low-complexity subband codec) : X @tab X"
.PD
.Vb 1
\&    @tab Used in Bluetooth A2DP
.Ve
.ie n .IP "\fBShorten                 :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBShorten                 :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Shorten : @tab X"
.PD 0
.ie n .IP "\fBSierra VMD audio        :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBSierra VMD audio        :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Sierra VMD audio : @tab X"
.PD
.Vb 1
\&    @tab Used in Sierra VMD files.
.Ve
.ie n .IP "\fBSmacker audio           :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBSmacker audio           :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Smacker audio : @tab X"
.PD 0
.ie n .IP "\fBSMPTE 302M AES3 audio   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBSMPTE 302M AES3 audio   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "SMPTE 302M AES3 audio : X @tab X"
.ie n .IP "\fBSonic                   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBSonic                   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Sonic : X @tab X"
.PD
.Vb 1
\&    @tab experimental codec
.Ve
.ie n .IP "\fBSonic lossless          :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBSonic lossless          :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Sonic lossless : X @tab X"
.Vb 1
\&    @tab experimental codec
.Ve
.ie n .IP "\fBSpeex                   :   E  \fR\fB@tab\fR\fB  E\fR" 4
.el .IP "\fBSpeex                   :   E  \fR\f(CB@tab\fR\fB  E\fR" 4
.IX Item "Speex : E @tab E"
.Vb 1
\&    @tab supported through external library libspeex
.Ve
.ie n .IP "\fBTAK (Tom's lossless Audio Kompressor)   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBTAK (Tom's lossless Audio Kompressor)   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "TAK (Tom's lossless Audio Kompressor) : @tab X"
.PD 0
.ie n .IP "\fBTrue Audio (TTA)        :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBTrue Audio (TTA)        :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "True Audio (TTA) : X @tab X"
.ie n .IP "\fBTrueHD                  :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBTrueHD                  :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "TrueHD : X @tab X"
.PD
.Vb 1
\&    @tab Used in HD\-DVD and Blu\-Ray discs.
.Ve
.ie n .IP "\fBTwinVQ (VQF flavor)     :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBTwinVQ (VQF flavor)     :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "TwinVQ (VQF flavor) : @tab X"
.PD 0
.ie n .IP "\fBVIMA                    :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBVIMA                    :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "VIMA : @tab X"
.PD
.Vb 1
\&    @tab Used in LucasArts SMUSH animations.
.Ve
.ie n .IP "\fBVorbis                  :   E  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBVorbis                  :   E  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Vorbis : E @tab X"
.Vb 1
\&    @tab A native but very primitive encoder exists.
.Ve
.ie n .IP "\fBVoxware MetaSound       :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBVoxware MetaSound       :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Voxware MetaSound : @tab X"
.PD 0
.ie n .IP "\fBWavPack                 :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBWavPack                 :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "WavPack : X @tab X"
.ie n .IP "\fBWestwood Audio (SND1)   :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBWestwood Audio (SND1)   :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Westwood Audio (SND1) : @tab X"
.ie n .IP "\fBWindows Media Audio 1   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBWindows Media Audio 1   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Windows Media Audio 1 : X @tab X"
.ie n .IP "\fBWindows Media Audio 2   :   X  \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBWindows Media Audio 2   :   X  \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Windows Media Audio 2 : X @tab X"
.ie n .IP "\fBWindows Media Audio Lossless  :   \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBWindows Media Audio Lossless  :   \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Windows Media Audio Lossless : @tab X"
.ie n .IP "\fBWindows Media Audio Pro  :     \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBWindows Media Audio Pro  :     \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Windows Media Audio Pro : @tab X"
.ie n .IP "\fBWindows Media Audio Voice  :   \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBWindows Media Audio Voice  :   \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Windows Media Audio Voice : @tab X"
.ie n .IP "\fBXbox Media Audio 1      :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBXbox Media Audio 1      :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Xbox Media Audio 1 : @tab X"
.ie n .IP "\fBXbox Media Audio 2      :      \fR\fB@tab\fR\fB  X\fR" 4
.el .IP "\fBXbox Media Audio 2      :      \fR\f(CB@tab\fR\fB  X\fR" 4
.IX Item "Xbox Media Audio 2 : @tab X"
.PD
.PP
\&\f(CW\*(C`X\*(C'\fR means that the feature in that column (encoding / decoding) is supported.
.PP
\&\f(CW\*(C`E\*(C'\fR means that support is provided through an external library.
.PP
\&\f(CW\*(C`I\*(C'\fR means that an integer-only version is available, too (ensures high
performance on systems without hardware floating point support).
.SS "Subtitle Formats"
.IX Subsection "Subtitle Formats"
.ie n .IP "\fBName  :  Muxing \fR\fB@tab\fR\fB Demuxing \fR\fB@tab\fR\fB Encoding \fR\fB@tab\fR\fB Decoding\fR" 4
.el .IP "\fBName  :  Muxing \fR\f(CB@tab\fR\fB Demuxing \fR\f(CB@tab\fR\fB Encoding \fR\f(CB@tab\fR\fB Decoding\fR" 4
.IX Item "Name : Muxing @tab Demuxing @tab Encoding @tab Decoding"
.PD 0
.ie n .IP "\fB3GPP Timed Text   :    \fR\fB@tab\fR\fB   \fR\fB@tab\fR\fB X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fB3GPP Timed Text   :    \fR\f(CB@tab\fR\fB   \fR\f(CB@tab\fR\fB X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "3GPP Timed Text : @tab @tab X @tab X"
.ie n .IP "\fBAQTitle           :    \fR\fB@tab\fR\fB X \fR\fB@tab\fR\fB   \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBAQTitle           :    \fR\f(CB@tab\fR\fB X \fR\f(CB@tab\fR\fB   \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "AQTitle : @tab X @tab @tab X"
.ie n .IP "\fBDVB               :  X \fR\fB@tab\fR\fB X \fR\fB@tab\fR\fB X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBDVB               :  X \fR\f(CB@tab\fR\fB X \fR\f(CB@tab\fR\fB X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "DVB : X @tab X @tab X @tab X"
.ie n .IP "\fBDVB teletext      :    \fR\fB@tab\fR\fB X \fR\fB@tab\fR\fB   \fR\fB@tab\fR\fB E\fR" 4
.el .IP "\fBDVB teletext      :    \fR\f(CB@tab\fR\fB X \fR\f(CB@tab\fR\fB   \fR\f(CB@tab\fR\fB E\fR" 4
.IX Item "DVB teletext : @tab X @tab @tab E"
.ie n .IP "\fBDVD               :  X \fR\fB@tab\fR\fB X \fR\fB@tab\fR\fB X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBDVD               :  X \fR\f(CB@tab\fR\fB X \fR\f(CB@tab\fR\fB X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "DVD : X @tab X @tab X @tab X"
.ie n .IP "\fBJACOsub           :  X \fR\fB@tab\fR\fB X \fR\fB@tab\fR\fB   \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBJACOsub           :  X \fR\f(CB@tab\fR\fB X \fR\f(CB@tab\fR\fB   \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "JACOsub : X @tab X @tab @tab X"
.ie n .IP "\fBMicroDVD          :  X \fR\fB@tab\fR\fB X \fR\fB@tab\fR\fB   \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBMicroDVD          :  X \fR\f(CB@tab\fR\fB X \fR\f(CB@tab\fR\fB   \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "MicroDVD : X @tab X @tab @tab X"
.ie n .IP "\fBMPL2              :    \fR\fB@tab\fR\fB X \fR\fB@tab\fR\fB   \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBMPL2              :    \fR\f(CB@tab\fR\fB X \fR\f(CB@tab\fR\fB   \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "MPL2 : @tab X @tab @tab X"
.ie n .IP "\fBMPsub (MPlayer)   :    \fR\fB@tab\fR\fB X \fR\fB@tab\fR\fB   \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBMPsub (MPlayer)   :    \fR\f(CB@tab\fR\fB X \fR\f(CB@tab\fR\fB   \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "MPsub (MPlayer) : @tab X @tab @tab X"
.ie n .IP "\fBPGS               :    \fR\fB@tab\fR\fB   \fR\fB@tab\fR\fB   \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBPGS               :    \fR\f(CB@tab\fR\fB   \fR\f(CB@tab\fR\fB   \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "PGS : @tab @tab @tab X"
.ie n .IP "\fBPJS (Phoenix)     :    \fR\fB@tab\fR\fB X \fR\fB@tab\fR\fB   \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBPJS (Phoenix)     :    \fR\f(CB@tab\fR\fB X \fR\f(CB@tab\fR\fB   \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "PJS (Phoenix) : @tab X @tab @tab X"
.ie n .IP "\fBRealText          :    \fR\fB@tab\fR\fB X \fR\fB@tab\fR\fB   \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBRealText          :    \fR\f(CB@tab\fR\fB X \fR\f(CB@tab\fR\fB   \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "RealText : @tab X @tab @tab X"
.ie n .IP "\fBSAMI              :    \fR\fB@tab\fR\fB X \fR\fB@tab\fR\fB   \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBSAMI              :    \fR\f(CB@tab\fR\fB X \fR\f(CB@tab\fR\fB   \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "SAMI : @tab X @tab @tab X"
.ie n .IP "\fBSpruce format (STL)  :    \fR\fB@tab\fR\fB X \fR\fB@tab\fR\fB   \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBSpruce format (STL)  :    \fR\f(CB@tab\fR\fB X \fR\f(CB@tab\fR\fB   \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Spruce format (STL) : @tab X @tab @tab X"
.ie n .IP "\fBSSA/ASS           :  X \fR\fB@tab\fR\fB X \fR\fB@tab\fR\fB X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBSSA/ASS           :  X \fR\f(CB@tab\fR\fB X \fR\f(CB@tab\fR\fB X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "SSA/ASS : X @tab X @tab X @tab X"
.ie n .IP "\fBSubRip (SRT)      :  X \fR\fB@tab\fR\fB X \fR\fB@tab\fR\fB X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBSubRip (SRT)      :  X \fR\f(CB@tab\fR\fB X \fR\f(CB@tab\fR\fB X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "SubRip (SRT) : X @tab X @tab X @tab X"
.ie n .IP "\fBSubViewer v1      :    \fR\fB@tab\fR\fB X \fR\fB@tab\fR\fB   \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBSubViewer v1      :    \fR\f(CB@tab\fR\fB X \fR\f(CB@tab\fR\fB   \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "SubViewer v1 : @tab X @tab @tab X"
.ie n .IP "\fBSubViewer         :    \fR\fB@tab\fR\fB X \fR\fB@tab\fR\fB   \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBSubViewer         :    \fR\f(CB@tab\fR\fB X \fR\f(CB@tab\fR\fB   \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "SubViewer : @tab X @tab @tab X"
.ie n .IP "\fBTED Talks captions  :  \fR\fB@tab\fR\fB X \fR\fB@tab\fR\fB   \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBTED Talks captions  :  \fR\f(CB@tab\fR\fB X \fR\f(CB@tab\fR\fB   \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "TED Talks captions : @tab X @tab @tab X"
.ie n .IP "\fBTTML              :  X \fR\fB@tab\fR\fB   \fR\fB@tab\fR\fB X \fR\fB@tab\fR" 4
.el .IP "\fBTTML              :  X \fR\f(CB@tab\fR\fB   \fR\f(CB@tab\fR\fB X \fR\f(CB@tab\fR" 4
.IX Item "TTML : X @tab @tab X @tab"
.ie n .IP "\fBVobSub (IDX+SUB)  :    \fR\fB@tab\fR\fB X \fR\fB@tab\fR\fB   \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBVobSub (IDX+SUB)  :    \fR\f(CB@tab\fR\fB X \fR\f(CB@tab\fR\fB   \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "VobSub (IDX+SUB) : @tab X @tab @tab X"
.ie n .IP "\fBVPlayer           :    \fR\fB@tab\fR\fB X \fR\fB@tab\fR\fB   \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBVPlayer           :    \fR\f(CB@tab\fR\fB X \fR\f(CB@tab\fR\fB   \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "VPlayer : @tab X @tab @tab X"
.ie n .IP "\fBWebVTT            :  X \fR\fB@tab\fR\fB X \fR\fB@tab\fR\fB X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBWebVTT            :  X \fR\f(CB@tab\fR\fB X \fR\f(CB@tab\fR\fB X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "WebVTT : X @tab X @tab X @tab X"
.ie n .IP "\fBXSUB              :    \fR\fB@tab\fR\fB   \fR\fB@tab\fR\fB X \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBXSUB              :    \fR\f(CB@tab\fR\fB   \fR\f(CB@tab\fR\fB X \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "XSUB : @tab @tab X @tab X"
.PD
.PP
\&\f(CW\*(C`X\*(C'\fR means that the feature is supported.
.PP
\&\f(CW\*(C`E\*(C'\fR means that support is provided through an external library.
.SS "Network Protocols"
.IX Subsection "Network Protocols"
.IP "\fBName          :  Support\fR" 4
.IX Item "Name : Support"
.PD 0
.IP "\fBAMQP          :  E\fR" 4
.IX Item "AMQP : E"
.IP "\fBfile          :  X\fR" 4
.IX Item "file : X"
.IP "\fBFTP           :  X\fR" 4
.IX Item "FTP : X"
.IP "\fBGopher        :  X\fR" 4
.IX Item "Gopher : X"
.IP "\fBGophers       :  X\fR" 4
.IX Item "Gophers : X"
.IP "\fBHLS           :  X\fR" 4
.IX Item "HLS : X"
.IP "\fBHTTP          :  X\fR" 4
.IX Item "HTTP : X"
.IP "\fBHTTPS         :  X\fR" 4
.IX Item "HTTPS : X"
.IP "\fBIcecast       :  X\fR" 4
.IX Item "Icecast : X"
.IP "\fBMMSH          :  X\fR" 4
.IX Item "MMSH : X"
.IP "\fBMMST          :  X\fR" 4
.IX Item "MMST : X"
.IP "\fBpipe          :  X\fR" 4
.IX Item "pipe : X"
.IP "\fBPro-MPEG FEC  :  X\fR" 4
.IX Item "Pro-MPEG FEC : X"
.IP "\fBRTMP          :  X\fR" 4
.IX Item "RTMP : X"
.IP "\fBRTMPE         :  X\fR" 4
.IX Item "RTMPE : X"
.IP "\fBRTMPS         :  X\fR" 4
.IX Item "RTMPS : X"
.IP "\fBRTMPT         :  X\fR" 4
.IX Item "RTMPT : X"
.IP "\fBRTMPTE        :  X\fR" 4
.IX Item "RTMPTE : X"
.IP "\fBRTMPTS        :  X\fR" 4
.IX Item "RTMPTS : X"
.IP "\fBRTP           :  X\fR" 4
.IX Item "RTP : X"
.IP "\fBSAMBA         :  E\fR" 4
.IX Item "SAMBA : E"
.IP "\fBSCTP          :  X\fR" 4
.IX Item "SCTP : X"
.IP "\fBSFTP          :  E\fR" 4
.IX Item "SFTP : E"
.IP "\fBTCP           :  X\fR" 4
.IX Item "TCP : X"
.IP "\fBTLS           :  X\fR" 4
.IX Item "TLS : X"
.IP "\fBUDP           :  X\fR" 4
.IX Item "UDP : X"
.IP "\fBZMQ           :  E\fR" 4
.IX Item "ZMQ : E"
.PD
.PP
\&\f(CW\*(C`X\*(C'\fR means that the protocol is supported.
.PP
\&\f(CW\*(C`E\*(C'\fR means that support is provided through an external library.
.SS "Input/Output Devices"
.IX Subsection "Input/Output Devices"
.ie n .IP "\fBName               :  Input  \fR\fB@tab\fR\fB Output\fR" 4
.el .IP "\fBName               :  Input  \fR\f(CB@tab\fR\fB Output\fR" 4
.IX Item "Name : Input @tab Output"
.PD 0
.ie n .IP "\fBALSA               :  X      \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBALSA               :  X      \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "ALSA : X @tab X"
.ie n .IP "\fBBKTR               :  X      \fR\fB@tab\fR" 4
.el .IP "\fBBKTR               :  X      \fR\f(CB@tab\fR" 4
.IX Item "BKTR : X @tab"
.ie n .IP "\fBcaca               :         \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBcaca               :         \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "caca : @tab X"
.ie n .IP "\fBDV1394             :  X      \fR\fB@tab\fR" 4
.el .IP "\fBDV1394             :  X      \fR\f(CB@tab\fR" 4
.IX Item "DV1394 : X @tab"
.ie n .IP "\fBLavfi virtual device  :  X   \fR\fB@tab\fR" 4
.el .IP "\fBLavfi virtual device  :  X   \fR\f(CB@tab\fR" 4
.IX Item "Lavfi virtual device : X @tab"
.ie n .IP "\fBLinux framebuffer  :  X      \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBLinux framebuffer  :  X      \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Linux framebuffer : X @tab X"
.ie n .IP "\fBJACK               :  X      \fR\fB@tab\fR" 4
.el .IP "\fBJACK               :  X      \fR\f(CB@tab\fR" 4
.IX Item "JACK : X @tab"
.IP "\fBLIBCDIO            :  X\fR" 4
.IX Item "LIBCDIO : X"
.ie n .IP "\fBLIBDC1394          :  X      \fR\fB@tab\fR" 4
.el .IP "\fBLIBDC1394          :  X      \fR\f(CB@tab\fR" 4
.IX Item "LIBDC1394 : X @tab"
.IP "\fBOpenAL             :  X\fR" 4
.IX Item "OpenAL : X"
.ie n .IP "\fBOpenGL             :         \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBOpenGL             :         \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "OpenGL : @tab X"
.ie n .IP "\fBOSS                :  X      \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBOSS                :  X      \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "OSS : X @tab X"
.ie n .IP "\fBPulseAudio         :  X      \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBPulseAudio         :  X      \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "PulseAudio : X @tab X"
.ie n .IP "\fBSDL                :         \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBSDL                :         \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "SDL : @tab X"
.ie n .IP "\fBVideo4Linux2       :  X      \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBVideo4Linux2       :  X      \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "Video4Linux2 : X @tab X"
.ie n .IP "\fBVfW capture        :  X      \fR\fB@tab\fR" 4
.el .IP "\fBVfW capture        :  X      \fR\f(CB@tab\fR" 4
.IX Item "VfW capture : X @tab"
.ie n .IP "\fBX11 grabbing       :  X      \fR\fB@tab\fR" 4
.el .IP "\fBX11 grabbing       :  X      \fR\f(CB@tab\fR" 4
.IX Item "X11 grabbing : X @tab"
.ie n .IP "\fBWin32 grabbing     :  X      \fR\fB@tab\fR" 4
.el .IP "\fBWin32 grabbing     :  X      \fR\f(CB@tab\fR" 4
.IX Item "Win32 grabbing : X @tab"
.PD
.PP
\&\f(CW\*(C`X\*(C'\fR means that input/output is supported.
.SS Timecode
.IX Subsection "Timecode"
.ie n .IP "\fBCodec/format       :  Read   \fR\fB@tab\fR\fB Write\fR" 4
.el .IP "\fBCodec/format       :  Read   \fR\f(CB@tab\fR\fB Write\fR" 4
.IX Item "Codec/format : Read @tab Write"
.PD 0
.ie n .IP "\fBAVI                :  X      \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBAVI                :  X      \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "AVI : X @tab X"
.ie n .IP "\fBDV                 :  X      \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBDV                 :  X      \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "DV : X @tab X"
.ie n .IP "\fBGXF                :  X      \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBGXF                :  X      \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "GXF : X @tab X"
.ie n .IP "\fBMOV                :  X      \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBMOV                :  X      \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "MOV : X @tab X"
.ie n .IP "\fBMPEG1/2            :  X      \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBMPEG1/2            :  X      \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "MPEG1/2 : X @tab X"
.ie n .IP "\fBMXF                :  X      \fR\fB@tab\fR\fB X\fR" 4
.el .IP "\fBMXF                :  X      \fR\f(CB@tab\fR\fB X\fR" 4
.IX Item "MXF : X @tab X"
.PD
.SH "SEE ALSO"
.IX Header "SEE ALSO"
\&\fBffplay\fR\|(1),
\&\fBffmpeg\fR\|(1), \fBffprobe\fR\|(1),
\&\fBffmpeg\-utils\fR\|(1), \fBffmpeg\-scaler\fR\|(1), \fBffmpeg\-resampler\fR\|(1),
\&\fBffmpeg\-codecs\fR\|(1), \fBffmpeg\-bitstream\-filters\fR\|(1), \fBffmpeg\-formats\fR\|(1),
\&\fBffmpeg\-devices\fR\|(1), \fBffmpeg\-protocols\fR\|(1), \fBffmpeg\-filters\fR\|(1)
.SH AUTHORS
.IX Header "AUTHORS"
The FFmpeg developers.
.PP
For details about the authorship, see the Git history of the project
(https://git.ffmpeg.org/ffmpeg), e.g. by typing the command
\&\fBgit log\fR in the FFmpeg source directory, or browsing the
online repository at <\fBhttps://git.ffmpeg.org/ffmpeg\fR>.
.PP
Maintainers for the specific components are listed in the file
\&\fIMAINTAINERS\fR in the source code tree.
