2011-05-19 18:34:56 +00:00
|
|
|
@chapter Decoders
|
|
|
|
@c man begin DECODERS
|
|
|
|
|
|
|
|
Decoders are configured elements in FFmpeg which allow the decoding of
|
|
|
|
multimedia streams.
|
|
|
|
|
|
|
|
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 @code{--enable-lib} option. You can list all
|
|
|
|
available decoders using the configure option @code{--list-decoders}.
|
|
|
|
|
|
|
|
You can disable all the decoders with the configure option
|
|
|
|
@code{--disable-decoders} and selectively enable / disable single decoders
|
|
|
|
with the options @code{--enable-decoder=@var{DECODER}} /
|
|
|
|
@code{--disable-decoder=@var{DECODER}}.
|
|
|
|
|
2014-01-30 14:19:51 +00:00
|
|
|
The option @code{-decoders} of the ff* tools will display the list of
|
2011-05-19 18:34:56 +00:00
|
|
|
enabled decoders.
|
|
|
|
|
|
|
|
@c man end DECODERS
|
2011-05-19 18:51:28 +00:00
|
|
|
|
|
|
|
@chapter Video Decoders
|
|
|
|
@c man begin VIDEO DECODERS
|
|
|
|
|
|
|
|
A description of some of the currently available video decoders
|
|
|
|
follows.
|
|
|
|
|
2020-11-15 21:55:41 +00:00
|
|
|
@section av1
|
|
|
|
|
|
|
|
AOMedia Video 1 (AV1) decoder.
|
|
|
|
|
|
|
|
@subsection Options
|
|
|
|
|
|
|
|
@table @option
|
|
|
|
|
|
|
|
@item operating_point
|
|
|
|
Select an operating point of a scalable AV1 bitstream (0 - 31). Default is 0.
|
|
|
|
|
|
|
|
@end table
|
|
|
|
|
2011-05-19 18:51:28 +00:00
|
|
|
@section rawvideo
|
|
|
|
|
2011-11-29 16:54:49 +00:00
|
|
|
Raw video decoder.
|
2011-05-19 18:51:28 +00:00
|
|
|
|
2011-05-20 08:12:42 +00:00
|
|
|
This decoder decodes rawvideo streams.
|
2011-05-19 18:51:28 +00:00
|
|
|
|
|
|
|
@subsection Options
|
|
|
|
|
|
|
|
@table @option
|
|
|
|
@item top @var{top_field_first}
|
|
|
|
Specify the assumed field type of the input video.
|
|
|
|
@table @option
|
|
|
|
@item -1
|
|
|
|
the video is assumed to be progressive (default)
|
|
|
|
@item 0
|
|
|
|
bottom-field-first is assumed
|
|
|
|
@item 1
|
|
|
|
top-field-first is assumed
|
|
|
|
@end table
|
|
|
|
|
|
|
|
@end table
|
|
|
|
|
2019-05-20 21:18:33 +00:00
|
|
|
@section libdav1d
|
|
|
|
|
|
|
|
dav1d AV1 decoder.
|
|
|
|
|
|
|
|
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 @code{--enable-libdav1d}.
|
|
|
|
|
|
|
|
@subsection Options
|
|
|
|
|
2019-09-15 14:09:39 +00:00
|
|
|
The following options are supported by the libdav1d wrapper.
|
2019-05-20 21:18:33 +00:00
|
|
|
|
|
|
|
@table @option
|
|
|
|
|
|
|
|
@item framethreads
|
|
|
|
Set amount of frame threads to use during decoding. The default value is 0 (autodetect).
|
|
|
|
|
|
|
|
@item tilethreads
|
|
|
|
Set amount of tile threads to use during decoding. The default value is 0 (autodetect).
|
|
|
|
|
|
|
|
@item filmgrain
|
2019-09-15 14:09:39 +00:00
|
|
|
Apply film grain to the decoded video if present in the bitstream. Defaults to the
|
|
|
|
internal default of the library.
|
2019-05-20 21:18:33 +00:00
|
|
|
|
2019-11-28 00:25:33 +00:00
|
|
|
@item oppoint
|
|
|
|
Select an operating point of a scalable AV1 bitstream (0 - 31). Defaults to the
|
|
|
|
internal default of the library.
|
|
|
|
|
|
|
|
@item alllayers
|
|
|
|
Output all spatial layers of a scalable AV1 bitstream. The default value is false.
|
|
|
|
|
2019-05-20 21:18:33 +00:00
|
|
|
@end table
|
|
|
|
|
2018-07-27 03:50:19 +00:00
|
|
|
@section libdavs2
|
|
|
|
|
2018-08-07 10:39:34 +00:00
|
|
|
AVS2-P2/IEEE1857.4 video decoder wrapper.
|
2018-07-27 03:50:19 +00:00
|
|
|
|
|
|
|
This decoder allows libavcodec to decode AVS2 streams with davs2 library.
|
|
|
|
|
2011-05-19 18:51:28 +00:00
|
|
|
@c man end VIDEO DECODERS
|
2011-11-02 15:29:11 +00:00
|
|
|
|
2020-10-05 12:16:25 +00:00
|
|
|
@section libuavs3d
|
|
|
|
|
|
|
|
AVS3-P2/IEEE1857.10 video decoder.
|
|
|
|
|
|
|
|
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 @code{--enable-libuavs3d}.
|
|
|
|
|
|
|
|
@subsection Options
|
|
|
|
|
|
|
|
The following option is supported by the libuavs3d wrapper.
|
|
|
|
|
|
|
|
@table @option
|
|
|
|
|
|
|
|
@item frame_threads
|
|
|
|
Set amount of frame threads to use during decoding. The default value is 0 (autodetect).
|
|
|
|
|
|
|
|
@end table
|
|
|
|
|
|
|
|
@c man end VIDEO DECODERS
|
|
|
|
|
2011-11-02 15:29:11 +00:00
|
|
|
@chapter Audio Decoders
|
|
|
|
@c man begin AUDIO DECODERS
|
|
|
|
|
2014-01-26 14:49:10 +00:00
|
|
|
A description of some of the currently available audio decoders
|
|
|
|
follows.
|
|
|
|
|
|
|
|
@section ac3
|
|
|
|
|
|
|
|
AC-3 audio decoder.
|
|
|
|
|
|
|
|
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).
|
|
|
|
|
2014-03-26 18:13:35 +00:00
|
|
|
@subsection AC-3 Decoder Options
|
2014-01-26 14:49:10 +00:00
|
|
|
|
|
|
|
@table @option
|
|
|
|
|
|
|
|
@item -drc_scale @var{value}
|
|
|
|
Dynamic Range Scale Factor. The factor to apply to dynamic range values
|
2020-08-30 18:05:53 +00:00
|
|
|
from the AC-3 stream. This factor is applied exponentially. The default value is 1.
|
2014-01-26 14:49:10 +00:00
|
|
|
There are 3 notable scale factor ranges:
|
|
|
|
@table @option
|
|
|
|
@item drc_scale == 0
|
|
|
|
DRC disabled. Produces full range audio.
|
|
|
|
@item 0 < drc_scale <= 1
|
|
|
|
DRC enabled. Applies a fraction of the stream DRC value.
|
|
|
|
Audio reproduction is between full range and full compression.
|
|
|
|
@item drc_scale > 1
|
|
|
|
DRC enabled. Applies drc_scale asymmetrically.
|
|
|
|
Loud sounds are fully compressed. Soft sounds are enhanced.
|
|
|
|
@end table
|
|
|
|
|
|
|
|
@end table
|
|
|
|
|
2015-05-12 11:00:29 +00:00
|
|
|
@section flac
|
|
|
|
|
|
|
|
FLAC audio decoder.
|
|
|
|
|
|
|
|
This decoder aims to implement the complete FLAC specification from Xiph.
|
|
|
|
|
|
|
|
@subsection FLAC Decoder options
|
|
|
|
|
|
|
|
@table @option
|
|
|
|
|
|
|
|
@item -use_buggy_lpc
|
|
|
|
The lavc FLAC encoder used to produce buggy streams with high lpc values
|
2015-06-14 18:28:28 +00:00
|
|
|
(like the default value). This option makes it possible to decode such streams
|
2015-05-12 11:00:29 +00:00
|
|
|
correctly by using lavc's old buggy lpc logic for decoding.
|
|
|
|
|
|
|
|
@end table
|
|
|
|
|
2011-11-02 15:29:11 +00:00
|
|
|
@section ffwavesynth
|
|
|
|
|
2017-09-21 23:10:56 +00:00
|
|
|
Internal wave synthesizer.
|
2011-11-02 15:29:11 +00:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
2013-06-18 00:42:08 +00:00
|
|
|
@section libcelt
|
|
|
|
|
2013-06-21 16:20:05 +00:00
|
|
|
libcelt decoder wrapper.
|
2013-06-18 00:42:08 +00:00
|
|
|
|
|
|
|
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 @code{--enable-libcelt}.
|
|
|
|
|
2013-06-18 23:01:43 +00:00
|
|
|
@section libgsm
|
|
|
|
|
2013-06-21 16:20:05 +00:00
|
|
|
libgsm decoder wrapper.
|
2013-06-18 23:01:43 +00:00
|
|
|
|
|
|
|
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 @code{--enable-libgsm}.
|
|
|
|
|
|
|
|
This decoder supports both the ordinary GSM and the Microsoft variant.
|
|
|
|
|
2013-06-20 23:33:49 +00:00
|
|
|
@section libilbc
|
|
|
|
|
2013-06-21 16:20:05 +00:00
|
|
|
libilbc decoder wrapper.
|
2013-06-20 23:33:49 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
@code{--enable-libilbc}.
|
|
|
|
|
|
|
|
@subsection Options
|
|
|
|
|
|
|
|
The following option is supported by the libilbc wrapper.
|
|
|
|
|
|
|
|
@table @option
|
|
|
|
@item enhance
|
|
|
|
|
|
|
|
Enable the enhancement of the decoded audio when set to 1. The default
|
|
|
|
value is 0 (disabled).
|
|
|
|
|
|
|
|
@end table
|
|
|
|
|
2013-06-21 03:08:35 +00:00
|
|
|
@section libopencore-amrnb
|
|
|
|
|
2013-06-21 16:20:05 +00:00
|
|
|
libopencore-amrnb decoder wrapper.
|
2013-06-21 03:08:35 +00:00
|
|
|
|
|
|
|
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 @code{--enable-libopencore-amrnb}.
|
|
|
|
|
|
|
|
An FFmpeg native decoder for AMR-NB exists, so users can decode AMR-NB
|
|
|
|
without this library.
|
|
|
|
|
2013-06-21 16:17:21 +00:00
|
|
|
@section libopencore-amrwb
|
|
|
|
|
|
|
|
libopencore-amrwb decoder wrapper.
|
|
|
|
|
|
|
|
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 @code{--enable-libopencore-amrwb}.
|
|
|
|
|
|
|
|
An FFmpeg native decoder for AMR-WB exists, so users can decode AMR-WB
|
|
|
|
without this library.
|
|
|
|
|
2013-06-28 02:07:32 +00:00
|
|
|
@section libopus
|
|
|
|
|
|
|
|
libopus decoder wrapper.
|
|
|
|
|
|
|
|
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
|
|
|
|
@code{--enable-libopus}.
|
|
|
|
|
2014-07-27 20:46:55 +00:00
|
|
|
An FFmpeg native decoder for Opus exists, so users can decode Opus
|
|
|
|
without this library.
|
|
|
|
|
2011-11-02 15:29:11 +00:00
|
|
|
@c man end AUDIO DECODERS
|
2012-12-01 13:47:14 +00:00
|
|
|
|
|
|
|
@chapter Subtitles Decoders
|
|
|
|
@c man begin SUBTILES DECODERS
|
|
|
|
|
2019-01-14 19:52:23 +00:00
|
|
|
@section libaribb24
|
|
|
|
|
|
|
|
ARIB STD-B24 caption decoder.
|
|
|
|
|
|
|
|
Implements profiles A and C of the ARIB STD-B24 standard.
|
|
|
|
|
|
|
|
@subsection libaribb24 Decoder Options
|
|
|
|
|
|
|
|
@table @option
|
|
|
|
|
|
|
|
@item -aribb24-base-path @var{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.
|
|
|
|
|
|
|
|
Unset by default.
|
|
|
|
|
|
|
|
@item -aribb24-skip-ruby-text @var{boolean}
|
|
|
|
Tells the decoder wrapper to skip text blocks that contain half-height ruby
|
|
|
|
text.
|
|
|
|
|
|
|
|
Enabled by default.
|
|
|
|
|
|
|
|
@end table
|
|
|
|
|
2015-07-26 22:06:43 +00:00
|
|
|
@section dvbsub
|
|
|
|
|
|
|
|
@subsection Options
|
|
|
|
|
|
|
|
@table @option
|
|
|
|
@item compute_clut
|
|
|
|
@table @option
|
|
|
|
@item -1
|
|
|
|
Compute clut if no matching CLUT is in the stream.
|
|
|
|
@item 0
|
|
|
|
Never compute CLUT
|
|
|
|
@item 1
|
|
|
|
Always compute CLUT and override the one provided in the stream.
|
|
|
|
@end table
|
2015-07-27 14:31:05 +00:00
|
|
|
@item dvb_substream
|
|
|
|
Selects the dvb substream, or all substreams if -1 which is default.
|
2015-07-26 22:06:43 +00:00
|
|
|
|
|
|
|
@end table
|
|
|
|
|
2012-12-01 13:47:14 +00:00
|
|
|
@section 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.
|
|
|
|
|
2012-12-06 09:16:10 +00:00
|
|
|
@subsection Options
|
2012-12-01 13:47:14 +00:00
|
|
|
|
|
|
|
@table @option
|
|
|
|
@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.
|
|
|
|
|
|
|
|
The format for this option is a string containing 16 24-bits hexadecimal
|
2020-02-03 19:42:29 +00:00
|
|
|
numbers (without 0x prefix) separated by commas, for example @code{0d00ee,
|
2012-12-01 13:47:14 +00:00
|
|
|
ee450d, 101010, eaeaea, 0ce60b, ec14ed, ebff0b, 0d617a, 7b7b7b, d1d1d1,
|
|
|
|
7b2a0e, 0d950c, 0f007b, cf0dec, cfa80c, 7c127b}.
|
2014-09-22 19:31:35 +00:00
|
|
|
|
2014-11-15 03:42:30 +00:00
|
|
|
@item ifo_palette
|
2014-11-22 00:23:43 +00:00
|
|
|
Specify the IFO file from which the global palette is obtained.
|
2014-11-15 03:42:30 +00:00
|
|
|
(experimental)
|
|
|
|
|
2014-09-22 19:31:35 +00:00
|
|
|
@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 @code{1}
|
|
|
|
will only keep the forced subtitles. Default value is @code{0}.
|
2012-12-01 13:47:14 +00:00
|
|
|
@end table
|
|
|
|
|
2013-09-01 21:05:50 +00:00
|
|
|
@section 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
|
|
|
|
@code{--enable-libzvbi}.
|
|
|
|
|
|
|
|
@subsection Options
|
|
|
|
|
|
|
|
@table @option
|
|
|
|
@item txt_page
|
2018-04-28 19:42:34 +00:00
|
|
|
List of teletext page numbers to decode. Pages that do not match the specified
|
|
|
|
list are dropped. You may use the special @code{*} string to match all pages,
|
|
|
|
or @code{subtitle} to match all subtitle pages.
|
2013-09-01 21:05:50 +00:00
|
|
|
Default value is *.
|
2020-02-19 06:44:00 +00:00
|
|
|
@item txt_default_region
|
2020-06-08 23:31:00 +00:00
|
|
|
Set default character set used for decoding, a value between 0 and 87 (see
|
2020-02-19 06:44:00 +00:00
|
|
|
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.
|
2013-09-01 21:05:50 +00:00
|
|
|
@item txt_chop_top
|
|
|
|
Discards the top teletext line. Default value is 1.
|
|
|
|
@item txt_format
|
2018-04-29 01:08:12 +00:00
|
|
|
Specifies the format of the decoded subtitles.
|
|
|
|
@table @option
|
|
|
|
@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.
|
|
|
|
@item text
|
|
|
|
Simple text based output without formatting.
|
|
|
|
@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.
|
|
|
|
@end table
|
2013-09-01 21:05:50 +00:00
|
|
|
@item txt_left
|
|
|
|
X offset of generated bitmaps, default is 0.
|
|
|
|
@item txt_top
|
|
|
|
Y offset of generated bitmaps, default is 0.
|
|
|
|
@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
|
2017-09-21 23:10:56 +00:00
|
|
|
present between the subtitle lines because of double-sized teletext characters.
|
2013-09-01 21:05:50 +00:00
|
|
|
Default value is 1.
|
|
|
|
@item txt_duration
|
|
|
|
Sets the display duration of the decoded teletext pages or subtitles in
|
2018-04-28 17:17:31 +00:00
|
|
|
milliseconds. Default value is -1 which means infinity or until the next
|
|
|
|
subtitle event comes.
|
2013-09-01 21:05:50 +00:00
|
|
|
@item txt_transparent
|
|
|
|
Force transparent background of the generated teletext bitmaps. Default value
|
2016-01-21 22:57:50 +00:00
|
|
|
is 0 which means an opaque background.
|
|
|
|
@item txt_opacity
|
|
|
|
Sets the opacity (0-255) of the teletext background. If
|
|
|
|
@option{txt_transparent} is not set, it only affects characters between a start
|
|
|
|
box and an end box, typically subtitles. Default value is 0 if
|
|
|
|
@option{txt_transparent} is set, 255 otherwise.
|
|
|
|
|
2013-09-01 21:05:50 +00:00
|
|
|
@end table
|
|
|
|
|
2012-12-01 13:47:14 +00:00
|
|
|
@c man end SUBTILES DECODERS
|