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.

203 lines
6.3KB

  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{-codecs} 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. @section ffwavesynth
  40. Internal wave synthetizer.
  41. This decoder generates wave patterns according to predefined sequences. Its
  42. use is purely internal and the format of the data it accepts is not publicly
  43. documented.
  44. @section libcelt
  45. libcelt decoder wrapper.
  46. libcelt allows libavcodec to decode the Xiph CELT ultra-low delay audio codec.
  47. Requires the presence of the libcelt headers and library during configuration.
  48. You need to explicitly configure the build with @code{--enable-libcelt}.
  49. @section libgsm
  50. libgsm decoder wrapper.
  51. libgsm allows libavcodec to decode the GSM full rate audio codec. Requires
  52. the presence of the libgsm headers and library during configuration. You need
  53. to explicitly configure the build with @code{--enable-libgsm}.
  54. This decoder supports both the ordinary GSM and the Microsoft variant.
  55. @section libilbc
  56. libilbc decoder wrapper.
  57. libilbc allows libavcodec to decode the Internet Low Bitrate Codec (iLBC)
  58. audio codec. Requires the presence of the libilbc headers and library during
  59. configuration. You need to explicitly configure the build with
  60. @code{--enable-libilbc}.
  61. @subsection Options
  62. The following option is supported by the libilbc wrapper.
  63. @table @option
  64. @item enhance
  65. Enable the enhancement of the decoded audio when set to 1. The default
  66. value is 0 (disabled).
  67. @end table
  68. @section libopencore-amrnb
  69. libopencore-amrnb decoder wrapper.
  70. libopencore-amrnb allows libavcodec to decode the Adaptive Multi-Rate
  71. Narrowband audio codec. Using it requires the presence of the
  72. libopencore-amrnb headers and library during configuration. You need to
  73. explicitly configure the build with @code{--enable-libopencore-amrnb}.
  74. An FFmpeg native decoder for AMR-NB exists, so users can decode AMR-NB
  75. without this library.
  76. @section libopencore-amrwb
  77. libopencore-amrwb decoder wrapper.
  78. libopencore-amrwb allows libavcodec to decode the Adaptive Multi-Rate
  79. Wideband audio codec. Using it requires the presence of the
  80. libopencore-amrwb headers and library during configuration. You need to
  81. explicitly configure the build with @code{--enable-libopencore-amrwb}.
  82. An FFmpeg native decoder for AMR-WB exists, so users can decode AMR-WB
  83. without this library.
  84. @section libopus
  85. libopus decoder wrapper.
  86. libopus allows libavcodec to decode the Opus Interactive Audio Codec.
  87. Requires the presence of the libopus headers and library during
  88. configuration. You need to explicitly configure the build with
  89. @code{--enable-libopus}.
  90. @c man end AUDIO DECODERS
  91. @chapter Subtitles Decoders
  92. @c man begin SUBTILES DECODERS
  93. @section dvdsub
  94. This codec decodes the bitmap subtitles used in DVDs; the same subtitles can
  95. also be found in VobSub file pairs and in some Matroska files.
  96. @subsection Options
  97. @table @option
  98. @item palette
  99. Specify the global palette used by the bitmaps. When stored in VobSub, the
  100. palette is normally specified in the index file; in Matroska, the palette is
  101. stored in the codec extra-data in the same format as in VobSub. In DVDs, the
  102. palette is stored in the IFO file, and therefore not available when reading
  103. from dumped VOB files.
  104. The format for this option is a string containing 16 24-bits hexadecimal
  105. numbers (without 0x prefix) separated by comas, for example @code{0d00ee,
  106. ee450d, 101010, eaeaea, 0ce60b, ec14ed, ebff0b, 0d617a, 7b7b7b, d1d1d1,
  107. 7b2a0e, 0d950c, 0f007b, cf0dec, cfa80c, 7c127b}.
  108. @end table
  109. @section libzvbi-teletext
  110. Libzvbi allows libavcodec to decode DVB teletext pages and DVB teletext
  111. subtitles. Requires the presence of the libzvbi headers and library during
  112. configuration. You need to explicitly configure the build with
  113. @code{--enable-libzvbi}.
  114. @subsection Options
  115. @table @option
  116. @item txt_page
  117. List of teletext page numbers to decode. You may use the special * string to
  118. match all pages. Pages that do not match the specified list are dropped.
  119. Default value is *.
  120. @item txt_chop_top
  121. Discards the top teletext line. Default value is 1.
  122. @item txt_format
  123. Specifies the format of the decoded subtitles. The teletext decoder is capable
  124. of decoding the teletext pages to bitmaps or to simple text, you should use
  125. "bitmap" for teletext pages, because certain graphics and colors cannot be
  126. expressed in simple text. You might use "text" for teletext based subtitles if
  127. your application can handle simple text based subtitles. Default value is
  128. bitmap.
  129. @item txt_left
  130. X offset of generated bitmaps, default is 0.
  131. @item txt_top
  132. Y offset of generated bitmaps, default is 0.
  133. @item txt_chop_spaces
  134. Chops leading and trailing spaces and removes empty lines from the generated
  135. text. This option is useful for teletext based subtitles where empty spaces may
  136. be present at the start or at the end of the lines or empty lines may be
  137. present between the subtitle lines because of double-sized teletext charactes.
  138. Default value is 1.
  139. @item txt_duration
  140. Sets the display duration of the decoded teletext pages or subtitles in
  141. miliseconds. Default value is 30000 which is 30 seconds.
  142. @item txt_transparent
  143. Force transparent background of the generated teletext bitmaps. Default value
  144. is 0 which means an opaque (black) background.
  145. @end table
  146. @c man end SUBTILES DECODERS