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.

288 lines
8.6KB

  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. @c man end VIDEO DECODERS
  37. @chapter Audio Decoders
  38. @c man begin AUDIO DECODERS
  39. A description of some of the currently available audio decoders
  40. follows.
  41. @section ac3
  42. AC-3 audio decoder.
  43. This decoder implements part of ATSC A/52:2010 and ETSI TS 102 366, as well as
  44. the undocumented RealAudio 3 (a.k.a. dnet).
  45. @subsection AC-3 Decoder Options
  46. @table @option
  47. @item -drc_scale @var{value}
  48. Dynamic Range Scale Factor. The factor to apply to dynamic range values
  49. from the AC-3 stream. This factor is applied exponentially.
  50. There are 3 notable scale factor ranges:
  51. @table @option
  52. @item drc_scale == 0
  53. DRC disabled. Produces full range audio.
  54. @item 0 < drc_scale <= 1
  55. DRC enabled. Applies a fraction of the stream DRC value.
  56. Audio reproduction is between full range and full compression.
  57. @item drc_scale > 1
  58. DRC enabled. Applies drc_scale asymmetrically.
  59. Loud sounds are fully compressed. Soft sounds are enhanced.
  60. @end table
  61. @end table
  62. @section flac
  63. FLAC audio decoder.
  64. This decoder aims to implement the complete FLAC specification from Xiph.
  65. @subsection FLAC Decoder options
  66. @table @option
  67. @item -use_buggy_lpc
  68. The lavc FLAC encoder used to produce buggy streams with high lpc values
  69. (like the default value). This option makes it possible to decode such streams
  70. correctly by using lavc's old buggy lpc logic for decoding.
  71. @end table
  72. @section ffwavesynth
  73. Internal wave synthesizer.
  74. This decoder generates wave patterns according to predefined sequences. Its
  75. use is purely internal and the format of the data it accepts is not publicly
  76. documented.
  77. @section libcelt
  78. libcelt decoder wrapper.
  79. libcelt allows libavcodec to decode the Xiph CELT ultra-low delay audio codec.
  80. Requires the presence of the libcelt headers and library during configuration.
  81. You need to explicitly configure the build with @code{--enable-libcelt}.
  82. @section libgsm
  83. libgsm decoder wrapper.
  84. libgsm allows libavcodec to decode the GSM full rate audio codec. Requires
  85. the presence of the libgsm headers and library during configuration. You need
  86. to explicitly configure the build with @code{--enable-libgsm}.
  87. This decoder supports both the ordinary GSM and the Microsoft variant.
  88. @section libilbc
  89. libilbc decoder wrapper.
  90. libilbc allows libavcodec to decode the Internet Low Bitrate Codec (iLBC)
  91. audio codec. Requires the presence of the libilbc headers and library during
  92. configuration. You need to explicitly configure the build with
  93. @code{--enable-libilbc}.
  94. @subsection Options
  95. The following option is supported by the libilbc wrapper.
  96. @table @option
  97. @item enhance
  98. Enable the enhancement of the decoded audio when set to 1. The default
  99. value is 0 (disabled).
  100. @end table
  101. @section libopencore-amrnb
  102. libopencore-amrnb decoder wrapper.
  103. libopencore-amrnb allows libavcodec to decode the Adaptive Multi-Rate
  104. Narrowband audio codec. Using it requires the presence of the
  105. libopencore-amrnb headers and library during configuration. You need to
  106. explicitly configure the build with @code{--enable-libopencore-amrnb}.
  107. An FFmpeg native decoder for AMR-NB exists, so users can decode AMR-NB
  108. without this library.
  109. @section libopencore-amrwb
  110. libopencore-amrwb decoder wrapper.
  111. libopencore-amrwb allows libavcodec to decode the Adaptive Multi-Rate
  112. Wideband audio codec. Using it requires the presence of the
  113. libopencore-amrwb headers and library during configuration. You need to
  114. explicitly configure the build with @code{--enable-libopencore-amrwb}.
  115. An FFmpeg native decoder for AMR-WB exists, so users can decode AMR-WB
  116. without this library.
  117. @section libopus
  118. libopus decoder wrapper.
  119. libopus allows libavcodec to decode the Opus Interactive Audio Codec.
  120. Requires the presence of the libopus headers and library during
  121. configuration. You need to explicitly configure the build with
  122. @code{--enable-libopus}.
  123. An FFmpeg native decoder for Opus exists, so users can decode Opus
  124. without this library.
  125. @c man end AUDIO DECODERS
  126. @chapter Subtitles Decoders
  127. @c man begin SUBTILES DECODERS
  128. @section dvbsub
  129. @subsection Options
  130. @table @option
  131. @item compute_clut
  132. @table @option
  133. @item -1
  134. Compute clut if no matching CLUT is in the stream.
  135. @item 0
  136. Never compute CLUT
  137. @item 1
  138. Always compute CLUT and override the one provided in the stream.
  139. @end table
  140. @item dvb_substream
  141. Selects the dvb substream, or all substreams if -1 which is default.
  142. @end table
  143. @section dvdsub
  144. This codec decodes the bitmap subtitles used in DVDs; the same subtitles can
  145. also be found in VobSub file pairs and in some Matroska files.
  146. @subsection Options
  147. @table @option
  148. @item palette
  149. Specify the global palette used by the bitmaps. When stored in VobSub, the
  150. palette is normally specified in the index file; in Matroska, the palette is
  151. stored in the codec extra-data in the same format as in VobSub. In DVDs, the
  152. palette is stored in the IFO file, and therefore not available when reading
  153. from dumped VOB files.
  154. The format for this option is a string containing 16 24-bits hexadecimal
  155. numbers (without 0x prefix) separated by comas, for example @code{0d00ee,
  156. ee450d, 101010, eaeaea, 0ce60b, ec14ed, ebff0b, 0d617a, 7b7b7b, d1d1d1,
  157. 7b2a0e, 0d950c, 0f007b, cf0dec, cfa80c, 7c127b}.
  158. @item ifo_palette
  159. Specify the IFO file from which the global palette is obtained.
  160. (experimental)
  161. @item forced_subs_only
  162. Only decode subtitle entries marked as forced. Some titles have forced
  163. and non-forced subtitles in the same track. Setting this flag to @code{1}
  164. will only keep the forced subtitles. Default value is @code{0}.
  165. @end table
  166. @section libzvbi-teletext
  167. Libzvbi allows libavcodec to decode DVB teletext pages and DVB teletext
  168. subtitles. Requires the presence of the libzvbi headers and library during
  169. configuration. You need to explicitly configure the build with
  170. @code{--enable-libzvbi}.
  171. @subsection Options
  172. @table @option
  173. @item txt_page
  174. List of teletext page numbers to decode. You may use the special * string to
  175. match all pages. Pages that do not match the specified list are dropped.
  176. Default value is *.
  177. @item txt_chop_top
  178. Discards the top teletext line. Default value is 1.
  179. @item txt_format
  180. Specifies the format of the decoded subtitles. The teletext decoder is capable
  181. of decoding the teletext pages to bitmaps or to simple text, you should use
  182. "bitmap" for teletext pages, because certain graphics and colors cannot be
  183. expressed in simple text. You might use "text" for teletext based subtitles if
  184. your application can handle simple text based subtitles. Default value is
  185. bitmap.
  186. @item txt_left
  187. X offset of generated bitmaps, default is 0.
  188. @item txt_top
  189. Y offset of generated bitmaps, default is 0.
  190. @item txt_chop_spaces
  191. Chops leading and trailing spaces and removes empty lines from the generated
  192. text. This option is useful for teletext based subtitles where empty spaces may
  193. be present at the start or at the end of the lines or empty lines may be
  194. present between the subtitle lines because of double-sized teletext characters.
  195. Default value is 1.
  196. @item txt_duration
  197. Sets the display duration of the decoded teletext pages or subtitles in
  198. milliseconds. Default value is 30000 which is 30 seconds.
  199. @item txt_transparent
  200. Force transparent background of the generated teletext bitmaps. Default value
  201. is 0 which means an opaque background.
  202. @item txt_opacity
  203. Sets the opacity (0-255) of the teletext background. If
  204. @option{txt_transparent} is not set, it only affects characters between a start
  205. box and an end box, typically subtitles. Default value is 0 if
  206. @option{txt_transparent} is set, 255 otherwise.
  207. @end table
  208. @c man end SUBTILES DECODERS