You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

386 lines
11KB

  1. @chapter Decoders
  2. @c man begin DECODERS
  3. Decoders are configured elements in FFmpeg which allow the decoding of
  4. multimedia streams.
  5. When you configure your FFmpeg build, all the supported native decoders
  6. are enabled by default. Decoders requiring an external library must be enabled
  7. manually via the corresponding @code{--enable-lib} option. You can list all
  8. available decoders using the configure option @code{--list-decoders}.
  9. You can disable all the decoders with the configure option
  10. @code{--disable-decoders} and selectively enable / disable single decoders
  11. with the options @code{--enable-decoder=@var{DECODER}} /
  12. @code{--disable-decoder=@var{DECODER}}.
  13. The option @code{-decoders} of the ff* tools will display the list of
  14. enabled decoders.
  15. @c man end DECODERS
  16. @chapter Video Decoders
  17. @c man begin VIDEO DECODERS
  18. A description of some of the currently available video decoders
  19. follows.
  20. @section rawvideo
  21. Raw video decoder.
  22. This decoder decodes rawvideo streams.
  23. @subsection Options
  24. @table @option
  25. @item top @var{top_field_first}
  26. Specify the assumed field type of the input video.
  27. @table @option
  28. @item -1
  29. the video is assumed to be progressive (default)
  30. @item 0
  31. bottom-field-first is assumed
  32. @item 1
  33. top-field-first is assumed
  34. @end table
  35. @end table
  36. @section libdav1d
  37. dav1d AV1 decoder.
  38. libdav1d allows libavcodec to decode the AOMedia Video 1 (AV1) codec.
  39. Requires the presence of the libdav1d headers and library during configuration.
  40. You need to explicitly configure the build with @code{--enable-libdav1d}.
  41. @subsection Options
  42. The following options are supported by the libdav1d wrapper.
  43. @table @option
  44. @item framethreads
  45. Set amount of frame threads to use during decoding. The default value is 0 (autodetect).
  46. @item tilethreads
  47. Set amount of tile threads to use during decoding. The default value is 0 (autodetect).
  48. @item filmgrain
  49. Apply film grain to the decoded video if present in the bitstream. Defaults to the
  50. internal default of the library.
  51. @item oppoint
  52. Select an operating point of a scalable AV1 bitstream (0 - 31). Defaults to the
  53. internal default of the library.
  54. @item alllayers
  55. Output all spatial layers of a scalable AV1 bitstream. The default value is false.
  56. @end table
  57. @section libdavs2
  58. AVS2-P2/IEEE1857.4 video decoder wrapper.
  59. This decoder allows libavcodec to decode AVS2 streams with davs2 library.
  60. @c man end VIDEO DECODERS
  61. @section libuavs3d
  62. AVS3-P2/IEEE1857.10 video decoder.
  63. libuavs3d allows libavcodec to decode AVS3 streams.
  64. Requires the presence of the libuavs3d headers and library during configuration.
  65. You need to explicitly configure the build with @code{--enable-libuavs3d}.
  66. @subsection Options
  67. The following option is supported by the libuavs3d wrapper.
  68. @table @option
  69. @item frame_threads
  70. Set amount of frame threads to use during decoding. The default value is 0 (autodetect).
  71. @end table
  72. @c man end VIDEO DECODERS
  73. @chapter Audio Decoders
  74. @c man begin AUDIO DECODERS
  75. A description of some of the currently available audio decoders
  76. follows.
  77. @section ac3
  78. AC-3 audio decoder.
  79. This decoder implements part of ATSC A/52:2010 and ETSI TS 102 366, as well as
  80. the undocumented RealAudio 3 (a.k.a. dnet).
  81. @subsection AC-3 Decoder Options
  82. @table @option
  83. @item -drc_scale @var{value}
  84. Dynamic Range Scale Factor. The factor to apply to dynamic range values
  85. from the AC-3 stream. This factor is applied exponentially. The default value is 1.
  86. There are 3 notable scale factor ranges:
  87. @table @option
  88. @item drc_scale == 0
  89. DRC disabled. Produces full range audio.
  90. @item 0 < drc_scale <= 1
  91. DRC enabled. Applies a fraction of the stream DRC value.
  92. Audio reproduction is between full range and full compression.
  93. @item drc_scale > 1
  94. DRC enabled. Applies drc_scale asymmetrically.
  95. Loud sounds are fully compressed. Soft sounds are enhanced.
  96. @end table
  97. @end table
  98. @section flac
  99. FLAC audio decoder.
  100. This decoder aims to implement the complete FLAC specification from Xiph.
  101. @subsection FLAC Decoder options
  102. @table @option
  103. @item -use_buggy_lpc
  104. The lavc FLAC encoder used to produce buggy streams with high lpc values
  105. (like the default value). This option makes it possible to decode such streams
  106. correctly by using lavc's old buggy lpc logic for decoding.
  107. @end table
  108. @section ffwavesynth
  109. Internal wave synthesizer.
  110. This decoder generates wave patterns according to predefined sequences. Its
  111. use is purely internal and the format of the data it accepts is not publicly
  112. documented.
  113. @section libcelt
  114. libcelt decoder wrapper.
  115. libcelt allows libavcodec to decode the Xiph CELT ultra-low delay audio codec.
  116. Requires the presence of the libcelt headers and library during configuration.
  117. You need to explicitly configure the build with @code{--enable-libcelt}.
  118. @section libgsm
  119. libgsm decoder wrapper.
  120. libgsm allows libavcodec to decode the GSM full rate audio codec. Requires
  121. the presence of the libgsm headers and library during configuration. You need
  122. to explicitly configure the build with @code{--enable-libgsm}.
  123. This decoder supports both the ordinary GSM and the Microsoft variant.
  124. @section libilbc
  125. libilbc decoder wrapper.
  126. libilbc allows libavcodec to decode the Internet Low Bitrate Codec (iLBC)
  127. audio codec. Requires the presence of the libilbc headers and library during
  128. configuration. You need to explicitly configure the build with
  129. @code{--enable-libilbc}.
  130. @subsection Options
  131. The following option is supported by the libilbc wrapper.
  132. @table @option
  133. @item enhance
  134. Enable the enhancement of the decoded audio when set to 1. The default
  135. value is 0 (disabled).
  136. @end table
  137. @section libopencore-amrnb
  138. libopencore-amrnb decoder wrapper.
  139. libopencore-amrnb allows libavcodec to decode the Adaptive Multi-Rate
  140. Narrowband audio codec. Using it requires the presence of the
  141. libopencore-amrnb headers and library during configuration. You need to
  142. explicitly configure the build with @code{--enable-libopencore-amrnb}.
  143. An FFmpeg native decoder for AMR-NB exists, so users can decode AMR-NB
  144. without this library.
  145. @section libopencore-amrwb
  146. libopencore-amrwb decoder wrapper.
  147. libopencore-amrwb allows libavcodec to decode the Adaptive Multi-Rate
  148. Wideband audio codec. Using it requires the presence of the
  149. libopencore-amrwb headers and library during configuration. You need to
  150. explicitly configure the build with @code{--enable-libopencore-amrwb}.
  151. An FFmpeg native decoder for AMR-WB exists, so users can decode AMR-WB
  152. without this library.
  153. @section libopus
  154. libopus decoder wrapper.
  155. libopus allows libavcodec to decode the Opus Interactive Audio Codec.
  156. Requires the presence of the libopus headers and library during
  157. configuration. You need to explicitly configure the build with
  158. @code{--enable-libopus}.
  159. An FFmpeg native decoder for Opus exists, so users can decode Opus
  160. without this library.
  161. @c man end AUDIO DECODERS
  162. @chapter Subtitles Decoders
  163. @c man begin SUBTILES DECODERS
  164. @section libaribb24
  165. ARIB STD-B24 caption decoder.
  166. Implements profiles A and C of the ARIB STD-B24 standard.
  167. @subsection libaribb24 Decoder Options
  168. @table @option
  169. @item -aribb24-base-path @var{path}
  170. Sets the base path for the libaribb24 library. This is utilized for reading of
  171. configuration files (for custom unicode conversions), and for dumping of
  172. non-text symbols as images under that location.
  173. Unset by default.
  174. @item -aribb24-skip-ruby-text @var{boolean}
  175. Tells the decoder wrapper to skip text blocks that contain half-height ruby
  176. text.
  177. Enabled by default.
  178. @end table
  179. @section dvbsub
  180. @subsection Options
  181. @table @option
  182. @item compute_clut
  183. @table @option
  184. @item -1
  185. Compute clut if no matching CLUT is in the stream.
  186. @item 0
  187. Never compute CLUT
  188. @item 1
  189. Always compute CLUT and override the one provided in the stream.
  190. @end table
  191. @item dvb_substream
  192. Selects the dvb substream, or all substreams if -1 which is default.
  193. @end table
  194. @section dvdsub
  195. This codec decodes the bitmap subtitles used in DVDs; the same subtitles can
  196. also be found in VobSub file pairs and in some Matroska files.
  197. @subsection Options
  198. @table @option
  199. @item palette
  200. Specify the global palette used by the bitmaps. When stored in VobSub, the
  201. palette is normally specified in the index file; in Matroska, the palette is
  202. stored in the codec extra-data in the same format as in VobSub. In DVDs, the
  203. palette is stored in the IFO file, and therefore not available when reading
  204. from dumped VOB files.
  205. The format for this option is a string containing 16 24-bits hexadecimal
  206. numbers (without 0x prefix) separated by commas, for example @code{0d00ee,
  207. ee450d, 101010, eaeaea, 0ce60b, ec14ed, ebff0b, 0d617a, 7b7b7b, d1d1d1,
  208. 7b2a0e, 0d950c, 0f007b, cf0dec, cfa80c, 7c127b}.
  209. @item ifo_palette
  210. Specify the IFO file from which the global palette is obtained.
  211. (experimental)
  212. @item forced_subs_only
  213. Only decode subtitle entries marked as forced. Some titles have forced
  214. and non-forced subtitles in the same track. Setting this flag to @code{1}
  215. will only keep the forced subtitles. Default value is @code{0}.
  216. @end table
  217. @section libzvbi-teletext
  218. Libzvbi allows libavcodec to decode DVB teletext pages and DVB teletext
  219. subtitles. Requires the presence of the libzvbi headers and library during
  220. configuration. You need to explicitly configure the build with
  221. @code{--enable-libzvbi}.
  222. @subsection Options
  223. @table @option
  224. @item txt_page
  225. List of teletext page numbers to decode. Pages that do not match the specified
  226. list are dropped. You may use the special @code{*} string to match all pages,
  227. or @code{subtitle} to match all subtitle pages.
  228. Default value is *.
  229. @item txt_default_region
  230. Set default character set used for decoding, a value between 0 and 87 (see
  231. ETS 300 706, Section 15, Table 32). Default value is -1, which does not
  232. override the libzvbi default. This option is needed for some legacy level 1.0
  233. transmissions which cannot signal the proper charset.
  234. @item txt_chop_top
  235. Discards the top teletext line. Default value is 1.
  236. @item txt_format
  237. Specifies the format of the decoded subtitles.
  238. @table @option
  239. @item bitmap
  240. The default format, you should use this for teletext pages, because certain
  241. graphics and colors cannot be expressed in simple text or even ASS.
  242. @item text
  243. Simple text based output without formatting.
  244. @item ass
  245. Formatted ASS output, subtitle pages and teletext pages are returned in
  246. different styles, subtitle pages are stripped down to text, but an effort is
  247. made to keep the text alignment and the formatting.
  248. @end table
  249. @item txt_left
  250. X offset of generated bitmaps, default is 0.
  251. @item txt_top
  252. Y offset of generated bitmaps, default is 0.
  253. @item txt_chop_spaces
  254. Chops leading and trailing spaces and removes empty lines from the generated
  255. text. This option is useful for teletext based subtitles where empty spaces may
  256. be present at the start or at the end of the lines or empty lines may be
  257. present between the subtitle lines because of double-sized teletext characters.
  258. Default value is 1.
  259. @item txt_duration
  260. Sets the display duration of the decoded teletext pages or subtitles in
  261. milliseconds. Default value is -1 which means infinity or until the next
  262. subtitle event comes.
  263. @item txt_transparent
  264. Force transparent background of the generated teletext bitmaps. Default value
  265. is 0 which means an opaque background.
  266. @item txt_opacity
  267. Sets the opacity (0-255) of the teletext background. If
  268. @option{txt_transparent} is not set, it only affects characters between a start
  269. box and an end box, typically subtitles. Default value is 0 if
  270. @option{txt_transparent} is set, 255 otherwise.
  271. @end table
  272. @c man end SUBTILES DECODERS