Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

7071 line
280KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Created by GNU Texinfo 6.8, https://www.gnu.org/software/texinfo/ -->
  4. <head>
  5. <meta charset="utf-8">
  6. <title>
  7. FFmpeg Codecs Documentation
  8. </title>
  9. <meta name="viewport" content="width=device-width,initial-scale=1.0">
  10. <link rel="stylesheet" type="text/css" href="bootstrap.min.css">
  11. <link rel="stylesheet" type="text/css" href="style.min.css">
  12. </head>
  13. <body>
  14. <div class="container">
  15. <h1>
  16. FFmpeg Codecs Documentation
  17. </h1>
  18. <div align="center">
  19. </div>
  20. <a name="SEC_Top"></a>
  21. <div class="Contents_element" id="SEC_Contents">
  22. <h2 class="contents-heading">Table of Contents</h2>
  23. <div class="contents">
  24. <ul class="no-bullet">
  25. <li><a id="toc-Description" href="#Description">1 Description</a></li>
  26. <li><a id="toc-Codec-Options" href="#Codec-Options">2 Codec Options</a></li>
  27. <li><a id="toc-Decoders" href="#Decoders">3 Decoders</a></li>
  28. <li><a id="toc-Video-Decoders" href="#Video-Decoders">4 Video Decoders</a>
  29. <ul class="no-bullet">
  30. <li><a id="toc-av1" href="#av1">4.1 av1</a>
  31. <ul class="no-bullet">
  32. <li><a id="toc-Options" href="#Options">4.1.1 Options</a></li>
  33. </ul></li>
  34. <li><a id="toc-rawvideo" href="#rawvideo">4.2 rawvideo</a>
  35. <ul class="no-bullet">
  36. <li><a id="toc-Options-1" href="#Options-1">4.2.1 Options</a></li>
  37. </ul></li>
  38. <li><a id="toc-libdav1d" href="#libdav1d">4.3 libdav1d</a>
  39. <ul class="no-bullet">
  40. <li><a id="toc-Options-2" href="#Options-2">4.3.1 Options</a></li>
  41. </ul></li>
  42. <li><a id="toc-libdavs2" href="#libdavs2">4.4 libdavs2</a></li>
  43. <li><a id="toc-libuavs3d" href="#libuavs3d">4.5 libuavs3d</a>
  44. <ul class="no-bullet">
  45. <li><a id="toc-Options-3" href="#Options-3">4.5.1 Options</a></li>
  46. </ul></li>
  47. <li><a id="toc-QSV-Decoders" href="#QSV-Decoders">4.6 QSV Decoders</a>
  48. <ul class="no-bullet">
  49. <li><a id="toc-Common-Options" href="#Common-Options">4.6.1 Common Options</a></li>
  50. <li><a id="toc-HEVC-Options" href="#HEVC-Options">4.6.2 HEVC Options</a></li>
  51. </ul></li>
  52. <li><a id="toc-v210" href="#v210">4.7 v210</a>
  53. <ul class="no-bullet">
  54. <li><a id="toc-Options-4" href="#Options-4">4.7.1 Options</a></li>
  55. </ul></li>
  56. </ul></li>
  57. <li><a id="toc-Audio-Decoders" href="#Audio-Decoders">5 Audio Decoders</a>
  58. <ul class="no-bullet">
  59. <li><a id="toc-ac3" href="#ac3">5.1 ac3</a>
  60. <ul class="no-bullet">
  61. <li><a id="toc-AC_002d3-Decoder-Options" href="#AC_002d3-Decoder-Options">5.1.1 AC-3 Decoder Options</a></li>
  62. </ul></li>
  63. <li><a id="toc-flac-1" href="#flac-1">5.2 flac</a>
  64. <ul class="no-bullet">
  65. <li><a id="toc-FLAC-Decoder-options" href="#FLAC-Decoder-options">5.2.1 FLAC Decoder options</a></li>
  66. </ul></li>
  67. <li><a id="toc-ffwavesynth" href="#ffwavesynth">5.3 ffwavesynth</a></li>
  68. <li><a id="toc-libcelt" href="#libcelt">5.4 libcelt</a></li>
  69. <li><a id="toc-libgsm" href="#libgsm">5.5 libgsm</a></li>
  70. <li><a id="toc-libilbc" href="#libilbc">5.6 libilbc</a>
  71. <ul class="no-bullet">
  72. <li><a id="toc-Options-5" href="#Options-5">5.6.1 Options</a></li>
  73. </ul></li>
  74. <li><a id="toc-libopencore_002damrnb" href="#libopencore_002damrnb">5.7 libopencore-amrnb</a></li>
  75. <li><a id="toc-libopencore_002damrwb" href="#libopencore_002damrwb">5.8 libopencore-amrwb</a></li>
  76. <li><a id="toc-libopus" href="#libopus">5.9 libopus</a></li>
  77. </ul></li>
  78. <li><a id="toc-Subtitles-Decoders" href="#Subtitles-Decoders">6 Subtitles Decoders</a>
  79. <ul class="no-bullet">
  80. <li><a id="toc-libaribb24" href="#libaribb24">6.1 libaribb24</a>
  81. <ul class="no-bullet">
  82. <li><a id="toc-libaribb24-Decoder-Options" href="#libaribb24-Decoder-Options">6.1.1 libaribb24 Decoder Options</a></li>
  83. </ul></li>
  84. <li><a id="toc-dvbsub" href="#dvbsub">6.2 dvbsub</a>
  85. <ul class="no-bullet">
  86. <li><a id="toc-Options-6" href="#Options-6">6.2.1 Options</a></li>
  87. </ul></li>
  88. <li><a id="toc-dvdsub" href="#dvdsub">6.3 dvdsub</a>
  89. <ul class="no-bullet">
  90. <li><a id="toc-Options-7" href="#Options-7">6.3.1 Options</a></li>
  91. </ul></li>
  92. <li><a id="toc-libzvbi_002dteletext" href="#libzvbi_002dteletext">6.4 libzvbi-teletext</a>
  93. <ul class="no-bullet">
  94. <li><a id="toc-Options-8" href="#Options-8">6.4.1 Options</a></li>
  95. </ul></li>
  96. </ul></li>
  97. <li><a id="toc-Encoders" href="#Encoders">7 Encoders</a></li>
  98. <li><a id="toc-Audio-Encoders" href="#Audio-Encoders">8 Audio Encoders</a>
  99. <ul class="no-bullet">
  100. <li><a id="toc-aac" href="#aac">8.1 aac</a>
  101. <ul class="no-bullet">
  102. <li><a id="toc-Options-9" href="#Options-9">8.1.1 Options</a></li>
  103. </ul></li>
  104. <li><a id="toc-ac3-and-ac3_005ffixed" href="#ac3-and-ac3_005ffixed">8.2 ac3 and ac3_fixed</a>
  105. <ul class="no-bullet">
  106. <li><a id="toc-AC_002d3-Metadata" href="#AC_002d3-Metadata">8.2.1 AC-3 Metadata</a>
  107. <ul class="no-bullet">
  108. <li><a id="toc-Metadata-Control-Options" href="#Metadata-Control-Options">8.2.1.1 Metadata Control Options</a></li>
  109. <li><a id="toc-Downmix-Levels" href="#Downmix-Levels">8.2.1.2 Downmix Levels</a></li>
  110. <li><a id="toc-Audio-Production-Information" href="#Audio-Production-Information">8.2.1.3 Audio Production Information</a></li>
  111. <li><a id="toc-Other-Metadata-Options" href="#Other-Metadata-Options">8.2.1.4 Other Metadata Options</a></li>
  112. </ul></li>
  113. <li><a id="toc-Extended-Bitstream-Information" href="#Extended-Bitstream-Information">8.2.2 Extended Bitstream Information</a>
  114. <ul class="no-bullet">
  115. <li><a id="toc-Extended-Bitstream-Information-_002d-Part-1" href="#Extended-Bitstream-Information-_002d-Part-1">8.2.2.1 Extended Bitstream Information - Part 1</a></li>
  116. <li><a id="toc-Extended-Bitstream-Information-_002d-Part-2" href="#Extended-Bitstream-Information-_002d-Part-2">8.2.2.2 Extended Bitstream Information - Part 2</a></li>
  117. </ul></li>
  118. <li><a id="toc-Other-AC_002d3-Encoding-Options" href="#Other-AC_002d3-Encoding-Options">8.2.3 Other AC-3 Encoding Options</a></li>
  119. <li><a id="toc-Floating_002dPoint_002dOnly-AC_002d3-Encoding-Options" href="#Floating_002dPoint_002dOnly-AC_002d3-Encoding-Options">8.2.4 Floating-Point-Only AC-3 Encoding Options</a></li>
  120. </ul></li>
  121. <li><a id="toc-flac-2" href="#flac-2">8.3 flac</a>
  122. <ul class="no-bullet">
  123. <li><a id="toc-Options-10" href="#Options-10">8.3.1 Options</a></li>
  124. </ul></li>
  125. <li><a id="toc-opus" href="#opus">8.4 opus</a>
  126. <ul class="no-bullet">
  127. <li><a id="toc-Options-11" href="#Options-11">8.4.1 Options</a></li>
  128. </ul></li>
  129. <li><a id="toc-libfdk_005faac" href="#libfdk_005faac">8.5 libfdk_aac</a>
  130. <ul class="no-bullet">
  131. <li><a id="toc-Options-12" href="#Options-12">8.5.1 Options</a></li>
  132. <li><a id="toc-Examples" href="#Examples">8.5.2 Examples</a></li>
  133. </ul></li>
  134. <li><a id="toc-libmp3lame-1" href="#libmp3lame-1">8.6 libmp3lame</a>
  135. <ul class="no-bullet">
  136. <li><a id="toc-Options-13" href="#Options-13">8.6.1 Options</a></li>
  137. </ul></li>
  138. <li><a id="toc-libopencore_002damrnb-1" href="#libopencore_002damrnb-1">8.7 libopencore-amrnb</a>
  139. <ul class="no-bullet">
  140. <li><a id="toc-Options-14" href="#Options-14">8.7.1 Options</a></li>
  141. </ul></li>
  142. <li><a id="toc-libopus-1" href="#libopus-1">8.8 libopus</a>
  143. <ul class="no-bullet">
  144. <li><a id="toc-Option-Mapping" href="#Option-Mapping">8.8.1 Option Mapping</a></li>
  145. </ul></li>
  146. <li><a id="toc-libshine-1" href="#libshine-1">8.9 libshine</a>
  147. <ul class="no-bullet">
  148. <li><a id="toc-Options-15" href="#Options-15">8.9.1 Options</a></li>
  149. </ul></li>
  150. <li><a id="toc-libtwolame" href="#libtwolame">8.10 libtwolame</a>
  151. <ul class="no-bullet">
  152. <li><a id="toc-Options-16" href="#Options-16">8.10.1 Options</a></li>
  153. </ul></li>
  154. <li><a id="toc-libvo_002damrwbenc" href="#libvo_002damrwbenc">8.11 libvo-amrwbenc</a>
  155. <ul class="no-bullet">
  156. <li><a id="toc-Options-17" href="#Options-17">8.11.1 Options</a></li>
  157. </ul></li>
  158. <li><a id="toc-libvorbis" href="#libvorbis">8.12 libvorbis</a>
  159. <ul class="no-bullet">
  160. <li><a id="toc-Options-18" href="#Options-18">8.12.1 Options</a></li>
  161. </ul></li>
  162. <li><a id="toc-mjpeg" href="#mjpeg">8.13 mjpeg</a>
  163. <ul class="no-bullet">
  164. <li><a id="toc-Options-19" href="#Options-19">8.13.1 Options</a></li>
  165. </ul></li>
  166. <li><a id="toc-wavpack" href="#wavpack">8.14 wavpack</a>
  167. <ul class="no-bullet">
  168. <li><a id="toc-Options-20" href="#Options-20">8.14.1 Options</a>
  169. <ul class="no-bullet">
  170. <li><a id="toc-Shared-options" href="#Shared-options">8.14.1.1 Shared options</a></li>
  171. <li><a id="toc-Private-options" href="#Private-options">8.14.1.2 Private options</a></li>
  172. </ul></li>
  173. </ul></li>
  174. </ul></li>
  175. <li><a id="toc-Video-Encoders" href="#Video-Encoders">9 Video Encoders</a>
  176. <ul class="no-bullet">
  177. <li><a id="toc-a64_005fmulti_002c-a64_005fmulti5" href="#a64_005fmulti_002c-a64_005fmulti5">9.1 a64_multi, a64_multi5</a></li>
  178. <li><a id="toc-Cinepak" href="#Cinepak">9.2 Cinepak</a>
  179. <ul class="no-bullet">
  180. <li><a id="toc-Options-21" href="#Options-21">9.2.1 Options</a></li>
  181. </ul></li>
  182. <li><a id="toc-GIF" href="#GIF">9.3 GIF</a>
  183. <ul class="no-bullet">
  184. <li><a id="toc-Options-22" href="#Options-22">9.3.1 Options</a></li>
  185. </ul></li>
  186. <li><a id="toc-Hap" href="#Hap">9.4 Hap</a>
  187. <ul class="no-bullet">
  188. <li><a id="toc-Options-23" href="#Options-23">9.4.1 Options</a></li>
  189. </ul></li>
  190. <li><a id="toc-jpeg2000" href="#jpeg2000">9.5 jpeg2000</a>
  191. <ul class="no-bullet">
  192. <li><a id="toc-Options-24" href="#Options-24">9.5.1 Options</a></li>
  193. </ul></li>
  194. <li><a id="toc-librav1e" href="#librav1e">9.6 librav1e</a>
  195. <ul class="no-bullet">
  196. <li><a id="toc-Options-25" href="#Options-25">9.6.1 Options</a></li>
  197. </ul></li>
  198. <li><a id="toc-libaom_002dav1" href="#libaom_002dav1">9.7 libaom-av1</a>
  199. <ul class="no-bullet">
  200. <li><a id="toc-Options-26" href="#Options-26">9.7.1 Options</a></li>
  201. </ul></li>
  202. <li><a id="toc-libsvtav1" href="#libsvtav1">9.8 libsvtav1</a>
  203. <ul class="no-bullet">
  204. <li><a id="toc-Options-27" href="#Options-27">9.8.1 Options</a></li>
  205. </ul></li>
  206. <li><a id="toc-libjxl" href="#libjxl">9.9 libjxl</a>
  207. <ul class="no-bullet">
  208. <li><a id="toc-Options-28" href="#Options-28">9.9.1 Options</a></li>
  209. </ul></li>
  210. <li><a id="toc-libkvazaar" href="#libkvazaar">9.10 libkvazaar</a>
  211. <ul class="no-bullet">
  212. <li><a id="toc-Options-29" href="#Options-29">9.10.1 Options</a></li>
  213. </ul></li>
  214. <li><a id="toc-libopenh264" href="#libopenh264">9.11 libopenh264</a>
  215. <ul class="no-bullet">
  216. <li><a id="toc-Options-30" href="#Options-30">9.11.1 Options</a></li>
  217. </ul></li>
  218. <li><a id="toc-libtheora" href="#libtheora">9.12 libtheora</a>
  219. <ul class="no-bullet">
  220. <li><a id="toc-Options-31" href="#Options-31">9.12.1 Options</a></li>
  221. <li><a id="toc-Examples-1" href="#Examples-1">9.12.2 Examples</a></li>
  222. </ul></li>
  223. <li><a id="toc-libvpx" href="#libvpx">9.13 libvpx</a>
  224. <ul class="no-bullet">
  225. <li><a id="toc-Options-32" href="#Options-32">9.13.1 Options</a></li>
  226. </ul></li>
  227. <li><a id="toc-libwebp" href="#libwebp">9.14 libwebp</a>
  228. <ul class="no-bullet">
  229. <li><a id="toc-Pixel-Format" href="#Pixel-Format">9.14.1 Pixel Format</a></li>
  230. <li><a id="toc-Options-33" href="#Options-33">9.14.2 Options</a></li>
  231. </ul></li>
  232. <li><a id="toc-libx264_002c-libx264rgb" href="#libx264_002c-libx264rgb">9.15 libx264, libx264rgb</a>
  233. <ul class="no-bullet">
  234. <li><a id="toc-Supported-Pixel-Formats" href="#Supported-Pixel-Formats">9.15.1 Supported Pixel Formats</a></li>
  235. <li><a id="toc-Options-34" href="#Options-34">9.15.2 Options</a></li>
  236. </ul></li>
  237. <li><a id="toc-libx265" href="#libx265">9.16 libx265</a>
  238. <ul class="no-bullet">
  239. <li><a id="toc-Options-35" href="#Options-35">9.16.1 Options</a></li>
  240. </ul></li>
  241. <li><a id="toc-libxavs2" href="#libxavs2">9.17 libxavs2</a>
  242. <ul class="no-bullet">
  243. <li><a id="toc-Options-36" href="#Options-36">9.17.1 Options</a></li>
  244. </ul></li>
  245. <li><a id="toc-libxvid" href="#libxvid">9.18 libxvid</a>
  246. <ul class="no-bullet">
  247. <li><a id="toc-Options-37" href="#Options-37">9.18.1 Options</a></li>
  248. </ul></li>
  249. <li><a id="toc-MediaFoundation" href="#MediaFoundation">9.19 MediaFoundation</a></li>
  250. <li><a id="toc-mpeg2" href="#mpeg2">9.20 mpeg2</a>
  251. <ul class="no-bullet">
  252. <li><a id="toc-Options-38" href="#Options-38">9.20.1 Options</a></li>
  253. </ul></li>
  254. <li><a id="toc-png" href="#png">9.21 png</a>
  255. <ul class="no-bullet">
  256. <li><a id="toc-Private-options-1" href="#Private-options-1">9.21.1 Private options</a></li>
  257. </ul></li>
  258. <li><a id="toc-ProRes" href="#ProRes">9.22 ProRes</a>
  259. <ul class="no-bullet">
  260. <li><a id="toc-Private-Options-for-prores_002dks" href="#Private-Options-for-prores_002dks">9.22.1 Private Options for prores-ks</a></li>
  261. <li><a id="toc-Speed-considerations" href="#Speed-considerations">9.22.2 Speed considerations</a></li>
  262. </ul></li>
  263. <li><a id="toc-QSV-Encoders" href="#QSV-Encoders">9.23 QSV Encoders</a>
  264. <ul class="no-bullet">
  265. <li><a id="toc-Ratecontrol-Method" href="#Ratecontrol-Method">9.23.1 Ratecontrol Method</a></li>
  266. <li><a id="toc-Global-Options-_002d_003e-MSDK-Options" href="#Global-Options-_002d_003e-MSDK-Options">9.23.2 Global Options -&gt; MSDK Options</a></li>
  267. <li><a id="toc-Common-Options-1" href="#Common-Options-1">9.23.3 Common Options</a></li>
  268. <li><a id="toc-Runtime-Options" href="#Runtime-Options">9.23.4 Runtime Options</a></li>
  269. <li><a id="toc-H264-options" href="#H264-options">9.23.5 H264 options</a></li>
  270. <li><a id="toc-HEVC-Options-1" href="#HEVC-Options-1">9.23.6 HEVC Options</a></li>
  271. <li><a id="toc-MPEG2-Options" href="#MPEG2-Options">9.23.7 MPEG2 Options</a></li>
  272. <li><a id="toc-VP9-Options" href="#VP9-Options">9.23.8 VP9 Options</a></li>
  273. <li><a id="toc-AV1-Options" href="#AV1-Options">9.23.9 AV1 Options</a></li>
  274. </ul></li>
  275. <li><a id="toc-snow" href="#snow">9.24 snow</a>
  276. <ul class="no-bullet">
  277. <li><a id="toc-Options-39" href="#Options-39">9.24.1 Options</a></li>
  278. </ul></li>
  279. <li><a id="toc-VAAPI-encoders" href="#VAAPI-encoders">9.25 VAAPI encoders</a></li>
  280. <li><a id="toc-vbn" href="#vbn">9.26 vbn</a>
  281. <ul class="no-bullet">
  282. <li><a id="toc-Options-40" href="#Options-40">9.26.1 Options</a></li>
  283. </ul></li>
  284. <li><a id="toc-vc2" href="#vc2">9.27 vc2</a>
  285. <ul class="no-bullet">
  286. <li><a id="toc-Options-41" href="#Options-41">9.27.1 Options</a></li>
  287. </ul></li>
  288. </ul></li>
  289. <li><a id="toc-Subtitles-Encoders" href="#Subtitles-Encoders">10 Subtitles Encoders</a>
  290. <ul class="no-bullet">
  291. <li><a id="toc-dvdsub-1" href="#dvdsub-1">10.1 dvdsub</a>
  292. <ul class="no-bullet">
  293. <li><a id="toc-Options-42" href="#Options-42">10.1.1 Options</a></li>
  294. </ul></li>
  295. </ul></li>
  296. <li><a id="toc-See-Also" href="#See-Also">11 See Also</a></li>
  297. <li><a id="toc-Authors" href="#Authors">12 Authors</a></li>
  298. </ul>
  299. </div>
  300. </div>
  301. <a name="Description"></a>
  302. <h2 class="chapter">1 Description<span class="pull-right"><a class="anchor hidden-xs" href="#Description" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Description" aria-hidden="true">TOC</a></span></h2>
  303. <p>This document describes the codecs (decoders and encoders) provided by
  304. the libavcodec library.
  305. </p>
  306. <span id="codec_002doptions"></span><a name="Codec-Options"></a>
  307. <h2 class="chapter">2 Codec Options<span class="pull-right"><a class="anchor hidden-xs" href="#Codec-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Codec-Options" aria-hidden="true">TOC</a></span></h2>
  308. <p>libavcodec provides some generic global options, which can be set on
  309. all the encoders and decoders. In addition each codec may support
  310. so-called private options, which are specific for a given codec.
  311. </p>
  312. <p>Sometimes, a global option may only affect a specific kind of codec,
  313. and may be nonsensical or ignored by another, so you need to be aware
  314. of the meaning of the specified options. Also some options are
  315. meant only for decoding or encoding.
  316. </p>
  317. <p>Options may be set by specifying -<var>option</var> <var>value</var> in the
  318. FFmpeg tools, or by setting the value explicitly in the
  319. <code>AVCodecContext</code> options or using the <samp>libavutil/opt.h</samp> API
  320. for programmatic use.
  321. </p>
  322. <p>The list of supported options follow:
  323. </p>
  324. <dl compact="compact">
  325. <dt><span><samp>b <var>integer</var> (<em>encoding,audio,video</em>)</samp></span></dt>
  326. <dd><p>Set bitrate in bits/s. Default value is 200K.
  327. </p>
  328. </dd>
  329. <dt><span><samp>ab <var>integer</var> (<em>encoding,audio</em>)</samp></span></dt>
  330. <dd><p>Set audio bitrate (in bits/s). Default value is 128K.
  331. </p>
  332. </dd>
  333. <dt><span><samp>bt <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
  334. <dd><p>Set video bitrate tolerance (in bits/s). In 1-pass mode, bitrate
  335. tolerance specifies how far ratecontrol is willing to deviate from the
  336. target average bitrate value. This is not related to min/max
  337. bitrate. Lowering tolerance too much has an adverse effect on quality.
  338. </p>
  339. </dd>
  340. <dt><span><samp>flags <var>flags</var> (<em>decoding/encoding,audio,video,subtitles</em>)</samp></span></dt>
  341. <dd><p>Set generic flags.
  342. </p>
  343. <p>Possible values:
  344. </p><dl compact="compact">
  345. <dt><span>&lsquo;<samp>mv4</samp>&rsquo;</span></dt>
  346. <dd><p>Use four motion vector by macroblock (mpeg4).
  347. </p></dd>
  348. <dt><span>&lsquo;<samp>qpel</samp>&rsquo;</span></dt>
  349. <dd><p>Use 1/4 pel motion compensation.
  350. </p></dd>
  351. <dt><span>&lsquo;<samp>loop</samp>&rsquo;</span></dt>
  352. <dd><p>Use loop filter.
  353. </p></dd>
  354. <dt><span>&lsquo;<samp>qscale</samp>&rsquo;</span></dt>
  355. <dd><p>Use fixed qscale.
  356. </p></dd>
  357. <dt><span>&lsquo;<samp>pass1</samp>&rsquo;</span></dt>
  358. <dd><p>Use internal 2pass ratecontrol in first pass mode.
  359. </p></dd>
  360. <dt><span>&lsquo;<samp>pass2</samp>&rsquo;</span></dt>
  361. <dd><p>Use internal 2pass ratecontrol in second pass mode.
  362. </p></dd>
  363. <dt><span>&lsquo;<samp>gray</samp>&rsquo;</span></dt>
  364. <dd><p>Only decode/encode grayscale.
  365. </p></dd>
  366. <dt><span>&lsquo;<samp>psnr</samp>&rsquo;</span></dt>
  367. <dd><p>Set error[?] variables during encoding.
  368. </p></dd>
  369. <dt><span>&lsquo;<samp>truncated</samp>&rsquo;</span></dt>
  370. <dd><p>Input bitstream might be randomly truncated.
  371. </p></dd>
  372. <dt><span>&lsquo;<samp>drop_changed</samp>&rsquo;</span></dt>
  373. <dd><p>Don&rsquo;t output frames whose parameters differ from first decoded frame in stream.
  374. Error AVERROR_INPUT_CHANGED is returned when a frame is dropped.
  375. </p>
  376. </dd>
  377. <dt><span>&lsquo;<samp>ildct</samp>&rsquo;</span></dt>
  378. <dd><p>Use interlaced DCT.
  379. </p></dd>
  380. <dt><span>&lsquo;<samp>low_delay</samp>&rsquo;</span></dt>
  381. <dd><p>Force low delay.
  382. </p></dd>
  383. <dt><span>&lsquo;<samp>global_header</samp>&rsquo;</span></dt>
  384. <dd><p>Place global headers in extradata instead of every keyframe.
  385. </p></dd>
  386. <dt><span>&lsquo;<samp>bitexact</samp>&rsquo;</span></dt>
  387. <dd><p>Only write platform-, build- and time-independent data. (except (I)DCT).
  388. This ensures that file and data checksums are reproducible and match between
  389. platforms. Its primary use is for regression testing.
  390. </p></dd>
  391. <dt><span>&lsquo;<samp>aic</samp>&rsquo;</span></dt>
  392. <dd><p>Apply H263 advanced intra coding / mpeg4 ac prediction.
  393. </p></dd>
  394. <dt><span>&lsquo;<samp>ilme</samp>&rsquo;</span></dt>
  395. <dd><p>Apply interlaced motion estimation.
  396. </p></dd>
  397. <dt><span>&lsquo;<samp>cgop</samp>&rsquo;</span></dt>
  398. <dd><p>Use closed gop.
  399. </p></dd>
  400. <dt><span>&lsquo;<samp>output_corrupt</samp>&rsquo;</span></dt>
  401. <dd><p>Output even potentially corrupted frames.
  402. </p></dd>
  403. </dl>
  404. </dd>
  405. <dt><span><samp>time_base <var>rational number</var></samp></span></dt>
  406. <dd><p>Set codec time base.
  407. </p>
  408. <p>It is the fundamental unit of time (in seconds) in terms of which
  409. frame timestamps are represented. For fixed-fps content, timebase
  410. should be <code>1 / frame_rate</code> and timestamp increments should be
  411. identically 1.
  412. </p>
  413. </dd>
  414. <dt><span><samp>g <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
  415. <dd><p>Set the group of picture (GOP) size. Default value is 12.
  416. </p>
  417. </dd>
  418. <dt><span><samp>ar <var>integer</var> (<em>decoding/encoding,audio</em>)</samp></span></dt>
  419. <dd><p>Set audio sampling rate (in Hz).
  420. </p>
  421. </dd>
  422. <dt><span><samp>ac <var>integer</var> (<em>decoding/encoding,audio</em>)</samp></span></dt>
  423. <dd><p>Set number of audio channels.
  424. </p>
  425. </dd>
  426. <dt><span><samp>cutoff <var>integer</var> (<em>encoding,audio</em>)</samp></span></dt>
  427. <dd><p>Set cutoff bandwidth. (Supported only by selected encoders, see
  428. their respective documentation sections.)
  429. </p>
  430. </dd>
  431. <dt><span><samp>frame_size <var>integer</var> (<em>encoding,audio</em>)</samp></span></dt>
  432. <dd><p>Set audio frame size.
  433. </p>
  434. <p>Each submitted frame except the last must contain exactly frame_size
  435. samples per channel. May be 0 when the codec has
  436. CODEC_CAP_VARIABLE_FRAME_SIZE set, in that case the frame size is not
  437. restricted. It is set by some decoders to indicate constant frame
  438. size.
  439. </p>
  440. </dd>
  441. <dt><span><samp>frame_number <var>integer</var></samp></span></dt>
  442. <dd><p>Set the frame number.
  443. </p>
  444. </dd>
  445. <dt><span><samp>delay <var>integer</var></samp></span></dt>
  446. <dt><span><samp>qcomp <var>float</var> (<em>encoding,video</em>)</samp></span></dt>
  447. <dd><p>Set video quantizer scale compression (VBR). It is used as a constant
  448. in the ratecontrol equation. Recommended range for default rc_eq:
  449. 0.0-1.0.
  450. </p>
  451. </dd>
  452. <dt><span><samp>qblur <var>float</var> (<em>encoding,video</em>)</samp></span></dt>
  453. <dd><p>Set video quantizer scale blur (VBR).
  454. </p>
  455. </dd>
  456. <dt><span><samp>qmin <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
  457. <dd><p>Set min video quantizer scale (VBR). Must be included between -1 and
  458. 69, default value is 2.
  459. </p>
  460. </dd>
  461. <dt><span><samp>qmax <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
  462. <dd><p>Set max video quantizer scale (VBR). Must be included between -1 and
  463. 1024, default value is 31.
  464. </p>
  465. </dd>
  466. <dt><span><samp>qdiff <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
  467. <dd><p>Set max difference between the quantizer scale (VBR).
  468. </p>
  469. </dd>
  470. <dt><span><samp>bf <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
  471. <dd><p>Set max number of B frames between non-B-frames.
  472. </p>
  473. <p>Must be an integer between -1 and 16. 0 means that B-frames are
  474. disabled. If a value of -1 is used, it will choose an automatic value
  475. depending on the encoder.
  476. </p>
  477. <p>Default value is 0.
  478. </p>
  479. </dd>
  480. <dt><span><samp>b_qfactor <var>float</var> (<em>encoding,video</em>)</samp></span></dt>
  481. <dd><p>Set qp factor between P and B frames.
  482. </p>
  483. </dd>
  484. <dt><span><samp>codec_tag <var>integer</var></samp></span></dt>
  485. <dt><span><samp>bug <var>flags</var> (<em>decoding,video</em>)</samp></span></dt>
  486. <dd><p>Workaround not auto detected encoder bugs.
  487. </p>
  488. <p>Possible values:
  489. </p><dl compact="compact">
  490. <dt><span>&lsquo;<samp>autodetect</samp>&rsquo;</span></dt>
  491. <dt><span>&lsquo;<samp>xvid_ilace</samp>&rsquo;</span></dt>
  492. <dd><p>Xvid interlacing bug (autodetected if fourcc==XVIX)
  493. </p></dd>
  494. <dt><span>&lsquo;<samp>ump4</samp>&rsquo;</span></dt>
  495. <dd><p>(autodetected if fourcc==UMP4)
  496. </p></dd>
  497. <dt><span>&lsquo;<samp>no_padding</samp>&rsquo;</span></dt>
  498. <dd><p>padding bug (autodetected)
  499. </p></dd>
  500. <dt><span>&lsquo;<samp>amv</samp>&rsquo;</span></dt>
  501. <dt><span>&lsquo;<samp>qpel_chroma</samp>&rsquo;</span></dt>
  502. <dt><span>&lsquo;<samp>std_qpel</samp>&rsquo;</span></dt>
  503. <dd><p>old standard qpel (autodetected per fourcc/version)
  504. </p></dd>
  505. <dt><span>&lsquo;<samp>qpel_chroma2</samp>&rsquo;</span></dt>
  506. <dt><span>&lsquo;<samp>direct_blocksize</samp>&rsquo;</span></dt>
  507. <dd><p>direct-qpel-blocksize bug (autodetected per fourcc/version)
  508. </p></dd>
  509. <dt><span>&lsquo;<samp>edge</samp>&rsquo;</span></dt>
  510. <dd><p>edge padding bug (autodetected per fourcc/version)
  511. </p></dd>
  512. <dt><span>&lsquo;<samp>hpel_chroma</samp>&rsquo;</span></dt>
  513. <dt><span>&lsquo;<samp>dc_clip</samp>&rsquo;</span></dt>
  514. <dt><span>&lsquo;<samp>ms</samp>&rsquo;</span></dt>
  515. <dd><p>Workaround various bugs in microsoft broken decoders.
  516. </p></dd>
  517. <dt><span>&lsquo;<samp>trunc</samp>&rsquo;</span></dt>
  518. <dd><p>trancated frames
  519. </p></dd>
  520. </dl>
  521. </dd>
  522. <dt><span><samp>strict <var>integer</var> (<em>decoding/encoding,audio,video</em>)</samp></span></dt>
  523. <dd><p>Specify how strictly to follow the standards.
  524. </p>
  525. <p>Possible values:
  526. </p><dl compact="compact">
  527. <dt><span>&lsquo;<samp>very</samp>&rsquo;</span></dt>
  528. <dd><p>strictly conform to an older more strict version of the spec or reference software
  529. </p></dd>
  530. <dt><span>&lsquo;<samp>strict</samp>&rsquo;</span></dt>
  531. <dd><p>strictly conform to all the things in the spec no matter what consequences
  532. </p></dd>
  533. <dt><span>&lsquo;<samp>normal</samp>&rsquo;</span></dt>
  534. <dt><span>&lsquo;<samp>unofficial</samp>&rsquo;</span></dt>
  535. <dd><p>allow unofficial extensions
  536. </p></dd>
  537. <dt><span>&lsquo;<samp>experimental</samp>&rsquo;</span></dt>
  538. <dd><p>allow non standardized experimental things, experimental
  539. (unfinished/work in progress/not well tested) decoders and encoders.
  540. Note: experimental decoders can pose a security risk, do not use this for
  541. decoding untrusted input.
  542. </p></dd>
  543. </dl>
  544. </dd>
  545. <dt><span><samp>b_qoffset <var>float</var> (<em>encoding,video</em>)</samp></span></dt>
  546. <dd><p>Set QP offset between P and B frames.
  547. </p>
  548. </dd>
  549. <dt><span><samp>err_detect <var>flags</var> (<em>decoding,audio,video</em>)</samp></span></dt>
  550. <dd><p>Set error detection flags.
  551. </p>
  552. <p>Possible values:
  553. </p><dl compact="compact">
  554. <dt><span>&lsquo;<samp>crccheck</samp>&rsquo;</span></dt>
  555. <dd><p>verify embedded CRCs
  556. </p></dd>
  557. <dt><span>&lsquo;<samp>bitstream</samp>&rsquo;</span></dt>
  558. <dd><p>detect bitstream specification deviations
  559. </p></dd>
  560. <dt><span>&lsquo;<samp>buffer</samp>&rsquo;</span></dt>
  561. <dd><p>detect improper bitstream length
  562. </p></dd>
  563. <dt><span>&lsquo;<samp>explode</samp>&rsquo;</span></dt>
  564. <dd><p>abort decoding on minor error detection
  565. </p></dd>
  566. <dt><span>&lsquo;<samp>ignore_err</samp>&rsquo;</span></dt>
  567. <dd><p>ignore decoding errors, and continue decoding.
  568. This is useful if you want to analyze the content of a video and thus want
  569. everything to be decoded no matter what. This option will not result in a video
  570. that is pleasing to watch in case of errors.
  571. </p></dd>
  572. <dt><span>&lsquo;<samp>careful</samp>&rsquo;</span></dt>
  573. <dd><p>consider things that violate the spec and have not been seen in the wild as errors
  574. </p></dd>
  575. <dt><span>&lsquo;<samp>compliant</samp>&rsquo;</span></dt>
  576. <dd><p>consider all spec non compliancies as errors
  577. </p></dd>
  578. <dt><span>&lsquo;<samp>aggressive</samp>&rsquo;</span></dt>
  579. <dd><p>consider things that a sane encoder should not do as an error
  580. </p></dd>
  581. </dl>
  582. </dd>
  583. <dt><span><samp>has_b_frames <var>integer</var></samp></span></dt>
  584. <dt><span><samp>block_align <var>integer</var></samp></span></dt>
  585. <dt><span><samp>rc_override_count <var>integer</var></samp></span></dt>
  586. <dt><span><samp>maxrate <var>integer</var> (<em>encoding,audio,video</em>)</samp></span></dt>
  587. <dd><p>Set max bitrate tolerance (in bits/s). Requires bufsize to be set.
  588. </p>
  589. </dd>
  590. <dt><span><samp>minrate <var>integer</var> (<em>encoding,audio,video</em>)</samp></span></dt>
  591. <dd><p>Set min bitrate tolerance (in bits/s). Most useful in setting up a CBR
  592. encode. It is of little use elsewise.
  593. </p>
  594. </dd>
  595. <dt><span><samp>bufsize <var>integer</var> (<em>encoding,audio,video</em>)</samp></span></dt>
  596. <dd><p>Set ratecontrol buffer size (in bits).
  597. </p>
  598. </dd>
  599. <dt><span><samp>i_qfactor <var>float</var> (<em>encoding,video</em>)</samp></span></dt>
  600. <dd><p>Set QP factor between P and I frames.
  601. </p>
  602. </dd>
  603. <dt><span><samp>i_qoffset <var>float</var> (<em>encoding,video</em>)</samp></span></dt>
  604. <dd><p>Set QP offset between P and I frames.
  605. </p>
  606. </dd>
  607. <dt><span><samp>dct <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
  608. <dd><p>Set DCT algorithm.
  609. </p>
  610. <p>Possible values:
  611. </p><dl compact="compact">
  612. <dt><span>&lsquo;<samp>auto</samp>&rsquo;</span></dt>
  613. <dd><p>autoselect a good one (default)
  614. </p></dd>
  615. <dt><span>&lsquo;<samp>fastint</samp>&rsquo;</span></dt>
  616. <dd><p>fast integer
  617. </p></dd>
  618. <dt><span>&lsquo;<samp>int</samp>&rsquo;</span></dt>
  619. <dd><p>accurate integer
  620. </p></dd>
  621. <dt><span>&lsquo;<samp>mmx</samp>&rsquo;</span></dt>
  622. <dt><span>&lsquo;<samp>altivec</samp>&rsquo;</span></dt>
  623. <dt><span>&lsquo;<samp>faan</samp>&rsquo;</span></dt>
  624. <dd><p>floating point AAN DCT
  625. </p></dd>
  626. </dl>
  627. </dd>
  628. <dt><span><samp>lumi_mask <var>float</var> (<em>encoding,video</em>)</samp></span></dt>
  629. <dd><p>Compress bright areas stronger than medium ones.
  630. </p>
  631. </dd>
  632. <dt><span><samp>tcplx_mask <var>float</var> (<em>encoding,video</em>)</samp></span></dt>
  633. <dd><p>Set temporal complexity masking.
  634. </p>
  635. </dd>
  636. <dt><span><samp>scplx_mask <var>float</var> (<em>encoding,video</em>)</samp></span></dt>
  637. <dd><p>Set spatial complexity masking.
  638. </p>
  639. </dd>
  640. <dt><span><samp>p_mask <var>float</var> (<em>encoding,video</em>)</samp></span></dt>
  641. <dd><p>Set inter masking.
  642. </p>
  643. </dd>
  644. <dt><span><samp>dark_mask <var>float</var> (<em>encoding,video</em>)</samp></span></dt>
  645. <dd><p>Compress dark areas stronger than medium ones.
  646. </p>
  647. </dd>
  648. <dt><span><samp>idct <var>integer</var> (<em>decoding/encoding,video</em>)</samp></span></dt>
  649. <dd><p>Select IDCT implementation.
  650. </p>
  651. <p>Possible values:
  652. </p><dl compact="compact">
  653. <dt><span>&lsquo;<samp>auto</samp>&rsquo;</span></dt>
  654. <dt><span>&lsquo;<samp>int</samp>&rsquo;</span></dt>
  655. <dt><span>&lsquo;<samp>simple</samp>&rsquo;</span></dt>
  656. <dt><span>&lsquo;<samp>simplemmx</samp>&rsquo;</span></dt>
  657. <dt><span>&lsquo;<samp>simpleauto</samp>&rsquo;</span></dt>
  658. <dd><p>Automatically pick a IDCT compatible with the simple one
  659. </p>
  660. </dd>
  661. <dt><span>&lsquo;<samp>arm</samp>&rsquo;</span></dt>
  662. <dt><span>&lsquo;<samp>altivec</samp>&rsquo;</span></dt>
  663. <dt><span>&lsquo;<samp>sh4</samp>&rsquo;</span></dt>
  664. <dt><span>&lsquo;<samp>simplearm</samp>&rsquo;</span></dt>
  665. <dt><span>&lsquo;<samp>simplearmv5te</samp>&rsquo;</span></dt>
  666. <dt><span>&lsquo;<samp>simplearmv6</samp>&rsquo;</span></dt>
  667. <dt><span>&lsquo;<samp>simpleneon</samp>&rsquo;</span></dt>
  668. <dt><span>&lsquo;<samp>xvid</samp>&rsquo;</span></dt>
  669. <dt><span>&lsquo;<samp>faani</samp>&rsquo;</span></dt>
  670. <dd><p>floating point AAN IDCT
  671. </p></dd>
  672. </dl>
  673. </dd>
  674. <dt><span><samp>slice_count <var>integer</var></samp></span></dt>
  675. <dt><span><samp>ec <var>flags</var> (<em>decoding,video</em>)</samp></span></dt>
  676. <dd><p>Set error concealment strategy.
  677. </p>
  678. <p>Possible values:
  679. </p><dl compact="compact">
  680. <dt><span>&lsquo;<samp>guess_mvs</samp>&rsquo;</span></dt>
  681. <dd><p>iterative motion vector (MV) search (slow)
  682. </p></dd>
  683. <dt><span>&lsquo;<samp>deblock</samp>&rsquo;</span></dt>
  684. <dd><p>use strong deblock filter for damaged MBs
  685. </p></dd>
  686. <dt><span>&lsquo;<samp>favor_inter</samp>&rsquo;</span></dt>
  687. <dd><p>favor predicting from the previous frame instead of the current
  688. </p></dd>
  689. </dl>
  690. </dd>
  691. <dt><span><samp>bits_per_coded_sample <var>integer</var></samp></span></dt>
  692. <dt><span><samp>aspect <var>rational number</var> (<em>encoding,video</em>)</samp></span></dt>
  693. <dd><p>Set sample aspect ratio.
  694. </p>
  695. </dd>
  696. <dt><span><samp>sar <var>rational number</var> (<em>encoding,video</em>)</samp></span></dt>
  697. <dd><p>Set sample aspect ratio. Alias to <var>aspect</var>.
  698. </p>
  699. </dd>
  700. <dt><span><samp>debug <var>flags</var> (<em>decoding/encoding,audio,video,subtitles</em>)</samp></span></dt>
  701. <dd><p>Print specific debug info.
  702. </p>
  703. <p>Possible values:
  704. </p><dl compact="compact">
  705. <dt><span>&lsquo;<samp>pict</samp>&rsquo;</span></dt>
  706. <dd><p>picture info
  707. </p></dd>
  708. <dt><span>&lsquo;<samp>rc</samp>&rsquo;</span></dt>
  709. <dd><p>rate control
  710. </p></dd>
  711. <dt><span>&lsquo;<samp>bitstream</samp>&rsquo;</span></dt>
  712. <dt><span>&lsquo;<samp>mb_type</samp>&rsquo;</span></dt>
  713. <dd><p>macroblock (MB) type
  714. </p></dd>
  715. <dt><span>&lsquo;<samp>qp</samp>&rsquo;</span></dt>
  716. <dd><p>per-block quantization parameter (QP)
  717. </p></dd>
  718. <dt><span>&lsquo;<samp>dct_coeff</samp>&rsquo;</span></dt>
  719. <dt><span>&lsquo;<samp>green_metadata</samp>&rsquo;</span></dt>
  720. <dd><p>display complexity metadata for the upcoming frame, GoP or for a given duration.
  721. </p>
  722. </dd>
  723. <dt><span>&lsquo;<samp>skip</samp>&rsquo;</span></dt>
  724. <dt><span>&lsquo;<samp>startcode</samp>&rsquo;</span></dt>
  725. <dt><span>&lsquo;<samp>er</samp>&rsquo;</span></dt>
  726. <dd><p>error recognition
  727. </p></dd>
  728. <dt><span>&lsquo;<samp>mmco</samp>&rsquo;</span></dt>
  729. <dd><p>memory management control operations (H.264)
  730. </p></dd>
  731. <dt><span>&lsquo;<samp>bugs</samp>&rsquo;</span></dt>
  732. <dt><span>&lsquo;<samp>buffers</samp>&rsquo;</span></dt>
  733. <dd><p>picture buffer allocations
  734. </p></dd>
  735. <dt><span>&lsquo;<samp>thread_ops</samp>&rsquo;</span></dt>
  736. <dd><p>threading operations
  737. </p></dd>
  738. <dt><span>&lsquo;<samp>nomc</samp>&rsquo;</span></dt>
  739. <dd><p>skip motion compensation
  740. </p></dd>
  741. </dl>
  742. </dd>
  743. <dt><span><samp>cmp <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
  744. <dd><p>Set full pel me compare function.
  745. </p>
  746. <p>Possible values:
  747. </p><dl compact="compact">
  748. <dt><span>&lsquo;<samp>sad</samp>&rsquo;</span></dt>
  749. <dd><p>sum of absolute differences, fast (default)
  750. </p></dd>
  751. <dt><span>&lsquo;<samp>sse</samp>&rsquo;</span></dt>
  752. <dd><p>sum of squared errors
  753. </p></dd>
  754. <dt><span>&lsquo;<samp>satd</samp>&rsquo;</span></dt>
  755. <dd><p>sum of absolute Hadamard transformed differences
  756. </p></dd>
  757. <dt><span>&lsquo;<samp>dct</samp>&rsquo;</span></dt>
  758. <dd><p>sum of absolute DCT transformed differences
  759. </p></dd>
  760. <dt><span>&lsquo;<samp>psnr</samp>&rsquo;</span></dt>
  761. <dd><p>sum of squared quantization errors (avoid, low quality)
  762. </p></dd>
  763. <dt><span>&lsquo;<samp>bit</samp>&rsquo;</span></dt>
  764. <dd><p>number of bits needed for the block
  765. </p></dd>
  766. <dt><span>&lsquo;<samp>rd</samp>&rsquo;</span></dt>
  767. <dd><p>rate distortion optimal, slow
  768. </p></dd>
  769. <dt><span>&lsquo;<samp>zero</samp>&rsquo;</span></dt>
  770. <dd><p>0
  771. </p></dd>
  772. <dt><span>&lsquo;<samp>vsad</samp>&rsquo;</span></dt>
  773. <dd><p>sum of absolute vertical differences
  774. </p></dd>
  775. <dt><span>&lsquo;<samp>vsse</samp>&rsquo;</span></dt>
  776. <dd><p>sum of squared vertical differences
  777. </p></dd>
  778. <dt><span>&lsquo;<samp>nsse</samp>&rsquo;</span></dt>
  779. <dd><p>noise preserving sum of squared differences
  780. </p></dd>
  781. <dt><span>&lsquo;<samp>w53</samp>&rsquo;</span></dt>
  782. <dd><p>5/3 wavelet, only used in snow
  783. </p></dd>
  784. <dt><span>&lsquo;<samp>w97</samp>&rsquo;</span></dt>
  785. <dd><p>9/7 wavelet, only used in snow
  786. </p></dd>
  787. <dt><span>&lsquo;<samp>dctmax</samp>&rsquo;</span></dt>
  788. <dt><span>&lsquo;<samp>chroma</samp>&rsquo;</span></dt>
  789. </dl>
  790. </dd>
  791. <dt><span><samp>subcmp <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
  792. <dd><p>Set sub pel me compare function.
  793. </p>
  794. <p>Possible values:
  795. </p><dl compact="compact">
  796. <dt><span>&lsquo;<samp>sad</samp>&rsquo;</span></dt>
  797. <dd><p>sum of absolute differences, fast (default)
  798. </p></dd>
  799. <dt><span>&lsquo;<samp>sse</samp>&rsquo;</span></dt>
  800. <dd><p>sum of squared errors
  801. </p></dd>
  802. <dt><span>&lsquo;<samp>satd</samp>&rsquo;</span></dt>
  803. <dd><p>sum of absolute Hadamard transformed differences
  804. </p></dd>
  805. <dt><span>&lsquo;<samp>dct</samp>&rsquo;</span></dt>
  806. <dd><p>sum of absolute DCT transformed differences
  807. </p></dd>
  808. <dt><span>&lsquo;<samp>psnr</samp>&rsquo;</span></dt>
  809. <dd><p>sum of squared quantization errors (avoid, low quality)
  810. </p></dd>
  811. <dt><span>&lsquo;<samp>bit</samp>&rsquo;</span></dt>
  812. <dd><p>number of bits needed for the block
  813. </p></dd>
  814. <dt><span>&lsquo;<samp>rd</samp>&rsquo;</span></dt>
  815. <dd><p>rate distortion optimal, slow
  816. </p></dd>
  817. <dt><span>&lsquo;<samp>zero</samp>&rsquo;</span></dt>
  818. <dd><p>0
  819. </p></dd>
  820. <dt><span>&lsquo;<samp>vsad</samp>&rsquo;</span></dt>
  821. <dd><p>sum of absolute vertical differences
  822. </p></dd>
  823. <dt><span>&lsquo;<samp>vsse</samp>&rsquo;</span></dt>
  824. <dd><p>sum of squared vertical differences
  825. </p></dd>
  826. <dt><span>&lsquo;<samp>nsse</samp>&rsquo;</span></dt>
  827. <dd><p>noise preserving sum of squared differences
  828. </p></dd>
  829. <dt><span>&lsquo;<samp>w53</samp>&rsquo;</span></dt>
  830. <dd><p>5/3 wavelet, only used in snow
  831. </p></dd>
  832. <dt><span>&lsquo;<samp>w97</samp>&rsquo;</span></dt>
  833. <dd><p>9/7 wavelet, only used in snow
  834. </p></dd>
  835. <dt><span>&lsquo;<samp>dctmax</samp>&rsquo;</span></dt>
  836. <dt><span>&lsquo;<samp>chroma</samp>&rsquo;</span></dt>
  837. </dl>
  838. </dd>
  839. <dt><span><samp>mbcmp <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
  840. <dd><p>Set macroblock compare function.
  841. </p>
  842. <p>Possible values:
  843. </p><dl compact="compact">
  844. <dt><span>&lsquo;<samp>sad</samp>&rsquo;</span></dt>
  845. <dd><p>sum of absolute differences, fast (default)
  846. </p></dd>
  847. <dt><span>&lsquo;<samp>sse</samp>&rsquo;</span></dt>
  848. <dd><p>sum of squared errors
  849. </p></dd>
  850. <dt><span>&lsquo;<samp>satd</samp>&rsquo;</span></dt>
  851. <dd><p>sum of absolute Hadamard transformed differences
  852. </p></dd>
  853. <dt><span>&lsquo;<samp>dct</samp>&rsquo;</span></dt>
  854. <dd><p>sum of absolute DCT transformed differences
  855. </p></dd>
  856. <dt><span>&lsquo;<samp>psnr</samp>&rsquo;</span></dt>
  857. <dd><p>sum of squared quantization errors (avoid, low quality)
  858. </p></dd>
  859. <dt><span>&lsquo;<samp>bit</samp>&rsquo;</span></dt>
  860. <dd><p>number of bits needed for the block
  861. </p></dd>
  862. <dt><span>&lsquo;<samp>rd</samp>&rsquo;</span></dt>
  863. <dd><p>rate distortion optimal, slow
  864. </p></dd>
  865. <dt><span>&lsquo;<samp>zero</samp>&rsquo;</span></dt>
  866. <dd><p>0
  867. </p></dd>
  868. <dt><span>&lsquo;<samp>vsad</samp>&rsquo;</span></dt>
  869. <dd><p>sum of absolute vertical differences
  870. </p></dd>
  871. <dt><span>&lsquo;<samp>vsse</samp>&rsquo;</span></dt>
  872. <dd><p>sum of squared vertical differences
  873. </p></dd>
  874. <dt><span>&lsquo;<samp>nsse</samp>&rsquo;</span></dt>
  875. <dd><p>noise preserving sum of squared differences
  876. </p></dd>
  877. <dt><span>&lsquo;<samp>w53</samp>&rsquo;</span></dt>
  878. <dd><p>5/3 wavelet, only used in snow
  879. </p></dd>
  880. <dt><span>&lsquo;<samp>w97</samp>&rsquo;</span></dt>
  881. <dd><p>9/7 wavelet, only used in snow
  882. </p></dd>
  883. <dt><span>&lsquo;<samp>dctmax</samp>&rsquo;</span></dt>
  884. <dt><span>&lsquo;<samp>chroma</samp>&rsquo;</span></dt>
  885. </dl>
  886. </dd>
  887. <dt><span><samp>ildctcmp <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
  888. <dd><p>Set interlaced dct compare function.
  889. </p>
  890. <p>Possible values:
  891. </p><dl compact="compact">
  892. <dt><span>&lsquo;<samp>sad</samp>&rsquo;</span></dt>
  893. <dd><p>sum of absolute differences, fast (default)
  894. </p></dd>
  895. <dt><span>&lsquo;<samp>sse</samp>&rsquo;</span></dt>
  896. <dd><p>sum of squared errors
  897. </p></dd>
  898. <dt><span>&lsquo;<samp>satd</samp>&rsquo;</span></dt>
  899. <dd><p>sum of absolute Hadamard transformed differences
  900. </p></dd>
  901. <dt><span>&lsquo;<samp>dct</samp>&rsquo;</span></dt>
  902. <dd><p>sum of absolute DCT transformed differences
  903. </p></dd>
  904. <dt><span>&lsquo;<samp>psnr</samp>&rsquo;</span></dt>
  905. <dd><p>sum of squared quantization errors (avoid, low quality)
  906. </p></dd>
  907. <dt><span>&lsquo;<samp>bit</samp>&rsquo;</span></dt>
  908. <dd><p>number of bits needed for the block
  909. </p></dd>
  910. <dt><span>&lsquo;<samp>rd</samp>&rsquo;</span></dt>
  911. <dd><p>rate distortion optimal, slow
  912. </p></dd>
  913. <dt><span>&lsquo;<samp>zero</samp>&rsquo;</span></dt>
  914. <dd><p>0
  915. </p></dd>
  916. <dt><span>&lsquo;<samp>vsad</samp>&rsquo;</span></dt>
  917. <dd><p>sum of absolute vertical differences
  918. </p></dd>
  919. <dt><span>&lsquo;<samp>vsse</samp>&rsquo;</span></dt>
  920. <dd><p>sum of squared vertical differences
  921. </p></dd>
  922. <dt><span>&lsquo;<samp>nsse</samp>&rsquo;</span></dt>
  923. <dd><p>noise preserving sum of squared differences
  924. </p></dd>
  925. <dt><span>&lsquo;<samp>w53</samp>&rsquo;</span></dt>
  926. <dd><p>5/3 wavelet, only used in snow
  927. </p></dd>
  928. <dt><span>&lsquo;<samp>w97</samp>&rsquo;</span></dt>
  929. <dd><p>9/7 wavelet, only used in snow
  930. </p></dd>
  931. <dt><span>&lsquo;<samp>dctmax</samp>&rsquo;</span></dt>
  932. <dt><span>&lsquo;<samp>chroma</samp>&rsquo;</span></dt>
  933. </dl>
  934. </dd>
  935. <dt><span><samp>dia_size <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
  936. <dd><p>Set diamond type &amp; size for motion estimation.
  937. </p><dl compact="compact">
  938. <dt><span>&lsquo;<samp>(1024, INT_MAX)</samp>&rsquo;</span></dt>
  939. <dd><p>full motion estimation(slowest)
  940. </p></dd>
  941. <dt><span>&lsquo;<samp>(768, 1024]</samp>&rsquo;</span></dt>
  942. <dd><p>umh motion estimation
  943. </p></dd>
  944. <dt><span>&lsquo;<samp>(512, 768]</samp>&rsquo;</span></dt>
  945. <dd><p>hex motion estimation
  946. </p></dd>
  947. <dt><span>&lsquo;<samp>(256, 512]</samp>&rsquo;</span></dt>
  948. <dd><p>l2s diamond motion estimation
  949. </p></dd>
  950. <dt><span>&lsquo;<samp>[2,256]</samp>&rsquo;</span></dt>
  951. <dd><p>var diamond motion estimation
  952. </p></dd>
  953. <dt><span>&lsquo;<samp>(-1, 2)</samp>&rsquo;</span></dt>
  954. <dd><p>small diamond motion estimation
  955. </p></dd>
  956. <dt><span>&lsquo;<samp>-1</samp>&rsquo;</span></dt>
  957. <dd><p>funny diamond motion estimation
  958. </p></dd>
  959. <dt><span>&lsquo;<samp>(INT_MIN, -1)</samp>&rsquo;</span></dt>
  960. <dd><p>sab diamond motion estimation
  961. </p></dd>
  962. </dl>
  963. </dd>
  964. <dt><span><samp>last_pred <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
  965. <dd><p>Set amount of motion predictors from the previous frame.
  966. </p>
  967. </dd>
  968. <dt><span><samp>precmp <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
  969. <dd><p>Set pre motion estimation compare function.
  970. </p>
  971. <p>Possible values:
  972. </p><dl compact="compact">
  973. <dt><span>&lsquo;<samp>sad</samp>&rsquo;</span></dt>
  974. <dd><p>sum of absolute differences, fast (default)
  975. </p></dd>
  976. <dt><span>&lsquo;<samp>sse</samp>&rsquo;</span></dt>
  977. <dd><p>sum of squared errors
  978. </p></dd>
  979. <dt><span>&lsquo;<samp>satd</samp>&rsquo;</span></dt>
  980. <dd><p>sum of absolute Hadamard transformed differences
  981. </p></dd>
  982. <dt><span>&lsquo;<samp>dct</samp>&rsquo;</span></dt>
  983. <dd><p>sum of absolute DCT transformed differences
  984. </p></dd>
  985. <dt><span>&lsquo;<samp>psnr</samp>&rsquo;</span></dt>
  986. <dd><p>sum of squared quantization errors (avoid, low quality)
  987. </p></dd>
  988. <dt><span>&lsquo;<samp>bit</samp>&rsquo;</span></dt>
  989. <dd><p>number of bits needed for the block
  990. </p></dd>
  991. <dt><span>&lsquo;<samp>rd</samp>&rsquo;</span></dt>
  992. <dd><p>rate distortion optimal, slow
  993. </p></dd>
  994. <dt><span>&lsquo;<samp>zero</samp>&rsquo;</span></dt>
  995. <dd><p>0
  996. </p></dd>
  997. <dt><span>&lsquo;<samp>vsad</samp>&rsquo;</span></dt>
  998. <dd><p>sum of absolute vertical differences
  999. </p></dd>
  1000. <dt><span>&lsquo;<samp>vsse</samp>&rsquo;</span></dt>
  1001. <dd><p>sum of squared vertical differences
  1002. </p></dd>
  1003. <dt><span>&lsquo;<samp>nsse</samp>&rsquo;</span></dt>
  1004. <dd><p>noise preserving sum of squared differences
  1005. </p></dd>
  1006. <dt><span>&lsquo;<samp>w53</samp>&rsquo;</span></dt>
  1007. <dd><p>5/3 wavelet, only used in snow
  1008. </p></dd>
  1009. <dt><span>&lsquo;<samp>w97</samp>&rsquo;</span></dt>
  1010. <dd><p>9/7 wavelet, only used in snow
  1011. </p></dd>
  1012. <dt><span>&lsquo;<samp>dctmax</samp>&rsquo;</span></dt>
  1013. <dt><span>&lsquo;<samp>chroma</samp>&rsquo;</span></dt>
  1014. </dl>
  1015. </dd>
  1016. <dt><span><samp>pre_dia_size <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
  1017. <dd><p>Set diamond type &amp; size for motion estimation pre-pass.
  1018. </p>
  1019. </dd>
  1020. <dt><span><samp>subq <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
  1021. <dd><p>Set sub pel motion estimation quality.
  1022. </p>
  1023. </dd>
  1024. <dt><span><samp>me_range <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
  1025. <dd><p>Set limit motion vectors range (1023 for DivX player).
  1026. </p>
  1027. </dd>
  1028. <dt><span><samp>global_quality <var>integer</var> (<em>encoding,audio,video</em>)</samp></span></dt>
  1029. <dt><span><samp>slice_flags <var>integer</var></samp></span></dt>
  1030. <dt><span><samp>mbd <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
  1031. <dd><p>Set macroblock decision algorithm (high quality mode).
  1032. </p>
  1033. <p>Possible values:
  1034. </p><dl compact="compact">
  1035. <dt><span>&lsquo;<samp>simple</samp>&rsquo;</span></dt>
  1036. <dd><p>use mbcmp (default)
  1037. </p></dd>
  1038. <dt><span>&lsquo;<samp>bits</samp>&rsquo;</span></dt>
  1039. <dd><p>use fewest bits
  1040. </p></dd>
  1041. <dt><span>&lsquo;<samp>rd</samp>&rsquo;</span></dt>
  1042. <dd><p>use best rate distortion
  1043. </p></dd>
  1044. </dl>
  1045. </dd>
  1046. <dt><span><samp>rc_init_occupancy <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
  1047. <dd><p>Set number of bits which should be loaded into the rc buffer before
  1048. decoding starts.
  1049. </p>
  1050. </dd>
  1051. <dt><span><samp>flags2 <var>flags</var> (<em>decoding/encoding,audio,video,subtitles</em>)</samp></span></dt>
  1052. <dd>
  1053. <p>Possible values:
  1054. </p><dl compact="compact">
  1055. <dt><span>&lsquo;<samp>fast</samp>&rsquo;</span></dt>
  1056. <dd><p>Allow non spec compliant speedup tricks.
  1057. </p></dd>
  1058. <dt><span>&lsquo;<samp>noout</samp>&rsquo;</span></dt>
  1059. <dd><p>Skip bitstream encoding.
  1060. </p></dd>
  1061. <dt><span>&lsquo;<samp>ignorecrop</samp>&rsquo;</span></dt>
  1062. <dd><p>Ignore cropping information from sps.
  1063. </p></dd>
  1064. <dt><span>&lsquo;<samp>local_header</samp>&rsquo;</span></dt>
  1065. <dd><p>Place global headers at every keyframe instead of in extradata.
  1066. </p></dd>
  1067. <dt><span>&lsquo;<samp>chunks</samp>&rsquo;</span></dt>
  1068. <dd><p>Frame data might be split into multiple chunks.
  1069. </p></dd>
  1070. <dt><span>&lsquo;<samp>showall</samp>&rsquo;</span></dt>
  1071. <dd><p>Show all frames before the first keyframe.
  1072. </p></dd>
  1073. <dt><span>&lsquo;<samp>export_mvs</samp>&rsquo;</span></dt>
  1074. <dd><p>Export motion vectors into frame side-data (see <code>AV_FRAME_DATA_MOTION_VECTORS</code>)
  1075. for codecs that support it. See also <samp>doc/examples/export_mvs.c</samp>.
  1076. </p></dd>
  1077. <dt><span>&lsquo;<samp>skip_manual</samp>&rsquo;</span></dt>
  1078. <dd><p>Do not skip samples and export skip information as frame side data.
  1079. </p></dd>
  1080. <dt><span>&lsquo;<samp>ass_ro_flush_noop</samp>&rsquo;</span></dt>
  1081. <dd><p>Do not reset ASS ReadOrder field on flush.
  1082. </p></dd>
  1083. <dt><span>&lsquo;<samp>icc_profiles</samp>&rsquo;</span></dt>
  1084. <dd><p>Generate/parse embedded ICC profiles from/to colorimetry tags.
  1085. </p></dd>
  1086. </dl>
  1087. </dd>
  1088. <dt><span><samp>export_side_data <var>flags</var> (<em>decoding/encoding,audio,video,subtitles</em>)</samp></span></dt>
  1089. <dd>
  1090. <p>Possible values:
  1091. </p><dl compact="compact">
  1092. <dt><span>&lsquo;<samp>mvs</samp>&rsquo;</span></dt>
  1093. <dd><p>Export motion vectors into frame side-data (see <code>AV_FRAME_DATA_MOTION_VECTORS</code>)
  1094. for codecs that support it. See also <samp>doc/examples/export_mvs.c</samp>.
  1095. </p></dd>
  1096. <dt><span>&lsquo;<samp>prft</samp>&rsquo;</span></dt>
  1097. <dd><p>Export encoder Producer Reference Time into packet side-data (see <code>AV_PKT_DATA_PRFT</code>)
  1098. for codecs that support it.
  1099. </p></dd>
  1100. <dt><span>&lsquo;<samp>venc_params</samp>&rsquo;</span></dt>
  1101. <dd><p>Export video encoding parameters through frame side data (see <code>AV_FRAME_DATA_VIDEO_ENC_PARAMS</code>)
  1102. for codecs that support it. At present, those are H.264 and VP9.
  1103. </p></dd>
  1104. <dt><span>&lsquo;<samp>film_grain</samp>&rsquo;</span></dt>
  1105. <dd><p>Export film grain parameters through frame side data (see <code>AV_FRAME_DATA_FILM_GRAIN_PARAMS</code>).
  1106. Supported at present by AV1 decoders.
  1107. </p></dd>
  1108. </dl>
  1109. </dd>
  1110. <dt><span><samp>threads <var>integer</var> (<em>decoding/encoding,video</em>)</samp></span></dt>
  1111. <dd><p>Set the number of threads to be used, in case the selected codec
  1112. implementation supports multi-threading.
  1113. </p>
  1114. <p>Possible values:
  1115. </p><dl compact="compact">
  1116. <dt><span>&lsquo;<samp>auto, 0</samp>&rsquo;</span></dt>
  1117. <dd><p>automatically select the number of threads to set
  1118. </p></dd>
  1119. </dl>
  1120. <p>Default value is &lsquo;<samp>auto</samp>&rsquo;.
  1121. </p>
  1122. </dd>
  1123. <dt><span><samp>dc <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
  1124. <dd><p>Set intra_dc_precision.
  1125. </p>
  1126. </dd>
  1127. <dt><span><samp>nssew <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
  1128. <dd><p>Set nsse weight.
  1129. </p>
  1130. </dd>
  1131. <dt><span><samp>skip_top <var>integer</var> (<em>decoding,video</em>)</samp></span></dt>
  1132. <dd><p>Set number of macroblock rows at the top which are skipped.
  1133. </p>
  1134. </dd>
  1135. <dt><span><samp>skip_bottom <var>integer</var> (<em>decoding,video</em>)</samp></span></dt>
  1136. <dd><p>Set number of macroblock rows at the bottom which are skipped.
  1137. </p>
  1138. </dd>
  1139. <dt><span><samp>profile <var>integer</var> (<em>encoding,audio,video</em>)</samp></span></dt>
  1140. <dd>
  1141. <p>Set encoder codec profile. Default value is &lsquo;<samp>unknown</samp>&rsquo;. Encoder specific
  1142. profiles are documented in the relevant encoder documentation.
  1143. </p>
  1144. </dd>
  1145. <dt><span><samp>level <var>integer</var> (<em>encoding,audio,video</em>)</samp></span></dt>
  1146. <dd>
  1147. <p>Possible values:
  1148. </p><dl compact="compact">
  1149. <dt><span>&lsquo;<samp>unknown</samp>&rsquo;</span></dt>
  1150. </dl>
  1151. </dd>
  1152. <dt><span><samp>lowres <var>integer</var> (<em>decoding,audio,video</em>)</samp></span></dt>
  1153. <dd><p>Decode at 1= 1/2, 2=1/4, 3=1/8 resolutions.
  1154. </p>
  1155. </dd>
  1156. <dt><span><samp>mblmin <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
  1157. <dd><p>Set min macroblock lagrange factor (VBR).
  1158. </p>
  1159. </dd>
  1160. <dt><span><samp>mblmax <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
  1161. <dd><p>Set max macroblock lagrange factor (VBR).
  1162. </p>
  1163. </dd>
  1164. <dt><span><samp>skip_loop_filter <var>integer</var> (<em>decoding,video</em>)</samp></span></dt>
  1165. <dt><span><samp>skip_idct <var>integer</var> (<em>decoding,video</em>)</samp></span></dt>
  1166. <dt><span><samp>skip_frame <var>integer</var> (<em>decoding,video</em>)</samp></span></dt>
  1167. <dd>
  1168. <p>Make decoder discard processing depending on the frame type selected
  1169. by the option value.
  1170. </p>
  1171. <p><samp>skip_loop_filter</samp> skips frame loop filtering, <samp>skip_idct</samp>
  1172. skips frame IDCT/dequantization, <samp>skip_frame</samp> skips decoding.
  1173. </p>
  1174. <p>Possible values:
  1175. </p><dl compact="compact">
  1176. <dt><span>&lsquo;<samp>none</samp>&rsquo;</span></dt>
  1177. <dd><p>Discard no frame.
  1178. </p>
  1179. </dd>
  1180. <dt><span>&lsquo;<samp>default</samp>&rsquo;</span></dt>
  1181. <dd><p>Discard useless frames like 0-sized frames.
  1182. </p>
  1183. </dd>
  1184. <dt><span>&lsquo;<samp>noref</samp>&rsquo;</span></dt>
  1185. <dd><p>Discard all non-reference frames.
  1186. </p>
  1187. </dd>
  1188. <dt><span>&lsquo;<samp>bidir</samp>&rsquo;</span></dt>
  1189. <dd><p>Discard all bidirectional frames.
  1190. </p>
  1191. </dd>
  1192. <dt><span>&lsquo;<samp>nokey</samp>&rsquo;</span></dt>
  1193. <dd><p>Discard all frames excepts keyframes.
  1194. </p>
  1195. </dd>
  1196. <dt><span>&lsquo;<samp>nointra</samp>&rsquo;</span></dt>
  1197. <dd><p>Discard all frames except I frames.
  1198. </p>
  1199. </dd>
  1200. <dt><span>&lsquo;<samp>all</samp>&rsquo;</span></dt>
  1201. <dd><p>Discard all frames.
  1202. </p></dd>
  1203. </dl>
  1204. <p>Default value is &lsquo;<samp>default</samp>&rsquo;.
  1205. </p>
  1206. </dd>
  1207. <dt><span><samp>bidir_refine <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
  1208. <dd><p>Refine the two motion vectors used in bidirectional macroblocks.
  1209. </p>
  1210. </dd>
  1211. <dt><span><samp>keyint_min <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
  1212. <dd><p>Set minimum interval between IDR-frames.
  1213. </p>
  1214. </dd>
  1215. <dt><span><samp>refs <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
  1216. <dd><p>Set reference frames to consider for motion compensation.
  1217. </p>
  1218. </dd>
  1219. <dt><span><samp>trellis <var>integer</var> (<em>encoding,audio,video</em>)</samp></span></dt>
  1220. <dd><p>Set rate-distortion optimal quantization.
  1221. </p>
  1222. </dd>
  1223. <dt><span><samp>mv0_threshold <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
  1224. <dt><span><samp>compression_level <var>integer</var> (<em>encoding,audio,video</em>)</samp></span></dt>
  1225. <dt><span><samp>bits_per_raw_sample <var>integer</var></samp></span></dt>
  1226. <dt><span><samp>channel_layout <var>integer</var> (<em>decoding/encoding,audio</em>)</samp></span></dt>
  1227. <dd>
  1228. <p>Possible values:
  1229. </p></dd>
  1230. <dt><span><samp>request_channel_layout <var>integer</var> (<em>decoding,audio</em>)</samp></span></dt>
  1231. <dd>
  1232. <p>Possible values:
  1233. </p></dd>
  1234. <dt><span><samp>rc_max_vbv_use <var>float</var> (<em>encoding,video</em>)</samp></span></dt>
  1235. <dt><span><samp>rc_min_vbv_use <var>float</var> (<em>encoding,video</em>)</samp></span></dt>
  1236. <dt><span><samp>ticks_per_frame <var>integer</var> (<em>decoding/encoding,audio,video</em>)</samp></span></dt>
  1237. <dt><span><samp>color_primaries <var>integer</var> (<em>decoding/encoding,video</em>)</samp></span></dt>
  1238. <dd><p>Possible values:
  1239. </p><dl compact="compact">
  1240. <dt><span>&lsquo;<samp>bt709</samp>&rsquo;</span></dt>
  1241. <dd><p>BT.709
  1242. </p></dd>
  1243. <dt><span>&lsquo;<samp>bt470m</samp>&rsquo;</span></dt>
  1244. <dd><p>BT.470 M
  1245. </p></dd>
  1246. <dt><span>&lsquo;<samp>bt470bg</samp>&rsquo;</span></dt>
  1247. <dd><p>BT.470 BG
  1248. </p></dd>
  1249. <dt><span>&lsquo;<samp>smpte170m</samp>&rsquo;</span></dt>
  1250. <dd><p>SMPTE 170 M
  1251. </p></dd>
  1252. <dt><span>&lsquo;<samp>smpte240m</samp>&rsquo;</span></dt>
  1253. <dd><p>SMPTE 240 M
  1254. </p></dd>
  1255. <dt><span>&lsquo;<samp>film</samp>&rsquo;</span></dt>
  1256. <dd><p>Film
  1257. </p></dd>
  1258. <dt><span>&lsquo;<samp>bt2020</samp>&rsquo;</span></dt>
  1259. <dd><p>BT.2020
  1260. </p></dd>
  1261. <dt><span>&lsquo;<samp>smpte428</samp>&rsquo;</span></dt>
  1262. <dt><span>&lsquo;<samp>smpte428_1</samp>&rsquo;</span></dt>
  1263. <dd><p>SMPTE ST 428-1
  1264. </p></dd>
  1265. <dt><span>&lsquo;<samp>smpte431</samp>&rsquo;</span></dt>
  1266. <dd><p>SMPTE 431-2
  1267. </p></dd>
  1268. <dt><span>&lsquo;<samp>smpte432</samp>&rsquo;</span></dt>
  1269. <dd><p>SMPTE 432-1
  1270. </p></dd>
  1271. <dt><span>&lsquo;<samp>jedec-p22</samp>&rsquo;</span></dt>
  1272. <dd><p>JEDEC P22
  1273. </p></dd>
  1274. </dl>
  1275. </dd>
  1276. <dt><span><samp>color_trc <var>integer</var> (<em>decoding/encoding,video</em>)</samp></span></dt>
  1277. <dd><p>Possible values:
  1278. </p><dl compact="compact">
  1279. <dt><span>&lsquo;<samp>bt709</samp>&rsquo;</span></dt>
  1280. <dd><p>BT.709
  1281. </p></dd>
  1282. <dt><span>&lsquo;<samp>gamma22</samp>&rsquo;</span></dt>
  1283. <dd><p>BT.470 M
  1284. </p></dd>
  1285. <dt><span>&lsquo;<samp>gamma28</samp>&rsquo;</span></dt>
  1286. <dd><p>BT.470 BG
  1287. </p></dd>
  1288. <dt><span>&lsquo;<samp>smpte170m</samp>&rsquo;</span></dt>
  1289. <dd><p>SMPTE 170 M
  1290. </p></dd>
  1291. <dt><span>&lsquo;<samp>smpte240m</samp>&rsquo;</span></dt>
  1292. <dd><p>SMPTE 240 M
  1293. </p></dd>
  1294. <dt><span>&lsquo;<samp>linear</samp>&rsquo;</span></dt>
  1295. <dd><p>Linear
  1296. </p></dd>
  1297. <dt><span>&lsquo;<samp>log</samp>&rsquo;</span></dt>
  1298. <dt><span>&lsquo;<samp>log100</samp>&rsquo;</span></dt>
  1299. <dd><p>Log
  1300. </p></dd>
  1301. <dt><span>&lsquo;<samp>log_sqrt</samp>&rsquo;</span></dt>
  1302. <dt><span>&lsquo;<samp>log316</samp>&rsquo;</span></dt>
  1303. <dd><p>Log square root
  1304. </p></dd>
  1305. <dt><span>&lsquo;<samp>iec61966_2_4</samp>&rsquo;</span></dt>
  1306. <dt><span>&lsquo;<samp>iec61966-2-4</samp>&rsquo;</span></dt>
  1307. <dd><p>IEC 61966-2-4
  1308. </p></dd>
  1309. <dt><span>&lsquo;<samp>bt1361</samp>&rsquo;</span></dt>
  1310. <dt><span>&lsquo;<samp>bt1361e</samp>&rsquo;</span></dt>
  1311. <dd><p>BT.1361
  1312. </p></dd>
  1313. <dt><span>&lsquo;<samp>iec61966_2_1</samp>&rsquo;</span></dt>
  1314. <dt><span>&lsquo;<samp>iec61966-2-1</samp>&rsquo;</span></dt>
  1315. <dd><p>IEC 61966-2-1
  1316. </p></dd>
  1317. <dt><span>&lsquo;<samp>bt2020_10</samp>&rsquo;</span></dt>
  1318. <dt><span>&lsquo;<samp>bt2020_10bit</samp>&rsquo;</span></dt>
  1319. <dd><p>BT.2020 - 10 bit
  1320. </p></dd>
  1321. <dt><span>&lsquo;<samp>bt2020_12</samp>&rsquo;</span></dt>
  1322. <dt><span>&lsquo;<samp>bt2020_12bit</samp>&rsquo;</span></dt>
  1323. <dd><p>BT.2020 - 12 bit
  1324. </p></dd>
  1325. <dt><span>&lsquo;<samp>smpte2084</samp>&rsquo;</span></dt>
  1326. <dd><p>SMPTE ST 2084
  1327. </p></dd>
  1328. <dt><span>&lsquo;<samp>smpte428</samp>&rsquo;</span></dt>
  1329. <dt><span>&lsquo;<samp>smpte428_1</samp>&rsquo;</span></dt>
  1330. <dd><p>SMPTE ST 428-1
  1331. </p></dd>
  1332. <dt><span>&lsquo;<samp>arib-std-b67</samp>&rsquo;</span></dt>
  1333. <dd><p>ARIB STD-B67
  1334. </p></dd>
  1335. </dl>
  1336. </dd>
  1337. <dt><span><samp>colorspace <var>integer</var> (<em>decoding/encoding,video</em>)</samp></span></dt>
  1338. <dd><p>Possible values:
  1339. </p><dl compact="compact">
  1340. <dt><span>&lsquo;<samp>rgb</samp>&rsquo;</span></dt>
  1341. <dd><p>RGB
  1342. </p></dd>
  1343. <dt><span>&lsquo;<samp>bt709</samp>&rsquo;</span></dt>
  1344. <dd><p>BT.709
  1345. </p></dd>
  1346. <dt><span>&lsquo;<samp>fcc</samp>&rsquo;</span></dt>
  1347. <dd><p>FCC
  1348. </p></dd>
  1349. <dt><span>&lsquo;<samp>bt470bg</samp>&rsquo;</span></dt>
  1350. <dd><p>BT.470 BG
  1351. </p></dd>
  1352. <dt><span>&lsquo;<samp>smpte170m</samp>&rsquo;</span></dt>
  1353. <dd><p>SMPTE 170 M
  1354. </p></dd>
  1355. <dt><span>&lsquo;<samp>smpte240m</samp>&rsquo;</span></dt>
  1356. <dd><p>SMPTE 240 M
  1357. </p></dd>
  1358. <dt><span>&lsquo;<samp>ycocg</samp>&rsquo;</span></dt>
  1359. <dd><p>YCOCG
  1360. </p></dd>
  1361. <dt><span>&lsquo;<samp>bt2020nc</samp>&rsquo;</span></dt>
  1362. <dt><span>&lsquo;<samp>bt2020_ncl</samp>&rsquo;</span></dt>
  1363. <dd><p>BT.2020 NCL
  1364. </p></dd>
  1365. <dt><span>&lsquo;<samp>bt2020c</samp>&rsquo;</span></dt>
  1366. <dt><span>&lsquo;<samp>bt2020_cl</samp>&rsquo;</span></dt>
  1367. <dd><p>BT.2020 CL
  1368. </p></dd>
  1369. <dt><span>&lsquo;<samp>smpte2085</samp>&rsquo;</span></dt>
  1370. <dd><p>SMPTE 2085
  1371. </p></dd>
  1372. <dt><span>&lsquo;<samp>chroma-derived-nc</samp>&rsquo;</span></dt>
  1373. <dd><p>Chroma-derived NCL
  1374. </p></dd>
  1375. <dt><span>&lsquo;<samp>chroma-derived-c</samp>&rsquo;</span></dt>
  1376. <dd><p>Chroma-derived CL
  1377. </p></dd>
  1378. <dt><span>&lsquo;<samp>ictcp</samp>&rsquo;</span></dt>
  1379. <dd><p>ICtCp
  1380. </p></dd>
  1381. </dl>
  1382. </dd>
  1383. <dt><span><samp>color_range <var>integer</var> (<em>decoding/encoding,video</em>)</samp></span></dt>
  1384. <dd><p>If used as input parameter, it serves as a hint to the decoder, which
  1385. color_range the input has.
  1386. Possible values:
  1387. </p><dl compact="compact">
  1388. <dt><span>&lsquo;<samp>tv</samp>&rsquo;</span></dt>
  1389. <dt><span>&lsquo;<samp>mpeg</samp>&rsquo;</span></dt>
  1390. <dd><p>MPEG (219*2^(n-8))
  1391. </p></dd>
  1392. <dt><span>&lsquo;<samp>pc</samp>&rsquo;</span></dt>
  1393. <dt><span>&lsquo;<samp>jpeg</samp>&rsquo;</span></dt>
  1394. <dd><p>JPEG (2^n-1)
  1395. </p></dd>
  1396. </dl>
  1397. </dd>
  1398. <dt><span><samp>chroma_sample_location <var>integer</var> (<em>decoding/encoding,video</em>)</samp></span></dt>
  1399. <dd><p>Possible values:
  1400. </p><dl compact="compact">
  1401. <dt><span>&lsquo;<samp>left</samp>&rsquo;</span></dt>
  1402. <dt><span>&lsquo;<samp>center</samp>&rsquo;</span></dt>
  1403. <dt><span>&lsquo;<samp>topleft</samp>&rsquo;</span></dt>
  1404. <dt><span>&lsquo;<samp>top</samp>&rsquo;</span></dt>
  1405. <dt><span>&lsquo;<samp>bottomleft</samp>&rsquo;</span></dt>
  1406. <dt><span>&lsquo;<samp>bottom</samp>&rsquo;</span></dt>
  1407. </dl>
  1408. </dd>
  1409. <dt><span><samp>log_level_offset <var>integer</var></samp></span></dt>
  1410. <dd><p>Set the log level offset.
  1411. </p>
  1412. </dd>
  1413. <dt><span><samp>slices <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
  1414. <dd><p>Number of slices, used in parallelized encoding.
  1415. </p>
  1416. </dd>
  1417. <dt><span><samp>thread_type <var>flags</var> (<em>decoding/encoding,video</em>)</samp></span></dt>
  1418. <dd><p>Select which multithreading methods to use.
  1419. </p>
  1420. <p>Use of &lsquo;<samp>frame</samp>&rsquo; will increase decoding delay by one frame per
  1421. thread, so clients which cannot provide future frames should not use
  1422. it.
  1423. </p>
  1424. <p>Possible values:
  1425. </p><dl compact="compact">
  1426. <dt><span>&lsquo;<samp>slice</samp>&rsquo;</span></dt>
  1427. <dd><p>Decode more than one part of a single frame at once.
  1428. </p>
  1429. <p>Multithreading using slices works only when the video was encoded with
  1430. slices.
  1431. </p>
  1432. </dd>
  1433. <dt><span>&lsquo;<samp>frame</samp>&rsquo;</span></dt>
  1434. <dd><p>Decode more than one frame at once.
  1435. </p></dd>
  1436. </dl>
  1437. <p>Default value is &lsquo;<samp>slice+frame</samp>&rsquo;.
  1438. </p>
  1439. </dd>
  1440. <dt><span><samp>audio_service_type <var>integer</var> (<em>encoding,audio</em>)</samp></span></dt>
  1441. <dd><p>Set audio service type.
  1442. </p>
  1443. <p>Possible values:
  1444. </p><dl compact="compact">
  1445. <dt><span>&lsquo;<samp>ma</samp>&rsquo;</span></dt>
  1446. <dd><p>Main Audio Service
  1447. </p></dd>
  1448. <dt><span>&lsquo;<samp>ef</samp>&rsquo;</span></dt>
  1449. <dd><p>Effects
  1450. </p></dd>
  1451. <dt><span>&lsquo;<samp>vi</samp>&rsquo;</span></dt>
  1452. <dd><p>Visually Impaired
  1453. </p></dd>
  1454. <dt><span>&lsquo;<samp>hi</samp>&rsquo;</span></dt>
  1455. <dd><p>Hearing Impaired
  1456. </p></dd>
  1457. <dt><span>&lsquo;<samp>di</samp>&rsquo;</span></dt>
  1458. <dd><p>Dialogue
  1459. </p></dd>
  1460. <dt><span>&lsquo;<samp>co</samp>&rsquo;</span></dt>
  1461. <dd><p>Commentary
  1462. </p></dd>
  1463. <dt><span>&lsquo;<samp>em</samp>&rsquo;</span></dt>
  1464. <dd><p>Emergency
  1465. </p></dd>
  1466. <dt><span>&lsquo;<samp>vo</samp>&rsquo;</span></dt>
  1467. <dd><p>Voice Over
  1468. </p></dd>
  1469. <dt><span>&lsquo;<samp>ka</samp>&rsquo;</span></dt>
  1470. <dd><p>Karaoke
  1471. </p></dd>
  1472. </dl>
  1473. </dd>
  1474. <dt><span><samp>request_sample_fmt <var>sample_fmt</var> (<em>decoding,audio</em>)</samp></span></dt>
  1475. <dd><p>Set sample format audio decoders should prefer. Default value is
  1476. <code>none</code>.
  1477. </p>
  1478. </dd>
  1479. <dt><span><samp>pkt_timebase <var>rational number</var></samp></span></dt>
  1480. <dt><span><samp>sub_charenc <var>encoding</var> (<em>decoding,subtitles</em>)</samp></span></dt>
  1481. <dd><p>Set the input subtitles character encoding.
  1482. </p>
  1483. </dd>
  1484. <dt><span><samp>field_order <var>field_order</var> (<em>video</em>)</samp></span></dt>
  1485. <dd><p>Set/override the field order of the video.
  1486. Possible values:
  1487. </p><dl compact="compact">
  1488. <dt><span>&lsquo;<samp>progressive</samp>&rsquo;</span></dt>
  1489. <dd><p>Progressive video
  1490. </p></dd>
  1491. <dt><span>&lsquo;<samp>tt</samp>&rsquo;</span></dt>
  1492. <dd><p>Interlaced video, top field coded and displayed first
  1493. </p></dd>
  1494. <dt><span>&lsquo;<samp>bb</samp>&rsquo;</span></dt>
  1495. <dd><p>Interlaced video, bottom field coded and displayed first
  1496. </p></dd>
  1497. <dt><span>&lsquo;<samp>tb</samp>&rsquo;</span></dt>
  1498. <dd><p>Interlaced video, top coded first, bottom displayed first
  1499. </p></dd>
  1500. <dt><span>&lsquo;<samp>bt</samp>&rsquo;</span></dt>
  1501. <dd><p>Interlaced video, bottom coded first, top displayed first
  1502. </p></dd>
  1503. </dl>
  1504. </dd>
  1505. <dt><span><samp>skip_alpha <var>bool</var> (<em>decoding,video</em>)</samp></span></dt>
  1506. <dd><p>Set to 1 to disable processing alpha (transparency). This works like the
  1507. &lsquo;<samp>gray</samp>&rsquo; flag in the <samp>flags</samp> option which skips chroma information
  1508. instead of alpha. Default is 0.
  1509. </p>
  1510. </dd>
  1511. <dt><span><samp>codec_whitelist <var>list</var> (<em>input</em>)</samp></span></dt>
  1512. <dd><p>&quot;,&quot; separated list of allowed decoders. By default all are allowed.
  1513. </p>
  1514. </dd>
  1515. <dt><span><samp>dump_separator <var>string</var> (<em>input</em>)</samp></span></dt>
  1516. <dd><p>Separator used to separate the fields printed on the command line about the
  1517. Stream parameters.
  1518. For example, to separate the fields with newlines and indentation:
  1519. </p><div class="example">
  1520. <pre class="example">ffprobe -dump_separator &quot;
  1521. &quot; -i ~/videos/matrixbench_mpeg2.mpg
  1522. </pre></div>
  1523. </dd>
  1524. <dt><span><samp>max_pixels <var>integer</var> (<em>decoding/encoding,video</em>)</samp></span></dt>
  1525. <dd><p>Maximum number of pixels per image. This value can be used to avoid out of
  1526. memory failures due to large images.
  1527. </p>
  1528. </dd>
  1529. <dt><span><samp>apply_cropping <var>bool</var> (<em>decoding,video</em>)</samp></span></dt>
  1530. <dd><p>Enable cropping if cropping parameters are multiples of the required
  1531. alignment for the left and top parameters. If the alignment is not met the
  1532. cropping will be partially applied to maintain alignment.
  1533. Default is 1 (enabled).
  1534. Note: The required alignment depends on if <code>AV_CODEC_FLAG_UNALIGNED</code> is set and the
  1535. CPU. <code>AV_CODEC_FLAG_UNALIGNED</code> cannot be changed from the command line. Also hardware
  1536. decoders will not apply left/top Cropping.
  1537. </p>
  1538. </dd>
  1539. </dl>
  1540. <a name="Decoders"></a>
  1541. <h2 class="chapter">3 Decoders<span class="pull-right"><a class="anchor hidden-xs" href="#Decoders" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Decoders" aria-hidden="true">TOC</a></span></h2>
  1542. <p>Decoders are configured elements in FFmpeg which allow the decoding of
  1543. multimedia streams.
  1544. </p>
  1545. <p>When you configure your FFmpeg build, all the supported native decoders
  1546. are enabled by default. Decoders requiring an external library must be enabled
  1547. manually via the corresponding <code>--enable-lib</code> option. You can list all
  1548. available decoders using the configure option <code>--list-decoders</code>.
  1549. </p>
  1550. <p>You can disable all the decoders with the configure option
  1551. <code>--disable-decoders</code> and selectively enable / disable single decoders
  1552. with the options <code>--enable-decoder=<var>DECODER</var></code> /
  1553. <code>--disable-decoder=<var>DECODER</var></code>.
  1554. </p>
  1555. <p>The option <code>-decoders</code> of the ff* tools will display the list of
  1556. enabled decoders.
  1557. </p>
  1558. <a name="Video-Decoders"></a>
  1559. <h2 class="chapter">4 Video Decoders<span class="pull-right"><a class="anchor hidden-xs" href="#Video-Decoders" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Video-Decoders" aria-hidden="true">TOC</a></span></h2>
  1560. <p>A description of some of the currently available video decoders
  1561. follows.
  1562. </p>
  1563. <a name="av1"></a>
  1564. <h3 class="section">4.1 av1<span class="pull-right"><a class="anchor hidden-xs" href="#av1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-av1" aria-hidden="true">TOC</a></span></h3>
  1565. <p>AOMedia Video 1 (AV1) decoder.
  1566. </p>
  1567. <a name="Options"></a>
  1568. <h4 class="subsection">4.1.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options" aria-hidden="true">TOC</a></span></h4>
  1569. <dl compact="compact">
  1570. <dt><span><samp>operating_point</samp></span></dt>
  1571. <dd><p>Select an operating point of a scalable AV1 bitstream (0 - 31). Default is 0.
  1572. </p>
  1573. </dd>
  1574. </dl>
  1575. <a name="rawvideo"></a>
  1576. <h3 class="section">4.2 rawvideo<span class="pull-right"><a class="anchor hidden-xs" href="#rawvideo" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-rawvideo" aria-hidden="true">TOC</a></span></h3>
  1577. <p>Raw video decoder.
  1578. </p>
  1579. <p>This decoder decodes rawvideo streams.
  1580. </p>
  1581. <a name="Options-1"></a>
  1582. <h4 class="subsection">4.2.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-1" aria-hidden="true">TOC</a></span></h4>
  1583. <dl compact="compact">
  1584. <dt><span><samp>top <var>top_field_first</var></samp></span></dt>
  1585. <dd><p>Specify the assumed field type of the input video.
  1586. </p><dl compact="compact">
  1587. <dt><span><samp>-1</samp></span></dt>
  1588. <dd><p>the video is assumed to be progressive (default)
  1589. </p></dd>
  1590. <dt><span><samp>0</samp></span></dt>
  1591. <dd><p>bottom-field-first is assumed
  1592. </p></dd>
  1593. <dt><span><samp>1</samp></span></dt>
  1594. <dd><p>top-field-first is assumed
  1595. </p></dd>
  1596. </dl>
  1597. </dd>
  1598. </dl>
  1599. <a name="libdav1d"></a>
  1600. <h3 class="section">4.3 libdav1d<span class="pull-right"><a class="anchor hidden-xs" href="#libdav1d" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libdav1d" aria-hidden="true">TOC</a></span></h3>
  1601. <p>dav1d AV1 decoder.
  1602. </p>
  1603. <p>libdav1d allows libavcodec to decode the AOMedia Video 1 (AV1) codec.
  1604. Requires the presence of the libdav1d headers and library during configuration.
  1605. You need to explicitly configure the build with <code>--enable-libdav1d</code>.
  1606. </p>
  1607. <a name="Options-2"></a>
  1608. <h4 class="subsection">4.3.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-2" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-2" aria-hidden="true">TOC</a></span></h4>
  1609. <p>The following options are supported by the libdav1d wrapper.
  1610. </p>
  1611. <dl compact="compact">
  1612. <dt><span><samp>framethreads</samp></span></dt>
  1613. <dd><p>Set amount of frame threads to use during decoding. The default value is 0 (autodetect).
  1614. This option is deprecated for libdav1d &gt;= 1.0 and will be removed in the future. Use the
  1615. option <code>max_frame_delay</code> and the global option <code>threads</code> instead.
  1616. </p>
  1617. </dd>
  1618. <dt><span><samp>tilethreads</samp></span></dt>
  1619. <dd><p>Set amount of tile threads to use during decoding. The default value is 0 (autodetect).
  1620. This option is deprecated for libdav1d &gt;= 1.0 and will be removed in the future. Use the
  1621. global option <code>threads</code> instead.
  1622. </p>
  1623. </dd>
  1624. <dt><span><samp>max_frame_delay</samp></span></dt>
  1625. <dd><p>Set max amount of frames the decoder may buffer internally. The default value is 0
  1626. (autodetect).
  1627. </p>
  1628. </dd>
  1629. <dt><span><samp>filmgrain</samp></span></dt>
  1630. <dd><p>Apply film grain to the decoded video if present in the bitstream. Defaults to the
  1631. internal default of the library.
  1632. This option is deprecated and will be removed in the future. See the global option
  1633. <code>export_side_data</code> to export Film Grain parameters instead of applying it.
  1634. </p>
  1635. </dd>
  1636. <dt><span><samp>oppoint</samp></span></dt>
  1637. <dd><p>Select an operating point of a scalable AV1 bitstream (0 - 31). Defaults to the
  1638. internal default of the library.
  1639. </p>
  1640. </dd>
  1641. <dt><span><samp>alllayers</samp></span></dt>
  1642. <dd><p>Output all spatial layers of a scalable AV1 bitstream. The default value is false.
  1643. </p>
  1644. </dd>
  1645. </dl>
  1646. <a name="libdavs2"></a>
  1647. <h3 class="section">4.4 libdavs2<span class="pull-right"><a class="anchor hidden-xs" href="#libdavs2" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libdavs2" aria-hidden="true">TOC</a></span></h3>
  1648. <p>AVS2-P2/IEEE1857.4 video decoder wrapper.
  1649. </p>
  1650. <p>This decoder allows libavcodec to decode AVS2 streams with davs2 library.
  1651. </p>
  1652. <a name="libuavs3d"></a>
  1653. <h3 class="section">4.5 libuavs3d<span class="pull-right"><a class="anchor hidden-xs" href="#libuavs3d" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libuavs3d" aria-hidden="true">TOC</a></span></h3>
  1654. <p>AVS3-P2/IEEE1857.10 video decoder.
  1655. </p>
  1656. <p>libuavs3d allows libavcodec to decode AVS3 streams.
  1657. Requires the presence of the libuavs3d headers and library during configuration.
  1658. You need to explicitly configure the build with <code>--enable-libuavs3d</code>.
  1659. </p>
  1660. <a name="Options-3"></a>
  1661. <h4 class="subsection">4.5.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-3" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-3" aria-hidden="true">TOC</a></span></h4>
  1662. <p>The following option is supported by the libuavs3d wrapper.
  1663. </p>
  1664. <dl compact="compact">
  1665. <dt><span><samp>frame_threads</samp></span></dt>
  1666. <dd><p>Set amount of frame threads to use during decoding. The default value is 0 (autodetect).
  1667. </p>
  1668. </dd>
  1669. </dl>
  1670. <a name="QSV-Decoders"></a>
  1671. <h3 class="section">4.6 QSV Decoders<span class="pull-right"><a class="anchor hidden-xs" href="#QSV-Decoders" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-QSV-Decoders" aria-hidden="true">TOC</a></span></h3>
  1672. <p>The family of Intel QuickSync Video decoders (VC1, MPEG-2, H.264, HEVC,
  1673. JPEG/MJPEG, VP8, VP9, AV1).
  1674. </p>
  1675. <a name="Common-Options"></a>
  1676. <h4 class="subsection">4.6.1 Common Options<span class="pull-right"><a class="anchor hidden-xs" href="#Common-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Common-Options" aria-hidden="true">TOC</a></span></h4>
  1677. <p>The following options are supported by all qsv decoders.
  1678. </p>
  1679. <dl compact="compact">
  1680. <dt><span><samp><var>async_depth</var></samp></span></dt>
  1681. <dd><p>Internal parallelization depth, the higher the value the higher the latency.
  1682. </p>
  1683. </dd>
  1684. <dt><span><samp><var>gpu_copy</var></samp></span></dt>
  1685. <dd><p>A GPU-accelerated copy between video and system memory
  1686. </p><dl compact="compact">
  1687. <dt><span>&lsquo;<samp>default</samp>&rsquo;</span></dt>
  1688. <dt><span>&lsquo;<samp>on</samp>&rsquo;</span></dt>
  1689. <dt><span>&lsquo;<samp>off</samp>&rsquo;</span></dt>
  1690. </dl>
  1691. </dd>
  1692. </dl>
  1693. <a name="HEVC-Options"></a>
  1694. <h4 class="subsection">4.6.2 HEVC Options<span class="pull-right"><a class="anchor hidden-xs" href="#HEVC-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-HEVC-Options" aria-hidden="true">TOC</a></span></h4>
  1695. <p>Extra options for hevc_qsv.
  1696. </p>
  1697. <dl compact="compact">
  1698. <dt><span><samp><var>load_plugin</var></samp></span></dt>
  1699. <dd><p>A user plugin to load in an internal session
  1700. </p><dl compact="compact">
  1701. <dt><span>&lsquo;<samp>none</samp>&rsquo;</span></dt>
  1702. <dt><span>&lsquo;<samp>hevc_sw</samp>&rsquo;</span></dt>
  1703. <dt><span>&lsquo;<samp>hevc_hw</samp>&rsquo;</span></dt>
  1704. </dl>
  1705. </dd>
  1706. <dt><span><samp><var>load_plugins</var></samp></span></dt>
  1707. <dd><p>A :-separate list of hexadecimal plugin UIDs to load in an internal session
  1708. </p>
  1709. </dd>
  1710. </dl>
  1711. <a name="v210"></a>
  1712. <h3 class="section">4.7 v210<span class="pull-right"><a class="anchor hidden-xs" href="#v210" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-v210" aria-hidden="true">TOC</a></span></h3>
  1713. <p>Uncompressed 4:2:2 10-bit decoder.
  1714. </p>
  1715. <a name="Options-4"></a>
  1716. <h4 class="subsection">4.7.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-4" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-4" aria-hidden="true">TOC</a></span></h4>
  1717. <dl compact="compact">
  1718. <dt><span><samp>custom_stride</samp></span></dt>
  1719. <dd><p>Set the line size of the v210 data in bytes. The default value is 0
  1720. (autodetect). You can use the special -1 value for a strideless v210 as seen in
  1721. BOXX files.
  1722. </p>
  1723. </dd>
  1724. </dl>
  1725. <a name="Audio-Decoders"></a>
  1726. <h2 class="chapter">5 Audio Decoders<span class="pull-right"><a class="anchor hidden-xs" href="#Audio-Decoders" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Audio-Decoders" aria-hidden="true">TOC</a></span></h2>
  1727. <p>A description of some of the currently available audio decoders
  1728. follows.
  1729. </p>
  1730. <a name="ac3"></a>
  1731. <h3 class="section">5.1 ac3<span class="pull-right"><a class="anchor hidden-xs" href="#ac3" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-ac3" aria-hidden="true">TOC</a></span></h3>
  1732. <p>AC-3 audio decoder.
  1733. </p>
  1734. <p>This decoder implements part of ATSC A/52:2010 and ETSI TS 102 366, as well as
  1735. the undocumented RealAudio 3 (a.k.a. dnet).
  1736. </p>
  1737. <a name="AC_002d3-Decoder-Options"></a>
  1738. <h4 class="subsection">5.1.1 AC-3 Decoder Options<span class="pull-right"><a class="anchor hidden-xs" href="#AC_002d3-Decoder-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-AC_002d3-Decoder-Options" aria-hidden="true">TOC</a></span></h4>
  1739. <dl compact="compact">
  1740. <dt><span><samp>-drc_scale <var>value</var></samp></span></dt>
  1741. <dd><p>Dynamic Range Scale Factor. The factor to apply to dynamic range values
  1742. from the AC-3 stream. This factor is applied exponentially. The default value is 1.
  1743. There are 3 notable scale factor ranges:
  1744. </p><dl compact="compact">
  1745. <dt><span><samp>drc_scale == 0</samp></span></dt>
  1746. <dd><p>DRC disabled. Produces full range audio.
  1747. </p></dd>
  1748. <dt><span><samp>0 &lt; drc_scale &lt;= 1</samp></span></dt>
  1749. <dd><p>DRC enabled. Applies a fraction of the stream DRC value.
  1750. Audio reproduction is between full range and full compression.
  1751. </p></dd>
  1752. <dt><span><samp>drc_scale &gt; 1</samp></span></dt>
  1753. <dd><p>DRC enabled. Applies drc_scale asymmetrically.
  1754. Loud sounds are fully compressed. Soft sounds are enhanced.
  1755. </p></dd>
  1756. </dl>
  1757. </dd>
  1758. </dl>
  1759. <a name="flac-1"></a>
  1760. <h3 class="section">5.2 flac<span class="pull-right"><a class="anchor hidden-xs" href="#flac-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-flac-1" aria-hidden="true">TOC</a></span></h3>
  1761. <p>FLAC audio decoder.
  1762. </p>
  1763. <p>This decoder aims to implement the complete FLAC specification from Xiph.
  1764. </p>
  1765. <a name="FLAC-Decoder-options"></a>
  1766. <h4 class="subsection">5.2.1 FLAC Decoder options<span class="pull-right"><a class="anchor hidden-xs" href="#FLAC-Decoder-options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-FLAC-Decoder-options" aria-hidden="true">TOC</a></span></h4>
  1767. <dl compact="compact">
  1768. <dt><span><samp>-use_buggy_lpc</samp></span></dt>
  1769. <dd><p>The lavc FLAC encoder used to produce buggy streams with high lpc values
  1770. (like the default value). This option makes it possible to decode such streams
  1771. correctly by using lavc&rsquo;s old buggy lpc logic for decoding.
  1772. </p>
  1773. </dd>
  1774. </dl>
  1775. <a name="ffwavesynth"></a>
  1776. <h3 class="section">5.3 ffwavesynth<span class="pull-right"><a class="anchor hidden-xs" href="#ffwavesynth" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-ffwavesynth" aria-hidden="true">TOC</a></span></h3>
  1777. <p>Internal wave synthesizer.
  1778. </p>
  1779. <p>This decoder generates wave patterns according to predefined sequences. Its
  1780. use is purely internal and the format of the data it accepts is not publicly
  1781. documented.
  1782. </p>
  1783. <a name="libcelt"></a>
  1784. <h3 class="section">5.4 libcelt<span class="pull-right"><a class="anchor hidden-xs" href="#libcelt" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libcelt" aria-hidden="true">TOC</a></span></h3>
  1785. <p>libcelt decoder wrapper.
  1786. </p>
  1787. <p>libcelt allows libavcodec to decode the Xiph CELT ultra-low delay audio codec.
  1788. Requires the presence of the libcelt headers and library during configuration.
  1789. You need to explicitly configure the build with <code>--enable-libcelt</code>.
  1790. </p>
  1791. <a name="libgsm"></a>
  1792. <h3 class="section">5.5 libgsm<span class="pull-right"><a class="anchor hidden-xs" href="#libgsm" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libgsm" aria-hidden="true">TOC</a></span></h3>
  1793. <p>libgsm decoder wrapper.
  1794. </p>
  1795. <p>libgsm allows libavcodec to decode the GSM full rate audio codec. Requires
  1796. the presence of the libgsm headers and library during configuration. You need
  1797. to explicitly configure the build with <code>--enable-libgsm</code>.
  1798. </p>
  1799. <p>This decoder supports both the ordinary GSM and the Microsoft variant.
  1800. </p>
  1801. <a name="libilbc"></a>
  1802. <h3 class="section">5.6 libilbc<span class="pull-right"><a class="anchor hidden-xs" href="#libilbc" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libilbc" aria-hidden="true">TOC</a></span></h3>
  1803. <p>libilbc decoder wrapper.
  1804. </p>
  1805. <p>libilbc allows libavcodec to decode the Internet Low Bitrate Codec (iLBC)
  1806. audio codec. Requires the presence of the libilbc headers and library during
  1807. configuration. You need to explicitly configure the build with
  1808. <code>--enable-libilbc</code>.
  1809. </p>
  1810. <a name="Options-5"></a>
  1811. <h4 class="subsection">5.6.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-5" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-5" aria-hidden="true">TOC</a></span></h4>
  1812. <p>The following option is supported by the libilbc wrapper.
  1813. </p>
  1814. <dl compact="compact">
  1815. <dt><span><samp>enhance</samp></span></dt>
  1816. <dd>
  1817. <p>Enable the enhancement of the decoded audio when set to 1. The default
  1818. value is 0 (disabled).
  1819. </p>
  1820. </dd>
  1821. </dl>
  1822. <a name="libopencore_002damrnb"></a>
  1823. <h3 class="section">5.7 libopencore-amrnb<span class="pull-right"><a class="anchor hidden-xs" href="#libopencore_002damrnb" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libopencore_002damrnb" aria-hidden="true">TOC</a></span></h3>
  1824. <p>libopencore-amrnb decoder wrapper.
  1825. </p>
  1826. <p>libopencore-amrnb allows libavcodec to decode the Adaptive Multi-Rate
  1827. Narrowband audio codec. Using it requires the presence of the
  1828. libopencore-amrnb headers and library during configuration. You need to
  1829. explicitly configure the build with <code>--enable-libopencore-amrnb</code>.
  1830. </p>
  1831. <p>An FFmpeg native decoder for AMR-NB exists, so users can decode AMR-NB
  1832. without this library.
  1833. </p>
  1834. <a name="libopencore_002damrwb"></a>
  1835. <h3 class="section">5.8 libopencore-amrwb<span class="pull-right"><a class="anchor hidden-xs" href="#libopencore_002damrwb" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libopencore_002damrwb" aria-hidden="true">TOC</a></span></h3>
  1836. <p>libopencore-amrwb decoder wrapper.
  1837. </p>
  1838. <p>libopencore-amrwb allows libavcodec to decode the Adaptive Multi-Rate
  1839. Wideband audio codec. Using it requires the presence of the
  1840. libopencore-amrwb headers and library during configuration. You need to
  1841. explicitly configure the build with <code>--enable-libopencore-amrwb</code>.
  1842. </p>
  1843. <p>An FFmpeg native decoder for AMR-WB exists, so users can decode AMR-WB
  1844. without this library.
  1845. </p>
  1846. <a name="libopus"></a>
  1847. <h3 class="section">5.9 libopus<span class="pull-right"><a class="anchor hidden-xs" href="#libopus" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libopus" aria-hidden="true">TOC</a></span></h3>
  1848. <p>libopus decoder wrapper.
  1849. </p>
  1850. <p>libopus allows libavcodec to decode the Opus Interactive Audio Codec.
  1851. Requires the presence of the libopus headers and library during
  1852. configuration. You need to explicitly configure the build with
  1853. <code>--enable-libopus</code>.
  1854. </p>
  1855. <p>An FFmpeg native decoder for Opus exists, so users can decode Opus
  1856. without this library.
  1857. </p>
  1858. <a name="Subtitles-Decoders"></a>
  1859. <h2 class="chapter">6 Subtitles Decoders<span class="pull-right"><a class="anchor hidden-xs" href="#Subtitles-Decoders" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Subtitles-Decoders" aria-hidden="true">TOC</a></span></h2>
  1860. <a name="libaribb24"></a>
  1861. <h3 class="section">6.1 libaribb24<span class="pull-right"><a class="anchor hidden-xs" href="#libaribb24" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libaribb24" aria-hidden="true">TOC</a></span></h3>
  1862. <p>ARIB STD-B24 caption decoder.
  1863. </p>
  1864. <p>Implements profiles A and C of the ARIB STD-B24 standard.
  1865. </p>
  1866. <a name="libaribb24-Decoder-Options"></a>
  1867. <h4 class="subsection">6.1.1 libaribb24 Decoder Options<span class="pull-right"><a class="anchor hidden-xs" href="#libaribb24-Decoder-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libaribb24-Decoder-Options" aria-hidden="true">TOC</a></span></h4>
  1868. <dl compact="compact">
  1869. <dt><span><samp>-aribb24-base-path <var>path</var></samp></span></dt>
  1870. <dd><p>Sets the base path for the libaribb24 library. This is utilized for reading of
  1871. configuration files (for custom unicode conversions), and for dumping of
  1872. non-text symbols as images under that location.
  1873. </p>
  1874. <p>Unset by default.
  1875. </p>
  1876. </dd>
  1877. <dt><span><samp>-aribb24-skip-ruby-text <var>boolean</var></samp></span></dt>
  1878. <dd><p>Tells the decoder wrapper to skip text blocks that contain half-height ruby
  1879. text.
  1880. </p>
  1881. <p>Enabled by default.
  1882. </p>
  1883. </dd>
  1884. </dl>
  1885. <a name="dvbsub"></a>
  1886. <h3 class="section">6.2 dvbsub<span class="pull-right"><a class="anchor hidden-xs" href="#dvbsub" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-dvbsub" aria-hidden="true">TOC</a></span></h3>
  1887. <a name="Options-6"></a>
  1888. <h4 class="subsection">6.2.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-6" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-6" aria-hidden="true">TOC</a></span></h4>
  1889. <dl compact="compact">
  1890. <dt><span><samp>compute_clut</samp></span></dt>
  1891. <dd><dl compact="compact">
  1892. <dt><span><samp>-2</samp></span></dt>
  1893. <dd><p>Compute clut once if no matching CLUT is in the stream.
  1894. </p></dd>
  1895. <dt><span><samp>-1</samp></span></dt>
  1896. <dd><p>Compute clut if no matching CLUT is in the stream.
  1897. </p></dd>
  1898. <dt><span><samp>0</samp></span></dt>
  1899. <dd><p>Never compute CLUT
  1900. </p></dd>
  1901. <dt><span><samp>1</samp></span></dt>
  1902. <dd><p>Always compute CLUT and override the one provided in the stream.
  1903. </p></dd>
  1904. </dl>
  1905. </dd>
  1906. <dt><span><samp>dvb_substream</samp></span></dt>
  1907. <dd><p>Selects the dvb substream, or all substreams if -1 which is default.
  1908. </p>
  1909. </dd>
  1910. </dl>
  1911. <a name="dvdsub"></a>
  1912. <h3 class="section">6.3 dvdsub<span class="pull-right"><a class="anchor hidden-xs" href="#dvdsub" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-dvdsub" aria-hidden="true">TOC</a></span></h3>
  1913. <p>This codec decodes the bitmap subtitles used in DVDs; the same subtitles can
  1914. also be found in VobSub file pairs and in some Matroska files.
  1915. </p>
  1916. <a name="Options-7"></a>
  1917. <h4 class="subsection">6.3.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-7" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-7" aria-hidden="true">TOC</a></span></h4>
  1918. <dl compact="compact">
  1919. <dt><span><samp>palette</samp></span></dt>
  1920. <dd><p>Specify the global palette used by the bitmaps. When stored in VobSub, the
  1921. palette is normally specified in the index file; in Matroska, the palette is
  1922. stored in the codec extra-data in the same format as in VobSub. In DVDs, the
  1923. palette is stored in the IFO file, and therefore not available when reading
  1924. from dumped VOB files.
  1925. </p>
  1926. <p>The format for this option is a string containing 16 24-bits hexadecimal
  1927. numbers (without 0x prefix) separated by commas, for example <code>0d00ee,
  1928. ee450d, 101010, eaeaea, 0ce60b, ec14ed, ebff0b, 0d617a, 7b7b7b, d1d1d1,
  1929. 7b2a0e, 0d950c, 0f007b, cf0dec, cfa80c, 7c127b</code>.
  1930. </p>
  1931. </dd>
  1932. <dt><span><samp>ifo_palette</samp></span></dt>
  1933. <dd><p>Specify the IFO file from which the global palette is obtained.
  1934. (experimental)
  1935. </p>
  1936. </dd>
  1937. <dt><span><samp>forced_subs_only</samp></span></dt>
  1938. <dd><p>Only decode subtitle entries marked as forced. Some titles have forced
  1939. and non-forced subtitles in the same track. Setting this flag to <code>1</code>
  1940. will only keep the forced subtitles. Default value is <code>0</code>.
  1941. </p></dd>
  1942. </dl>
  1943. <a name="libzvbi_002dteletext"></a>
  1944. <h3 class="section">6.4 libzvbi-teletext<span class="pull-right"><a class="anchor hidden-xs" href="#libzvbi_002dteletext" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libzvbi_002dteletext" aria-hidden="true">TOC</a></span></h3>
  1945. <p>Libzvbi allows libavcodec to decode DVB teletext pages and DVB teletext
  1946. subtitles. Requires the presence of the libzvbi headers and library during
  1947. configuration. You need to explicitly configure the build with
  1948. <code>--enable-libzvbi</code>.
  1949. </p>
  1950. <a name="Options-8"></a>
  1951. <h4 class="subsection">6.4.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-8" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-8" aria-hidden="true">TOC</a></span></h4>
  1952. <dl compact="compact">
  1953. <dt><span><samp>txt_page</samp></span></dt>
  1954. <dd><p>List of teletext page numbers to decode. Pages that do not match the specified
  1955. list are dropped. You may use the special <code>*</code> string to match all pages,
  1956. or <code>subtitle</code> to match all subtitle pages.
  1957. Default value is *.
  1958. </p></dd>
  1959. <dt><span><samp>txt_default_region</samp></span></dt>
  1960. <dd><p>Set default character set used for decoding, a value between 0 and 87 (see
  1961. ETS 300 706, Section 15, Table 32). Default value is -1, which does not
  1962. override the libzvbi default. This option is needed for some legacy level 1.0
  1963. transmissions which cannot signal the proper charset.
  1964. </p></dd>
  1965. <dt><span><samp>txt_chop_top</samp></span></dt>
  1966. <dd><p>Discards the top teletext line. Default value is 1.
  1967. </p></dd>
  1968. <dt><span><samp>txt_format</samp></span></dt>
  1969. <dd><p>Specifies the format of the decoded subtitles.
  1970. </p><dl compact="compact">
  1971. <dt><span><samp>bitmap</samp></span></dt>
  1972. <dd><p>The default format, you should use this for teletext pages, because certain
  1973. graphics and colors cannot be expressed in simple text or even ASS.
  1974. </p></dd>
  1975. <dt><span><samp>text</samp></span></dt>
  1976. <dd><p>Simple text based output without formatting.
  1977. </p></dd>
  1978. <dt><span><samp>ass</samp></span></dt>
  1979. <dd><p>Formatted ASS output, subtitle pages and teletext pages are returned in
  1980. different styles, subtitle pages are stripped down to text, but an effort is
  1981. made to keep the text alignment and the formatting.
  1982. </p></dd>
  1983. </dl>
  1984. </dd>
  1985. <dt><span><samp>txt_left</samp></span></dt>
  1986. <dd><p>X offset of generated bitmaps, default is 0.
  1987. </p></dd>
  1988. <dt><span><samp>txt_top</samp></span></dt>
  1989. <dd><p>Y offset of generated bitmaps, default is 0.
  1990. </p></dd>
  1991. <dt><span><samp>txt_chop_spaces</samp></span></dt>
  1992. <dd><p>Chops leading and trailing spaces and removes empty lines from the generated
  1993. text. This option is useful for teletext based subtitles where empty spaces may
  1994. be present at the start or at the end of the lines or empty lines may be
  1995. present between the subtitle lines because of double-sized teletext characters.
  1996. Default value is 1.
  1997. </p></dd>
  1998. <dt><span><samp>txt_duration</samp></span></dt>
  1999. <dd><p>Sets the display duration of the decoded teletext pages or subtitles in
  2000. milliseconds. Default value is -1 which means infinity or until the next
  2001. subtitle event comes.
  2002. </p></dd>
  2003. <dt><span><samp>txt_transparent</samp></span></dt>
  2004. <dd><p>Force transparent background of the generated teletext bitmaps. Default value
  2005. is 0 which means an opaque background.
  2006. </p></dd>
  2007. <dt><span><samp>txt_opacity</samp></span></dt>
  2008. <dd><p>Sets the opacity (0-255) of the teletext background. If
  2009. <samp>txt_transparent</samp> is not set, it only affects characters between a start
  2010. box and an end box, typically subtitles. Default value is 0 if
  2011. <samp>txt_transparent</samp> is set, 255 otherwise.
  2012. </p>
  2013. </dd>
  2014. </dl>
  2015. <a name="Encoders"></a>
  2016. <h2 class="chapter">7 Encoders<span class="pull-right"><a class="anchor hidden-xs" href="#Encoders" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Encoders" aria-hidden="true">TOC</a></span></h2>
  2017. <p>Encoders are configured elements in FFmpeg which allow the encoding of
  2018. multimedia streams.
  2019. </p>
  2020. <p>When you configure your FFmpeg build, all the supported native encoders
  2021. are enabled by default. Encoders requiring an external library must be enabled
  2022. manually via the corresponding <code>--enable-lib</code> option. You can list all
  2023. available encoders using the configure option <code>--list-encoders</code>.
  2024. </p>
  2025. <p>You can disable all the encoders with the configure option
  2026. <code>--disable-encoders</code> and selectively enable / disable single encoders
  2027. with the options <code>--enable-encoder=<var>ENCODER</var></code> /
  2028. <code>--disable-encoder=<var>ENCODER</var></code>.
  2029. </p>
  2030. <p>The option <code>-encoders</code> of the ff* tools will display the list of
  2031. enabled encoders.
  2032. </p>
  2033. <a name="Audio-Encoders"></a>
  2034. <h2 class="chapter">8 Audio Encoders<span class="pull-right"><a class="anchor hidden-xs" href="#Audio-Encoders" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Audio-Encoders" aria-hidden="true">TOC</a></span></h2>
  2035. <p>A description of some of the currently available audio encoders
  2036. follows.
  2037. </p>
  2038. <span id="aacenc"></span><a name="aac"></a>
  2039. <h3 class="section">8.1 aac<span class="pull-right"><a class="anchor hidden-xs" href="#aac" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-aac" aria-hidden="true">TOC</a></span></h3>
  2040. <p>Advanced Audio Coding (AAC) encoder.
  2041. </p>
  2042. <p>This encoder is the default AAC encoder, natively implemented into FFmpeg.
  2043. </p>
  2044. <a name="Options-9"></a>
  2045. <h4 class="subsection">8.1.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-9" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-9" aria-hidden="true">TOC</a></span></h4>
  2046. <dl compact="compact">
  2047. <dt><span><samp>b</samp></span></dt>
  2048. <dd><p>Set bit rate in bits/s. Setting this automatically activates constant bit rate
  2049. (CBR) mode. If this option is unspecified it is set to 128kbps.
  2050. </p>
  2051. </dd>
  2052. <dt><span><samp>q</samp></span></dt>
  2053. <dd><p>Set quality for variable bit rate (VBR) mode. This option is valid only using
  2054. the <code>ffmpeg</code> command-line tool. For library interface users, use
  2055. <samp>global_quality</samp>.
  2056. </p>
  2057. </dd>
  2058. <dt><span><samp>cutoff</samp></span></dt>
  2059. <dd><p>Set cutoff frequency. If unspecified will allow the encoder to dynamically
  2060. adjust the cutoff to improve clarity on low bitrates.
  2061. </p>
  2062. </dd>
  2063. <dt><span><samp>aac_coder</samp></span></dt>
  2064. <dd><p>Set AAC encoder coding method. Possible values:
  2065. </p>
  2066. <dl compact="compact">
  2067. <dt><span>&lsquo;<samp>twoloop</samp>&rsquo;</span></dt>
  2068. <dd><p>Two loop searching (TLS) method. This is the default method.
  2069. </p>
  2070. <p>This method first sets quantizers depending on band thresholds and then tries
  2071. to find an optimal combination by adding or subtracting a specific value from
  2072. all quantizers and adjusting some individual quantizer a little. Will tune
  2073. itself based on whether <samp>aac_is</samp>, <samp>aac_ms</samp> and <samp>aac_pns</samp>
  2074. are enabled.
  2075. </p>
  2076. </dd>
  2077. <dt><span>&lsquo;<samp>anmr</samp>&rsquo;</span></dt>
  2078. <dd><p>Average noise to mask ratio (ANMR) trellis-based solution.
  2079. </p>
  2080. <p>This is an experimental coder which currently produces a lower quality, is more
  2081. unstable and is slower than the default twoloop coder but has potential.
  2082. Currently has no support for the <samp>aac_is</samp> or <samp>aac_pns</samp> options.
  2083. Not currently recommended.
  2084. </p>
  2085. </dd>
  2086. <dt><span>&lsquo;<samp>fast</samp>&rsquo;</span></dt>
  2087. <dd><p>Constant quantizer method.
  2088. </p>
  2089. <p>Uses a cheaper version of twoloop algorithm that doesn&rsquo;t try to do as many
  2090. clever adjustments. Worse with low bitrates (less than 64kbps), but is better
  2091. and much faster at higher bitrates.
  2092. </p>
  2093. </dd>
  2094. </dl>
  2095. </dd>
  2096. <dt><span><samp>aac_ms</samp></span></dt>
  2097. <dd><p>Sets mid/side coding mode. The default value of &quot;auto&quot; will automatically use
  2098. M/S with bands which will benefit from such coding. Can be forced for all bands
  2099. using the value &quot;enable&quot;, which is mainly useful for debugging or disabled using
  2100. &quot;disable&quot;.
  2101. </p>
  2102. </dd>
  2103. <dt><span><samp>aac_is</samp></span></dt>
  2104. <dd><p>Sets intensity stereo coding tool usage. By default, it&rsquo;s enabled and will
  2105. automatically toggle IS for similar pairs of stereo bands if it&rsquo;s beneficial.
  2106. Can be disabled for debugging by setting the value to &quot;disable&quot;.
  2107. </p>
  2108. </dd>
  2109. <dt><span><samp>aac_pns</samp></span></dt>
  2110. <dd><p>Uses perceptual noise substitution to replace low entropy high frequency bands
  2111. with imperceptible white noise during the decoding process. By default, it&rsquo;s
  2112. enabled, but can be disabled for debugging purposes by using &quot;disable&quot;.
  2113. </p>
  2114. </dd>
  2115. <dt><span><samp>aac_tns</samp></span></dt>
  2116. <dd><p>Enables the use of a multitap FIR filter which spans through the high frequency
  2117. bands to hide quantization noise during the encoding process and is reverted
  2118. by the decoder. As well as decreasing unpleasant artifacts in the high range
  2119. this also reduces the entropy in the high bands and allows for more bits to
  2120. be used by the mid-low bands. By default it&rsquo;s enabled but can be disabled for
  2121. debugging by setting the option to &quot;disable&quot;.
  2122. </p>
  2123. </dd>
  2124. <dt><span><samp>aac_ltp</samp></span></dt>
  2125. <dd><p>Enables the use of the long term prediction extension which increases coding
  2126. efficiency in very low bandwidth situations such as encoding of voice or
  2127. solo piano music by extending constant harmonic peaks in bands throughout
  2128. frames. This option is implied by profile:a aac_low and is incompatible with
  2129. aac_pred. Use in conjunction with <samp>-ar</samp> to decrease the samplerate.
  2130. </p>
  2131. </dd>
  2132. <dt><span><samp>aac_pred</samp></span></dt>
  2133. <dd><p>Enables the use of a more traditional style of prediction where the spectral
  2134. coefficients transmitted are replaced by the difference of the current
  2135. coefficients minus the previous &quot;predicted&quot; coefficients. In theory and sometimes
  2136. in practice this can improve quality for low to mid bitrate audio.
  2137. This option implies the aac_main profile and is incompatible with aac_ltp.
  2138. </p>
  2139. </dd>
  2140. <dt><span><samp>profile</samp></span></dt>
  2141. <dd><p>Sets the encoding profile, possible values:
  2142. </p>
  2143. <dl compact="compact">
  2144. <dt><span>&lsquo;<samp>aac_low</samp>&rsquo;</span></dt>
  2145. <dd><p>The default, AAC &quot;Low-complexity&quot; profile. Is the most compatible and produces
  2146. decent quality.
  2147. </p>
  2148. </dd>
  2149. <dt><span>&lsquo;<samp>mpeg2_aac_low</samp>&rsquo;</span></dt>
  2150. <dd><p>Equivalent to <code>-profile:a aac_low -aac_pns 0</code>. PNS was introduced with the
  2151. MPEG4 specifications.
  2152. </p>
  2153. </dd>
  2154. <dt><span>&lsquo;<samp>aac_ltp</samp>&rsquo;</span></dt>
  2155. <dd><p>Long term prediction profile, is enabled by and will enable the <samp>aac_ltp</samp>
  2156. option. Introduced in MPEG4.
  2157. </p>
  2158. </dd>
  2159. <dt><span>&lsquo;<samp>aac_main</samp>&rsquo;</span></dt>
  2160. <dd><p>Main-type prediction profile, is enabled by and will enable the <samp>aac_pred</samp>
  2161. option. Introduced in MPEG2.
  2162. </p>
  2163. </dd>
  2164. </dl>
  2165. <p>If this option is unspecified it is set to &lsquo;<samp>aac_low</samp>&rsquo;.
  2166. </p></dd>
  2167. </dl>
  2168. <a name="ac3-and-ac3_005ffixed"></a>
  2169. <h3 class="section">8.2 ac3 and ac3_fixed<span class="pull-right"><a class="anchor hidden-xs" href="#ac3-and-ac3_005ffixed" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-ac3-and-ac3_005ffixed" aria-hidden="true">TOC</a></span></h3>
  2170. <p>AC-3 audio encoders.
  2171. </p>
  2172. <p>These encoders implement part of ATSC A/52:2010 and ETSI TS 102 366, as well as
  2173. the undocumented RealAudio 3 (a.k.a. dnet).
  2174. </p>
  2175. <p>The <var>ac3</var> encoder uses floating-point math, while the <var>ac3_fixed</var>
  2176. encoder only uses fixed-point integer math. This does not mean that one is
  2177. always faster, just that one or the other may be better suited to a
  2178. particular system. The <var>ac3_fixed</var> encoder is not the default codec for
  2179. any of the output formats, so it must be specified explicitly using the option
  2180. <code>-acodec ac3_fixed</code> in order to use it.
  2181. </p>
  2182. <a name="AC_002d3-Metadata"></a>
  2183. <h4 class="subsection">8.2.1 AC-3 Metadata<span class="pull-right"><a class="anchor hidden-xs" href="#AC_002d3-Metadata" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-AC_002d3-Metadata" aria-hidden="true">TOC</a></span></h4>
  2184. <p>The AC-3 metadata options are used to set parameters that describe the audio,
  2185. but in most cases do not affect the audio encoding itself. Some of the options
  2186. do directly affect or influence the decoding and playback of the resulting
  2187. bitstream, while others are just for informational purposes. A few of the
  2188. options will add bits to the output stream that could otherwise be used for
  2189. audio data, and will thus affect the quality of the output. Those will be
  2190. indicated accordingly with a note in the option list below.
  2191. </p>
  2192. <p>These parameters are described in detail in several publicly-available
  2193. documents.
  2194. </p><ul>
  2195. <li> <a href="http://www.atsc.org/cms/standards/a_52-2010.pdf">A/52:2010 - Digital Audio Compression (AC-3) (E-AC-3) Standard</a>
  2196. </li><li> <a href="http://www.atsc.org/cms/standards/a_54a_with_corr_1.pdf">A/54 - Guide to the Use of the ATSC Digital Television Standard</a>
  2197. </li><li> <a href="http://www.dolby.com/uploadedFiles/zz-_Shared_Assets/English_PDFs/Professional/18_Metadata.Guide.pdf">Dolby Metadata Guide</a>
  2198. </li><li> <a href="http://www.dolby.com/uploadedFiles/zz-_Shared_Assets/English_PDFs/Professional/46_DDEncodingGuidelines.pdf">Dolby Digital Professional Encoding Guidelines</a>
  2199. </li></ul>
  2200. <a name="Metadata-Control-Options"></a>
  2201. <h4 class="subsubsection">8.2.1.1 Metadata Control Options<span class="pull-right"><a class="anchor hidden-xs" href="#Metadata-Control-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Metadata-Control-Options" aria-hidden="true">TOC</a></span></h4>
  2202. <dl compact="compact">
  2203. <dt><span><samp>-per_frame_metadata <var>boolean</var></samp></span></dt>
  2204. <dd><p>Allow Per-Frame Metadata. Specifies if the encoder should check for changing
  2205. metadata for each frame.
  2206. </p><dl compact="compact">
  2207. <dt><span><samp>0</samp></span></dt>
  2208. <dd><p>The metadata values set at initialization will be used for every frame in the
  2209. stream. (default)
  2210. </p></dd>
  2211. <dt><span><samp>1</samp></span></dt>
  2212. <dd><p>Metadata values can be changed before encoding each frame.
  2213. </p></dd>
  2214. </dl>
  2215. </dd>
  2216. </dl>
  2217. <a name="Downmix-Levels"></a>
  2218. <h4 class="subsubsection">8.2.1.2 Downmix Levels<span class="pull-right"><a class="anchor hidden-xs" href="#Downmix-Levels" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Downmix-Levels" aria-hidden="true">TOC</a></span></h4>
  2219. <dl compact="compact">
  2220. <dt><span><samp>-center_mixlev <var>level</var></samp></span></dt>
  2221. <dd><p>Center Mix Level. The amount of gain the decoder should apply to the center
  2222. channel when downmixing to stereo. This field will only be written to the
  2223. bitstream if a center channel is present. The value is specified as a scale
  2224. factor. There are 3 valid values:
  2225. </p><dl compact="compact">
  2226. <dt><span><samp>0.707</samp></span></dt>
  2227. <dd><p>Apply -3dB gain
  2228. </p></dd>
  2229. <dt><span><samp>0.595</samp></span></dt>
  2230. <dd><p>Apply -4.5dB gain (default)
  2231. </p></dd>
  2232. <dt><span><samp>0.500</samp></span></dt>
  2233. <dd><p>Apply -6dB gain
  2234. </p></dd>
  2235. </dl>
  2236. </dd>
  2237. <dt><span><samp>-surround_mixlev <var>level</var></samp></span></dt>
  2238. <dd><p>Surround Mix Level. The amount of gain the decoder should apply to the surround
  2239. channel(s) when downmixing to stereo. This field will only be written to the
  2240. bitstream if one or more surround channels are present. The value is specified
  2241. as a scale factor. There are 3 valid values:
  2242. </p><dl compact="compact">
  2243. <dt><span><samp>0.707</samp></span></dt>
  2244. <dd><p>Apply -3dB gain
  2245. </p></dd>
  2246. <dt><span><samp>0.500</samp></span></dt>
  2247. <dd><p>Apply -6dB gain (default)
  2248. </p></dd>
  2249. <dt><span><samp>0.000</samp></span></dt>
  2250. <dd><p>Silence Surround Channel(s)
  2251. </p></dd>
  2252. </dl>
  2253. </dd>
  2254. </dl>
  2255. <a name="Audio-Production-Information"></a>
  2256. <h4 class="subsubsection">8.2.1.3 Audio Production Information<span class="pull-right"><a class="anchor hidden-xs" href="#Audio-Production-Information" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Audio-Production-Information" aria-hidden="true">TOC</a></span></h4>
  2257. <p>Audio Production Information is optional information describing the mixing
  2258. environment. Either none or both of the fields are written to the bitstream.
  2259. </p>
  2260. <dl compact="compact">
  2261. <dt><span><samp>-mixing_level <var>number</var></samp></span></dt>
  2262. <dd><p>Mixing Level. Specifies peak sound pressure level (SPL) in the production
  2263. environment when the mix was mastered. Valid values are 80 to 111, or -1 for
  2264. unknown or not indicated. The default value is -1, but that value cannot be
  2265. used if the Audio Production Information is written to the bitstream. Therefore,
  2266. if the <code>room_type</code> option is not the default value, the <code>mixing_level</code>
  2267. option must not be -1.
  2268. </p>
  2269. </dd>
  2270. <dt><span><samp>-room_type <var>type</var></samp></span></dt>
  2271. <dd><p>Room Type. Describes the equalization used during the final mixing session at
  2272. the studio or on the dubbing stage. A large room is a dubbing stage with the
  2273. industry standard X-curve equalization; a small room has flat equalization.
  2274. This field will not be written to the bitstream if both the <code>mixing_level</code>
  2275. option and the <code>room_type</code> option have the default values.
  2276. </p><dl compact="compact">
  2277. <dt><span><samp>0</samp></span></dt>
  2278. <dt><span><samp>notindicated</samp></span></dt>
  2279. <dd><p>Not Indicated (default)
  2280. </p></dd>
  2281. <dt><span><samp>1</samp></span></dt>
  2282. <dt><span><samp>large</samp></span></dt>
  2283. <dd><p>Large Room
  2284. </p></dd>
  2285. <dt><span><samp>2</samp></span></dt>
  2286. <dt><span><samp>small</samp></span></dt>
  2287. <dd><p>Small Room
  2288. </p></dd>
  2289. </dl>
  2290. </dd>
  2291. </dl>
  2292. <a name="Other-Metadata-Options"></a>
  2293. <h4 class="subsubsection">8.2.1.4 Other Metadata Options<span class="pull-right"><a class="anchor hidden-xs" href="#Other-Metadata-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Other-Metadata-Options" aria-hidden="true">TOC</a></span></h4>
  2294. <dl compact="compact">
  2295. <dt><span><samp>-copyright <var>boolean</var></samp></span></dt>
  2296. <dd><p>Copyright Indicator. Specifies whether a copyright exists for this audio.
  2297. </p><dl compact="compact">
  2298. <dt><span><samp>0</samp></span></dt>
  2299. <dt><span><samp>off</samp></span></dt>
  2300. <dd><p>No Copyright Exists (default)
  2301. </p></dd>
  2302. <dt><span><samp>1</samp></span></dt>
  2303. <dt><span><samp>on</samp></span></dt>
  2304. <dd><p>Copyright Exists
  2305. </p></dd>
  2306. </dl>
  2307. </dd>
  2308. <dt><span><samp>-dialnorm <var>value</var></samp></span></dt>
  2309. <dd><p>Dialogue Normalization. Indicates how far the average dialogue level of the
  2310. program is below digital 100% full scale (0 dBFS). This parameter determines a
  2311. level shift during audio reproduction that sets the average volume of the
  2312. dialogue to a preset level. The goal is to match volume level between program
  2313. sources. A value of -31dB will result in no volume level change, relative to
  2314. the source volume, during audio reproduction. Valid values are whole numbers in
  2315. the range -31 to -1, with -31 being the default.
  2316. </p>
  2317. </dd>
  2318. <dt><span><samp>-dsur_mode <var>mode</var></samp></span></dt>
  2319. <dd><p>Dolby Surround Mode. Specifies whether the stereo signal uses Dolby Surround
  2320. (Pro Logic). This field will only be written to the bitstream if the audio
  2321. stream is stereo. Using this option does <b>NOT</b> mean the encoder will actually
  2322. apply Dolby Surround processing.
  2323. </p><dl compact="compact">
  2324. <dt><span><samp>0</samp></span></dt>
  2325. <dt><span><samp>notindicated</samp></span></dt>
  2326. <dd><p>Not Indicated (default)
  2327. </p></dd>
  2328. <dt><span><samp>1</samp></span></dt>
  2329. <dt><span><samp>off</samp></span></dt>
  2330. <dd><p>Not Dolby Surround Encoded
  2331. </p></dd>
  2332. <dt><span><samp>2</samp></span></dt>
  2333. <dt><span><samp>on</samp></span></dt>
  2334. <dd><p>Dolby Surround Encoded
  2335. </p></dd>
  2336. </dl>
  2337. </dd>
  2338. <dt><span><samp>-original <var>boolean</var></samp></span></dt>
  2339. <dd><p>Original Bit Stream Indicator. Specifies whether this audio is from the
  2340. original source and not a copy.
  2341. </p><dl compact="compact">
  2342. <dt><span><samp>0</samp></span></dt>
  2343. <dt><span><samp>off</samp></span></dt>
  2344. <dd><p>Not Original Source
  2345. </p></dd>
  2346. <dt><span><samp>1</samp></span></dt>
  2347. <dt><span><samp>on</samp></span></dt>
  2348. <dd><p>Original Source (default)
  2349. </p></dd>
  2350. </dl>
  2351. </dd>
  2352. </dl>
  2353. <a name="Extended-Bitstream-Information"></a>
  2354. <h4 class="subsection">8.2.2 Extended Bitstream Information<span class="pull-right"><a class="anchor hidden-xs" href="#Extended-Bitstream-Information" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Extended-Bitstream-Information" aria-hidden="true">TOC</a></span></h4>
  2355. <p>The extended bitstream options are part of the Alternate Bit Stream Syntax as
  2356. specified in Annex D of the A/52:2010 standard. It is grouped into 2 parts.
  2357. If any one parameter in a group is specified, all values in that group will be
  2358. written to the bitstream. Default values are used for those that are written
  2359. but have not been specified. If the mixing levels are written, the decoder
  2360. will use these values instead of the ones specified in the <code>center_mixlev</code>
  2361. and <code>surround_mixlev</code> options if it supports the Alternate Bit Stream
  2362. Syntax.
  2363. </p>
  2364. <a name="Extended-Bitstream-Information-_002d-Part-1"></a>
  2365. <h4 class="subsubsection">8.2.2.1 Extended Bitstream Information - Part 1<span class="pull-right"><a class="anchor hidden-xs" href="#Extended-Bitstream-Information-_002d-Part-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Extended-Bitstream-Information-_002d-Part-1" aria-hidden="true">TOC</a></span></h4>
  2366. <dl compact="compact">
  2367. <dt><span><samp>-dmix_mode <var>mode</var></samp></span></dt>
  2368. <dd><p>Preferred Stereo Downmix Mode. Allows the user to select either Lt/Rt
  2369. (Dolby Surround) or Lo/Ro (normal stereo) as the preferred stereo downmix mode.
  2370. </p><dl compact="compact">
  2371. <dt><span><samp>0</samp></span></dt>
  2372. <dt><span><samp>notindicated</samp></span></dt>
  2373. <dd><p>Not Indicated (default)
  2374. </p></dd>
  2375. <dt><span><samp>1</samp></span></dt>
  2376. <dt><span><samp>ltrt</samp></span></dt>
  2377. <dd><p>Lt/Rt Downmix Preferred
  2378. </p></dd>
  2379. <dt><span><samp>2</samp></span></dt>
  2380. <dt><span><samp>loro</samp></span></dt>
  2381. <dd><p>Lo/Ro Downmix Preferred
  2382. </p></dd>
  2383. </dl>
  2384. </dd>
  2385. <dt><span><samp>-ltrt_cmixlev <var>level</var></samp></span></dt>
  2386. <dd><p>Lt/Rt Center Mix Level. The amount of gain the decoder should apply to the
  2387. center channel when downmixing to stereo in Lt/Rt mode.
  2388. </p><dl compact="compact">
  2389. <dt><span><samp>1.414</samp></span></dt>
  2390. <dd><p>Apply +3dB gain
  2391. </p></dd>
  2392. <dt><span><samp>1.189</samp></span></dt>
  2393. <dd><p>Apply +1.5dB gain
  2394. </p></dd>
  2395. <dt><span><samp>1.000</samp></span></dt>
  2396. <dd><p>Apply 0dB gain
  2397. </p></dd>
  2398. <dt><span><samp>0.841</samp></span></dt>
  2399. <dd><p>Apply -1.5dB gain
  2400. </p></dd>
  2401. <dt><span><samp>0.707</samp></span></dt>
  2402. <dd><p>Apply -3.0dB gain
  2403. </p></dd>
  2404. <dt><span><samp>0.595</samp></span></dt>
  2405. <dd><p>Apply -4.5dB gain (default)
  2406. </p></dd>
  2407. <dt><span><samp>0.500</samp></span></dt>
  2408. <dd><p>Apply -6.0dB gain
  2409. </p></dd>
  2410. <dt><span><samp>0.000</samp></span></dt>
  2411. <dd><p>Silence Center Channel
  2412. </p></dd>
  2413. </dl>
  2414. </dd>
  2415. <dt><span><samp>-ltrt_surmixlev <var>level</var></samp></span></dt>
  2416. <dd><p>Lt/Rt Surround Mix Level. The amount of gain the decoder should apply to the
  2417. surround channel(s) when downmixing to stereo in Lt/Rt mode.
  2418. </p><dl compact="compact">
  2419. <dt><span><samp>0.841</samp></span></dt>
  2420. <dd><p>Apply -1.5dB gain
  2421. </p></dd>
  2422. <dt><span><samp>0.707</samp></span></dt>
  2423. <dd><p>Apply -3.0dB gain
  2424. </p></dd>
  2425. <dt><span><samp>0.595</samp></span></dt>
  2426. <dd><p>Apply -4.5dB gain
  2427. </p></dd>
  2428. <dt><span><samp>0.500</samp></span></dt>
  2429. <dd><p>Apply -6.0dB gain (default)
  2430. </p></dd>
  2431. <dt><span><samp>0.000</samp></span></dt>
  2432. <dd><p>Silence Surround Channel(s)
  2433. </p></dd>
  2434. </dl>
  2435. </dd>
  2436. <dt><span><samp>-loro_cmixlev <var>level</var></samp></span></dt>
  2437. <dd><p>Lo/Ro Center Mix Level. The amount of gain the decoder should apply to the
  2438. center channel when downmixing to stereo in Lo/Ro mode.
  2439. </p><dl compact="compact">
  2440. <dt><span><samp>1.414</samp></span></dt>
  2441. <dd><p>Apply +3dB gain
  2442. </p></dd>
  2443. <dt><span><samp>1.189</samp></span></dt>
  2444. <dd><p>Apply +1.5dB gain
  2445. </p></dd>
  2446. <dt><span><samp>1.000</samp></span></dt>
  2447. <dd><p>Apply 0dB gain
  2448. </p></dd>
  2449. <dt><span><samp>0.841</samp></span></dt>
  2450. <dd><p>Apply -1.5dB gain
  2451. </p></dd>
  2452. <dt><span><samp>0.707</samp></span></dt>
  2453. <dd><p>Apply -3.0dB gain
  2454. </p></dd>
  2455. <dt><span><samp>0.595</samp></span></dt>
  2456. <dd><p>Apply -4.5dB gain (default)
  2457. </p></dd>
  2458. <dt><span><samp>0.500</samp></span></dt>
  2459. <dd><p>Apply -6.0dB gain
  2460. </p></dd>
  2461. <dt><span><samp>0.000</samp></span></dt>
  2462. <dd><p>Silence Center Channel
  2463. </p></dd>
  2464. </dl>
  2465. </dd>
  2466. <dt><span><samp>-loro_surmixlev <var>level</var></samp></span></dt>
  2467. <dd><p>Lo/Ro Surround Mix Level. The amount of gain the decoder should apply to the
  2468. surround channel(s) when downmixing to stereo in Lo/Ro mode.
  2469. </p><dl compact="compact">
  2470. <dt><span><samp>0.841</samp></span></dt>
  2471. <dd><p>Apply -1.5dB gain
  2472. </p></dd>
  2473. <dt><span><samp>0.707</samp></span></dt>
  2474. <dd><p>Apply -3.0dB gain
  2475. </p></dd>
  2476. <dt><span><samp>0.595</samp></span></dt>
  2477. <dd><p>Apply -4.5dB gain
  2478. </p></dd>
  2479. <dt><span><samp>0.500</samp></span></dt>
  2480. <dd><p>Apply -6.0dB gain (default)
  2481. </p></dd>
  2482. <dt><span><samp>0.000</samp></span></dt>
  2483. <dd><p>Silence Surround Channel(s)
  2484. </p></dd>
  2485. </dl>
  2486. </dd>
  2487. </dl>
  2488. <a name="Extended-Bitstream-Information-_002d-Part-2"></a>
  2489. <h4 class="subsubsection">8.2.2.2 Extended Bitstream Information - Part 2<span class="pull-right"><a class="anchor hidden-xs" href="#Extended-Bitstream-Information-_002d-Part-2" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Extended-Bitstream-Information-_002d-Part-2" aria-hidden="true">TOC</a></span></h4>
  2490. <dl compact="compact">
  2491. <dt><span><samp>-dsurex_mode <var>mode</var></samp></span></dt>
  2492. <dd><p>Dolby Surround EX Mode. Indicates whether the stream uses Dolby Surround EX
  2493. (7.1 matrixed to 5.1). Using this option does <b>NOT</b> mean the encoder will actually
  2494. apply Dolby Surround EX processing.
  2495. </p><dl compact="compact">
  2496. <dt><span><samp>0</samp></span></dt>
  2497. <dt><span><samp>notindicated</samp></span></dt>
  2498. <dd><p>Not Indicated (default)
  2499. </p></dd>
  2500. <dt><span><samp>1</samp></span></dt>
  2501. <dt><span><samp>on</samp></span></dt>
  2502. <dd><p>Dolby Surround EX Off
  2503. </p></dd>
  2504. <dt><span><samp>2</samp></span></dt>
  2505. <dt><span><samp>off</samp></span></dt>
  2506. <dd><p>Dolby Surround EX On
  2507. </p></dd>
  2508. </dl>
  2509. </dd>
  2510. <dt><span><samp>-dheadphone_mode <var>mode</var></samp></span></dt>
  2511. <dd><p>Dolby Headphone Mode. Indicates whether the stream uses Dolby Headphone
  2512. encoding (multi-channel matrixed to 2.0 for use with headphones). Using this
  2513. option does <b>NOT</b> mean the encoder will actually apply Dolby Headphone
  2514. processing.
  2515. </p><dl compact="compact">
  2516. <dt><span><samp>0</samp></span></dt>
  2517. <dt><span><samp>notindicated</samp></span></dt>
  2518. <dd><p>Not Indicated (default)
  2519. </p></dd>
  2520. <dt><span><samp>1</samp></span></dt>
  2521. <dt><span><samp>on</samp></span></dt>
  2522. <dd><p>Dolby Headphone Off
  2523. </p></dd>
  2524. <dt><span><samp>2</samp></span></dt>
  2525. <dt><span><samp>off</samp></span></dt>
  2526. <dd><p>Dolby Headphone On
  2527. </p></dd>
  2528. </dl>
  2529. </dd>
  2530. <dt><span><samp>-ad_conv_type <var>type</var></samp></span></dt>
  2531. <dd><p>A/D Converter Type. Indicates whether the audio has passed through HDCD A/D
  2532. conversion.
  2533. </p><dl compact="compact">
  2534. <dt><span><samp>0</samp></span></dt>
  2535. <dt><span><samp>standard</samp></span></dt>
  2536. <dd><p>Standard A/D Converter (default)
  2537. </p></dd>
  2538. <dt><span><samp>1</samp></span></dt>
  2539. <dt><span><samp>hdcd</samp></span></dt>
  2540. <dd><p>HDCD A/D Converter
  2541. </p></dd>
  2542. </dl>
  2543. </dd>
  2544. </dl>
  2545. <a name="Other-AC_002d3-Encoding-Options"></a>
  2546. <h4 class="subsection">8.2.3 Other AC-3 Encoding Options<span class="pull-right"><a class="anchor hidden-xs" href="#Other-AC_002d3-Encoding-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Other-AC_002d3-Encoding-Options" aria-hidden="true">TOC</a></span></h4>
  2547. <dl compact="compact">
  2548. <dt><span><samp>-stereo_rematrixing <var>boolean</var></samp></span></dt>
  2549. <dd><p>Stereo Rematrixing. Enables/Disables use of rematrixing for stereo input. This
  2550. is an optional AC-3 feature that increases quality by selectively encoding
  2551. the left/right channels as mid/side. This option is enabled by default, and it
  2552. is highly recommended that it be left as enabled except for testing purposes.
  2553. </p>
  2554. </dd>
  2555. <dt><span><samp>cutoff <var>frequency</var></samp></span></dt>
  2556. <dd><p>Set lowpass cutoff frequency. If unspecified, the encoder selects a default
  2557. determined by various other encoding parameters.
  2558. </p>
  2559. </dd>
  2560. </dl>
  2561. <a name="Floating_002dPoint_002dOnly-AC_002d3-Encoding-Options"></a>
  2562. <h4 class="subsection">8.2.4 Floating-Point-Only AC-3 Encoding Options<span class="pull-right"><a class="anchor hidden-xs" href="#Floating_002dPoint_002dOnly-AC_002d3-Encoding-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Floating_002dPoint_002dOnly-AC_002d3-Encoding-Options" aria-hidden="true">TOC</a></span></h4>
  2563. <p>These options are only valid for the floating-point encoder and do not exist
  2564. for the fixed-point encoder due to the corresponding features not being
  2565. implemented in fixed-point.
  2566. </p>
  2567. <dl compact="compact">
  2568. <dt><span><samp>-channel_coupling <var>boolean</var></samp></span></dt>
  2569. <dd><p>Enables/Disables use of channel coupling, which is an optional AC-3 feature
  2570. that increases quality by combining high frequency information from multiple
  2571. channels into a single channel. The per-channel high frequency information is
  2572. sent with less accuracy in both the frequency and time domains. This allows
  2573. more bits to be used for lower frequencies while preserving enough information
  2574. to reconstruct the high frequencies. This option is enabled by default for the
  2575. floating-point encoder and should generally be left as enabled except for
  2576. testing purposes or to increase encoding speed.
  2577. </p><dl compact="compact">
  2578. <dt><span><samp>-1</samp></span></dt>
  2579. <dt><span><samp>auto</samp></span></dt>
  2580. <dd><p>Selected by Encoder (default)
  2581. </p></dd>
  2582. <dt><span><samp>0</samp></span></dt>
  2583. <dt><span><samp>off</samp></span></dt>
  2584. <dd><p>Disable Channel Coupling
  2585. </p></dd>
  2586. <dt><span><samp>1</samp></span></dt>
  2587. <dt><span><samp>on</samp></span></dt>
  2588. <dd><p>Enable Channel Coupling
  2589. </p></dd>
  2590. </dl>
  2591. </dd>
  2592. <dt><span><samp>-cpl_start_band <var>number</var></samp></span></dt>
  2593. <dd><p>Coupling Start Band. Sets the channel coupling start band, from 1 to 15. If a
  2594. value higher than the bandwidth is used, it will be reduced to 1 less than the
  2595. coupling end band. If <var>auto</var> is used, the start band will be determined by
  2596. the encoder based on the bit rate, sample rate, and channel layout. This option
  2597. has no effect if channel coupling is disabled.
  2598. </p><dl compact="compact">
  2599. <dt><span><samp>-1</samp></span></dt>
  2600. <dt><span><samp>auto</samp></span></dt>
  2601. <dd><p>Selected by Encoder (default)
  2602. </p></dd>
  2603. </dl>
  2604. </dd>
  2605. </dl>
  2606. <span id="flac"></span><a name="flac-2"></a>
  2607. <h3 class="section">8.3 flac<span class="pull-right"><a class="anchor hidden-xs" href="#flac-2" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-flac-2" aria-hidden="true">TOC</a></span></h3>
  2608. <p>FLAC (Free Lossless Audio Codec) Encoder
  2609. </p>
  2610. <a name="Options-10"></a>
  2611. <h4 class="subsection">8.3.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-10" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-10" aria-hidden="true">TOC</a></span></h4>
  2612. <p>The following options are supported by FFmpeg&rsquo;s flac encoder.
  2613. </p>
  2614. <dl compact="compact">
  2615. <dt><span><samp>compression_level</samp></span></dt>
  2616. <dd><p>Sets the compression level, which chooses defaults for many other options
  2617. if they are not set explicitly. Valid values are from 0 to 12, 5 is the
  2618. default.
  2619. </p>
  2620. </dd>
  2621. <dt><span><samp>frame_size</samp></span></dt>
  2622. <dd><p>Sets the size of the frames in samples per channel.
  2623. </p>
  2624. </dd>
  2625. <dt><span><samp>lpc_coeff_precision</samp></span></dt>
  2626. <dd><p>Sets the LPC coefficient precision, valid values are from 1 to 15, 15 is the
  2627. default.
  2628. </p>
  2629. </dd>
  2630. <dt><span><samp>lpc_type</samp></span></dt>
  2631. <dd><p>Sets the first stage LPC algorithm
  2632. </p><dl compact="compact">
  2633. <dt><span>&lsquo;<samp>none</samp>&rsquo;</span></dt>
  2634. <dd><p>LPC is not used
  2635. </p>
  2636. </dd>
  2637. <dt><span>&lsquo;<samp>fixed</samp>&rsquo;</span></dt>
  2638. <dd><p>fixed LPC coefficients
  2639. </p>
  2640. </dd>
  2641. <dt><span>&lsquo;<samp>levinson</samp>&rsquo;</span></dt>
  2642. <dt><span>&lsquo;<samp>cholesky</samp>&rsquo;</span></dt>
  2643. </dl>
  2644. </dd>
  2645. <dt><span><samp>lpc_passes</samp></span></dt>
  2646. <dd><p>Number of passes to use for Cholesky factorization during LPC analysis
  2647. </p>
  2648. </dd>
  2649. <dt><span><samp>min_partition_order</samp></span></dt>
  2650. <dd><p>The minimum partition order
  2651. </p>
  2652. </dd>
  2653. <dt><span><samp>max_partition_order</samp></span></dt>
  2654. <dd><p>The maximum partition order
  2655. </p>
  2656. </dd>
  2657. <dt><span><samp>prediction_order_method</samp></span></dt>
  2658. <dd><dl compact="compact">
  2659. <dt><span>&lsquo;<samp>estimation</samp>&rsquo;</span></dt>
  2660. <dt><span>&lsquo;<samp>2level</samp>&rsquo;</span></dt>
  2661. <dt><span>&lsquo;<samp>4level</samp>&rsquo;</span></dt>
  2662. <dt><span>&lsquo;<samp>8level</samp>&rsquo;</span></dt>
  2663. <dt><span>&lsquo;<samp>search</samp>&rsquo;</span></dt>
  2664. <dd><p>Bruteforce search
  2665. </p></dd>
  2666. <dt><span>&lsquo;<samp>log</samp>&rsquo;</span></dt>
  2667. </dl>
  2668. </dd>
  2669. <dt><span><samp>ch_mode</samp></span></dt>
  2670. <dd><p>Channel mode
  2671. </p><dl compact="compact">
  2672. <dt><span>&lsquo;<samp>auto</samp>&rsquo;</span></dt>
  2673. <dd><p>The mode is chosen automatically for each frame
  2674. </p></dd>
  2675. <dt><span>&lsquo;<samp>indep</samp>&rsquo;</span></dt>
  2676. <dd><p>Channels are independently coded
  2677. </p></dd>
  2678. <dt><span>&lsquo;<samp>left_side</samp>&rsquo;</span></dt>
  2679. <dt><span>&lsquo;<samp>right_side</samp>&rsquo;</span></dt>
  2680. <dt><span>&lsquo;<samp>mid_side</samp>&rsquo;</span></dt>
  2681. </dl>
  2682. </dd>
  2683. <dt><span><samp>exact_rice_parameters</samp></span></dt>
  2684. <dd><p>Chooses if rice parameters are calculated exactly or approximately.
  2685. if set to 1 then they are chosen exactly, which slows the code down slightly and
  2686. improves compression slightly.
  2687. </p>
  2688. </dd>
  2689. <dt><span><samp>multi_dim_quant</samp></span></dt>
  2690. <dd><p>Multi Dimensional Quantization. If set to 1 then a 2nd stage LPC algorithm is
  2691. applied after the first stage to finetune the coefficients. This is quite slow
  2692. and slightly improves compression.
  2693. </p>
  2694. </dd>
  2695. </dl>
  2696. <span id="opusenc"></span><a name="opus"></a>
  2697. <h3 class="section">8.4 opus<span class="pull-right"><a class="anchor hidden-xs" href="#opus" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-opus" aria-hidden="true">TOC</a></span></h3>
  2698. <p>Opus encoder.
  2699. </p>
  2700. <p>This is a native FFmpeg encoder for the Opus format. Currently its in development and
  2701. only implements the CELT part of the codec. Its quality is usually worse and at best
  2702. is equal to the libopus encoder.
  2703. </p>
  2704. <a name="Options-11"></a>
  2705. <h4 class="subsection">8.4.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-11" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-11" aria-hidden="true">TOC</a></span></h4>
  2706. <dl compact="compact">
  2707. <dt><span><samp>b</samp></span></dt>
  2708. <dd><p>Set bit rate in bits/s. If unspecified it uses the number of channels and the layout
  2709. to make a good guess.
  2710. </p>
  2711. </dd>
  2712. <dt><span><samp>opus_delay</samp></span></dt>
  2713. <dd><p>Sets the maximum delay in milliseconds. Lower delays than 20ms will very quickly
  2714. decrease quality.
  2715. </p></dd>
  2716. </dl>
  2717. <span id="libfdk_002daac_002denc"></span><a name="libfdk_005faac"></a>
  2718. <h3 class="section">8.5 libfdk_aac<span class="pull-right"><a class="anchor hidden-xs" href="#libfdk_005faac" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libfdk_005faac" aria-hidden="true">TOC</a></span></h3>
  2719. <p>libfdk-aac AAC (Advanced Audio Coding) encoder wrapper.
  2720. </p>
  2721. <p>The libfdk-aac library is based on the Fraunhofer FDK AAC code from
  2722. the Android project.
  2723. </p>
  2724. <p>Requires the presence of the libfdk-aac headers and library during
  2725. configuration. You need to explicitly configure the build with
  2726. <code>--enable-libfdk-aac</code>. The library is also incompatible with GPL,
  2727. so if you allow the use of GPL, you should configure with
  2728. <code>--enable-gpl --enable-nonfree --enable-libfdk-aac</code>.
  2729. </p>
  2730. <p>This encoder has support for the AAC-HE profiles.
  2731. </p>
  2732. <p>VBR encoding, enabled through the <samp>vbr</samp> or <samp>flags
  2733. +qscale</samp> options, is experimental and only works with some
  2734. combinations of parameters.
  2735. </p>
  2736. <p>Support for encoding 7.1 audio is only available with libfdk-aac 0.1.3 or
  2737. higher.
  2738. </p>
  2739. <p>For more information see the fdk-aac project at
  2740. <a href="http://sourceforge.net/p/opencore-amr/fdk-aac/">http://sourceforge.net/p/opencore-amr/fdk-aac/</a>.
  2741. </p>
  2742. <a name="Options-12"></a>
  2743. <h4 class="subsection">8.5.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-12" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-12" aria-hidden="true">TOC</a></span></h4>
  2744. <p>The following options are mapped on the shared FFmpeg codec options.
  2745. </p>
  2746. <dl compact="compact">
  2747. <dt><span><samp>b</samp></span></dt>
  2748. <dd><p>Set bit rate in bits/s. If the bitrate is not explicitly specified, it
  2749. is automatically set to a suitable value depending on the selected
  2750. profile.
  2751. </p>
  2752. <p>In case VBR mode is enabled the option is ignored.
  2753. </p>
  2754. </dd>
  2755. <dt><span><samp>ar</samp></span></dt>
  2756. <dd><p>Set audio sampling rate (in Hz).
  2757. </p>
  2758. </dd>
  2759. <dt><span><samp>channels</samp></span></dt>
  2760. <dd><p>Set the number of audio channels.
  2761. </p>
  2762. </dd>
  2763. <dt><span><samp>flags +qscale</samp></span></dt>
  2764. <dd><p>Enable fixed quality, VBR (Variable Bit Rate) mode.
  2765. Note that VBR is implicitly enabled when the <samp>vbr</samp> value is
  2766. positive.
  2767. </p>
  2768. </dd>
  2769. <dt><span><samp>cutoff</samp></span></dt>
  2770. <dd><p>Set cutoff frequency. If not specified (or explicitly set to 0) it
  2771. will use a value automatically computed by the library. Default value
  2772. is 0.
  2773. </p>
  2774. </dd>
  2775. <dt><span><samp>profile</samp></span></dt>
  2776. <dd><p>Set audio profile.
  2777. </p>
  2778. <p>The following profiles are recognized:
  2779. </p><dl compact="compact">
  2780. <dt><span>&lsquo;<samp>aac_low</samp>&rsquo;</span></dt>
  2781. <dd><p>Low Complexity AAC (LC)
  2782. </p>
  2783. </dd>
  2784. <dt><span>&lsquo;<samp>aac_he</samp>&rsquo;</span></dt>
  2785. <dd><p>High Efficiency AAC (HE-AAC)
  2786. </p>
  2787. </dd>
  2788. <dt><span>&lsquo;<samp>aac_he_v2</samp>&rsquo;</span></dt>
  2789. <dd><p>High Efficiency AAC version 2 (HE-AACv2)
  2790. </p>
  2791. </dd>
  2792. <dt><span>&lsquo;<samp>aac_ld</samp>&rsquo;</span></dt>
  2793. <dd><p>Low Delay AAC (LD)
  2794. </p>
  2795. </dd>
  2796. <dt><span>&lsquo;<samp>aac_eld</samp>&rsquo;</span></dt>
  2797. <dd><p>Enhanced Low Delay AAC (ELD)
  2798. </p></dd>
  2799. </dl>
  2800. <p>If not specified it is set to &lsquo;<samp>aac_low</samp>&rsquo;.
  2801. </p></dd>
  2802. </dl>
  2803. <p>The following are private options of the libfdk_aac encoder.
  2804. </p>
  2805. <dl compact="compact">
  2806. <dt><span><samp>afterburner</samp></span></dt>
  2807. <dd><p>Enable afterburner feature if set to 1, disabled if set to 0. This
  2808. improves the quality but also the required processing power.
  2809. </p>
  2810. <p>Default value is 1.
  2811. </p>
  2812. </dd>
  2813. <dt><span><samp>eld_sbr</samp></span></dt>
  2814. <dd><p>Enable SBR (Spectral Band Replication) for ELD if set to 1, disabled
  2815. if set to 0.
  2816. </p>
  2817. <p>Default value is 0.
  2818. </p>
  2819. </dd>
  2820. <dt><span><samp>eld_v2</samp></span></dt>
  2821. <dd><p>Enable ELDv2 (LD-MPS extension for ELD stereo signals) for ELDv2 if set to 1,
  2822. disabled if set to 0.
  2823. </p>
  2824. <p>Note that option is available when fdk-aac version (AACENCODER_LIB_VL0.AACENCODER_LIB_VL1.AACENCODER_LIB_VL2) &gt; (4.0.0).
  2825. </p>
  2826. <p>Default value is 0.
  2827. </p>
  2828. </dd>
  2829. <dt><span><samp>signaling</samp></span></dt>
  2830. <dd><p>Set SBR/PS signaling style.
  2831. </p>
  2832. <p>It can assume one of the following values:
  2833. </p><dl compact="compact">
  2834. <dt><span>&lsquo;<samp>default</samp>&rsquo;</span></dt>
  2835. <dd><p>choose signaling implicitly (explicit hierarchical by default,
  2836. implicit if global header is disabled)
  2837. </p>
  2838. </dd>
  2839. <dt><span>&lsquo;<samp>implicit</samp>&rsquo;</span></dt>
  2840. <dd><p>implicit backwards compatible signaling
  2841. </p>
  2842. </dd>
  2843. <dt><span>&lsquo;<samp>explicit_sbr</samp>&rsquo;</span></dt>
  2844. <dd><p>explicit SBR, implicit PS signaling
  2845. </p>
  2846. </dd>
  2847. <dt><span>&lsquo;<samp>explicit_hierarchical</samp>&rsquo;</span></dt>
  2848. <dd><p>explicit hierarchical signaling
  2849. </p></dd>
  2850. </dl>
  2851. <p>Default value is &lsquo;<samp>default</samp>&rsquo;.
  2852. </p>
  2853. </dd>
  2854. <dt><span><samp>latm</samp></span></dt>
  2855. <dd><p>Output LATM/LOAS encapsulated data if set to 1, disabled if set to 0.
  2856. </p>
  2857. <p>Default value is 0.
  2858. </p>
  2859. </dd>
  2860. <dt><span><samp>header_period</samp></span></dt>
  2861. <dd><p>Set StreamMuxConfig and PCE repetition period (in frames) for sending
  2862. in-band configuration buffers within LATM/LOAS transport layer.
  2863. </p>
  2864. <p>Must be a 16-bits non-negative integer.
  2865. </p>
  2866. <p>Default value is 0.
  2867. </p>
  2868. </dd>
  2869. <dt><span><samp>vbr</samp></span></dt>
  2870. <dd><p>Set VBR mode, from 1 to 5. 1 is lowest quality (though still pretty
  2871. good) and 5 is highest quality. A value of 0 will disable VBR, and CBR
  2872. (Constant Bit Rate) is enabled.
  2873. </p>
  2874. <p>Currently only the &lsquo;<samp>aac_low</samp>&rsquo; profile supports VBR encoding.
  2875. </p>
  2876. <p>VBR modes 1-5 correspond to roughly the following average bit rates:
  2877. </p>
  2878. <dl compact="compact">
  2879. <dt><span>&lsquo;<samp>1</samp>&rsquo;</span></dt>
  2880. <dd><p>32 kbps/channel
  2881. </p></dd>
  2882. <dt><span>&lsquo;<samp>2</samp>&rsquo;</span></dt>
  2883. <dd><p>40 kbps/channel
  2884. </p></dd>
  2885. <dt><span>&lsquo;<samp>3</samp>&rsquo;</span></dt>
  2886. <dd><p>48-56 kbps/channel
  2887. </p></dd>
  2888. <dt><span>&lsquo;<samp>4</samp>&rsquo;</span></dt>
  2889. <dd><p>64 kbps/channel
  2890. </p></dd>
  2891. <dt><span>&lsquo;<samp>5</samp>&rsquo;</span></dt>
  2892. <dd><p>about 80-96 kbps/channel
  2893. </p></dd>
  2894. </dl>
  2895. <p>Default value is 0.
  2896. </p></dd>
  2897. </dl>
  2898. <a name="Examples"></a>
  2899. <h4 class="subsection">8.5.2 Examples<span class="pull-right"><a class="anchor hidden-xs" href="#Examples" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Examples" aria-hidden="true">TOC</a></span></h4>
  2900. <ul>
  2901. <li> Use <code>ffmpeg</code> to convert an audio file to VBR AAC in an M4A (MP4)
  2902. container:
  2903. <div class="example">
  2904. <pre class="example">ffmpeg -i input.wav -codec:a libfdk_aac -vbr 3 output.m4a
  2905. </pre></div>
  2906. </li><li> Use <code>ffmpeg</code> to convert an audio file to CBR 64k kbps AAC, using the
  2907. High-Efficiency AAC profile:
  2908. <div class="example">
  2909. <pre class="example">ffmpeg -i input.wav -c:a libfdk_aac -profile:a aac_he -b:a 64k output.m4a
  2910. </pre></div>
  2911. </li></ul>
  2912. <span id="libmp3lame"></span><a name="libmp3lame-1"></a>
  2913. <h3 class="section">8.6 libmp3lame<span class="pull-right"><a class="anchor hidden-xs" href="#libmp3lame-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libmp3lame-1" aria-hidden="true">TOC</a></span></h3>
  2914. <p>LAME (Lame Ain&rsquo;t an MP3 Encoder) MP3 encoder wrapper.
  2915. </p>
  2916. <p>Requires the presence of the libmp3lame headers and library during
  2917. configuration. You need to explicitly configure the build with
  2918. <code>--enable-libmp3lame</code>.
  2919. </p>
  2920. <p>See <a href="#libshine">libshine</a> for a fixed-point MP3 encoder, although with a
  2921. lower quality.
  2922. </p>
  2923. <a name="Options-13"></a>
  2924. <h4 class="subsection">8.6.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-13" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-13" aria-hidden="true">TOC</a></span></h4>
  2925. <p>The following options are supported by the libmp3lame wrapper. The
  2926. <code>lame</code>-equivalent of the options are listed in parentheses.
  2927. </p>
  2928. <dl compact="compact">
  2929. <dt><span><samp>b (<em>-b</em>)</samp></span></dt>
  2930. <dd><p>Set bitrate expressed in bits/s for CBR or ABR. LAME <code>bitrate</code> is
  2931. expressed in kilobits/s.
  2932. </p>
  2933. </dd>
  2934. <dt><span><samp>q (<em>-V</em>)</samp></span></dt>
  2935. <dd><p>Set constant quality setting for VBR. This option is valid only
  2936. using the <code>ffmpeg</code> command-line tool. For library interface
  2937. users, use <samp>global_quality</samp>.
  2938. </p>
  2939. </dd>
  2940. <dt><span><samp>compression_level (<em>-q</em>)</samp></span></dt>
  2941. <dd><p>Set algorithm quality. Valid arguments are integers in the 0-9 range,
  2942. with 0 meaning highest quality but slowest, and 9 meaning fastest
  2943. while producing the worst quality.
  2944. </p>
  2945. </dd>
  2946. <dt><span><samp>cutoff (<em>--lowpass</em>)</samp></span></dt>
  2947. <dd><p>Set lowpass cutoff frequency. If unspecified, the encoder dynamically
  2948. adjusts the cutoff.
  2949. </p>
  2950. </dd>
  2951. <dt><span><samp>reservoir</samp></span></dt>
  2952. <dd><p>Enable use of bit reservoir when set to 1. Default value is 1. LAME
  2953. has this enabled by default, but can be overridden by use
  2954. <samp>--nores</samp> option.
  2955. </p>
  2956. </dd>
  2957. <dt><span><samp>joint_stereo (<em>-m j</em>)</samp></span></dt>
  2958. <dd><p>Enable the encoder to use (on a frame by frame basis) either L/R
  2959. stereo or mid/side stereo. Default value is 1.
  2960. </p>
  2961. </dd>
  2962. <dt><span><samp>abr (<em>--abr</em>)</samp></span></dt>
  2963. <dd><p>Enable the encoder to use ABR when set to 1. The <code>lame</code>
  2964. <samp>--abr</samp> sets the target bitrate, while this options only
  2965. tells FFmpeg to use ABR still relies on <samp>b</samp> to set bitrate.
  2966. </p>
  2967. </dd>
  2968. </dl>
  2969. <a name="libopencore_002damrnb-1"></a>
  2970. <h3 class="section">8.7 libopencore-amrnb<span class="pull-right"><a class="anchor hidden-xs" href="#libopencore_002damrnb-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libopencore_002damrnb-1" aria-hidden="true">TOC</a></span></h3>
  2971. <p>OpenCORE Adaptive Multi-Rate Narrowband encoder.
  2972. </p>
  2973. <p>Requires the presence of the libopencore-amrnb headers and library during
  2974. configuration. You need to explicitly configure the build with
  2975. <code>--enable-libopencore-amrnb --enable-version3</code>.
  2976. </p>
  2977. <p>This is a mono-only encoder. Officially it only supports 8000Hz sample rate,
  2978. but you can override it by setting <samp>strict</samp> to &lsquo;<samp>unofficial</samp>&rsquo; or
  2979. lower.
  2980. </p>
  2981. <a name="Options-14"></a>
  2982. <h4 class="subsection">8.7.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-14" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-14" aria-hidden="true">TOC</a></span></h4>
  2983. <dl compact="compact">
  2984. <dt><span><samp>b</samp></span></dt>
  2985. <dd><p>Set bitrate in bits per second. Only the following bitrates are supported,
  2986. otherwise libavcodec will round to the nearest valid bitrate.
  2987. </p>
  2988. <dl compact="compact">
  2989. <dt><span><samp>4750</samp></span></dt>
  2990. <dt><span><samp>5150</samp></span></dt>
  2991. <dt><span><samp>5900</samp></span></dt>
  2992. <dt><span><samp>6700</samp></span></dt>
  2993. <dt><span><samp>7400</samp></span></dt>
  2994. <dt><span><samp>7950</samp></span></dt>
  2995. <dt><span><samp>10200</samp></span></dt>
  2996. <dt><span><samp>12200</samp></span></dt>
  2997. </dl>
  2998. </dd>
  2999. <dt><span><samp>dtx</samp></span></dt>
  3000. <dd><p>Allow discontinuous transmission (generate comfort noise) when set to 1. The
  3001. default value is 0 (disabled).
  3002. </p>
  3003. </dd>
  3004. </dl>
  3005. <a name="libopus-1"></a>
  3006. <h3 class="section">8.8 libopus<span class="pull-right"><a class="anchor hidden-xs" href="#libopus-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libopus-1" aria-hidden="true">TOC</a></span></h3>
  3007. <p>libopus Opus Interactive Audio Codec encoder wrapper.
  3008. </p>
  3009. <p>Requires the presence of the libopus headers and library during
  3010. configuration. You need to explicitly configure the build with
  3011. <code>--enable-libopus</code>.
  3012. </p>
  3013. <a name="Option-Mapping"></a>
  3014. <h4 class="subsection">8.8.1 Option Mapping<span class="pull-right"><a class="anchor hidden-xs" href="#Option-Mapping" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Option-Mapping" aria-hidden="true">TOC</a></span></h4>
  3015. <p>Most libopus options are modelled after the <code>opusenc</code> utility from
  3016. opus-tools. The following is an option mapping chart describing options
  3017. supported by the libopus wrapper, and their <code>opusenc</code>-equivalent
  3018. in parentheses.
  3019. </p>
  3020. <dl compact="compact">
  3021. <dt><span><samp>b (<em>bitrate</em>)</samp></span></dt>
  3022. <dd><p>Set the bit rate in bits/s. FFmpeg&rsquo;s <samp>b</samp> option is
  3023. expressed in bits/s, while <code>opusenc</code>&rsquo;s <samp>bitrate</samp> in
  3024. kilobits/s.
  3025. </p>
  3026. </dd>
  3027. <dt><span><samp>vbr (<em>vbr</em>, <em>hard-cbr</em>, and <em>cvbr</em>)</samp></span></dt>
  3028. <dd><p>Set VBR mode. The FFmpeg <samp>vbr</samp> option has the following
  3029. valid arguments, with the <code>opusenc</code> equivalent options
  3030. in parentheses:
  3031. </p>
  3032. <dl compact="compact">
  3033. <dt><span>&lsquo;<samp>off (<em>hard-cbr</em>)</samp>&rsquo;</span></dt>
  3034. <dd><p>Use constant bit rate encoding.
  3035. </p>
  3036. </dd>
  3037. <dt><span>&lsquo;<samp>on (<em>vbr</em>)</samp>&rsquo;</span></dt>
  3038. <dd><p>Use variable bit rate encoding (the default).
  3039. </p>
  3040. </dd>
  3041. <dt><span>&lsquo;<samp>constrained (<em>cvbr</em>)</samp>&rsquo;</span></dt>
  3042. <dd><p>Use constrained variable bit rate encoding.
  3043. </p></dd>
  3044. </dl>
  3045. </dd>
  3046. <dt><span><samp>compression_level (<em>comp</em>)</samp></span></dt>
  3047. <dd><p>Set encoding algorithm complexity. Valid options are integers in
  3048. the 0-10 range. 0 gives the fastest encodes but lower quality, while 10
  3049. gives the highest quality but slowest encoding. The default is 10.
  3050. </p>
  3051. </dd>
  3052. <dt><span><samp>frame_duration (<em>framesize</em>)</samp></span></dt>
  3053. <dd><p>Set maximum frame size, or duration of a frame in milliseconds. The
  3054. argument must be exactly the following: 2.5, 5, 10, 20, 40, 60. Smaller
  3055. frame sizes achieve lower latency but less quality at a given bitrate.
  3056. Sizes greater than 20ms are only interesting at fairly low bitrates.
  3057. The default is 20ms.
  3058. </p>
  3059. </dd>
  3060. <dt><span><samp>packet_loss (<em>expect-loss</em>)</samp></span></dt>
  3061. <dd><p>Set expected packet loss percentage. The default is 0.
  3062. </p>
  3063. </dd>
  3064. <dt><span><samp>fec (<em>n/a</em>)</samp></span></dt>
  3065. <dd><p>Enable inband forward error correction. <samp>packet_loss</samp> must be non-zero
  3066. to take advantage - frequency of FEC &rsquo;side-data&rsquo; is proportional to expected packet loss.
  3067. Default is disabled.
  3068. </p>
  3069. </dd>
  3070. <dt><span><samp>application (N.A.)</samp></span></dt>
  3071. <dd><p>Set intended application type. Valid options are listed below:
  3072. </p>
  3073. <dl compact="compact">
  3074. <dt><span>&lsquo;<samp>voip</samp>&rsquo;</span></dt>
  3075. <dd><p>Favor improved speech intelligibility.
  3076. </p></dd>
  3077. <dt><span>&lsquo;<samp>audio</samp>&rsquo;</span></dt>
  3078. <dd><p>Favor faithfulness to the input (the default).
  3079. </p></dd>
  3080. <dt><span>&lsquo;<samp>lowdelay</samp>&rsquo;</span></dt>
  3081. <dd><p>Restrict to only the lowest delay modes.
  3082. </p></dd>
  3083. </dl>
  3084. </dd>
  3085. <dt><span><samp>cutoff (N.A.)</samp></span></dt>
  3086. <dd><p>Set cutoff bandwidth in Hz. The argument must be exactly one of the
  3087. following: 4000, 6000, 8000, 12000, or 20000, corresponding to
  3088. narrowband, mediumband, wideband, super wideband, and fullband
  3089. respectively. The default is 0 (cutoff disabled).
  3090. </p>
  3091. </dd>
  3092. <dt><span><samp>mapping_family (<em>mapping_family</em>)</samp></span></dt>
  3093. <dd><p>Set channel mapping family to be used by the encoder. The default value of -1
  3094. uses mapping family 0 for mono and stereo inputs, and mapping family 1
  3095. otherwise. The default also disables the surround masking and LFE bandwidth
  3096. optimzations in libopus, and requires that the input contains 8 channels or
  3097. fewer.
  3098. </p>
  3099. <p>Other values include 0 for mono and stereo, 1 for surround sound with masking
  3100. and LFE bandwidth optimizations, and 255 for independent streams with an
  3101. unspecified channel layout.
  3102. </p>
  3103. </dd>
  3104. <dt><span><samp>apply_phase_inv (N.A.) (requires libopus &gt;= 1.2)</samp></span></dt>
  3105. <dd><p>If set to 0, disables the use of phase inversion for intensity stereo,
  3106. improving the quality of mono downmixes, but slightly reducing normal stereo
  3107. quality. The default is 1 (phase inversion enabled).
  3108. </p>
  3109. </dd>
  3110. </dl>
  3111. <span id="libshine"></span><a name="libshine-1"></a>
  3112. <h3 class="section">8.9 libshine<span class="pull-right"><a class="anchor hidden-xs" href="#libshine-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libshine-1" aria-hidden="true">TOC</a></span></h3>
  3113. <p>Shine Fixed-Point MP3 encoder wrapper.
  3114. </p>
  3115. <p>Shine is a fixed-point MP3 encoder. It has a far better performance on
  3116. platforms without an FPU, e.g. armel CPUs, and some phones and tablets.
  3117. However, as it is more targeted on performance than quality, it is not on par
  3118. with LAME and other production-grade encoders quality-wise. Also, according to
  3119. the project&rsquo;s homepage, this encoder may not be free of bugs as the code was
  3120. written a long time ago and the project was dead for at least 5 years.
  3121. </p>
  3122. <p>This encoder only supports stereo and mono input. This is also CBR-only.
  3123. </p>
  3124. <p>The original project (last updated in early 2007) is at
  3125. <a href="http://sourceforge.net/projects/libshine-fxp/">http://sourceforge.net/projects/libshine-fxp/</a>. We only support the
  3126. updated fork by the Savonet/Liquidsoap project at <a href="https://github.com/savonet/shine">https://github.com/savonet/shine</a>.
  3127. </p>
  3128. <p>Requires the presence of the libshine headers and library during
  3129. configuration. You need to explicitly configure the build with
  3130. <code>--enable-libshine</code>.
  3131. </p>
  3132. <p>See also <a href="#libmp3lame">libmp3lame</a>.
  3133. </p>
  3134. <a name="Options-15"></a>
  3135. <h4 class="subsection">8.9.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-15" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-15" aria-hidden="true">TOC</a></span></h4>
  3136. <p>The following options are supported by the libshine wrapper. The
  3137. <code>shineenc</code>-equivalent of the options are listed in parentheses.
  3138. </p>
  3139. <dl compact="compact">
  3140. <dt><span><samp>b (<em>-b</em>)</samp></span></dt>
  3141. <dd><p>Set bitrate expressed in bits/s for CBR. <code>shineenc</code> <samp>-b</samp> option
  3142. is expressed in kilobits/s.
  3143. </p>
  3144. </dd>
  3145. </dl>
  3146. <a name="libtwolame"></a>
  3147. <h3 class="section">8.10 libtwolame<span class="pull-right"><a class="anchor hidden-xs" href="#libtwolame" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libtwolame" aria-hidden="true">TOC</a></span></h3>
  3148. <p>TwoLAME MP2 encoder wrapper.
  3149. </p>
  3150. <p>Requires the presence of the libtwolame headers and library during
  3151. configuration. You need to explicitly configure the build with
  3152. <code>--enable-libtwolame</code>.
  3153. </p>
  3154. <a name="Options-16"></a>
  3155. <h4 class="subsection">8.10.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-16" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-16" aria-hidden="true">TOC</a></span></h4>
  3156. <p>The following options are supported by the libtwolame wrapper. The
  3157. <code>twolame</code>-equivalent options follow the FFmpeg ones and are in
  3158. parentheses.
  3159. </p>
  3160. <dl compact="compact">
  3161. <dt><span><samp>b (<em>-b</em>)</samp></span></dt>
  3162. <dd><p>Set bitrate expressed in bits/s for CBR. <code>twolame</code> <samp>b</samp>
  3163. option is expressed in kilobits/s. Default value is 128k.
  3164. </p>
  3165. </dd>
  3166. <dt><span><samp>q (<em>-V</em>)</samp></span></dt>
  3167. <dd><p>Set quality for experimental VBR support. Maximum value range is
  3168. from -50 to 50, useful range is from -10 to 10. The higher the
  3169. value, the better the quality. This option is valid only using the
  3170. <code>ffmpeg</code> command-line tool. For library interface users,
  3171. use <samp>global_quality</samp>.
  3172. </p>
  3173. </dd>
  3174. <dt><span><samp>mode (<em>--mode</em>)</samp></span></dt>
  3175. <dd><p>Set the mode of the resulting audio. Possible values:
  3176. </p>
  3177. <dl compact="compact">
  3178. <dt><span>&lsquo;<samp>auto</samp>&rsquo;</span></dt>
  3179. <dd><p>Choose mode automatically based on the input. This is the default.
  3180. </p></dd>
  3181. <dt><span>&lsquo;<samp>stereo</samp>&rsquo;</span></dt>
  3182. <dd><p>Stereo
  3183. </p></dd>
  3184. <dt><span>&lsquo;<samp>joint_stereo</samp>&rsquo;</span></dt>
  3185. <dd><p>Joint stereo
  3186. </p></dd>
  3187. <dt><span>&lsquo;<samp>dual_channel</samp>&rsquo;</span></dt>
  3188. <dd><p>Dual channel
  3189. </p></dd>
  3190. <dt><span>&lsquo;<samp>mono</samp>&rsquo;</span></dt>
  3191. <dd><p>Mono
  3192. </p></dd>
  3193. </dl>
  3194. </dd>
  3195. <dt><span><samp>psymodel (<em>--psyc-mode</em>)</samp></span></dt>
  3196. <dd><p>Set psychoacoustic model to use in encoding. The argument must be
  3197. an integer between -1 and 4, inclusive. The higher the value, the
  3198. better the quality. The default value is 3.
  3199. </p>
  3200. </dd>
  3201. <dt><span><samp>energy_levels (<em>--energy</em>)</samp></span></dt>
  3202. <dd><p>Enable energy levels extensions when set to 1. The default value is
  3203. 0 (disabled).
  3204. </p>
  3205. </dd>
  3206. <dt><span><samp>error_protection (<em>--protect</em>)</samp></span></dt>
  3207. <dd><p>Enable CRC error protection when set to 1. The default value is 0
  3208. (disabled).
  3209. </p>
  3210. </dd>
  3211. <dt><span><samp>copyright (<em>--copyright</em>)</samp></span></dt>
  3212. <dd><p>Set MPEG audio copyright flag when set to 1. The default value is 0
  3213. (disabled).
  3214. </p>
  3215. </dd>
  3216. <dt><span><samp>original (<em>--original</em>)</samp></span></dt>
  3217. <dd><p>Set MPEG audio original flag when set to 1. The default value is 0
  3218. (disabled).
  3219. </p>
  3220. </dd>
  3221. </dl>
  3222. <a name="libvo_002damrwbenc"></a>
  3223. <h3 class="section">8.11 libvo-amrwbenc<span class="pull-right"><a class="anchor hidden-xs" href="#libvo_002damrwbenc" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libvo_002damrwbenc" aria-hidden="true">TOC</a></span></h3>
  3224. <p>VisualOn Adaptive Multi-Rate Wideband encoder.
  3225. </p>
  3226. <p>Requires the presence of the libvo-amrwbenc headers and library during
  3227. configuration. You need to explicitly configure the build with
  3228. <code>--enable-libvo-amrwbenc --enable-version3</code>.
  3229. </p>
  3230. <p>This is a mono-only encoder. Officially it only supports 16000Hz sample
  3231. rate, but you can override it by setting <samp>strict</samp> to
  3232. &lsquo;<samp>unofficial</samp>&rsquo; or lower.
  3233. </p>
  3234. <a name="Options-17"></a>
  3235. <h4 class="subsection">8.11.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-17" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-17" aria-hidden="true">TOC</a></span></h4>
  3236. <dl compact="compact">
  3237. <dt><span><samp>b</samp></span></dt>
  3238. <dd><p>Set bitrate in bits/s. Only the following bitrates are supported, otherwise
  3239. libavcodec will round to the nearest valid bitrate.
  3240. </p>
  3241. <dl compact="compact">
  3242. <dt><span>&lsquo;<samp>6600</samp>&rsquo;</span></dt>
  3243. <dt><span>&lsquo;<samp>8850</samp>&rsquo;</span></dt>
  3244. <dt><span>&lsquo;<samp>12650</samp>&rsquo;</span></dt>
  3245. <dt><span>&lsquo;<samp>14250</samp>&rsquo;</span></dt>
  3246. <dt><span>&lsquo;<samp>15850</samp>&rsquo;</span></dt>
  3247. <dt><span>&lsquo;<samp>18250</samp>&rsquo;</span></dt>
  3248. <dt><span>&lsquo;<samp>19850</samp>&rsquo;</span></dt>
  3249. <dt><span>&lsquo;<samp>23050</samp>&rsquo;</span></dt>
  3250. <dt><span>&lsquo;<samp>23850</samp>&rsquo;</span></dt>
  3251. </dl>
  3252. </dd>
  3253. <dt><span><samp>dtx</samp></span></dt>
  3254. <dd><p>Allow discontinuous transmission (generate comfort noise) when set to 1. The
  3255. default value is 0 (disabled).
  3256. </p>
  3257. </dd>
  3258. </dl>
  3259. <a name="libvorbis"></a>
  3260. <h3 class="section">8.12 libvorbis<span class="pull-right"><a class="anchor hidden-xs" href="#libvorbis" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libvorbis" aria-hidden="true">TOC</a></span></h3>
  3261. <p>libvorbis encoder wrapper.
  3262. </p>
  3263. <p>Requires the presence of the libvorbisenc headers and library during
  3264. configuration. You need to explicitly configure the build with
  3265. <code>--enable-libvorbis</code>.
  3266. </p>
  3267. <a name="Options-18"></a>
  3268. <h4 class="subsection">8.12.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-18" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-18" aria-hidden="true">TOC</a></span></h4>
  3269. <p>The following options are supported by the libvorbis wrapper. The
  3270. <code>oggenc</code>-equivalent of the options are listed in parentheses.
  3271. </p>
  3272. <p>To get a more accurate and extensive documentation of the libvorbis
  3273. options, consult the libvorbisenc&rsquo;s and <code>oggenc</code>&rsquo;s documentations.
  3274. See <a href="http://xiph.org/vorbis/">http://xiph.org/vorbis/</a>,
  3275. <a href="http://wiki.xiph.org/Vorbis-tools">http://wiki.xiph.org/Vorbis-tools</a>, and oggenc(1).
  3276. </p>
  3277. <dl compact="compact">
  3278. <dt><span><samp>b (<em>-b</em>)</samp></span></dt>
  3279. <dd><p>Set bitrate expressed in bits/s for ABR. <code>oggenc</code> <samp>-b</samp> is
  3280. expressed in kilobits/s.
  3281. </p>
  3282. </dd>
  3283. <dt><span><samp>q (<em>-q</em>)</samp></span></dt>
  3284. <dd><p>Set constant quality setting for VBR. The value should be a float
  3285. number in the range of -1.0 to 10.0. The higher the value, the better
  3286. the quality. The default value is &lsquo;<samp>3.0</samp>&rsquo;.
  3287. </p>
  3288. <p>This option is valid only using the <code>ffmpeg</code> command-line tool.
  3289. For library interface users, use <samp>global_quality</samp>.
  3290. </p>
  3291. </dd>
  3292. <dt><span><samp>cutoff (<em>--advanced-encode-option lowpass_frequency=N</em>)</samp></span></dt>
  3293. <dd><p>Set cutoff bandwidth in Hz, a value of 0 disables cutoff. <code>oggenc</code>&rsquo;s
  3294. related option is expressed in kHz. The default value is &lsquo;<samp>0</samp>&rsquo; (cutoff
  3295. disabled).
  3296. </p>
  3297. </dd>
  3298. <dt><span><samp>minrate (<em>-m</em>)</samp></span></dt>
  3299. <dd><p>Set minimum bitrate expressed in bits/s. <code>oggenc</code> <samp>-m</samp> is
  3300. expressed in kilobits/s.
  3301. </p>
  3302. </dd>
  3303. <dt><span><samp>maxrate (<em>-M</em>)</samp></span></dt>
  3304. <dd><p>Set maximum bitrate expressed in bits/s. <code>oggenc</code> <samp>-M</samp> is
  3305. expressed in kilobits/s. This only has effect on ABR mode.
  3306. </p>
  3307. </dd>
  3308. <dt><span><samp>iblock (<em>--advanced-encode-option impulse_noisetune=N</em>)</samp></span></dt>
  3309. <dd><p>Set noise floor bias for impulse blocks. The value is a float number from
  3310. -15.0 to 0.0. A negative bias instructs the encoder to pay special attention
  3311. to the crispness of transients in the encoded audio. The tradeoff for better
  3312. transient response is a higher bitrate.
  3313. </p>
  3314. </dd>
  3315. </dl>
  3316. <span id="mjpegenc"></span><a name="mjpeg"></a>
  3317. <h3 class="section">8.13 mjpeg<span class="pull-right"><a class="anchor hidden-xs" href="#mjpeg" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-mjpeg" aria-hidden="true">TOC</a></span></h3>
  3318. <p>Motion JPEG encoder.
  3319. </p>
  3320. <a name="Options-19"></a>
  3321. <h4 class="subsection">8.13.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-19" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-19" aria-hidden="true">TOC</a></span></h4>
  3322. <dl compact="compact">
  3323. <dt><span><samp>huffman</samp></span></dt>
  3324. <dd><p>Set the huffman encoding strategy. Possible values:
  3325. </p>
  3326. <dl compact="compact">
  3327. <dt><span>&lsquo;<samp>default</samp>&rsquo;</span></dt>
  3328. <dd><p>Use the default huffman tables. This is the default strategy.
  3329. </p>
  3330. </dd>
  3331. <dt><span>&lsquo;<samp>optimal</samp>&rsquo;</span></dt>
  3332. <dd><p>Compute and use optimal huffman tables.
  3333. </p>
  3334. </dd>
  3335. </dl>
  3336. </dd>
  3337. </dl>
  3338. <span id="wavpackenc"></span><a name="wavpack"></a>
  3339. <h3 class="section">8.14 wavpack<span class="pull-right"><a class="anchor hidden-xs" href="#wavpack" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-wavpack" aria-hidden="true">TOC</a></span></h3>
  3340. <p>WavPack lossless audio encoder.
  3341. </p>
  3342. <a name="Options-20"></a>
  3343. <h4 class="subsection">8.14.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-20" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-20" aria-hidden="true">TOC</a></span></h4>
  3344. <p>The equivalent options for <code>wavpack</code> command line utility are listed in
  3345. parentheses.
  3346. </p>
  3347. <a name="Shared-options"></a>
  3348. <h4 class="subsubsection">8.14.1.1 Shared options<span class="pull-right"><a class="anchor hidden-xs" href="#Shared-options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Shared-options" aria-hidden="true">TOC</a></span></h4>
  3349. <p>The following shared options are effective for this encoder. Only special notes
  3350. about this particular encoder will be documented here. For the general meaning
  3351. of the options, see <a href="#codec_002doptions">the Codec Options chapter</a>.
  3352. </p>
  3353. <dl compact="compact">
  3354. <dt><span><samp>frame_size (<em>--blocksize</em>)</samp></span></dt>
  3355. <dd><p>For this encoder, the range for this option is between 128 and 131072. Default
  3356. is automatically decided based on sample rate and number of channel.
  3357. </p>
  3358. <p>For the complete formula of calculating default, see
  3359. <samp>libavcodec/wavpackenc.c</samp>.
  3360. </p>
  3361. </dd>
  3362. <dt><span><samp>compression_level (<em>-f</em>, <em>-h</em>, <em>-hh</em>, and <em>-x</em>)</samp></span></dt>
  3363. </dl>
  3364. <a name="Private-options"></a>
  3365. <h4 class="subsubsection">8.14.1.2 Private options<span class="pull-right"><a class="anchor hidden-xs" href="#Private-options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Private-options" aria-hidden="true">TOC</a></span></h4>
  3366. <dl compact="compact">
  3367. <dt><span><samp>joint_stereo (<em>-j</em>)</samp></span></dt>
  3368. <dd><p>Set whether to enable joint stereo. Valid values are:
  3369. </p>
  3370. <dl compact="compact">
  3371. <dt><span>&lsquo;<samp>on (<em>1</em>)</samp>&rsquo;</span></dt>
  3372. <dd><p>Force mid/side audio encoding.
  3373. </p></dd>
  3374. <dt><span>&lsquo;<samp>off (<em>0</em>)</samp>&rsquo;</span></dt>
  3375. <dd><p>Force left/right audio encoding.
  3376. </p></dd>
  3377. <dt><span>&lsquo;<samp>auto</samp>&rsquo;</span></dt>
  3378. <dd><p>Let the encoder decide automatically.
  3379. </p></dd>
  3380. </dl>
  3381. </dd>
  3382. <dt><span><samp>optimize_mono</samp></span></dt>
  3383. <dd><p>Set whether to enable optimization for mono. This option is only effective for
  3384. non-mono streams. Available values:
  3385. </p>
  3386. <dl compact="compact">
  3387. <dt><span>&lsquo;<samp>on</samp>&rsquo;</span></dt>
  3388. <dd><p>enabled
  3389. </p></dd>
  3390. <dt><span>&lsquo;<samp>off</samp>&rsquo;</span></dt>
  3391. <dd><p>disabled
  3392. </p></dd>
  3393. </dl>
  3394. </dd>
  3395. </dl>
  3396. <a name="Video-Encoders"></a>
  3397. <h2 class="chapter">9 Video Encoders<span class="pull-right"><a class="anchor hidden-xs" href="#Video-Encoders" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Video-Encoders" aria-hidden="true">TOC</a></span></h2>
  3398. <p>A description of some of the currently available video encoders
  3399. follows.
  3400. </p>
  3401. <a name="a64_005fmulti_002c-a64_005fmulti5"></a>
  3402. <h3 class="section">9.1 a64_multi, a64_multi5<span class="pull-right"><a class="anchor hidden-xs" href="#a64_005fmulti_002c-a64_005fmulti5" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-a64_005fmulti_002c-a64_005fmulti5" aria-hidden="true">TOC</a></span></h3>
  3403. <p>A64 / Commodore 64 multicolor charset encoder. <code>a64_multi5</code> is extended with 5th color (colram).
  3404. </p>
  3405. <a name="Cinepak"></a>
  3406. <h3 class="section">9.2 Cinepak<span class="pull-right"><a class="anchor hidden-xs" href="#Cinepak" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Cinepak" aria-hidden="true">TOC</a></span></h3>
  3407. <p>Cinepak aka CVID encoder.
  3408. Compatible with Windows 3.1 and vintage MacOS.
  3409. </p>
  3410. <a name="Options-21"></a>
  3411. <h4 class="subsection">9.2.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-21" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-21" aria-hidden="true">TOC</a></span></h4>
  3412. <dl compact="compact">
  3413. <dt><span><samp>g <var>integer</var></samp></span></dt>
  3414. <dd><p>Keyframe interval.
  3415. A keyframe is inserted at least every <code>-g</code> frames, sometimes sooner.
  3416. </p>
  3417. </dd>
  3418. <dt><span><samp>q:v <var>integer</var></samp></span></dt>
  3419. <dd><p>Quality factor. Lower is better. Higher gives lower bitrate.
  3420. The following table lists bitrates when encoding akiyo_cif.y4m for various values of <code>-q:v</code> with <code>-g 100</code>:
  3421. </p>
  3422. <dl compact="compact">
  3423. <dt><span><samp><code>-q:v 1</code> 1918 kb/s</samp></span></dt>
  3424. <dt><span><samp><code>-q:v 2</code> 1735 kb/s</samp></span></dt>
  3425. <dt><span><samp><code>-q:v 4</code> 1500 kb/s</samp></span></dt>
  3426. <dt><span><samp><code>-q:v 10</code> 1041 kb/s</samp></span></dt>
  3427. <dt><span><samp><code>-q:v 20</code> 826 kb/s</samp></span></dt>
  3428. <dt><span><samp><code>-q:v 40</code> 553 kb/s</samp></span></dt>
  3429. <dt><span><samp><code>-q:v 100</code> 394 kb/s</samp></span></dt>
  3430. <dt><span><samp><code>-q:v 200</code> 312 kb/s</samp></span></dt>
  3431. <dt><span><samp><code>-q:v 400</code> 266 kb/s</samp></span></dt>
  3432. <dt><span><samp><code>-q:v 1000</code> 237 kb/s</samp></span></dt>
  3433. </dl>
  3434. </dd>
  3435. <dt><span><samp>max_extra_cb_iterations <var>integer</var></samp></span></dt>
  3436. <dd><p>Max extra codebook recalculation passes, more is better and slower.
  3437. </p>
  3438. </dd>
  3439. <dt><span><samp>skip_empty_cb <var>boolean</var></samp></span></dt>
  3440. <dd><p>Avoid wasting bytes, ignore vintage MacOS decoder.
  3441. </p>
  3442. </dd>
  3443. <dt><span><samp>max_strips <var>integer</var></samp></span></dt>
  3444. <dt><span><samp>min_strips <var>integer</var></samp></span></dt>
  3445. <dd><p>The minimum and maximum number of strips to use.
  3446. Wider range sometimes improves quality.
  3447. More strips is generally better quality but costs more bits.
  3448. Fewer strips tend to yield more keyframes.
  3449. Vintage compatible is 1..3.
  3450. </p>
  3451. </dd>
  3452. <dt><span><samp>strip_number_adaptivity <var>integer</var></samp></span></dt>
  3453. <dd><p>How much number of strips is allowed to change between frames.
  3454. Higher is better but slower.
  3455. </p>
  3456. </dd>
  3457. </dl>
  3458. <a name="GIF"></a>
  3459. <h3 class="section">9.3 GIF<span class="pull-right"><a class="anchor hidden-xs" href="#GIF" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-GIF" aria-hidden="true">TOC</a></span></h3>
  3460. <p>GIF image/animation encoder.
  3461. </p>
  3462. <a name="Options-22"></a>
  3463. <h4 class="subsection">9.3.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-22" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-22" aria-hidden="true">TOC</a></span></h4>
  3464. <dl compact="compact">
  3465. <dt><span><samp>gifflags <var>integer</var></samp></span></dt>
  3466. <dd><p>Sets the flags used for GIF encoding.
  3467. </p>
  3468. <dl compact="compact">
  3469. <dt><span><samp>offsetting</samp></span></dt>
  3470. <dd><p>Enables picture offsetting.
  3471. </p>
  3472. <p>Default is enabled.
  3473. </p>
  3474. </dd>
  3475. <dt><span><samp>transdiff</samp></span></dt>
  3476. <dd><p>Enables transparency detection between frames.
  3477. </p>
  3478. <p>Default is enabled.
  3479. </p>
  3480. </dd>
  3481. </dl>
  3482. </dd>
  3483. <dt><span><samp>gifimage <var>integer</var></samp></span></dt>
  3484. <dd><p>Enables encoding one full GIF image per frame, rather than an animated GIF.
  3485. </p>
  3486. <p>Default value is <samp>0</samp>.
  3487. </p>
  3488. </dd>
  3489. <dt><span><samp>global_palette <var>integer</var></samp></span></dt>
  3490. <dd><p>Writes a palette to the global GIF header where feasible.
  3491. </p>
  3492. <p>If disabled, every frame will always have a palette written, even if there
  3493. is a global palette supplied.
  3494. </p>
  3495. <p>Default value is <samp>1</samp>.
  3496. </p>
  3497. </dd>
  3498. </dl>
  3499. <a name="Hap"></a>
  3500. <h3 class="section">9.4 Hap<span class="pull-right"><a class="anchor hidden-xs" href="#Hap" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Hap" aria-hidden="true">TOC</a></span></h3>
  3501. <p>Vidvox Hap video encoder.
  3502. </p>
  3503. <a name="Options-23"></a>
  3504. <h4 class="subsection">9.4.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-23" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-23" aria-hidden="true">TOC</a></span></h4>
  3505. <dl compact="compact">
  3506. <dt><span><samp>format <var>integer</var></samp></span></dt>
  3507. <dd><p>Specifies the Hap format to encode.
  3508. </p>
  3509. <dl compact="compact">
  3510. <dt><span><samp>hap</samp></span></dt>
  3511. <dt><span><samp>hap_alpha</samp></span></dt>
  3512. <dt><span><samp>hap_q</samp></span></dt>
  3513. </dl>
  3514. <p>Default value is <samp>hap</samp>.
  3515. </p>
  3516. </dd>
  3517. <dt><span><samp>chunks <var>integer</var></samp></span></dt>
  3518. <dd><p>Specifies the number of chunks to split frames into, between 1 and 64. This
  3519. permits multithreaded decoding of large frames, potentially at the cost of
  3520. data-rate. The encoder may modify this value to divide frames evenly.
  3521. </p>
  3522. <p>Default value is <var>1</var>.
  3523. </p>
  3524. </dd>
  3525. <dt><span><samp>compressor <var>integer</var></samp></span></dt>
  3526. <dd><p>Specifies the second-stage compressor to use. If set to <samp>none</samp>,
  3527. <samp>chunks</samp> will be limited to 1, as chunked uncompressed frames offer no
  3528. benefit.
  3529. </p>
  3530. <dl compact="compact">
  3531. <dt><span><samp>none</samp></span></dt>
  3532. <dt><span><samp>snappy</samp></span></dt>
  3533. </dl>
  3534. <p>Default value is <samp>snappy</samp>.
  3535. </p>
  3536. </dd>
  3537. </dl>
  3538. <a name="jpeg2000"></a>
  3539. <h3 class="section">9.5 jpeg2000<span class="pull-right"><a class="anchor hidden-xs" href="#jpeg2000" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-jpeg2000" aria-hidden="true">TOC</a></span></h3>
  3540. <p>The native jpeg 2000 encoder is lossy by default, the <code>-q:v</code>
  3541. option can be used to set the encoding quality. Lossless encoding
  3542. can be selected with <code>-pred 1</code>.
  3543. </p>
  3544. <a name="Options-24"></a>
  3545. <h4 class="subsection">9.5.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-24" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-24" aria-hidden="true">TOC</a></span></h4>
  3546. <dl compact="compact">
  3547. <dt><span><samp>format <var>integer</var></samp></span></dt>
  3548. <dd><p>Can be set to either <code>j2k</code> or <code>jp2</code> (the default) that
  3549. makes it possible to store non-rgb pix_fmts.
  3550. </p>
  3551. </dd>
  3552. <dt><span><samp>tile_width <var>integer</var></samp></span></dt>
  3553. <dd><p>Sets tile width. Range is 1 to 1073741824. Default is 256.
  3554. </p>
  3555. </dd>
  3556. <dt><span><samp>tile_height <var>integer</var></samp></span></dt>
  3557. <dd><p>Sets tile height. Range is 1 to 1073741824. Default is 256.
  3558. </p>
  3559. </dd>
  3560. <dt><span><samp>pred <var>integer</var></samp></span></dt>
  3561. <dd><p>Allows setting the discrete wavelet transform (DWT) type
  3562. </p><dl compact="compact">
  3563. <dt><span><samp>dwt97int (Lossy)</samp></span></dt>
  3564. <dt><span><samp>dwt53 (Lossless)</samp></span></dt>
  3565. </dl>
  3566. <p>Default is <code>dwt97int</code>
  3567. </p>
  3568. </dd>
  3569. <dt><span><samp>sop <var>boolean</var></samp></span></dt>
  3570. <dd><p>Enable this to add SOP marker at the start of each packet. Disabled by default.
  3571. </p>
  3572. </dd>
  3573. <dt><span><samp>eph <var>boolean</var></samp></span></dt>
  3574. <dd><p>Enable this to add EPH marker at the end of each packet header. Disabled by default.
  3575. </p>
  3576. </dd>
  3577. <dt><span><samp>prog <var>integer</var></samp></span></dt>
  3578. <dd><p>Sets the progression order to be used by the encoder.
  3579. Possible values are:
  3580. </p><dl compact="compact">
  3581. <dt><span><samp>lrcp</samp></span></dt>
  3582. <dt><span><samp>rlcp</samp></span></dt>
  3583. <dt><span><samp>rpcl</samp></span></dt>
  3584. <dt><span><samp>pcrl</samp></span></dt>
  3585. <dt><span><samp>cprl</samp></span></dt>
  3586. </dl>
  3587. <p>Set to <code>lrcp</code> by default.
  3588. </p>
  3589. </dd>
  3590. <dt><span><samp>layer_rates <var>string</var></samp></span></dt>
  3591. <dd><p>By default, when this option is not used, compression is done using the quality metric.
  3592. This option allows for compression using compression ratio. The compression ratio for each
  3593. level could be specified. The compression ratio of a layer <code>l</code> species the what ratio of
  3594. total file size is contained in the first <code>l</code> layers.
  3595. </p>
  3596. <p>Example usage:
  3597. </p>
  3598. <div class="example">
  3599. <pre class="example">ffmpeg -i input.bmp -c:v jpeg2000 -layer_rates &quot;100,10,1&quot; output.j2k
  3600. </pre></div>
  3601. <p>This would compress the image to contain 3 layers, where the data contained in the
  3602. first layer would be compressed by 1000 times, compressed by 100 in the first two layers,
  3603. and shall contain all data while using all 3 layers.
  3604. </p>
  3605. </dd>
  3606. </dl>
  3607. <a name="librav1e"></a>
  3608. <h3 class="section">9.6 librav1e<span class="pull-right"><a class="anchor hidden-xs" href="#librav1e" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-librav1e" aria-hidden="true">TOC</a></span></h3>
  3609. <p>rav1e AV1 encoder wrapper.
  3610. </p>
  3611. <p>Requires the presence of the rav1e headers and library during configuration.
  3612. You need to explicitly configure the build with <code>--enable-librav1e</code>.
  3613. </p>
  3614. <a name="Options-25"></a>
  3615. <h4 class="subsection">9.6.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-25" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-25" aria-hidden="true">TOC</a></span></h4>
  3616. <dl compact="compact">
  3617. <dt><span><samp>qmax</samp></span></dt>
  3618. <dd><p>Sets the maximum quantizer to use when using bitrate mode.
  3619. </p>
  3620. </dd>
  3621. <dt><span><samp>qmin</samp></span></dt>
  3622. <dd><p>Sets the minimum quantizer to use when using bitrate mode.
  3623. </p>
  3624. </dd>
  3625. <dt><span><samp>qp</samp></span></dt>
  3626. <dd><p>Uses quantizer mode to encode at the given quantizer (0-255).
  3627. </p>
  3628. </dd>
  3629. <dt><span><samp>speed</samp></span></dt>
  3630. <dd><p>Selects the speed preset (0-10) to encode with.
  3631. </p>
  3632. </dd>
  3633. <dt><span><samp>tiles</samp></span></dt>
  3634. <dd><p>Selects how many tiles to encode with.
  3635. </p>
  3636. </dd>
  3637. <dt><span><samp>tile-rows</samp></span></dt>
  3638. <dd><p>Selects how many rows of tiles to encode with.
  3639. </p>
  3640. </dd>
  3641. <dt><span><samp>tile-columns</samp></span></dt>
  3642. <dd><p>Selects how many columns of tiles to encode with.
  3643. </p>
  3644. </dd>
  3645. <dt><span><samp>rav1e-params</samp></span></dt>
  3646. <dd><p>Set rav1e options using a list of <var>key</var>=<var>value</var> pairs separated
  3647. by &quot;:&quot;. See <code>rav1e --help</code> for a list of options.
  3648. </p>
  3649. <p>For example to specify librav1e encoding options with <samp>-rav1e-params</samp>:
  3650. </p>
  3651. <div class="example">
  3652. <pre class="example">ffmpeg -i input -c:v librav1e -b:v 500K -rav1e-params speed=5:low_latency=true output.mp4
  3653. </pre></div>
  3654. </dd>
  3655. </dl>
  3656. <a name="libaom_002dav1"></a>
  3657. <h3 class="section">9.7 libaom-av1<span class="pull-right"><a class="anchor hidden-xs" href="#libaom_002dav1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libaom_002dav1" aria-hidden="true">TOC</a></span></h3>
  3658. <p>libaom AV1 encoder wrapper.
  3659. </p>
  3660. <p>Requires the presence of the libaom headers and library during
  3661. configuration. You need to explicitly configure the build with
  3662. <code>--enable-libaom</code>.
  3663. </p>
  3664. <a name="Options-26"></a>
  3665. <h4 class="subsection">9.7.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-26" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-26" aria-hidden="true">TOC</a></span></h4>
  3666. <p>The wrapper supports the following standard libavcodec options:
  3667. </p>
  3668. <dl compact="compact">
  3669. <dt><span><samp>b</samp></span></dt>
  3670. <dd><p>Set bitrate target in bits/second. By default this will use
  3671. variable-bitrate mode. If <samp>maxrate</samp> and <samp>minrate</samp> are
  3672. also set to the same value then it will use constant-bitrate mode,
  3673. otherwise if <samp>crf</samp> is set as well then it will use
  3674. constrained-quality mode.
  3675. </p>
  3676. </dd>
  3677. <dt><span><samp>g keyint_min</samp></span></dt>
  3678. <dd><p>Set key frame placement. The GOP size sets the maximum distance between
  3679. key frames; if zero the output stream will be intra-only. The minimum
  3680. distance is ignored unless it is the same as the GOP size, in which case
  3681. key frames will always appear at a fixed interval. Not set by default,
  3682. so without this option the library has completely free choice about
  3683. where to place key frames.
  3684. </p>
  3685. </dd>
  3686. <dt><span><samp>qmin qmax</samp></span></dt>
  3687. <dd><p>Set minimum/maximum quantisation values. Valid range is from 0 to 63
  3688. (warning: this does not match the quantiser values actually used by AV1
  3689. - divide by four to map real quantiser values to this range). Defaults
  3690. to min/max (no constraint).
  3691. </p>
  3692. </dd>
  3693. <dt><span><samp>minrate maxrate bufsize rc_init_occupancy</samp></span></dt>
  3694. <dd><p>Set rate control buffering parameters. Not used if not set - defaults
  3695. to unconstrained variable bitrate.
  3696. </p>
  3697. </dd>
  3698. <dt><span><samp>threads</samp></span></dt>
  3699. <dd><p>Set the number of threads to use while encoding. This may require the
  3700. <samp>tiles</samp> or <samp>row-mt</samp> options to also be set to actually
  3701. use the specified number of threads fully. Defaults to the number of
  3702. hardware threads supported by the host machine.
  3703. </p>
  3704. </dd>
  3705. <dt><span><samp>profile</samp></span></dt>
  3706. <dd><p>Set the encoding profile. Defaults to using the profile which matches
  3707. the bit depth and chroma subsampling of the input.
  3708. </p>
  3709. </dd>
  3710. </dl>
  3711. <p>The wrapper also has some specific options:
  3712. </p>
  3713. <dl compact="compact">
  3714. <dt><span><samp>cpu-used</samp></span></dt>
  3715. <dd><p>Set the quality/encoding speed tradeoff. Valid range is from 0 to 8,
  3716. higher numbers indicating greater speed and lower quality. The default
  3717. value is 1, which will be slow and high quality.
  3718. </p>
  3719. </dd>
  3720. <dt><span><samp>auto-alt-ref</samp></span></dt>
  3721. <dd><p>Enable use of alternate reference frames. Defaults to the internal
  3722. default of the library.
  3723. </p>
  3724. </dd>
  3725. <dt><span><samp>arnr-max-frames (<em>frames</em>)</samp></span></dt>
  3726. <dd><p>Set altref noise reduction max frame count. Default is -1.
  3727. </p>
  3728. </dd>
  3729. <dt><span><samp>arnr-strength (<em>strength</em>)</samp></span></dt>
  3730. <dd><p>Set altref noise reduction filter strength. Range is -1 to 6. Default is -1.
  3731. </p>
  3732. </dd>
  3733. <dt><span><samp>aq-mode (<em>aq-mode</em>)</samp></span></dt>
  3734. <dd><p>Set adaptive quantization mode. Possible values:
  3735. </p>
  3736. <dl compact="compact">
  3737. <dt><span>&lsquo;<samp>none (<em>0</em>)</samp>&rsquo;</span></dt>
  3738. <dd><p>Disabled.
  3739. </p>
  3740. </dd>
  3741. <dt><span>&lsquo;<samp>variance (<em>1</em>)</samp>&rsquo;</span></dt>
  3742. <dd><p>Variance-based.
  3743. </p>
  3744. </dd>
  3745. <dt><span>&lsquo;<samp>complexity (<em>2</em>)</samp>&rsquo;</span></dt>
  3746. <dd><p>Complexity-based.
  3747. </p>
  3748. </dd>
  3749. <dt><span>&lsquo;<samp>cyclic (<em>3</em>)</samp>&rsquo;</span></dt>
  3750. <dd><p>Cyclic refresh.
  3751. </p></dd>
  3752. </dl>
  3753. </dd>
  3754. <dt><span><samp>tune (<em>tune</em>)</samp></span></dt>
  3755. <dd><p>Set the distortion metric the encoder is tuned with. Default is <code>psnr</code>.
  3756. </p>
  3757. <dl compact="compact">
  3758. <dt><span>&lsquo;<samp>psnr (<em>0</em>)</samp>&rsquo;</span></dt>
  3759. <dt><span>&lsquo;<samp>ssim (<em>1</em>)</samp>&rsquo;</span></dt>
  3760. </dl>
  3761. </dd>
  3762. <dt><span><samp>lag-in-frames</samp></span></dt>
  3763. <dd><p>Set the maximum number of frames which the encoder may keep in flight
  3764. at any one time for lookahead purposes. Defaults to the internal
  3765. default of the library.
  3766. </p>
  3767. </dd>
  3768. <dt><span><samp>error-resilience</samp></span></dt>
  3769. <dd><p>Enable error resilience features:
  3770. </p><dl compact="compact">
  3771. <dt><span><samp>default</samp></span></dt>
  3772. <dd><p>Improve resilience against losses of whole frames.
  3773. </p></dd>
  3774. </dl>
  3775. <p>Not enabled by default.
  3776. </p>
  3777. </dd>
  3778. <dt><span><samp>crf</samp></span></dt>
  3779. <dd><p>Set the quality/size tradeoff for constant-quality (no bitrate target)
  3780. and constrained-quality (with maximum bitrate target) modes. Valid
  3781. range is 0 to 63, higher numbers indicating lower quality and smaller
  3782. output size. Only used if set; by default only the bitrate target is
  3783. used.
  3784. </p>
  3785. </dd>
  3786. <dt><span><samp>static-thresh</samp></span></dt>
  3787. <dd><p>Set a change threshold on blocks below which they will be skipped by
  3788. the encoder. Defined in arbitrary units as a nonnegative integer,
  3789. defaulting to zero (no blocks are skipped).
  3790. </p>
  3791. </dd>
  3792. <dt><span><samp>drop-threshold</samp></span></dt>
  3793. <dd><p>Set a threshold for dropping frames when close to rate control bounds.
  3794. Defined as a percentage of the target buffer - when the rate control
  3795. buffer falls below this percentage, frames will be dropped until it
  3796. has refilled above the threshold. Defaults to zero (no frames are
  3797. dropped).
  3798. </p>
  3799. </dd>
  3800. <dt><span><samp>denoise-noise-level (<em>level</em>)</samp></span></dt>
  3801. <dd><p>Amount of noise to be removed for grain synthesis. Grain synthesis is disabled if
  3802. this option is not set or set to 0.
  3803. </p>
  3804. </dd>
  3805. <dt><span><samp>denoise-block-size (<em>pixels</em>)</samp></span></dt>
  3806. <dd><p>Block size used for denoising for grain synthesis. If not set, AV1 codec
  3807. uses the default value of 32.
  3808. </p>
  3809. </dd>
  3810. <dt><span><samp>undershoot-pct (<em>pct</em>)</samp></span></dt>
  3811. <dd><p>Set datarate undershoot (min) percentage of the target bitrate. Range is -1 to 100.
  3812. Default is -1.
  3813. </p>
  3814. </dd>
  3815. <dt><span><samp>overshoot-pct (<em>pct</em>)</samp></span></dt>
  3816. <dd><p>Set datarate overshoot (max) percentage of the target bitrate. Range is -1 to 1000.
  3817. Default is -1.
  3818. </p>
  3819. </dd>
  3820. <dt><span><samp>minsection-pct (<em>pct</em>)</samp></span></dt>
  3821. <dd><p>Minimum percentage variation of the GOP bitrate from the target bitrate. If minsection-pct
  3822. is not set, the libaomenc wrapper computes it as follows: <code>(minrate * 100 / bitrate)</code>.
  3823. Range is -1 to 100. Default is -1 (unset).
  3824. </p>
  3825. </dd>
  3826. <dt><span><samp>maxsection-pct (<em>pct</em>)</samp></span></dt>
  3827. <dd><p>Maximum percentage variation of the GOP bitrate from the target bitrate. If maxsection-pct
  3828. is not set, the libaomenc wrapper computes it as follows: <code>(maxrate * 100 / bitrate)</code>.
  3829. Range is -1 to 5000. Default is -1 (unset).
  3830. </p>
  3831. </dd>
  3832. <dt><span><samp>frame-parallel (<em>boolean</em>)</samp></span></dt>
  3833. <dd><p>Enable frame parallel decodability features. Default is true.
  3834. </p>
  3835. </dd>
  3836. <dt><span><samp>tiles</samp></span></dt>
  3837. <dd><p>Set the number of tiles to encode the input video with, as columns x
  3838. rows. Larger numbers allow greater parallelism in both encoding and
  3839. decoding, but may decrease coding efficiency. Defaults to the minimum
  3840. number of tiles required by the size of the input video (this is 1x1
  3841. (that is, a single tile) for sizes up to and including 4K).
  3842. </p>
  3843. </dd>
  3844. <dt><span><samp>tile-columns tile-rows</samp></span></dt>
  3845. <dd><p>Set the number of tiles as log2 of the number of tile rows and columns.
  3846. Provided for compatibility with libvpx/VP9.
  3847. </p>
  3848. </dd>
  3849. <dt><span><samp>row-mt (Requires libaom &gt;= 1.0.0-759-g90a15f4f2)</samp></span></dt>
  3850. <dd><p>Enable row based multi-threading. Disabled by default.
  3851. </p>
  3852. </dd>
  3853. <dt><span><samp>enable-cdef (<em>boolean</em>)</samp></span></dt>
  3854. <dd><p>Enable Constrained Directional Enhancement Filter. The libaom-av1
  3855. encoder enables CDEF by default.
  3856. </p>
  3857. </dd>
  3858. <dt><span><samp>enable-restoration (<em>boolean</em>)</samp></span></dt>
  3859. <dd><p>Enable Loop Restoration Filter. Default is true for libaom-av1.
  3860. </p>
  3861. </dd>
  3862. <dt><span><samp>enable-global-motion (<em>boolean</em>)</samp></span></dt>
  3863. <dd><p>Enable the use of global motion for block prediction. Default is true.
  3864. </p>
  3865. </dd>
  3866. <dt><span><samp>enable-intrabc (<em>boolean</em>)</samp></span></dt>
  3867. <dd><p>Enable block copy mode for intra block prediction. This mode is
  3868. useful for screen content. Default is true.
  3869. </p>
  3870. </dd>
  3871. <dt><span><samp>enable-rect-partitions (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></span></dt>
  3872. <dd><p>Enable rectangular partitions. Default is true.
  3873. </p>
  3874. </dd>
  3875. <dt><span><samp>enable-1to4-partitions (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></span></dt>
  3876. <dd><p>Enable 1:4/4:1 partitions. Default is true.
  3877. </p>
  3878. </dd>
  3879. <dt><span><samp>enable-ab-partitions (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></span></dt>
  3880. <dd><p>Enable AB shape partitions. Default is true.
  3881. </p>
  3882. </dd>
  3883. <dt><span><samp>enable-angle-delta (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></span></dt>
  3884. <dd><p>Enable angle delta intra prediction. Default is true.
  3885. </p>
  3886. </dd>
  3887. <dt><span><samp>enable-cfl-intra (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></span></dt>
  3888. <dd><p>Enable chroma predicted from luma intra prediction. Default is true.
  3889. </p>
  3890. </dd>
  3891. <dt><span><samp>enable-filter-intra (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></span></dt>
  3892. <dd><p>Enable filter intra predictor. Default is true.
  3893. </p>
  3894. </dd>
  3895. <dt><span><samp>enable-intra-edge-filter (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></span></dt>
  3896. <dd><p>Enable intra edge filter. Default is true.
  3897. </p>
  3898. </dd>
  3899. <dt><span><samp>enable-smooth-intra (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></span></dt>
  3900. <dd><p>Enable smooth intra prediction mode. Default is true.
  3901. </p>
  3902. </dd>
  3903. <dt><span><samp>enable-paeth-intra (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></span></dt>
  3904. <dd><p>Enable paeth predictor in intra prediction. Default is true.
  3905. </p>
  3906. </dd>
  3907. <dt><span><samp>enable-palette (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></span></dt>
  3908. <dd><p>Enable palette prediction mode. Default is true.
  3909. </p>
  3910. </dd>
  3911. <dt><span><samp>enable-flip-idtx (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></span></dt>
  3912. <dd><p>Enable extended transform type, including FLIPADST_DCT, DCT_FLIPADST,
  3913. FLIPADST_FLIPADST, ADST_FLIPADST, FLIPADST_ADST, IDTX, V_DCT, H_DCT,
  3914. V_ADST, H_ADST, V_FLIPADST, H_FLIPADST. Default is true.
  3915. </p>
  3916. </dd>
  3917. <dt><span><samp>enable-tx64 (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></span></dt>
  3918. <dd><p>Enable 64-pt transform. Default is true.
  3919. </p>
  3920. </dd>
  3921. <dt><span><samp>reduced-tx-type-set (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></span></dt>
  3922. <dd><p>Use reduced set of transform types. Default is false.
  3923. </p>
  3924. </dd>
  3925. <dt><span><samp>use-intra-dct-only (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></span></dt>
  3926. <dd><p>Use DCT only for INTRA modes. Default is false.
  3927. </p>
  3928. </dd>
  3929. <dt><span><samp>use-inter-dct-only (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></span></dt>
  3930. <dd><p>Use DCT only for INTER modes. Default is false.
  3931. </p>
  3932. </dd>
  3933. <dt><span><samp>use-intra-default-tx-only (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></span></dt>
  3934. <dd><p>Use Default-transform only for INTRA modes. Default is false.
  3935. </p>
  3936. </dd>
  3937. <dt><span><samp>enable-ref-frame-mvs (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></span></dt>
  3938. <dd><p>Enable temporal mv prediction. Default is true.
  3939. </p>
  3940. </dd>
  3941. <dt><span><samp>enable-reduced-reference-set (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></span></dt>
  3942. <dd><p>Use reduced set of single and compound references. Default is false.
  3943. </p>
  3944. </dd>
  3945. <dt><span><samp>enable-obmc (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></span></dt>
  3946. <dd><p>Enable obmc. Default is true.
  3947. </p>
  3948. </dd>
  3949. <dt><span><samp>enable-dual-filter (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></span></dt>
  3950. <dd><p>Enable dual filter. Default is true.
  3951. </p>
  3952. </dd>
  3953. <dt><span><samp>enable-diff-wtd-comp (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></span></dt>
  3954. <dd><p>Enable difference-weighted compound. Default is true.
  3955. </p>
  3956. </dd>
  3957. <dt><span><samp>enable-dist-wtd-comp (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></span></dt>
  3958. <dd><p>Enable distance-weighted compound. Default is true.
  3959. </p>
  3960. </dd>
  3961. <dt><span><samp>enable-onesided-comp (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></span></dt>
  3962. <dd><p>Enable one sided compound. Default is true.
  3963. </p>
  3964. </dd>
  3965. <dt><span><samp>enable-interinter-wedge (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></span></dt>
  3966. <dd><p>Enable interinter wedge compound. Default is true.
  3967. </p>
  3968. </dd>
  3969. <dt><span><samp>enable-interintra-wedge (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></span></dt>
  3970. <dd><p>Enable interintra wedge compound. Default is true.
  3971. </p>
  3972. </dd>
  3973. <dt><span><samp>enable-masked-comp (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></span></dt>
  3974. <dd><p>Enable masked compound. Default is true.
  3975. </p>
  3976. </dd>
  3977. <dt><span><samp>enable-interintra-comp (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></span></dt>
  3978. <dd><p>Enable interintra compound. Default is true.
  3979. </p>
  3980. </dd>
  3981. <dt><span><samp>enable-smooth-interintra (<em>boolean</em>) (Requires libaom &gt;= v2.0.0)</samp></span></dt>
  3982. <dd><p>Enable smooth interintra mode. Default is true.
  3983. </p>
  3984. </dd>
  3985. <dt><span><samp>aom-params</samp></span></dt>
  3986. <dd><p>Set libaom options using a list of <var>key</var>=<var>value</var> pairs separated
  3987. by &quot;:&quot;. For a list of supported options, see <code>aomenc --help</code> under the
  3988. section &quot;AV1 Specific Options&quot;.
  3989. </p>
  3990. <p>For example to specify libaom encoding options with <samp>-aom-params</samp>:
  3991. </p>
  3992. <div class="example">
  3993. <pre class="example">ffmpeg -i input -c:v libaom-av1 -b:v 500K -aom-params tune=psnr:enable-tpl-model=1 output.mp4
  3994. </pre></div>
  3995. </dd>
  3996. </dl>
  3997. <a name="libsvtav1"></a>
  3998. <h3 class="section">9.8 libsvtav1<span class="pull-right"><a class="anchor hidden-xs" href="#libsvtav1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libsvtav1" aria-hidden="true">TOC</a></span></h3>
  3999. <p>SVT-AV1 encoder wrapper.
  4000. </p>
  4001. <p>Requires the presence of the SVT-AV1 headers and library during configuration.
  4002. You need to explicitly configure the build with <code>--enable-libsvtav1</code>.
  4003. </p>
  4004. <a name="Options-27"></a>
  4005. <h4 class="subsection">9.8.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-27" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-27" aria-hidden="true">TOC</a></span></h4>
  4006. <dl compact="compact">
  4007. <dt><span><samp>profile</samp></span></dt>
  4008. <dd><p>Set the encoding profile.
  4009. </p><dl compact="compact">
  4010. <dt><span>&lsquo;<samp>main</samp>&rsquo;</span></dt>
  4011. <dt><span>&lsquo;<samp>high</samp>&rsquo;</span></dt>
  4012. <dt><span>&lsquo;<samp>professional</samp>&rsquo;</span></dt>
  4013. </dl>
  4014. </dd>
  4015. <dt><span><samp>level</samp></span></dt>
  4016. <dd><p>Set the operating point level. For example: &rsquo;4.0&rsquo;
  4017. </p>
  4018. </dd>
  4019. <dt><span><samp>hielevel</samp></span></dt>
  4020. <dd><p>Set the Hierarchical prediction levels.
  4021. </p><dl compact="compact">
  4022. <dt><span>&lsquo;<samp>3level</samp>&rsquo;</span></dt>
  4023. <dt><span>&lsquo;<samp>4level</samp>&rsquo;</span></dt>
  4024. <dd><p>This is the default.
  4025. </p></dd>
  4026. </dl>
  4027. </dd>
  4028. <dt><span><samp>tier</samp></span></dt>
  4029. <dd><p>Set the operating point tier.
  4030. </p><dl compact="compact">
  4031. <dt><span>&lsquo;<samp>main</samp>&rsquo;</span></dt>
  4032. <dd><p>This is the default.
  4033. </p></dd>
  4034. <dt><span>&lsquo;<samp>high</samp>&rsquo;</span></dt>
  4035. </dl>
  4036. </dd>
  4037. <dt><span><samp>qmax</samp></span></dt>
  4038. <dd><p>Set the maximum quantizer to use when using a bitrate mode.
  4039. </p>
  4040. </dd>
  4041. <dt><span><samp>qmin</samp></span></dt>
  4042. <dd><p>Set the minimum quantizer to use when using a bitrate mode.
  4043. </p>
  4044. </dd>
  4045. <dt><span><samp>crf</samp></span></dt>
  4046. <dd><p>Constant rate factor value used in crf rate control mode (0-63).
  4047. </p>
  4048. </dd>
  4049. <dt><span><samp>qp</samp></span></dt>
  4050. <dd><p>Set the quantizer used in cqp rate control mode (0-63).
  4051. </p>
  4052. </dd>
  4053. <dt><span><samp>sc_detection</samp></span></dt>
  4054. <dd><p>Enable scene change detection.
  4055. </p>
  4056. </dd>
  4057. <dt><span><samp>la_depth</samp></span></dt>
  4058. <dd><p>Set number of frames to look ahead (0-120).
  4059. </p>
  4060. </dd>
  4061. <dt><span><samp>preset</samp></span></dt>
  4062. <dd><p>Set the quality-speed tradeoff, in the range 0 to 13. Higher values are
  4063. faster but lower quality.
  4064. </p>
  4065. </dd>
  4066. <dt><span><samp>tile_rows</samp></span></dt>
  4067. <dd><p>Set log2 of the number of rows of tiles to use (0-6).
  4068. </p>
  4069. </dd>
  4070. <dt><span><samp>tile_columns</samp></span></dt>
  4071. <dd><p>Set log2 of the number of columns of tiles to use (0-4).
  4072. </p>
  4073. </dd>
  4074. <dt><span><samp>svtav1-params</samp></span></dt>
  4075. <dd><p>Set SVT-AV1 options using a list of <var>key</var>=<var>value</var> pairs separated
  4076. by &quot;:&quot;. See the SVT-AV1 encoder user guide for a list of accepted parameters.
  4077. </p>
  4078. </dd>
  4079. </dl>
  4080. <a name="libjxl"></a>
  4081. <h3 class="section">9.9 libjxl<span class="pull-right"><a class="anchor hidden-xs" href="#libjxl" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libjxl" aria-hidden="true">TOC</a></span></h3>
  4082. <p>libjxl JPEG XL encoder wrapper.
  4083. </p>
  4084. <p>Requires the presence of the libjxl headers and library during
  4085. configuration. You need to explicitly configure the build with
  4086. <code>--enable-libjxl</code>.
  4087. </p>
  4088. <a name="Options-28"></a>
  4089. <h4 class="subsection">9.9.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-28" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-28" aria-hidden="true">TOC</a></span></h4>
  4090. <p>The libjxl wrapper supports the following options:
  4091. </p>
  4092. <dl compact="compact">
  4093. <dt><span><samp>distance</samp></span></dt>
  4094. <dd><p>Set the target Butteraugli distance. This is a quality setting: lower
  4095. distance yields higher quality, with distance=1.0 roughly comparable to
  4096. libjpeg Quality 90 for photographic content. Setting distance=0.0 yields
  4097. true lossless encoding. Valid values range between 0.0 and 15.0, and sane
  4098. values rarely exceed 5.0. Setting distance=0.1 usually attains
  4099. transparency for most input. The default is 1.0.
  4100. </p>
  4101. </dd>
  4102. <dt><span><samp>effort</samp></span></dt>
  4103. <dd><p>Set the encoding effort used. Higher effort values produce more consistent
  4104. quality and usually produces a better quality/bpp curve, at the cost of
  4105. more CPU time required. Valid values range from 1 to 9, and the default is 7.
  4106. </p>
  4107. </dd>
  4108. <dt><span><samp>modular</samp></span></dt>
  4109. <dd><p>Force the encoder to use Modular mode instead of choosing automatically. The
  4110. default is to use VarDCT for lossy encoding and Modular for lossless. VarDCT
  4111. is generally superior to Modular for lossy encoding but does not support
  4112. lossless encoding.
  4113. </p>
  4114. </dd>
  4115. </dl>
  4116. <a name="libkvazaar"></a>
  4117. <h3 class="section">9.10 libkvazaar<span class="pull-right"><a class="anchor hidden-xs" href="#libkvazaar" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libkvazaar" aria-hidden="true">TOC</a></span></h3>
  4118. <p>Kvazaar H.265/HEVC encoder.
  4119. </p>
  4120. <p>Requires the presence of the libkvazaar headers and library during
  4121. configuration. You need to explicitly configure the build with
  4122. <samp>--enable-libkvazaar</samp>.
  4123. </p>
  4124. <a name="Options-29"></a>
  4125. <h4 class="subsection">9.10.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-29" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-29" aria-hidden="true">TOC</a></span></h4>
  4126. <dl compact="compact">
  4127. <dt><span><samp>b</samp></span></dt>
  4128. <dd><p>Set target video bitrate in bit/s and enable rate control.
  4129. </p>
  4130. </dd>
  4131. <dt><span><samp>kvazaar-params</samp></span></dt>
  4132. <dd><p>Set kvazaar parameters as a list of <var>name</var>=<var>value</var> pairs separated
  4133. by commas (,). See kvazaar documentation for a list of options.
  4134. </p>
  4135. </dd>
  4136. </dl>
  4137. <a name="libopenh264"></a>
  4138. <h3 class="section">9.11 libopenh264<span class="pull-right"><a class="anchor hidden-xs" href="#libopenh264" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libopenh264" aria-hidden="true">TOC</a></span></h3>
  4139. <p>Cisco libopenh264 H.264/MPEG-4 AVC encoder wrapper.
  4140. </p>
  4141. <p>This encoder requires the presence of the libopenh264 headers and
  4142. library during configuration. You need to explicitly configure the
  4143. build with <code>--enable-libopenh264</code>. The library is detected using
  4144. <code>pkg-config</code>.
  4145. </p>
  4146. <p>For more information about the library see
  4147. <a href="http://www.openh264.org">http://www.openh264.org</a>.
  4148. </p>
  4149. <a name="Options-30"></a>
  4150. <h4 class="subsection">9.11.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-30" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-30" aria-hidden="true">TOC</a></span></h4>
  4151. <p>The following FFmpeg global options affect the configurations of the
  4152. libopenh264 encoder.
  4153. </p>
  4154. <dl compact="compact">
  4155. <dt><span><samp>b</samp></span></dt>
  4156. <dd><p>Set the bitrate (as a number of bits per second).
  4157. </p>
  4158. </dd>
  4159. <dt><span><samp>g</samp></span></dt>
  4160. <dd><p>Set the GOP size.
  4161. </p>
  4162. </dd>
  4163. <dt><span><samp>maxrate</samp></span></dt>
  4164. <dd><p>Set the max bitrate (as a number of bits per second).
  4165. </p>
  4166. </dd>
  4167. <dt><span><samp>flags +global_header</samp></span></dt>
  4168. <dd><p>Set global header in the bitstream.
  4169. </p>
  4170. </dd>
  4171. <dt><span><samp>slices</samp></span></dt>
  4172. <dd><p>Set the number of slices, used in parallelized encoding. Default value
  4173. is 0. This is only used when <samp>slice_mode</samp> is set to
  4174. &lsquo;<samp>fixed</samp>&rsquo;.
  4175. </p>
  4176. </dd>
  4177. <dt><span><samp>loopfilter</samp></span></dt>
  4178. <dd><p>Enable loop filter, if set to 1 (automatically enabled). To disable
  4179. set a value of 0.
  4180. </p>
  4181. </dd>
  4182. <dt><span><samp>profile</samp></span></dt>
  4183. <dd><p>Set profile restrictions. If set to the value of &lsquo;<samp>main</samp>&rsquo; enable
  4184. CABAC (set the <code>SEncParamExt.iEntropyCodingModeFlag</code> flag to 1).
  4185. </p>
  4186. </dd>
  4187. <dt><span><samp>max_nal_size</samp></span></dt>
  4188. <dd><p>Set maximum NAL size in bytes.
  4189. </p>
  4190. </dd>
  4191. <dt><span><samp>allow_skip_frames</samp></span></dt>
  4192. <dd><p>Allow skipping frames to hit the target bitrate if set to 1.
  4193. </p></dd>
  4194. </dl>
  4195. <a name="libtheora"></a>
  4196. <h3 class="section">9.12 libtheora<span class="pull-right"><a class="anchor hidden-xs" href="#libtheora" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libtheora" aria-hidden="true">TOC</a></span></h3>
  4197. <p>libtheora Theora encoder wrapper.
  4198. </p>
  4199. <p>Requires the presence of the libtheora headers and library during
  4200. configuration. You need to explicitly configure the build with
  4201. <code>--enable-libtheora</code>.
  4202. </p>
  4203. <p>For more information about the libtheora project see
  4204. <a href="http://www.theora.org/">http://www.theora.org/</a>.
  4205. </p>
  4206. <a name="Options-31"></a>
  4207. <h4 class="subsection">9.12.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-31" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-31" aria-hidden="true">TOC</a></span></h4>
  4208. <p>The following global options are mapped to internal libtheora options
  4209. which affect the quality and the bitrate of the encoded stream.
  4210. </p>
  4211. <dl compact="compact">
  4212. <dt><span><samp>b</samp></span></dt>
  4213. <dd><p>Set the video bitrate in bit/s for CBR (Constant Bit Rate) mode. In
  4214. case VBR (Variable Bit Rate) mode is enabled this option is ignored.
  4215. </p>
  4216. </dd>
  4217. <dt><span><samp>flags</samp></span></dt>
  4218. <dd><p>Used to enable constant quality mode (VBR) encoding through the
  4219. <samp>qscale</samp> flag, and to enable the <code>pass1</code> and <code>pass2</code>
  4220. modes.
  4221. </p>
  4222. </dd>
  4223. <dt><span><samp>g</samp></span></dt>
  4224. <dd><p>Set the GOP size.
  4225. </p>
  4226. </dd>
  4227. <dt><span><samp>global_quality</samp></span></dt>
  4228. <dd><p>Set the global quality as an integer in lambda units.
  4229. </p>
  4230. <p>Only relevant when VBR mode is enabled with <code>flags +qscale</code>. The
  4231. value is converted to QP units by dividing it by <code>FF_QP2LAMBDA</code>,
  4232. clipped in the [0 - 10] range, and then multiplied by 6.3 to get a
  4233. value in the native libtheora range [0-63]. A higher value corresponds
  4234. to a higher quality.
  4235. </p>
  4236. </dd>
  4237. <dt><span><samp>q</samp></span></dt>
  4238. <dd><p>Enable VBR mode when set to a non-negative value, and set constant
  4239. quality value as a double floating point value in QP units.
  4240. </p>
  4241. <p>The value is clipped in the [0-10] range, and then multiplied by 6.3
  4242. to get a value in the native libtheora range [0-63].
  4243. </p>
  4244. <p>This option is valid only using the <code>ffmpeg</code> command-line
  4245. tool. For library interface users, use <samp>global_quality</samp>.
  4246. </p></dd>
  4247. </dl>
  4248. <a name="Examples-1"></a>
  4249. <h4 class="subsection">9.12.2 Examples<span class="pull-right"><a class="anchor hidden-xs" href="#Examples-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Examples-1" aria-hidden="true">TOC</a></span></h4>
  4250. <ul>
  4251. <li> Set maximum constant quality (VBR) encoding with <code>ffmpeg</code>:
  4252. <div class="example">
  4253. <pre class="example">ffmpeg -i INPUT -codec:v libtheora -q:v 10 OUTPUT.ogg
  4254. </pre></div>
  4255. </li><li> Use <code>ffmpeg</code> to convert a CBR 1000 kbps Theora video stream:
  4256. <div class="example">
  4257. <pre class="example">ffmpeg -i INPUT -codec:v libtheora -b:v 1000k OUTPUT.ogg
  4258. </pre></div>
  4259. </li></ul>
  4260. <a name="libvpx"></a>
  4261. <h3 class="section">9.13 libvpx<span class="pull-right"><a class="anchor hidden-xs" href="#libvpx" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libvpx" aria-hidden="true">TOC</a></span></h3>
  4262. <p>VP8/VP9 format supported through libvpx.
  4263. </p>
  4264. <p>Requires the presence of the libvpx headers and library during configuration.
  4265. You need to explicitly configure the build with <code>--enable-libvpx</code>.
  4266. </p>
  4267. <a name="Options-32"></a>
  4268. <h4 class="subsection">9.13.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-32" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-32" aria-hidden="true">TOC</a></span></h4>
  4269. <p>The following options are supported by the libvpx wrapper. The
  4270. <code>vpxenc</code>-equivalent options or values are listed in parentheses
  4271. for easy migration.
  4272. </p>
  4273. <p>To reduce the duplication of documentation, only the private options
  4274. and some others requiring special attention are documented here. For
  4275. the documentation of the undocumented generic options, see
  4276. <a href="#codec_002doptions">the Codec Options chapter</a>.
  4277. </p>
  4278. <p>To get more documentation of the libvpx options, invoke the command
  4279. <code>ffmpeg -h encoder=libvpx</code>, <code>ffmpeg -h encoder=libvpx-vp9</code> or
  4280. <code>vpxenc --help</code>. Further information is available in the libvpx API
  4281. documentation.
  4282. </p>
  4283. <dl compact="compact">
  4284. <dt><span><samp>b (<em>target-bitrate</em>)</samp></span></dt>
  4285. <dd><p>Set bitrate in bits/s. Note that FFmpeg&rsquo;s <samp>b</samp> option is
  4286. expressed in bits/s, while <code>vpxenc</code>&rsquo;s <samp>target-bitrate</samp> is in
  4287. kilobits/s.
  4288. </p>
  4289. </dd>
  4290. <dt><span><samp>g (<em>kf-max-dist</em>)</samp></span></dt>
  4291. <dt><span><samp>keyint_min (<em>kf-min-dist</em>)</samp></span></dt>
  4292. <dt><span><samp>qmin (<em>min-q</em>)</samp></span></dt>
  4293. <dd><p>Minimum (Best Quality) Quantizer.
  4294. </p>
  4295. </dd>
  4296. <dt><span><samp>qmax (<em>max-q</em>)</samp></span></dt>
  4297. <dd><p>Maximum (Worst Quality) Quantizer.
  4298. Can be changed per-frame.
  4299. </p>
  4300. </dd>
  4301. <dt><span><samp>bufsize (<em>buf-sz</em>, <em>buf-optimal-sz</em>)</samp></span></dt>
  4302. <dd><p>Set ratecontrol buffer size (in bits). Note <code>vpxenc</code>&rsquo;s options are
  4303. specified in milliseconds, the libvpx wrapper converts this value as follows:
  4304. <code>buf-sz = bufsize * 1000 / bitrate</code>,
  4305. <code>buf-optimal-sz = bufsize * 1000 / bitrate * 5 / 6</code>.
  4306. </p>
  4307. </dd>
  4308. <dt><span><samp>rc_init_occupancy (<em>buf-initial-sz</em>)</samp></span></dt>
  4309. <dd><p>Set number of bits which should be loaded into the rc buffer before decoding
  4310. starts. Note <code>vpxenc</code>&rsquo;s option is specified in milliseconds, the libvpx
  4311. wrapper converts this value as follows:
  4312. <code>rc_init_occupancy * 1000 / bitrate</code>.
  4313. </p>
  4314. </dd>
  4315. <dt><span><samp>undershoot-pct</samp></span></dt>
  4316. <dd><p>Set datarate undershoot (min) percentage of the target bitrate.
  4317. </p>
  4318. </dd>
  4319. <dt><span><samp>overshoot-pct</samp></span></dt>
  4320. <dd><p>Set datarate overshoot (max) percentage of the target bitrate.
  4321. </p>
  4322. </dd>
  4323. <dt><span><samp>skip_threshold (<em>drop-frame</em>)</samp></span></dt>
  4324. <dt><span><samp>qcomp (<em>bias-pct</em>)</samp></span></dt>
  4325. <dt><span><samp>maxrate (<em>maxsection-pct</em>)</samp></span></dt>
  4326. <dd><p>Set GOP max bitrate in bits/s. Note <code>vpxenc</code>&rsquo;s option is specified as a
  4327. percentage of the target bitrate, the libvpx wrapper converts this value as
  4328. follows: <code>(maxrate * 100 / bitrate)</code>.
  4329. </p>
  4330. </dd>
  4331. <dt><span><samp>minrate (<em>minsection-pct</em>)</samp></span></dt>
  4332. <dd><p>Set GOP min bitrate in bits/s. Note <code>vpxenc</code>&rsquo;s option is specified as a
  4333. percentage of the target bitrate, the libvpx wrapper converts this value as
  4334. follows: <code>(minrate * 100 / bitrate)</code>.
  4335. </p>
  4336. </dd>
  4337. <dt><span><samp>minrate, maxrate, b <em>end-usage=cbr</em></samp></span></dt>
  4338. <dd><p><code>(minrate == maxrate == bitrate)</code>.
  4339. </p>
  4340. </dd>
  4341. <dt><span><samp>crf (<em>end-usage=cq</em>, <em>cq-level</em>)</samp></span></dt>
  4342. <dt><span><samp>tune (<em>tune</em>)</samp></span></dt>
  4343. <dd><dl compact="compact">
  4344. <dt><span>&lsquo;<samp>psnr (<em>psnr</em>)</samp>&rsquo;</span></dt>
  4345. <dt><span>&lsquo;<samp>ssim (<em>ssim</em>)</samp>&rsquo;</span></dt>
  4346. </dl>
  4347. </dd>
  4348. <dt><span><samp>quality, deadline (<em>deadline</em>)</samp></span></dt>
  4349. <dd><dl compact="compact">
  4350. <dt><span>&lsquo;<samp>best</samp>&rsquo;</span></dt>
  4351. <dd><p>Use best quality deadline. Poorly named and quite slow, this option should be
  4352. avoided as it may give worse quality output than good.
  4353. </p></dd>
  4354. <dt><span>&lsquo;<samp>good</samp>&rsquo;</span></dt>
  4355. <dd><p>Use good quality deadline. This is a good trade-off between speed and quality
  4356. when used with the <samp>cpu-used</samp> option.
  4357. </p></dd>
  4358. <dt><span>&lsquo;<samp>realtime</samp>&rsquo;</span></dt>
  4359. <dd><p>Use realtime quality deadline.
  4360. </p></dd>
  4361. </dl>
  4362. </dd>
  4363. <dt><span><samp>speed, cpu-used (<em>cpu-used</em>)</samp></span></dt>
  4364. <dd><p>Set quality/speed ratio modifier. Higher values speed up the encode at the cost
  4365. of quality.
  4366. </p>
  4367. </dd>
  4368. <dt><span><samp>nr (<em>noise-sensitivity</em>)</samp></span></dt>
  4369. <dt><span><samp>static-thresh</samp></span></dt>
  4370. <dd><p>Set a change threshold on blocks below which they will be skipped by the
  4371. encoder.
  4372. </p>
  4373. </dd>
  4374. <dt><span><samp>slices (<em>token-parts</em>)</samp></span></dt>
  4375. <dd><p>Note that FFmpeg&rsquo;s <samp>slices</samp> option gives the total number of partitions,
  4376. while <code>vpxenc</code>&rsquo;s <samp>token-parts</samp> is given as
  4377. <code>log2(partitions)</code>.
  4378. </p>
  4379. </dd>
  4380. <dt><span><samp>max-intra-rate</samp></span></dt>
  4381. <dd><p>Set maximum I-frame bitrate as a percentage of the target bitrate. A value of 0
  4382. means unlimited.
  4383. </p>
  4384. </dd>
  4385. <dt><span><samp>force_key_frames</samp></span></dt>
  4386. <dd><p><code>VPX_EFLAG_FORCE_KF</code>
  4387. </p>
  4388. </dd>
  4389. <dt><span><samp>Alternate reference frame related</samp></span></dt>
  4390. <dd><dl compact="compact">
  4391. <dt><span><samp>auto-alt-ref</samp></span></dt>
  4392. <dd><p>Enable use of alternate reference frames (2-pass only).
  4393. Values greater than 1 enable multi-layer alternate reference frames (VP9 only).
  4394. </p></dd>
  4395. <dt><span><samp>arnr-maxframes</samp></span></dt>
  4396. <dd><p>Set altref noise reduction max frame count.
  4397. </p></dd>
  4398. <dt><span><samp>arnr-type</samp></span></dt>
  4399. <dd><p>Set altref noise reduction filter type: backward, forward, centered.
  4400. </p></dd>
  4401. <dt><span><samp>arnr-strength</samp></span></dt>
  4402. <dd><p>Set altref noise reduction filter strength.
  4403. </p></dd>
  4404. <dt><span><samp>rc-lookahead, lag-in-frames (<em>lag-in-frames</em>)</samp></span></dt>
  4405. <dd><p>Set number of frames to look ahead for frametype and ratecontrol.
  4406. </p></dd>
  4407. <dt><span><samp>min-gf-interval</samp></span></dt>
  4408. <dd><p>Set minimum golden/alternate reference frame interval (VP9 only).
  4409. </p></dd>
  4410. </dl>
  4411. </dd>
  4412. <dt><span><samp>error-resilient</samp></span></dt>
  4413. <dd><p>Enable error resiliency features.
  4414. </p>
  4415. </dd>
  4416. <dt><span><samp>sharpness <var>integer</var></samp></span></dt>
  4417. <dd><p>Increase sharpness at the expense of lower PSNR.
  4418. The valid range is [0, 7].
  4419. </p>
  4420. </dd>
  4421. <dt><span><samp>ts-parameters</samp></span></dt>
  4422. <dd><p>Sets the temporal scalability configuration using a :-separated list of
  4423. key=value pairs. For example, to specify temporal scalability parameters
  4424. with <code>ffmpeg</code>:
  4425. </p><div class="example">
  4426. <pre class="example">ffmpeg -i INPUT -c:v libvpx -ts-parameters ts_number_layers=3:\
  4427. ts_target_bitrate=250,500,1000:ts_rate_decimator=4,2,1:\
  4428. ts_periodicity=4:ts_layer_id=0,2,1,2:ts_layering_mode=3 OUTPUT
  4429. </pre></div>
  4430. <p>Below is a brief explanation of each of the parameters, please
  4431. refer to <code>struct vpx_codec_enc_cfg</code> in <code>vpx/vpx_encoder.h</code> for more
  4432. details.
  4433. </p><dl compact="compact">
  4434. <dt><span><samp>ts_number_layers</samp></span></dt>
  4435. <dd><p>Number of temporal coding layers.
  4436. </p></dd>
  4437. <dt><span><samp>ts_target_bitrate</samp></span></dt>
  4438. <dd><p>Target bitrate for each temporal layer (in kbps).
  4439. (bitrate should be inclusive of the lower temporal layer).
  4440. </p></dd>
  4441. <dt><span><samp>ts_rate_decimator</samp></span></dt>
  4442. <dd><p>Frame rate decimation factor for each temporal layer.
  4443. </p></dd>
  4444. <dt><span><samp>ts_periodicity</samp></span></dt>
  4445. <dd><p>Length of the sequence defining frame temporal layer membership.
  4446. </p></dd>
  4447. <dt><span><samp>ts_layer_id</samp></span></dt>
  4448. <dd><p>Template defining the membership of frames to temporal layers.
  4449. </p></dd>
  4450. <dt><span><samp>ts_layering_mode</samp></span></dt>
  4451. <dd><p>(optional) Selecting the temporal structure from a set of pre-defined temporal layering modes.
  4452. Currently supports the following options.
  4453. </p><dl compact="compact">
  4454. <dt><span><samp>0</samp></span></dt>
  4455. <dd><p>No temporal layering flags are provided internally,
  4456. relies on flags being passed in using <code>metadata</code> field in <code>AVFrame</code>
  4457. with following keys.
  4458. </p><dl compact="compact">
  4459. <dt><span><samp>vp8-flags</samp></span></dt>
  4460. <dd><p>Sets the flags passed into the encoder to indicate the referencing scheme for
  4461. the current frame.
  4462. Refer to function <code>vpx_codec_encode</code> in <code>vpx/vpx_encoder.h</code> for more
  4463. details.
  4464. </p></dd>
  4465. <dt><span><samp>temporal_id</samp></span></dt>
  4466. <dd><p>Explicitly sets the temporal id of the current frame to encode.
  4467. </p></dd>
  4468. </dl>
  4469. </dd>
  4470. <dt><span><samp>2</samp></span></dt>
  4471. <dd><p>Two temporal layers. 0-1...
  4472. </p></dd>
  4473. <dt><span><samp>3</samp></span></dt>
  4474. <dd><p>Three temporal layers. 0-2-1-2...; with single reference frame.
  4475. </p></dd>
  4476. <dt><span><samp>4</samp></span></dt>
  4477. <dd><p>Same as option &quot;3&quot;, except there is a dependency between
  4478. the two temporal layer 2 frames within the temporal period.
  4479. </p></dd>
  4480. </dl>
  4481. </dd>
  4482. </dl>
  4483. </dd>
  4484. <dt><span><samp>VP9-specific options</samp></span></dt>
  4485. <dd><dl compact="compact">
  4486. <dt><span><samp>lossless</samp></span></dt>
  4487. <dd><p>Enable lossless mode.
  4488. </p></dd>
  4489. <dt><span><samp>tile-columns</samp></span></dt>
  4490. <dd><p>Set number of tile columns to use. Note this is given as
  4491. <code>log2(tile_columns)</code>. For example, 8 tile columns would be requested by
  4492. setting the <samp>tile-columns</samp> option to 3.
  4493. </p></dd>
  4494. <dt><span><samp>tile-rows</samp></span></dt>
  4495. <dd><p>Set number of tile rows to use. Note this is given as <code>log2(tile_rows)</code>.
  4496. For example, 4 tile rows would be requested by setting the <samp>tile-rows</samp>
  4497. option to 2.
  4498. </p></dd>
  4499. <dt><span><samp>frame-parallel</samp></span></dt>
  4500. <dd><p>Enable frame parallel decodability features.
  4501. </p></dd>
  4502. <dt><span><samp>aq-mode</samp></span></dt>
  4503. <dd><p>Set adaptive quantization mode (0: off (default), 1: variance 2: complexity, 3:
  4504. cyclic refresh, 4: equator360).
  4505. </p></dd>
  4506. <dt><span><samp>colorspace <em>color-space</em></samp></span></dt>
  4507. <dd><p>Set input color space. The VP9 bitstream supports signaling the following
  4508. colorspaces:
  4509. </p><dl compact="compact">
  4510. <dt><span><samp>&lsquo;<samp>rgb</samp>&rsquo; <em>sRGB</em></samp></span></dt>
  4511. <dt><span><samp>&lsquo;<samp>bt709</samp>&rsquo; <em>bt709</em></samp></span></dt>
  4512. <dt><span><samp>&lsquo;<samp>unspecified</samp>&rsquo; <em>unknown</em></samp></span></dt>
  4513. <dt><span><samp>&lsquo;<samp>bt470bg</samp>&rsquo; <em>bt601</em></samp></span></dt>
  4514. <dt><span><samp>&lsquo;<samp>smpte170m</samp>&rsquo; <em>smpte170</em></samp></span></dt>
  4515. <dt><span><samp>&lsquo;<samp>smpte240m</samp>&rsquo; <em>smpte240</em></samp></span></dt>
  4516. <dt><span><samp>&lsquo;<samp>bt2020_ncl</samp>&rsquo; <em>bt2020</em></samp></span></dt>
  4517. </dl>
  4518. </dd>
  4519. <dt><span><samp>row-mt <var>boolean</var></samp></span></dt>
  4520. <dd><p>Enable row based multi-threading.
  4521. </p></dd>
  4522. <dt><span><samp>tune-content</samp></span></dt>
  4523. <dd><p>Set content type: default (0), screen (1), film (2).
  4524. </p></dd>
  4525. <dt><span><samp>corpus-complexity</samp></span></dt>
  4526. <dd><p>Corpus VBR mode is a variant of standard VBR where the complexity distribution
  4527. midpoint is passed in rather than calculated for a specific clip or chunk.
  4528. </p>
  4529. <p>The valid range is [0, 10000]. 0 (default) uses standard VBR.
  4530. </p></dd>
  4531. <dt><span><samp>enable-tpl <var>boolean</var></samp></span></dt>
  4532. <dd><p>Enable temporal dependency model.
  4533. </p></dd>
  4534. <dt><span><samp>ref-frame-config</samp></span></dt>
  4535. <dd><p>Using per-frame metadata, set members of the structure <code>vpx_svc_ref_frame_config_t</code> in <code>vpx/vp8cx.h</code> to fine-control referencing schemes and frame buffer management.
  4536. <br>Use a :-separated list of key=value pairs.
  4537. For example,
  4538. </p><div class="example">
  4539. <pre class="example">av_dict_set(&amp;av_frame-&gt;metadata, &quot;ref-frame-config&quot;, \
  4540. &quot;rfc_update_buffer_slot=7:rfc_lst_fb_idx=0:rfc_gld_fb_idx=1:rfc_alt_fb_idx=2:rfc_reference_last=0:rfc_reference_golden=0:rfc_reference_alt_ref=0&quot;);
  4541. </pre></div>
  4542. <dl compact="compact">
  4543. <dt><span><samp>rfc_update_buffer_slot</samp></span></dt>
  4544. <dd><p>Indicates the buffer slot number to update
  4545. </p></dd>
  4546. <dt><span><samp>rfc_update_last</samp></span></dt>
  4547. <dd><p>Indicates whether to update the LAST frame
  4548. </p></dd>
  4549. <dt><span><samp>rfc_update_golden</samp></span></dt>
  4550. <dd><p>Indicates whether to update GOLDEN frame
  4551. </p></dd>
  4552. <dt><span><samp>rfc_update_alt_ref</samp></span></dt>
  4553. <dd><p>Indicates whether to update ALT_REF frame
  4554. </p></dd>
  4555. <dt><span><samp>rfc_lst_fb_idx</samp></span></dt>
  4556. <dd><p>LAST frame buffer index
  4557. </p></dd>
  4558. <dt><span><samp>rfc_gld_fb_idx</samp></span></dt>
  4559. <dd><p>GOLDEN frame buffer index
  4560. </p></dd>
  4561. <dt><span><samp>rfc_alt_fb_idx</samp></span></dt>
  4562. <dd><p>ALT_REF frame buffer index
  4563. </p></dd>
  4564. <dt><span><samp>rfc_reference_last</samp></span></dt>
  4565. <dd><p>Indicates whether to reference LAST frame
  4566. </p></dd>
  4567. <dt><span><samp>rfc_reference_golden</samp></span></dt>
  4568. <dd><p>Indicates whether to reference GOLDEN frame
  4569. </p></dd>
  4570. <dt><span><samp>rfc_reference_alt_ref</samp></span></dt>
  4571. <dd><p>Indicates whether to reference ALT_REF frame
  4572. </p></dd>
  4573. <dt><span><samp>rfc_reference_duration</samp></span></dt>
  4574. <dd><p>Indicates frame duration
  4575. </p></dd>
  4576. </dl>
  4577. </dd>
  4578. </dl>
  4579. </dd>
  4580. </dl>
  4581. <p>For more information about libvpx see:
  4582. <a href="http://www.webmproject.org/">http://www.webmproject.org/</a>
  4583. </p>
  4584. <a name="libwebp"></a>
  4585. <h3 class="section">9.14 libwebp<span class="pull-right"><a class="anchor hidden-xs" href="#libwebp" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libwebp" aria-hidden="true">TOC</a></span></h3>
  4586. <p>libwebp WebP Image encoder wrapper
  4587. </p>
  4588. <p>libwebp is Google&rsquo;s official encoder for WebP images. It can encode in either
  4589. lossy or lossless mode. Lossy images are essentially a wrapper around a VP8
  4590. frame. Lossless images are a separate codec developed by Google.
  4591. </p>
  4592. <a name="Pixel-Format"></a>
  4593. <h4 class="subsection">9.14.1 Pixel Format<span class="pull-right"><a class="anchor hidden-xs" href="#Pixel-Format" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Pixel-Format" aria-hidden="true">TOC</a></span></h4>
  4594. <p>Currently, libwebp only supports YUV420 for lossy and RGB for lossless due
  4595. to limitations of the format and libwebp. Alpha is supported for either mode.
  4596. Because of API limitations, if RGB is passed in when encoding lossy or YUV is
  4597. passed in for encoding lossless, the pixel format will automatically be
  4598. converted using functions from libwebp. This is not ideal and is done only for
  4599. convenience.
  4600. </p>
  4601. <a name="Options-33"></a>
  4602. <h4 class="subsection">9.14.2 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-33" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-33" aria-hidden="true">TOC</a></span></h4>
  4603. <dl compact="compact">
  4604. <dt><span><samp>-lossless <var>boolean</var></samp></span></dt>
  4605. <dd><p>Enables/Disables use of lossless mode. Default is 0.
  4606. </p>
  4607. </dd>
  4608. <dt><span><samp>-compression_level <var>integer</var></samp></span></dt>
  4609. <dd><p>For lossy, this is a quality/speed tradeoff. Higher values give better quality
  4610. for a given size at the cost of increased encoding time. For lossless, this is
  4611. a size/speed tradeoff. Higher values give smaller size at the cost of increased
  4612. encoding time. More specifically, it controls the number of extra algorithms
  4613. and compression tools used, and varies the combination of these tools. This
  4614. maps to the <var>method</var> option in libwebp. The valid range is 0 to 6.
  4615. Default is 4.
  4616. </p>
  4617. </dd>
  4618. <dt><span><samp>-quality <var>float</var></samp></span></dt>
  4619. <dd><p>For lossy encoding, this controls image quality. For lossless encoding, this
  4620. controls the effort and time spent in compression.
  4621. Range is 0 to 100. Default is 75.
  4622. </p>
  4623. </dd>
  4624. <dt><span><samp>-preset <var>type</var></samp></span></dt>
  4625. <dd><p>Configuration preset. This does some automatic settings based on the general
  4626. type of the image.
  4627. </p><dl compact="compact">
  4628. <dt><span><samp>none</samp></span></dt>
  4629. <dd><p>Do not use a preset.
  4630. </p></dd>
  4631. <dt><span><samp>default</samp></span></dt>
  4632. <dd><p>Use the encoder default.
  4633. </p></dd>
  4634. <dt><span><samp>picture</samp></span></dt>
  4635. <dd><p>Digital picture, like portrait, inner shot
  4636. </p></dd>
  4637. <dt><span><samp>photo</samp></span></dt>
  4638. <dd><p>Outdoor photograph, with natural lighting
  4639. </p></dd>
  4640. <dt><span><samp>drawing</samp></span></dt>
  4641. <dd><p>Hand or line drawing, with high-contrast details
  4642. </p></dd>
  4643. <dt><span><samp>icon</samp></span></dt>
  4644. <dd><p>Small-sized colorful images
  4645. </p></dd>
  4646. <dt><span><samp>text</samp></span></dt>
  4647. <dd><p>Text-like
  4648. </p></dd>
  4649. </dl>
  4650. </dd>
  4651. </dl>
  4652. <a name="libx264_002c-libx264rgb"></a>
  4653. <h3 class="section">9.15 libx264, libx264rgb<span class="pull-right"><a class="anchor hidden-xs" href="#libx264_002c-libx264rgb" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libx264_002c-libx264rgb" aria-hidden="true">TOC</a></span></h3>
  4654. <p>x264 H.264/MPEG-4 AVC encoder wrapper.
  4655. </p>
  4656. <p>This encoder requires the presence of the libx264 headers and library
  4657. during configuration. You need to explicitly configure the build with
  4658. <code>--enable-libx264</code>.
  4659. </p>
  4660. <p>libx264 supports an impressive number of features, including 8x8 and
  4661. 4x4 adaptive spatial transform, adaptive B-frame placement, CAVLC/CABAC
  4662. entropy coding, interlacing (MBAFF), lossless mode, psy optimizations
  4663. for detail retention (adaptive quantization, psy-RD, psy-trellis).
  4664. </p>
  4665. <p>Many libx264 encoder options are mapped to FFmpeg global codec
  4666. options, while unique encoder options are provided through private
  4667. options. Additionally the <samp>x264opts</samp> and <samp>x264-params</samp>
  4668. private options allows one to pass a list of key=value tuples as accepted
  4669. by the libx264 <code>x264_param_parse</code> function.
  4670. </p>
  4671. <p>The x264 project website is at
  4672. <a href="http://www.videolan.org/developers/x264.html">http://www.videolan.org/developers/x264.html</a>.
  4673. </p>
  4674. <p>The libx264rgb encoder is the same as libx264, except it accepts packed RGB
  4675. pixel formats as input instead of YUV.
  4676. </p>
  4677. <a name="Supported-Pixel-Formats"></a>
  4678. <h4 class="subsection">9.15.1 Supported Pixel Formats<span class="pull-right"><a class="anchor hidden-xs" href="#Supported-Pixel-Formats" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Supported-Pixel-Formats" aria-hidden="true">TOC</a></span></h4>
  4679. <p>x264 supports 8- to 10-bit color spaces. The exact bit depth is controlled at
  4680. x264&rsquo;s configure time.
  4681. </p>
  4682. <a name="Options-34"></a>
  4683. <h4 class="subsection">9.15.2 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-34" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-34" aria-hidden="true">TOC</a></span></h4>
  4684. <p>The following options are supported by the libx264 wrapper. The
  4685. <code>x264</code>-equivalent options or values are listed in parentheses
  4686. for easy migration.
  4687. </p>
  4688. <p>To reduce the duplication of documentation, only the private options
  4689. and some others requiring special attention are documented here. For
  4690. the documentation of the undocumented generic options, see
  4691. <a href="#codec_002doptions">the Codec Options chapter</a>.
  4692. </p>
  4693. <p>To get a more accurate and extensive documentation of the libx264
  4694. options, invoke the command <code>x264 --fullhelp</code> or consult
  4695. the libx264 documentation.
  4696. </p>
  4697. <dl compact="compact">
  4698. <dt><span><samp>b (<em>bitrate</em>)</samp></span></dt>
  4699. <dd><p>Set bitrate in bits/s. Note that FFmpeg&rsquo;s <samp>b</samp> option is
  4700. expressed in bits/s, while <code>x264</code>&rsquo;s <samp>bitrate</samp> is in
  4701. kilobits/s.
  4702. </p>
  4703. </dd>
  4704. <dt><span><samp>bf (<em>bframes</em>)</samp></span></dt>
  4705. <dt><span><samp>g (<em>keyint</em>)</samp></span></dt>
  4706. <dt><span><samp>qmin (<em>qpmin</em>)</samp></span></dt>
  4707. <dd><p>Minimum quantizer scale.
  4708. </p>
  4709. </dd>
  4710. <dt><span><samp>qmax (<em>qpmax</em>)</samp></span></dt>
  4711. <dd><p>Maximum quantizer scale.
  4712. </p>
  4713. </dd>
  4714. <dt><span><samp>qdiff (<em>qpstep</em>)</samp></span></dt>
  4715. <dd><p>Maximum difference between quantizer scales.
  4716. </p>
  4717. </dd>
  4718. <dt><span><samp>qblur (<em>qblur</em>)</samp></span></dt>
  4719. <dd><p>Quantizer curve blur
  4720. </p>
  4721. </dd>
  4722. <dt><span><samp>qcomp (<em>qcomp</em>)</samp></span></dt>
  4723. <dd><p>Quantizer curve compression factor
  4724. </p>
  4725. </dd>
  4726. <dt><span><samp>refs (<em>ref</em>)</samp></span></dt>
  4727. <dd><p>Number of reference frames each P-frame can use. The range is from <var>0-16</var>.
  4728. </p>
  4729. </dd>
  4730. <dt><span><samp>sc_threshold (<em>scenecut</em>)</samp></span></dt>
  4731. <dd><p>Sets the threshold for the scene change detection.
  4732. </p>
  4733. </dd>
  4734. <dt><span><samp>trellis (<em>trellis</em>)</samp></span></dt>
  4735. <dd><p>Performs Trellis quantization to increase efficiency. Enabled by default.
  4736. </p>
  4737. </dd>
  4738. <dt><span><samp>nr (<em>nr</em>)</samp></span></dt>
  4739. <dt><span><samp>me_range (<em>merange</em>)</samp></span></dt>
  4740. <dd><p>Maximum range of the motion search in pixels.
  4741. </p>
  4742. </dd>
  4743. <dt><span><samp>me_method (<em>me</em>)</samp></span></dt>
  4744. <dd><p>Set motion estimation method. Possible values in the decreasing order
  4745. of speed:
  4746. </p>
  4747. <dl compact="compact">
  4748. <dt><span>&lsquo;<samp>dia (<em>dia</em>)</samp>&rsquo;</span></dt>
  4749. <dt><span>&lsquo;<samp>epzs (<em>dia</em>)</samp>&rsquo;</span></dt>
  4750. <dd><p>Diamond search with radius 1 (fastest). &lsquo;<samp>epzs</samp>&rsquo; is an alias for
  4751. &lsquo;<samp>dia</samp>&rsquo;.
  4752. </p></dd>
  4753. <dt><span>&lsquo;<samp>hex (<em>hex</em>)</samp>&rsquo;</span></dt>
  4754. <dd><p>Hexagonal search with radius 2.
  4755. </p></dd>
  4756. <dt><span>&lsquo;<samp>umh (<em>umh</em>)</samp>&rsquo;</span></dt>
  4757. <dd><p>Uneven multi-hexagon search.
  4758. </p></dd>
  4759. <dt><span>&lsquo;<samp>esa (<em>esa</em>)</samp>&rsquo;</span></dt>
  4760. <dd><p>Exhaustive search.
  4761. </p></dd>
  4762. <dt><span>&lsquo;<samp>tesa (<em>tesa</em>)</samp>&rsquo;</span></dt>
  4763. <dd><p>Hadamard exhaustive search (slowest).
  4764. </p></dd>
  4765. </dl>
  4766. </dd>
  4767. <dt><span><samp>forced-idr</samp></span></dt>
  4768. <dd><p>Normally, when forcing a I-frame type, the encoder can select any type
  4769. of I-frame. This option forces it to choose an IDR-frame.
  4770. </p>
  4771. </dd>
  4772. <dt><span><samp>subq (<em>subme</em>)</samp></span></dt>
  4773. <dd><p>Sub-pixel motion estimation method.
  4774. </p>
  4775. </dd>
  4776. <dt><span><samp>b_strategy (<em>b-adapt</em>)</samp></span></dt>
  4777. <dd><p>Adaptive B-frame placement decision algorithm. Use only on first-pass.
  4778. </p>
  4779. </dd>
  4780. <dt><span><samp>keyint_min (<em>min-keyint</em>)</samp></span></dt>
  4781. <dd><p>Minimum GOP size.
  4782. </p>
  4783. </dd>
  4784. <dt><span><samp>coder</samp></span></dt>
  4785. <dd><p>Set entropy encoder. Possible values:
  4786. </p>
  4787. <dl compact="compact">
  4788. <dt><span>&lsquo;<samp>ac</samp>&rsquo;</span></dt>
  4789. <dd><p>Enable CABAC.
  4790. </p>
  4791. </dd>
  4792. <dt><span>&lsquo;<samp>vlc</samp>&rsquo;</span></dt>
  4793. <dd><p>Enable CAVLC and disable CABAC. It generates the same effect as
  4794. <code>x264</code>&rsquo;s <samp>--no-cabac</samp> option.
  4795. </p></dd>
  4796. </dl>
  4797. </dd>
  4798. <dt><span><samp>cmp</samp></span></dt>
  4799. <dd><p>Set full pixel motion estimation comparison algorithm. Possible values:
  4800. </p>
  4801. <dl compact="compact">
  4802. <dt><span>&lsquo;<samp>chroma</samp>&rsquo;</span></dt>
  4803. <dd><p>Enable chroma in motion estimation.
  4804. </p>
  4805. </dd>
  4806. <dt><span>&lsquo;<samp>sad</samp>&rsquo;</span></dt>
  4807. <dd><p>Ignore chroma in motion estimation. It generates the same effect as
  4808. <code>x264</code>&rsquo;s <samp>--no-chroma-me</samp> option.
  4809. </p></dd>
  4810. </dl>
  4811. </dd>
  4812. <dt><span><samp>threads (<em>threads</em>)</samp></span></dt>
  4813. <dd><p>Number of encoding threads.
  4814. </p>
  4815. </dd>
  4816. <dt><span><samp>thread_type</samp></span></dt>
  4817. <dd><p>Set multithreading technique. Possible values:
  4818. </p>
  4819. <dl compact="compact">
  4820. <dt><span>&lsquo;<samp>slice</samp>&rsquo;</span></dt>
  4821. <dd><p>Slice-based multithreading. It generates the same effect as
  4822. <code>x264</code>&rsquo;s <samp>--sliced-threads</samp> option.
  4823. </p></dd>
  4824. <dt><span>&lsquo;<samp>frame</samp>&rsquo;</span></dt>
  4825. <dd><p>Frame-based multithreading.
  4826. </p></dd>
  4827. </dl>
  4828. </dd>
  4829. <dt><span><samp>flags</samp></span></dt>
  4830. <dd><p>Set encoding flags. It can be used to disable closed GOP and enable
  4831. open GOP by setting it to <code>-cgop</code>. The result is similar to
  4832. the behavior of <code>x264</code>&rsquo;s <samp>--open-gop</samp> option.
  4833. </p>
  4834. </dd>
  4835. <dt><span><samp>rc_init_occupancy (<em>vbv-init</em>)</samp></span></dt>
  4836. <dt><span><samp>preset (<em>preset</em>)</samp></span></dt>
  4837. <dd><p>Set the encoding preset.
  4838. </p>
  4839. </dd>
  4840. <dt><span><samp>tune (<em>tune</em>)</samp></span></dt>
  4841. <dd><p>Set tuning of the encoding params.
  4842. </p>
  4843. </dd>
  4844. <dt><span><samp>profile (<em>profile</em>)</samp></span></dt>
  4845. <dd><p>Set profile restrictions.
  4846. </p>
  4847. </dd>
  4848. <dt><span><samp>fastfirstpass</samp></span></dt>
  4849. <dd><p>Enable fast settings when encoding first pass, when set to 1. When set
  4850. to 0, it has the same effect of <code>x264</code>&rsquo;s
  4851. <samp>--slow-firstpass</samp> option.
  4852. </p>
  4853. </dd>
  4854. <dt><span><samp>crf (<em>crf</em>)</samp></span></dt>
  4855. <dd><p>Set the quality for constant quality mode.
  4856. </p>
  4857. </dd>
  4858. <dt><span><samp>crf_max (<em>crf-max</em>)</samp></span></dt>
  4859. <dd><p>In CRF mode, prevents VBV from lowering quality beyond this point.
  4860. </p>
  4861. </dd>
  4862. <dt><span><samp>qp (<em>qp</em>)</samp></span></dt>
  4863. <dd><p>Set constant quantization rate control method parameter.
  4864. </p>
  4865. </dd>
  4866. <dt><span><samp>aq-mode (<em>aq-mode</em>)</samp></span></dt>
  4867. <dd><p>Set AQ method. Possible values:
  4868. </p>
  4869. <dl compact="compact">
  4870. <dt><span>&lsquo;<samp>none (<em>0</em>)</samp>&rsquo;</span></dt>
  4871. <dd><p>Disabled.
  4872. </p>
  4873. </dd>
  4874. <dt><span>&lsquo;<samp>variance (<em>1</em>)</samp>&rsquo;</span></dt>
  4875. <dd><p>Variance AQ (complexity mask).
  4876. </p>
  4877. </dd>
  4878. <dt><span>&lsquo;<samp>autovariance (<em>2</em>)</samp>&rsquo;</span></dt>
  4879. <dd><p>Auto-variance AQ (experimental).
  4880. </p></dd>
  4881. </dl>
  4882. </dd>
  4883. <dt><span><samp>aq-strength (<em>aq-strength</em>)</samp></span></dt>
  4884. <dd><p>Set AQ strength, reduce blocking and blurring in flat and textured areas.
  4885. </p>
  4886. </dd>
  4887. <dt><span><samp>psy</samp></span></dt>
  4888. <dd><p>Use psychovisual optimizations when set to 1. When set to 0, it has the
  4889. same effect as <code>x264</code>&rsquo;s <samp>--no-psy</samp> option.
  4890. </p>
  4891. </dd>
  4892. <dt><span><samp>psy-rd (<em>psy-rd</em>)</samp></span></dt>
  4893. <dd><p>Set strength of psychovisual optimization, in
  4894. <var>psy-rd</var>:<var>psy-trellis</var> format.
  4895. </p>
  4896. </dd>
  4897. <dt><span><samp>rc-lookahead (<em>rc-lookahead</em>)</samp></span></dt>
  4898. <dd><p>Set number of frames to look ahead for frametype and ratecontrol.
  4899. </p>
  4900. </dd>
  4901. <dt><span><samp>weightb</samp></span></dt>
  4902. <dd><p>Enable weighted prediction for B-frames when set to 1. When set to 0,
  4903. it has the same effect as <code>x264</code>&rsquo;s <samp>--no-weightb</samp> option.
  4904. </p>
  4905. </dd>
  4906. <dt><span><samp>weightp (<em>weightp</em>)</samp></span></dt>
  4907. <dd><p>Set weighted prediction method for P-frames. Possible values:
  4908. </p>
  4909. <dl compact="compact">
  4910. <dt><span>&lsquo;<samp>none (<em>0</em>)</samp>&rsquo;</span></dt>
  4911. <dd><p>Disabled
  4912. </p></dd>
  4913. <dt><span>&lsquo;<samp>simple (<em>1</em>)</samp>&rsquo;</span></dt>
  4914. <dd><p>Enable only weighted refs
  4915. </p></dd>
  4916. <dt><span>&lsquo;<samp>smart (<em>2</em>)</samp>&rsquo;</span></dt>
  4917. <dd><p>Enable both weighted refs and duplicates
  4918. </p></dd>
  4919. </dl>
  4920. </dd>
  4921. <dt><span><samp>ssim (<em>ssim</em>)</samp></span></dt>
  4922. <dd><p>Enable calculation and printing SSIM stats after the encoding.
  4923. </p>
  4924. </dd>
  4925. <dt><span><samp>intra-refresh (<em>intra-refresh</em>)</samp></span></dt>
  4926. <dd><p>Enable the use of Periodic Intra Refresh instead of IDR frames when set
  4927. to 1.
  4928. </p>
  4929. </dd>
  4930. <dt><span><samp>avcintra-class (<em>class</em>)</samp></span></dt>
  4931. <dd><p>Configure the encoder to generate AVC-Intra.
  4932. Valid values are 50,100 and 200
  4933. </p>
  4934. </dd>
  4935. <dt><span><samp>bluray-compat (<em>bluray-compat</em>)</samp></span></dt>
  4936. <dd><p>Configure the encoder to be compatible with the bluray standard.
  4937. It is a shorthand for setting &quot;bluray-compat=1 force-cfr=1&quot;.
  4938. </p>
  4939. </dd>
  4940. <dt><span><samp>b-bias (<em>b-bias</em>)</samp></span></dt>
  4941. <dd><p>Set the influence on how often B-frames are used.
  4942. </p>
  4943. </dd>
  4944. <dt><span><samp>b-pyramid (<em>b-pyramid</em>)</samp></span></dt>
  4945. <dd><p>Set method for keeping of some B-frames as references. Possible values:
  4946. </p>
  4947. <dl compact="compact">
  4948. <dt><span>&lsquo;<samp>none (<em>none</em>)</samp>&rsquo;</span></dt>
  4949. <dd><p>Disabled.
  4950. </p></dd>
  4951. <dt><span>&lsquo;<samp>strict (<em>strict</em>)</samp>&rsquo;</span></dt>
  4952. <dd><p>Strictly hierarchical pyramid.
  4953. </p></dd>
  4954. <dt><span>&lsquo;<samp>normal (<em>normal</em>)</samp>&rsquo;</span></dt>
  4955. <dd><p>Non-strict (not Blu-ray compatible).
  4956. </p></dd>
  4957. </dl>
  4958. </dd>
  4959. <dt><span><samp>mixed-refs</samp></span></dt>
  4960. <dd><p>Enable the use of one reference per partition, as opposed to one
  4961. reference per macroblock when set to 1. When set to 0, it has the
  4962. same effect as <code>x264</code>&rsquo;s <samp>--no-mixed-refs</samp> option.
  4963. </p>
  4964. </dd>
  4965. <dt><span><samp>8x8dct</samp></span></dt>
  4966. <dd><p>Enable adaptive spatial transform (high profile 8x8 transform)
  4967. when set to 1. When set to 0, it has the same effect as
  4968. <code>x264</code>&rsquo;s <samp>--no-8x8dct</samp> option.
  4969. </p>
  4970. </dd>
  4971. <dt><span><samp>fast-pskip</samp></span></dt>
  4972. <dd><p>Enable early SKIP detection on P-frames when set to 1. When set
  4973. to 0, it has the same effect as <code>x264</code>&rsquo;s
  4974. <samp>--no-fast-pskip</samp> option.
  4975. </p>
  4976. </dd>
  4977. <dt><span><samp>aud (<em>aud</em>)</samp></span></dt>
  4978. <dd><p>Enable use of access unit delimiters when set to 1.
  4979. </p>
  4980. </dd>
  4981. <dt><span><samp>mbtree</samp></span></dt>
  4982. <dd><p>Enable use macroblock tree ratecontrol when set to 1. When set
  4983. to 0, it has the same effect as <code>x264</code>&rsquo;s
  4984. <samp>--no-mbtree</samp> option.
  4985. </p>
  4986. </dd>
  4987. <dt><span><samp>deblock (<em>deblock</em>)</samp></span></dt>
  4988. <dd><p>Set loop filter parameters, in <var>alpha</var>:<var>beta</var> form.
  4989. </p>
  4990. </dd>
  4991. <dt><span><samp>cplxblur (<em>cplxblur</em>)</samp></span></dt>
  4992. <dd><p>Set fluctuations reduction in QP (before curve compression).
  4993. </p>
  4994. </dd>
  4995. <dt><span><samp>partitions (<em>partitions</em>)</samp></span></dt>
  4996. <dd><p>Set partitions to consider as a comma-separated list of. Possible
  4997. values in the list:
  4998. </p>
  4999. <dl compact="compact">
  5000. <dt><span>&lsquo;<samp>p8x8</samp>&rsquo;</span></dt>
  5001. <dd><p>8x8 P-frame partition.
  5002. </p></dd>
  5003. <dt><span>&lsquo;<samp>p4x4</samp>&rsquo;</span></dt>
  5004. <dd><p>4x4 P-frame partition.
  5005. </p></dd>
  5006. <dt><span>&lsquo;<samp>b8x8</samp>&rsquo;</span></dt>
  5007. <dd><p>4x4 B-frame partition.
  5008. </p></dd>
  5009. <dt><span>&lsquo;<samp>i8x8</samp>&rsquo;</span></dt>
  5010. <dd><p>8x8 I-frame partition.
  5011. </p></dd>
  5012. <dt><span>&lsquo;<samp>i4x4</samp>&rsquo;</span></dt>
  5013. <dd><p>4x4 I-frame partition.
  5014. (Enabling &lsquo;<samp>p4x4</samp>&rsquo; requires &lsquo;<samp>p8x8</samp>&rsquo; to be enabled. Enabling
  5015. &lsquo;<samp>i8x8</samp>&rsquo; requires adaptive spatial transform (<samp>8x8dct</samp>
  5016. option) to be enabled.)
  5017. </p></dd>
  5018. <dt><span>&lsquo;<samp>none (<em>none</em>)</samp>&rsquo;</span></dt>
  5019. <dd><p>Do not consider any partitions.
  5020. </p></dd>
  5021. <dt><span>&lsquo;<samp>all (<em>all</em>)</samp>&rsquo;</span></dt>
  5022. <dd><p>Consider every partition.
  5023. </p></dd>
  5024. </dl>
  5025. </dd>
  5026. <dt><span><samp>direct-pred (<em>direct</em>)</samp></span></dt>
  5027. <dd><p>Set direct MV prediction mode. Possible values:
  5028. </p>
  5029. <dl compact="compact">
  5030. <dt><span>&lsquo;<samp>none (<em>none</em>)</samp>&rsquo;</span></dt>
  5031. <dd><p>Disable MV prediction.
  5032. </p></dd>
  5033. <dt><span>&lsquo;<samp>spatial (<em>spatial</em>)</samp>&rsquo;</span></dt>
  5034. <dd><p>Enable spatial predicting.
  5035. </p></dd>
  5036. <dt><span>&lsquo;<samp>temporal (<em>temporal</em>)</samp>&rsquo;</span></dt>
  5037. <dd><p>Enable temporal predicting.
  5038. </p></dd>
  5039. <dt><span>&lsquo;<samp>auto (<em>auto</em>)</samp>&rsquo;</span></dt>
  5040. <dd><p>Automatically decided.
  5041. </p></dd>
  5042. </dl>
  5043. </dd>
  5044. <dt><span><samp>slice-max-size (<em>slice-max-size</em>)</samp></span></dt>
  5045. <dd><p>Set the limit of the size of each slice in bytes. If not specified
  5046. but RTP payload size (<samp>ps</samp>) is specified, that is used.
  5047. </p>
  5048. </dd>
  5049. <dt><span><samp>stats (<em>stats</em>)</samp></span></dt>
  5050. <dd><p>Set the file name for multi-pass stats.
  5051. </p>
  5052. </dd>
  5053. <dt><span><samp>nal-hrd (<em>nal-hrd</em>)</samp></span></dt>
  5054. <dd><p>Set signal HRD information (requires <samp>vbv-bufsize</samp> to be set).
  5055. Possible values:
  5056. </p>
  5057. <dl compact="compact">
  5058. <dt><span>&lsquo;<samp>none (<em>none</em>)</samp>&rsquo;</span></dt>
  5059. <dd><p>Disable HRD information signaling.
  5060. </p></dd>
  5061. <dt><span>&lsquo;<samp>vbr (<em>vbr</em>)</samp>&rsquo;</span></dt>
  5062. <dd><p>Variable bit rate.
  5063. </p></dd>
  5064. <dt><span>&lsquo;<samp>cbr (<em>cbr</em>)</samp>&rsquo;</span></dt>
  5065. <dd><p>Constant bit rate (not allowed in MP4 container).
  5066. </p></dd>
  5067. </dl>
  5068. </dd>
  5069. <dt><span><samp>x264opts (N.A.)</samp></span></dt>
  5070. <dd><p>Set any x264 option, see <code>x264 --fullhelp</code> for a list.
  5071. </p>
  5072. <p>Argument is a list of <var>key</var>=<var>value</var> couples separated by
  5073. &quot;:&quot;. In <var>filter</var> and <var>psy-rd</var> options that use &quot;:&quot; as a separator
  5074. themselves, use &quot;,&quot; instead. They accept it as well since long ago but this
  5075. is kept undocumented for some reason.
  5076. </p>
  5077. <p>For example to specify libx264 encoding options with <code>ffmpeg</code>:
  5078. </p><div class="example">
  5079. <pre class="example">ffmpeg -i foo.mpg -c:v libx264 -x264opts keyint=123:min-keyint=20 -an out.mkv
  5080. </pre></div>
  5081. </dd>
  5082. <dt><span><samp>a53cc <var>boolean</var></samp></span></dt>
  5083. <dd><p>Import closed captions (which must be ATSC compatible format) into output.
  5084. Only the mpeg2 and h264 decoders provide these. Default is 1 (on).
  5085. </p>
  5086. </dd>
  5087. <dt><span><samp>udu_sei <var>boolean</var></samp></span></dt>
  5088. <dd><p>Import user data unregistered SEI if available into output. Default is 0 (off).
  5089. </p>
  5090. </dd>
  5091. <dt><span><samp>x264-params (N.A.)</samp></span></dt>
  5092. <dd><p>Override the x264 configuration using a :-separated list of key=value
  5093. parameters.
  5094. </p>
  5095. <p>This option is functionally the same as the <samp>x264opts</samp>, but is
  5096. duplicated for compatibility with the Libav fork.
  5097. </p>
  5098. <p>For example to specify libx264 encoding options with <code>ffmpeg</code>:
  5099. </p><div class="example">
  5100. <pre class="example">ffmpeg -i INPUT -c:v libx264 -x264-params level=30:bframes=0:weightp=0:\
  5101. cabac=0:ref=1:vbv-maxrate=768:vbv-bufsize=2000:analyse=all:me=umh:\
  5102. no-fast-pskip=1:subq=6:8x8dct=0:trellis=0 OUTPUT
  5103. </pre></div>
  5104. </dd>
  5105. </dl>
  5106. <p>Encoding ffpresets for common usages are provided so they can be used with the
  5107. general presets system (e.g. passing the <samp>pre</samp> option).
  5108. </p>
  5109. <a name="libx265"></a>
  5110. <h3 class="section">9.16 libx265<span class="pull-right"><a class="anchor hidden-xs" href="#libx265" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libx265" aria-hidden="true">TOC</a></span></h3>
  5111. <p>x265 H.265/HEVC encoder wrapper.
  5112. </p>
  5113. <p>This encoder requires the presence of the libx265 headers and library
  5114. during configuration. You need to explicitly configure the build with
  5115. <samp>--enable-libx265</samp>.
  5116. </p>
  5117. <a name="Options-35"></a>
  5118. <h4 class="subsection">9.16.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-35" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-35" aria-hidden="true">TOC</a></span></h4>
  5119. <dl compact="compact">
  5120. <dt><span><samp>b</samp></span></dt>
  5121. <dd><p>Sets target video bitrate.
  5122. </p>
  5123. </dd>
  5124. <dt><span><samp>bf</samp></span></dt>
  5125. <dt><span><samp>g</samp></span></dt>
  5126. <dd><p>Set the GOP size.
  5127. </p>
  5128. </dd>
  5129. <dt><span><samp>keyint_min</samp></span></dt>
  5130. <dd><p>Minimum GOP size.
  5131. </p>
  5132. </dd>
  5133. <dt><span><samp>refs</samp></span></dt>
  5134. <dd><p>Number of reference frames each P-frame can use. The range is from <var>1-16</var>.
  5135. </p>
  5136. </dd>
  5137. <dt><span><samp>preset</samp></span></dt>
  5138. <dd><p>Set the x265 preset.
  5139. </p>
  5140. </dd>
  5141. <dt><span><samp>tune</samp></span></dt>
  5142. <dd><p>Set the x265 tune parameter.
  5143. </p>
  5144. </dd>
  5145. <dt><span><samp>profile</samp></span></dt>
  5146. <dd><p>Set profile restrictions.
  5147. </p>
  5148. </dd>
  5149. <dt><span><samp>crf</samp></span></dt>
  5150. <dd><p>Set the quality for constant quality mode.
  5151. </p>
  5152. </dd>
  5153. <dt><span><samp>qp</samp></span></dt>
  5154. <dd><p>Set constant quantization rate control method parameter.
  5155. </p>
  5156. </dd>
  5157. <dt><span><samp>qmin</samp></span></dt>
  5158. <dd><p>Minimum quantizer scale.
  5159. </p>
  5160. </dd>
  5161. <dt><span><samp>qmax</samp></span></dt>
  5162. <dd><p>Maximum quantizer scale.
  5163. </p>
  5164. </dd>
  5165. <dt><span><samp>qdiff</samp></span></dt>
  5166. <dd><p>Maximum difference between quantizer scales.
  5167. </p>
  5168. </dd>
  5169. <dt><span><samp>qblur</samp></span></dt>
  5170. <dd><p>Quantizer curve blur
  5171. </p>
  5172. </dd>
  5173. <dt><span><samp>qcomp</samp></span></dt>
  5174. <dd><p>Quantizer curve compression factor
  5175. </p>
  5176. </dd>
  5177. <dt><span><samp>i_qfactor</samp></span></dt>
  5178. <dt><span><samp>b_qfactor</samp></span></dt>
  5179. <dt><span><samp>forced-idr</samp></span></dt>
  5180. <dd><p>Normally, when forcing a I-frame type, the encoder can select any type
  5181. of I-frame. This option forces it to choose an IDR-frame.
  5182. </p>
  5183. </dd>
  5184. <dt><span><samp>udu_sei <var>boolean</var></samp></span></dt>
  5185. <dd><p>Import user data unregistered SEI if available into output. Default is 0 (off).
  5186. </p>
  5187. </dd>
  5188. <dt><span><samp>x265-params</samp></span></dt>
  5189. <dd><p>Set x265 options using a list of <var>key</var>=<var>value</var> couples separated
  5190. by &quot;:&quot;. See <code>x265 --help</code> for a list of options.
  5191. </p>
  5192. <p>For example to specify libx265 encoding options with <samp>-x265-params</samp>:
  5193. </p>
  5194. <div class="example">
  5195. <pre class="example">ffmpeg -i input -c:v libx265 -x265-params crf=26:psy-rd=1 output.mp4
  5196. </pre></div>
  5197. </dd>
  5198. </dl>
  5199. <a name="libxavs2"></a>
  5200. <h3 class="section">9.17 libxavs2<span class="pull-right"><a class="anchor hidden-xs" href="#libxavs2" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libxavs2" aria-hidden="true">TOC</a></span></h3>
  5201. <p>xavs2 AVS2-P2/IEEE1857.4 encoder wrapper.
  5202. </p>
  5203. <p>This encoder requires the presence of the libxavs2 headers and library
  5204. during configuration. You need to explicitly configure the build with
  5205. <samp>--enable-libxavs2</samp>.
  5206. </p>
  5207. <p>The following standard libavcodec options are used:
  5208. </p><ul>
  5209. <li> <samp>b</samp> / <samp>bit_rate</samp>
  5210. </li><li> <samp>g</samp> / <samp>gop_size</samp>
  5211. </li><li> <samp>bf</samp> / <samp>max_b_frames</samp>
  5212. </li></ul>
  5213. <p>The encoder also has its own specific options:
  5214. </p><a name="Options-36"></a>
  5215. <h4 class="subsection">9.17.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-36" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-36" aria-hidden="true">TOC</a></span></h4>
  5216. <dl compact="compact">
  5217. <dt><span><samp>lcu_row_threads</samp></span></dt>
  5218. <dd><p>Set the number of parallel threads for rows from 1 to 8 (default 5).
  5219. </p>
  5220. </dd>
  5221. <dt><span><samp>initial_qp</samp></span></dt>
  5222. <dd><p>Set the xavs2 quantization parameter from 1 to 63 (default 34). This is
  5223. used to set the initial qp for the first frame.
  5224. </p>
  5225. </dd>
  5226. <dt><span><samp>qp</samp></span></dt>
  5227. <dd><p>Set the xavs2 quantization parameter from 1 to 63 (default 34). This is
  5228. used to set the qp value under constant-QP mode.
  5229. </p>
  5230. </dd>
  5231. <dt><span><samp>max_qp</samp></span></dt>
  5232. <dd><p>Set the max qp for rate control from 1 to 63 (default 55).
  5233. </p>
  5234. </dd>
  5235. <dt><span><samp>min_qp</samp></span></dt>
  5236. <dd><p>Set the min qp for rate control from 1 to 63 (default 20).
  5237. </p>
  5238. </dd>
  5239. <dt><span><samp>speed_level</samp></span></dt>
  5240. <dd><p>Set the Speed level from 0 to 9 (default 0). Higher is better but slower.
  5241. </p>
  5242. </dd>
  5243. <dt><span><samp>log_level</samp></span></dt>
  5244. <dd><p>Set the log level from -1 to 3 (default 0). -1: none, 0: error,
  5245. 1: warning, 2: info, 3: debug.
  5246. </p>
  5247. </dd>
  5248. <dt><span><samp>xavs2-params</samp></span></dt>
  5249. <dd><p>Set xavs2 options using a list of <var>key</var>=<var>value</var> couples separated
  5250. by &quot;:&quot;.
  5251. </p>
  5252. <p>For example to specify libxavs2 encoding options with <samp>-xavs2-params</samp>:
  5253. </p>
  5254. <div class="example">
  5255. <pre class="example">ffmpeg -i input -c:v libxavs2 -xavs2-params RdoqLevel=0 output.avs2
  5256. </pre></div>
  5257. </dd>
  5258. </dl>
  5259. <a name="libxvid"></a>
  5260. <h3 class="section">9.18 libxvid<span class="pull-right"><a class="anchor hidden-xs" href="#libxvid" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libxvid" aria-hidden="true">TOC</a></span></h3>
  5261. <p>Xvid MPEG-4 Part 2 encoder wrapper.
  5262. </p>
  5263. <p>This encoder requires the presence of the libxvidcore headers and library
  5264. during configuration. You need to explicitly configure the build with
  5265. <code>--enable-libxvid --enable-gpl</code>.
  5266. </p>
  5267. <p>The native <code>mpeg4</code> encoder supports the MPEG-4 Part 2 format, so
  5268. users can encode to this format without this library.
  5269. </p>
  5270. <a name="Options-37"></a>
  5271. <h4 class="subsection">9.18.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-37" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-37" aria-hidden="true">TOC</a></span></h4>
  5272. <p>The following options are supported by the libxvid wrapper. Some of
  5273. the following options are listed but are not documented, and
  5274. correspond to shared codec options. See <a href="#codec_002doptions">the Codec
  5275. Options chapter</a> for their documentation. The other shared options
  5276. which are not listed have no effect for the libxvid encoder.
  5277. </p>
  5278. <dl compact="compact">
  5279. <dt><span><samp>b</samp></span></dt>
  5280. <dt><span><samp>g</samp></span></dt>
  5281. <dt><span><samp>qmin</samp></span></dt>
  5282. <dt><span><samp>qmax</samp></span></dt>
  5283. <dt><span><samp>mpeg_quant</samp></span></dt>
  5284. <dt><span><samp>threads</samp></span></dt>
  5285. <dt><span><samp>bf</samp></span></dt>
  5286. <dt><span><samp>b_qfactor</samp></span></dt>
  5287. <dt><span><samp>b_qoffset</samp></span></dt>
  5288. <dt><span><samp>flags</samp></span></dt>
  5289. <dd><p>Set specific encoding flags. Possible values:
  5290. </p>
  5291. <dl compact="compact">
  5292. <dt><span>&lsquo;<samp>mv4</samp>&rsquo;</span></dt>
  5293. <dd><p>Use four motion vector by macroblock.
  5294. </p>
  5295. </dd>
  5296. <dt><span>&lsquo;<samp>aic</samp>&rsquo;</span></dt>
  5297. <dd><p>Enable high quality AC prediction.
  5298. </p>
  5299. </dd>
  5300. <dt><span>&lsquo;<samp>gray</samp>&rsquo;</span></dt>
  5301. <dd><p>Only encode grayscale.
  5302. </p>
  5303. </dd>
  5304. <dt><span>&lsquo;<samp>gmc</samp>&rsquo;</span></dt>
  5305. <dd><p>Enable the use of global motion compensation (GMC).
  5306. </p>
  5307. </dd>
  5308. <dt><span>&lsquo;<samp>qpel</samp>&rsquo;</span></dt>
  5309. <dd><p>Enable quarter-pixel motion compensation.
  5310. </p>
  5311. </dd>
  5312. <dt><span>&lsquo;<samp>cgop</samp>&rsquo;</span></dt>
  5313. <dd><p>Enable closed GOP.
  5314. </p>
  5315. </dd>
  5316. <dt><span>&lsquo;<samp>global_header</samp>&rsquo;</span></dt>
  5317. <dd><p>Place global headers in extradata instead of every keyframe.
  5318. </p>
  5319. </dd>
  5320. </dl>
  5321. </dd>
  5322. <dt><span><samp>trellis</samp></span></dt>
  5323. <dt><span><samp>me_method</samp></span></dt>
  5324. <dd><p>Set motion estimation method. Possible values in decreasing order of
  5325. speed and increasing order of quality:
  5326. </p>
  5327. <dl compact="compact">
  5328. <dt><span>&lsquo;<samp>zero</samp>&rsquo;</span></dt>
  5329. <dd><p>Use no motion estimation (default).
  5330. </p>
  5331. </dd>
  5332. <dt><span>&lsquo;<samp>phods</samp>&rsquo;</span></dt>
  5333. <dt><span>&lsquo;<samp>x1</samp>&rsquo;</span></dt>
  5334. <dt><span>&lsquo;<samp>log</samp>&rsquo;</span></dt>
  5335. <dd><p>Enable advanced diamond zonal search for 16x16 blocks and half-pixel
  5336. refinement for 16x16 blocks. &lsquo;<samp>x1</samp>&rsquo; and &lsquo;<samp>log</samp>&rsquo; are aliases for
  5337. &lsquo;<samp>phods</samp>&rsquo;.
  5338. </p>
  5339. </dd>
  5340. <dt><span>&lsquo;<samp>epzs</samp>&rsquo;</span></dt>
  5341. <dd><p>Enable all of the things described above, plus advanced diamond zonal
  5342. search for 8x8 blocks, half-pixel refinement for 8x8 blocks, and motion
  5343. estimation on chroma planes.
  5344. </p>
  5345. </dd>
  5346. <dt><span>&lsquo;<samp>full</samp>&rsquo;</span></dt>
  5347. <dd><p>Enable all of the things described above, plus extended 16x16 and 8x8
  5348. blocks search.
  5349. </p></dd>
  5350. </dl>
  5351. </dd>
  5352. <dt><span><samp>mbd</samp></span></dt>
  5353. <dd><p>Set macroblock decision algorithm. Possible values in the increasing
  5354. order of quality:
  5355. </p>
  5356. <dl compact="compact">
  5357. <dt><span>&lsquo;<samp>simple</samp>&rsquo;</span></dt>
  5358. <dd><p>Use macroblock comparing function algorithm (default).
  5359. </p>
  5360. </dd>
  5361. <dt><span>&lsquo;<samp>bits</samp>&rsquo;</span></dt>
  5362. <dd><p>Enable rate distortion-based half pixel and quarter pixel refinement for
  5363. 16x16 blocks.
  5364. </p>
  5365. </dd>
  5366. <dt><span>&lsquo;<samp>rd</samp>&rsquo;</span></dt>
  5367. <dd><p>Enable all of the things described above, plus rate distortion-based
  5368. half pixel and quarter pixel refinement for 8x8 blocks, and rate
  5369. distortion-based search using square pattern.
  5370. </p></dd>
  5371. </dl>
  5372. </dd>
  5373. <dt><span><samp>lumi_aq</samp></span></dt>
  5374. <dd><p>Enable lumi masking adaptive quantization when set to 1. Default is 0
  5375. (disabled).
  5376. </p>
  5377. </dd>
  5378. <dt><span><samp>variance_aq</samp></span></dt>
  5379. <dd><p>Enable variance adaptive quantization when set to 1. Default is 0
  5380. (disabled).
  5381. </p>
  5382. <p>When combined with <samp>lumi_aq</samp>, the resulting quality will not
  5383. be better than any of the two specified individually. In other
  5384. words, the resulting quality will be the worse one of the two
  5385. effects.
  5386. </p>
  5387. </dd>
  5388. <dt><span><samp>ssim</samp></span></dt>
  5389. <dd><p>Set structural similarity (SSIM) displaying method. Possible values:
  5390. </p>
  5391. <dl compact="compact">
  5392. <dt><span>&lsquo;<samp>off</samp>&rsquo;</span></dt>
  5393. <dd><p>Disable displaying of SSIM information.
  5394. </p>
  5395. </dd>
  5396. <dt><span>&lsquo;<samp>avg</samp>&rsquo;</span></dt>
  5397. <dd><p>Output average SSIM at the end of encoding to stdout. The format of
  5398. showing the average SSIM is:
  5399. </p>
  5400. <div class="example">
  5401. <pre class="example">Average SSIM: %f
  5402. </pre></div>
  5403. <p>For users who are not familiar with C, %f means a float number, or
  5404. a decimal (e.g. 0.939232).
  5405. </p>
  5406. </dd>
  5407. <dt><span>&lsquo;<samp>frame</samp>&rsquo;</span></dt>
  5408. <dd><p>Output both per-frame SSIM data during encoding and average SSIM at
  5409. the end of encoding to stdout. The format of per-frame information
  5410. is:
  5411. </p>
  5412. <div class="example">
  5413. <pre class="example"> SSIM: avg: %1.3f min: %1.3f max: %1.3f
  5414. </pre></div>
  5415. <p>For users who are not familiar with C, %1.3f means a float number
  5416. rounded to 3 digits after the dot (e.g. 0.932).
  5417. </p>
  5418. </dd>
  5419. </dl>
  5420. </dd>
  5421. <dt><span><samp>ssim_acc</samp></span></dt>
  5422. <dd><p>Set SSIM accuracy. Valid options are integers within the range of
  5423. 0-4, while 0 gives the most accurate result and 4 computes the
  5424. fastest.
  5425. </p>
  5426. </dd>
  5427. </dl>
  5428. <a name="MediaFoundation"></a>
  5429. <h3 class="section">9.19 MediaFoundation<span class="pull-right"><a class="anchor hidden-xs" href="#MediaFoundation" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-MediaFoundation" aria-hidden="true">TOC</a></span></h3>
  5430. <p>This provides wrappers to encoders (both audio and video) in the
  5431. MediaFoundation framework. It can access both SW and HW encoders.
  5432. Video encoders can take input in either of nv12 or yuv420p form
  5433. (some encoders support both, some support only either - in practice,
  5434. nv12 is the safer choice, especially among HW encoders).
  5435. </p>
  5436. <a name="mpeg2"></a>
  5437. <h3 class="section">9.20 mpeg2<span class="pull-right"><a class="anchor hidden-xs" href="#mpeg2" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-mpeg2" aria-hidden="true">TOC</a></span></h3>
  5438. <p>MPEG-2 video encoder.
  5439. </p>
  5440. <a name="Options-38"></a>
  5441. <h4 class="subsection">9.20.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-38" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-38" aria-hidden="true">TOC</a></span></h4>
  5442. <dl compact="compact">
  5443. <dt><span><samp>profile</samp></span></dt>
  5444. <dd><p>Select the mpeg2 profile to encode:
  5445. </p>
  5446. <dl compact="compact">
  5447. <dt><span>&lsquo;<samp>422</samp>&rsquo;</span></dt>
  5448. <dt><span>&lsquo;<samp>high</samp>&rsquo;</span></dt>
  5449. <dt><span>&lsquo;<samp>ss</samp>&rsquo;</span></dt>
  5450. <dd><p>Spatially Scalable
  5451. </p></dd>
  5452. <dt><span>&lsquo;<samp>snr</samp>&rsquo;</span></dt>
  5453. <dd><p>SNR Scalable
  5454. </p></dd>
  5455. <dt><span>&lsquo;<samp>main</samp>&rsquo;</span></dt>
  5456. <dt><span>&lsquo;<samp>simple</samp>&rsquo;</span></dt>
  5457. </dl>
  5458. </dd>
  5459. <dt><span><samp>level</samp></span></dt>
  5460. <dd><p>Select the mpeg2 level to encode:
  5461. </p>
  5462. <dl compact="compact">
  5463. <dt><span>&lsquo;<samp>high</samp>&rsquo;</span></dt>
  5464. <dt><span>&lsquo;<samp>high1440</samp>&rsquo;</span></dt>
  5465. <dt><span>&lsquo;<samp>main</samp>&rsquo;</span></dt>
  5466. <dt><span>&lsquo;<samp>low</samp>&rsquo;</span></dt>
  5467. </dl>
  5468. </dd>
  5469. <dt><span><samp>seq_disp_ext <var>integer</var></samp></span></dt>
  5470. <dd><p>Specifies if the encoder should write a sequence_display_extension to the
  5471. output.
  5472. </p><dl compact="compact">
  5473. <dt><span><samp>-1</samp></span></dt>
  5474. <dt><span><samp>auto</samp></span></dt>
  5475. <dd><p>Decide automatically to write it or not (this is the default) by checking if
  5476. the data to be written is different from the default or unspecified values.
  5477. </p></dd>
  5478. <dt><span><samp>0</samp></span></dt>
  5479. <dt><span><samp>never</samp></span></dt>
  5480. <dd><p>Never write it.
  5481. </p></dd>
  5482. <dt><span><samp>1</samp></span></dt>
  5483. <dt><span><samp>always</samp></span></dt>
  5484. <dd><p>Always write it.
  5485. </p></dd>
  5486. </dl>
  5487. </dd>
  5488. <dt><span><samp>video_format <var>integer</var></samp></span></dt>
  5489. <dd><p>Specifies the video_format written into the sequence display extension
  5490. indicating the source of the video pictures. The default is &lsquo;<samp>unspecified</samp>&rsquo;,
  5491. can be &lsquo;<samp>component</samp>&rsquo;, &lsquo;<samp>pal</samp>&rsquo;, &lsquo;<samp>ntsc</samp>&rsquo;, &lsquo;<samp>secam</samp>&rsquo; or &lsquo;<samp>mac</samp>&rsquo;.
  5492. For maximum compatibility, use &lsquo;<samp>component</samp>&rsquo;.
  5493. </p></dd>
  5494. <dt><span><samp>a53cc <var>boolean</var></samp></span></dt>
  5495. <dd><p>Import closed captions (which must be ATSC compatible format) into output.
  5496. Default is 1 (on).
  5497. </p></dd>
  5498. </dl>
  5499. <a name="png"></a>
  5500. <h3 class="section">9.21 png<span class="pull-right"><a class="anchor hidden-xs" href="#png" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-png" aria-hidden="true">TOC</a></span></h3>
  5501. <p>PNG image encoder.
  5502. </p>
  5503. <a name="Private-options-1"></a>
  5504. <h4 class="subsection">9.21.1 Private options<span class="pull-right"><a class="anchor hidden-xs" href="#Private-options-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Private-options-1" aria-hidden="true">TOC</a></span></h4>
  5505. <dl compact="compact">
  5506. <dt><span><samp>dpi <var>integer</var></samp></span></dt>
  5507. <dd><p>Set physical density of pixels, in dots per inch, unset by default
  5508. </p></dd>
  5509. <dt><span><samp>dpm <var>integer</var></samp></span></dt>
  5510. <dd><p>Set physical density of pixels, in dots per meter, unset by default
  5511. </p></dd>
  5512. </dl>
  5513. <a name="ProRes"></a>
  5514. <h3 class="section">9.22 ProRes<span class="pull-right"><a class="anchor hidden-xs" href="#ProRes" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-ProRes" aria-hidden="true">TOC</a></span></h3>
  5515. <p>Apple ProRes encoder.
  5516. </p>
  5517. <p>FFmpeg contains 2 ProRes encoders, the prores-aw and prores-ks encoder.
  5518. The used encoder can be chosen with the <code>-vcodec</code> option.
  5519. </p>
  5520. <a name="Private-Options-for-prores_002dks"></a>
  5521. <h4 class="subsection">9.22.1 Private Options for prores-ks<span class="pull-right"><a class="anchor hidden-xs" href="#Private-Options-for-prores_002dks" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Private-Options-for-prores_002dks" aria-hidden="true">TOC</a></span></h4>
  5522. <dl compact="compact">
  5523. <dt><span><samp>profile <var>integer</var></samp></span></dt>
  5524. <dd><p>Select the ProRes profile to encode
  5525. </p><dl compact="compact">
  5526. <dt><span>&lsquo;<samp>proxy</samp>&rsquo;</span></dt>
  5527. <dt><span>&lsquo;<samp>lt</samp>&rsquo;</span></dt>
  5528. <dt><span>&lsquo;<samp>standard</samp>&rsquo;</span></dt>
  5529. <dt><span>&lsquo;<samp>hq</samp>&rsquo;</span></dt>
  5530. <dt><span>&lsquo;<samp>4444</samp>&rsquo;</span></dt>
  5531. <dt><span>&lsquo;<samp>4444xq</samp>&rsquo;</span></dt>
  5532. </dl>
  5533. </dd>
  5534. <dt><span><samp>quant_mat <var>integer</var></samp></span></dt>
  5535. <dd><p>Select quantization matrix.
  5536. </p><dl compact="compact">
  5537. <dt><span>&lsquo;<samp>auto</samp>&rsquo;</span></dt>
  5538. <dt><span>&lsquo;<samp>default</samp>&rsquo;</span></dt>
  5539. <dt><span>&lsquo;<samp>proxy</samp>&rsquo;</span></dt>
  5540. <dt><span>&lsquo;<samp>lt</samp>&rsquo;</span></dt>
  5541. <dt><span>&lsquo;<samp>standard</samp>&rsquo;</span></dt>
  5542. <dt><span>&lsquo;<samp>hq</samp>&rsquo;</span></dt>
  5543. </dl>
  5544. <p>If set to <var>auto</var>, the matrix matching the profile will be picked.
  5545. If not set, the matrix providing the highest quality, <var>default</var>, will be
  5546. picked.
  5547. </p>
  5548. </dd>
  5549. <dt><span><samp>bits_per_mb <var>integer</var></samp></span></dt>
  5550. <dd><p>How many bits to allot for coding one macroblock. Different profiles use
  5551. between 200 and 2400 bits per macroblock, the maximum is 8000.
  5552. </p>
  5553. </dd>
  5554. <dt><span><samp>mbs_per_slice <var>integer</var></samp></span></dt>
  5555. <dd><p>Number of macroblocks in each slice (1-8); the default value (8)
  5556. should be good in almost all situations.
  5557. </p>
  5558. </dd>
  5559. <dt><span><samp>vendor <var>string</var></samp></span></dt>
  5560. <dd><p>Override the 4-byte vendor ID.
  5561. A custom vendor ID like <var>apl0</var> would claim the stream was produced by
  5562. the Apple encoder.
  5563. </p>
  5564. </dd>
  5565. <dt><span><samp>alpha_bits <var>integer</var></samp></span></dt>
  5566. <dd><p>Specify number of bits for alpha component.
  5567. Possible values are <var>0</var>, <var>8</var> and <var>16</var>.
  5568. Use <var>0</var> to disable alpha plane coding.
  5569. </p>
  5570. </dd>
  5571. </dl>
  5572. <a name="Speed-considerations"></a>
  5573. <h4 class="subsection">9.22.2 Speed considerations<span class="pull-right"><a class="anchor hidden-xs" href="#Speed-considerations" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Speed-considerations" aria-hidden="true">TOC</a></span></h4>
  5574. <p>In the default mode of operation the encoder has to honor frame constraints
  5575. (i.e. not produce frames with size bigger than requested) while still making
  5576. output picture as good as possible.
  5577. A frame containing a lot of small details is harder to compress and the encoder
  5578. would spend more time searching for appropriate quantizers for each slice.
  5579. </p>
  5580. <p>Setting a higher <samp>bits_per_mb</samp> limit will improve the speed.
  5581. </p>
  5582. <p>For the fastest encoding speed set the <samp>qscale</samp> parameter (4 is the
  5583. recommended value) and do not set a size constraint.
  5584. </p>
  5585. <a name="QSV-Encoders"></a>
  5586. <h3 class="section">9.23 QSV Encoders<span class="pull-right"><a class="anchor hidden-xs" href="#QSV-Encoders" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-QSV-Encoders" aria-hidden="true">TOC</a></span></h3>
  5587. <p>The family of Intel QuickSync Video encoders (MPEG-2, H.264, HEVC, JPEG/MJPEG
  5588. and VP9)
  5589. </p>
  5590. <a name="Ratecontrol-Method"></a>
  5591. <h4 class="subsection">9.23.1 Ratecontrol Method<span class="pull-right"><a class="anchor hidden-xs" href="#Ratecontrol-Method" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Ratecontrol-Method" aria-hidden="true">TOC</a></span></h4>
  5592. <p>The ratecontrol method is selected as follows:
  5593. </p><ul>
  5594. <li> When <samp>global_quality</samp> is specified, a quality-based mode is used.
  5595. Specifically this means either
  5596. <ul class="no-bullet">
  5597. <li>- <var>CQP</var> - constant quantizer scale, when the <samp>qscale</samp> codec flag is
  5598. also set (the <samp>-qscale</samp> ffmpeg option).
  5599. </li><li>- <var>LA_ICQ</var> - intelligent constant quality with lookahead, when the
  5600. <samp>look_ahead</samp> option is also set.
  5601. </li><li>- <var>ICQ</var> &ndash; intelligent constant quality otherwise. For the ICQ modes, global
  5602. quality range is 1 to 51, with 1 being the best quality.
  5603. </li></ul>
  5604. </li><li> Otherwise, a bitrate-based mode is used. For all of those, you should specify at
  5605. least the desired average bitrate with the <samp>b</samp> option.
  5606. <ul class="no-bullet">
  5607. <li>- <var>LA</var> - VBR with lookahead, when the <samp>look_ahead</samp> option is specified.
  5608. </li><li>- <var>VCM</var> - video conferencing mode, when the <samp>vcm</samp> option is set.
  5609. </li><li>- <var>CBR</var> - constant bitrate, when <samp>maxrate</samp> is specified and equal to
  5610. the average bitrate.
  5611. </li><li>- <var>VBR</var> - variable bitrate, when <samp>maxrate</samp> is specified, but is higher
  5612. than the average bitrate.
  5613. </li><li>- <var>AVBR</var> - average VBR mode, when <samp>maxrate</samp> is not specified, both
  5614. <samp>avbr_accuracy</samp> and <samp>avbr_convergence</samp> are set to non-zero. This
  5615. mode is available for H264 and HEVC on Windows.
  5616. </li></ul>
  5617. </li></ul>
  5618. <p>Note that depending on your system, a different mode than the one you specified
  5619. may be selected by the encoder. Set the verbosity level to <var>verbose</var> or
  5620. higher to see the actual settings used by the QSV runtime.
  5621. </p>
  5622. <a name="Global-Options-_002d_003e-MSDK-Options"></a>
  5623. <h4 class="subsection">9.23.2 Global Options -&gt; MSDK Options<span class="pull-right"><a class="anchor hidden-xs" href="#Global-Options-_002d_003e-MSDK-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Global-Options-_002d_003e-MSDK-Options" aria-hidden="true">TOC</a></span></h4>
  5624. <p>Additional libavcodec global options are mapped to MSDK options as follows:
  5625. </p>
  5626. <ul>
  5627. <li> <samp>g/gop_size</samp> -&gt; <samp>GopPicSize</samp>
  5628. </li><li> <samp>bf/max_b_frames</samp>+1 -&gt; <samp>GopRefDist</samp>
  5629. </li><li> <samp>rc_init_occupancy/rc_initial_buffer_occupancy</samp> -&gt;
  5630. <samp>InitialDelayInKB</samp>
  5631. </li><li> <samp>slices</samp> -&gt; <samp>NumSlice</samp>
  5632. </li><li> <samp>refs</samp> -&gt; <samp>NumRefFrame</samp>
  5633. </li><li> <samp>b_strategy/b_frame_strategy</samp> -&gt; <samp>BRefType</samp>
  5634. </li><li> <samp>cgop/CLOSED_GOP</samp> codec flag -&gt; <samp>GopOptFlag</samp>
  5635. </li><li> For the <var>CQP</var> mode, the <samp>i_qfactor/i_qoffset</samp> and
  5636. <samp>b_qfactor/b_qoffset</samp> set the difference between <var>QPP</var> and <var>QPI</var>,
  5637. and <var>QPP</var> and <var>QPB</var> respectively.
  5638. </li><li> Setting the <samp>coder</samp> option to the value <var>vlc</var> will make the H.264
  5639. encoder use CAVLC instead of CABAC.
  5640. </li></ul>
  5641. <a name="Common-Options-1"></a>
  5642. <h4 class="subsection">9.23.3 Common Options<span class="pull-right"><a class="anchor hidden-xs" href="#Common-Options-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Common-Options-1" aria-hidden="true">TOC</a></span></h4>
  5643. <p>Following options are used by all qsv encoders.
  5644. </p>
  5645. <dl compact="compact">
  5646. <dt><span><samp><var>async_depth</var></samp></span></dt>
  5647. <dd><p>Specifies how many asynchronous operations an application performs
  5648. before the application explicitly synchronizes the result. If zero,
  5649. the value is not specified.
  5650. </p>
  5651. </dd>
  5652. <dt><span><samp><var>preset</var></samp></span></dt>
  5653. <dd><p>This option itemizes a range of choices from veryfast (best speed) to veryslow
  5654. (best quality).
  5655. </p><dl compact="compact">
  5656. <dt><span>&lsquo;<samp>veryfast</samp>&rsquo;</span></dt>
  5657. <dt><span>&lsquo;<samp>faster</samp>&rsquo;</span></dt>
  5658. <dt><span>&lsquo;<samp>fast</samp>&rsquo;</span></dt>
  5659. <dt><span>&lsquo;<samp>medium</samp>&rsquo;</span></dt>
  5660. <dt><span>&lsquo;<samp>slow</samp>&rsquo;</span></dt>
  5661. <dt><span>&lsquo;<samp>slower</samp>&rsquo;</span></dt>
  5662. <dt><span>&lsquo;<samp>veryslow</samp>&rsquo;</span></dt>
  5663. </dl>
  5664. </dd>
  5665. <dt><span><samp><var>forced_idr</var></samp></span></dt>
  5666. <dd><p>Forcing I frames as IDR frames.
  5667. </p>
  5668. </dd>
  5669. <dt><span><samp><var>low_power</var></samp></span></dt>
  5670. <dd><p>For encoders set this flag to ON to reduce power consumption and GPU usage.
  5671. </p></dd>
  5672. </dl>
  5673. <a name="Runtime-Options"></a>
  5674. <h4 class="subsection">9.23.4 Runtime Options<span class="pull-right"><a class="anchor hidden-xs" href="#Runtime-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Runtime-Options" aria-hidden="true">TOC</a></span></h4>
  5675. <p>Following options can be used durning qsv encoding.
  5676. </p>
  5677. <dl compact="compact">
  5678. <dt><span><samp><var>global_quality</var></samp></span></dt>
  5679. <dt><span><samp><var>i_quant_factor</var></samp></span></dt>
  5680. <dt><span><samp><var>i_quant_offset</var></samp></span></dt>
  5681. <dt><span><samp><var>b_quant_factor</var></samp></span></dt>
  5682. <dt><span><samp><var>b_quant_offset</var></samp></span></dt>
  5683. <dd><p>Supported in h264_qsv and hevc_qsv.
  5684. Change these value to reset qsv codec&rsquo;s qp configuration.
  5685. </p>
  5686. </dd>
  5687. <dt><span><samp><var>max_frame_size</var></samp></span></dt>
  5688. <dd><p>Supported in h264_qsv and hevc_qsv.
  5689. Change this value to reset qsv codec&rsquo;s MaxFrameSize configuration.
  5690. </p>
  5691. </dd>
  5692. <dt><span><samp><var>gop_size</var></samp></span></dt>
  5693. <dd><p>Change this value to reset qsv codec&rsquo;s gop configuration.
  5694. </p>
  5695. </dd>
  5696. <dt><span><samp><var>int_ref_type</var></samp></span></dt>
  5697. <dt><span><samp><var>int_ref_cycle_size</var></samp></span></dt>
  5698. <dt><span><samp><var>int_ref_qp_delta</var></samp></span></dt>
  5699. <dt><span><samp><var>int_ref_cycle_dist</var></samp></span></dt>
  5700. <dd><p>Supported in h264_qsv and hevc_qsv.
  5701. Change these value to reset qsv codec&rsquo;s Intra Refresh configuration.
  5702. </p>
  5703. </dd>
  5704. <dt><span><samp><var>qmax</var></samp></span></dt>
  5705. <dt><span><samp><var>qmin</var></samp></span></dt>
  5706. <dt><span><samp><var>max_qp_i</var></samp></span></dt>
  5707. <dt><span><samp><var>min_qp_i</var></samp></span></dt>
  5708. <dt><span><samp><var>max_qp_p</var></samp></span></dt>
  5709. <dt><span><samp><var>min_qp_p</var></samp></span></dt>
  5710. <dt><span><samp><var>max_qp_b</var></samp></span></dt>
  5711. <dt><span><samp><var>min_qp_b</var></samp></span></dt>
  5712. <dd><p>Supported in h264_qsv.
  5713. Change these value to reset qsv codec&rsquo;s max/min qp configuration.
  5714. </p>
  5715. </dd>
  5716. <dt><span><samp><var>low_delay_brc</var></samp></span></dt>
  5717. <dd><p>Supported in h264_qsv and hevc_qsv.
  5718. Change this value to reset qsv codec&rsquo;s low_delay_brc configuration.
  5719. </p>
  5720. </dd>
  5721. <dt><span><samp><var>framerate</var></samp></span></dt>
  5722. <dd><p>Change this value to reset qsv codec&rsquo;s framerate configuration.
  5723. </p>
  5724. </dd>
  5725. <dt><span><samp><var>bit_rate</var></samp></span></dt>
  5726. <dt><span><samp><var>rc_buffer_size</var></samp></span></dt>
  5727. <dt><span><samp><var>rc_initial_buffer_occupancy</var></samp></span></dt>
  5728. <dt><span><samp><var>rc_max_rate</var></samp></span></dt>
  5729. <dd><p>Change these value to reset qsv codec&rsquo;s bitrate control configuration.
  5730. </p>
  5731. </dd>
  5732. <dt><span><samp><var>pic_timing_sei</var></samp></span></dt>
  5733. <dd><p>Supported in h264_qsv and hevc_qsv.
  5734. Change this value to reset qsv codec&rsquo;s pic_timing_sei configuration.
  5735. </p></dd>
  5736. </dl>
  5737. <a name="H264-options"></a>
  5738. <h4 class="subsection">9.23.5 H264 options<span class="pull-right"><a class="anchor hidden-xs" href="#H264-options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-H264-options" aria-hidden="true">TOC</a></span></h4>
  5739. <p>These options are used by h264_qsv
  5740. </p>
  5741. <dl compact="compact">
  5742. <dt><span><samp><var>extbrc</var></samp></span></dt>
  5743. <dd><p>Extended bitrate control.
  5744. </p>
  5745. </dd>
  5746. <dt><span><samp><var>recovery_point_sei</var></samp></span></dt>
  5747. <dd><p>Set this flag to insert the recovery point SEI message at the beginning of every
  5748. intra refresh cycle.
  5749. </p>
  5750. </dd>
  5751. <dt><span><samp><var>rdo</var></samp></span></dt>
  5752. <dd><p>Enable rate distortion optimization.
  5753. </p>
  5754. </dd>
  5755. <dt><span><samp><var>max_frame_size</var></samp></span></dt>
  5756. <dd><p>Maximum encoded frame size in bytes.
  5757. </p>
  5758. </dd>
  5759. <dt><span><samp><var>max_frame_size_i</var></samp></span></dt>
  5760. <dd><p>Maximum encoded frame size for I frames in bytes. If this value is set as larger
  5761. than zero, then for I frames the value set by max_frame_size is ignored.
  5762. </p>
  5763. </dd>
  5764. <dt><span><samp><var>max_frame_size_p</var></samp></span></dt>
  5765. <dd><p>Maximum encoded frame size for P frames in bytes. If this value is set as larger
  5766. than zero, then for P frames the value set by max_frame_size is ignored.
  5767. </p>
  5768. </dd>
  5769. <dt><span><samp><var>max_slice_size</var></samp></span></dt>
  5770. <dd><p>Maximum encoded slice size in bytes.
  5771. </p>
  5772. </dd>
  5773. <dt><span><samp><var>bitrate_limit</var></samp></span></dt>
  5774. <dd><p>Toggle bitrate limitations.
  5775. Modifies bitrate to be in the range imposed by the QSV encoder. Setting this
  5776. flag off may lead to violation of HRD conformance. Mind that specifying bitrate
  5777. below the QSV encoder range might significantly affect quality. If on this
  5778. option takes effect in non CQP modes: if bitrate is not in the range imposed
  5779. by the QSV encoder, it will be changed to be in the range.
  5780. </p>
  5781. </dd>
  5782. <dt><span><samp><var>mbbrc</var></samp></span></dt>
  5783. <dd><p>Setting this flag enables macroblock level bitrate control that generally
  5784. improves subjective visual quality. Enabling this flag may have negative impact
  5785. on performance and objective visual quality metric.
  5786. </p>
  5787. </dd>
  5788. <dt><span><samp><var>low_delay_brc</var></samp></span></dt>
  5789. <dd><p>Setting this flag turns on or off LowDelayBRC feautre in qsv plugin, which provides
  5790. more accurate bitrate control to minimize the variance of bitstream size frame
  5791. by frame. Value: -1-default 0-off 1-on
  5792. </p>
  5793. </dd>
  5794. <dt><span><samp><var>adaptive_i</var></samp></span></dt>
  5795. <dd><p>This flag controls insertion of I frames by the QSV encoder. Turn ON this flag
  5796. to allow changing of frame type from P and B to I.
  5797. </p>
  5798. </dd>
  5799. <dt><span><samp><var>adaptive_b</var></samp></span></dt>
  5800. <dd><p>This flag controls changing of frame type from B to P.
  5801. </p>
  5802. </dd>
  5803. <dt><span><samp><var>p_strategy</var></samp></span></dt>
  5804. <dd><p>Enable P-pyramid: 0-default 1-simple 2-pyramid(bf need to be set to 0).
  5805. </p>
  5806. </dd>
  5807. <dt><span><samp><var>b_strategy</var></samp></span></dt>
  5808. <dd><p>This option controls usage of B frames as reference.
  5809. </p>
  5810. </dd>
  5811. <dt><span><samp><var>dblk_idc</var></samp></span></dt>
  5812. <dd><p>This option disable deblocking. It has value in range 0~2.
  5813. </p>
  5814. </dd>
  5815. <dt><span><samp><var>cavlc</var></samp></span></dt>
  5816. <dd><p>If set, CAVLC is used; if unset, CABAC is used for encoding.
  5817. </p>
  5818. </dd>
  5819. <dt><span><samp><var>vcm</var></samp></span></dt>
  5820. <dd><p>Video conferencing mode, please see ratecontrol method.
  5821. </p>
  5822. </dd>
  5823. <dt><span><samp><var>idr_interval</var></samp></span></dt>
  5824. <dd><p>Distance (in I-frames) between IDR frames.
  5825. </p>
  5826. </dd>
  5827. <dt><span><samp><var>pic_timing_sei</var></samp></span></dt>
  5828. <dd><p>Insert picture timing SEI with pic_struct_syntax element.
  5829. </p>
  5830. </dd>
  5831. <dt><span><samp><var>single_sei_nal_unit</var></samp></span></dt>
  5832. <dd><p>Put all the SEI messages into one NALU.
  5833. </p>
  5834. </dd>
  5835. <dt><span><samp><var>max_dec_frame_buffering</var></samp></span></dt>
  5836. <dd><p>Maximum number of frames buffered in the DPB.
  5837. </p>
  5838. </dd>
  5839. <dt><span><samp><var>look_ahead</var></samp></span></dt>
  5840. <dd><p>Use VBR algorithm with look ahead.
  5841. </p>
  5842. </dd>
  5843. <dt><span><samp><var>look_ahead_depth</var></samp></span></dt>
  5844. <dd><p>Depth of look ahead in number frames.
  5845. </p>
  5846. </dd>
  5847. <dt><span><samp><var>look_ahead_downsampling</var></samp></span></dt>
  5848. <dd><p>Downscaling factor for the frames saved for the lookahead analysis.
  5849. </p><dl compact="compact">
  5850. <dt><span>&lsquo;<samp>unknown</samp>&rsquo;</span></dt>
  5851. <dt><span>&lsquo;<samp>auto</samp>&rsquo;</span></dt>
  5852. <dt><span>&lsquo;<samp>off</samp>&rsquo;</span></dt>
  5853. <dt><span>&lsquo;<samp>2x</samp>&rsquo;</span></dt>
  5854. <dt><span>&lsquo;<samp>4x</samp>&rsquo;</span></dt>
  5855. </dl>
  5856. </dd>
  5857. <dt><span><samp><var>int_ref_type</var></samp></span></dt>
  5858. <dd><p>Specifies intra refresh type. The major goal of intra refresh is improvement of
  5859. error resilience without significant impact on encoded bitstream size caused by
  5860. I frames. The SDK encoder achieves this by encoding part of each frame in
  5861. refresh cycle using intra MBs. <var>none</var> means no refresh. <var>vertical</var> means
  5862. vertical refresh, by column of MBs. <var>horizontal</var> means horizontal refresh,
  5863. by rows of MBs. <var>slice</var> means horizontal refresh by slices without
  5864. overlapping. In case of <var>slice</var>, in_ref_cycle_size is ignored. To enable
  5865. intra refresh, B frame should be set to 0.
  5866. </p>
  5867. </dd>
  5868. <dt><span><samp><var>int_ref_cycle_size</var></samp></span></dt>
  5869. <dd><p>Specifies number of pictures within refresh cycle starting from 2. 0 and 1 are
  5870. invalid values.
  5871. </p>
  5872. </dd>
  5873. <dt><span><samp><var>int_ref_qp_delta</var></samp></span></dt>
  5874. <dd><p>Specifies QP difference for inserted intra MBs. This is signed value in
  5875. [-51, 51] range if target encoding bit-depth for luma samples is 8 and this
  5876. range is [-63, 63] for 10 bit-depth or [-75, 75] for 12 bit-depth respectively.
  5877. </p>
  5878. </dd>
  5879. <dt><span><samp><var>int_ref_cycle_dist</var></samp></span></dt>
  5880. <dd><p>Distance between the beginnings of the intra-refresh cycles in frames.
  5881. </p>
  5882. </dd>
  5883. <dt><span><samp><var>profile</var></samp></span></dt>
  5884. <dd><dl compact="compact">
  5885. <dt><span>&lsquo;<samp>unknown</samp>&rsquo;</span></dt>
  5886. <dt><span>&lsquo;<samp>baseline</samp>&rsquo;</span></dt>
  5887. <dt><span>&lsquo;<samp>main</samp>&rsquo;</span></dt>
  5888. <dt><span>&lsquo;<samp>high</samp>&rsquo;</span></dt>
  5889. </dl>
  5890. </dd>
  5891. <dt><span><samp><var>a53cc</var></samp></span></dt>
  5892. <dd><p>Use A53 Closed Captions (if available).
  5893. </p>
  5894. </dd>
  5895. <dt><span><samp><var>aud</var></samp></span></dt>
  5896. <dd><p>Insert the Access Unit Delimiter NAL.
  5897. </p>
  5898. </dd>
  5899. <dt><span><samp><var>mfmode</var></samp></span></dt>
  5900. <dd><p>Multi-Frame Mode.
  5901. </p><dl compact="compact">
  5902. <dt><span>&lsquo;<samp>off</samp>&rsquo;</span></dt>
  5903. <dt><span>&lsquo;<samp>auto</samp>&rsquo;</span></dt>
  5904. </dl>
  5905. </dd>
  5906. <dt><span><samp><var>repeat_pps</var></samp></span></dt>
  5907. <dd><p>Repeat pps for every frame.
  5908. </p>
  5909. </dd>
  5910. <dt><span><samp><var>max_qp_i</var></samp></span></dt>
  5911. <dd><p>Maximum video quantizer scale for I frame.
  5912. </p>
  5913. </dd>
  5914. <dt><span><samp><var>min_qp_i</var></samp></span></dt>
  5915. <dd><p>Minimum video quantizer scale for I frame.
  5916. </p>
  5917. </dd>
  5918. <dt><span><samp><var>max_qp_p</var></samp></span></dt>
  5919. <dd><p>Maximum video quantizer scale for P frame.
  5920. </p>
  5921. </dd>
  5922. <dt><span><samp><var>min_qp_p</var></samp></span></dt>
  5923. <dd><p>Minimum video quantizer scale for P frame.
  5924. </p>
  5925. </dd>
  5926. <dt><span><samp><var>max_qp_b</var></samp></span></dt>
  5927. <dd><p>Maximum video quantizer scale for B frame.
  5928. </p>
  5929. </dd>
  5930. <dt><span><samp><var>min_qp_b</var></samp></span></dt>
  5931. <dd><p>Minimum video quantizer scale for B frame.
  5932. </p>
  5933. </dd>
  5934. <dt><span><samp><var>scenario</var></samp></span></dt>
  5935. <dd><p>Provides a hint to encoder about the scenario for the encoding session.
  5936. </p><dl compact="compact">
  5937. <dt><span>&lsquo;<samp>unknown</samp>&rsquo;</span></dt>
  5938. <dt><span>&lsquo;<samp>displayremoting</samp>&rsquo;</span></dt>
  5939. <dt><span>&lsquo;<samp>videoconference</samp>&rsquo;</span></dt>
  5940. <dt><span>&lsquo;<samp>archive</samp>&rsquo;</span></dt>
  5941. <dt><span>&lsquo;<samp>livestreaming</samp>&rsquo;</span></dt>
  5942. <dt><span>&lsquo;<samp>cameracapture</samp>&rsquo;</span></dt>
  5943. <dt><span>&lsquo;<samp>videosurveillance</samp>&rsquo;</span></dt>
  5944. <dt><span>&lsquo;<samp>gamestreaming</samp>&rsquo;</span></dt>
  5945. <dt><span>&lsquo;<samp>remotegaming</samp>&rsquo;</span></dt>
  5946. </dl>
  5947. </dd>
  5948. <dt><span><samp><var>avbr_accuracy</var></samp></span></dt>
  5949. <dd><p>Accuracy of the AVBR ratecontrol (unit of tenth of percent).
  5950. </p>
  5951. </dd>
  5952. <dt><span><samp><var>avbr_convergence</var></samp></span></dt>
  5953. <dd><p>Convergence of the AVBR ratecontrol (unit of 100 frames)
  5954. </p>
  5955. <p>The parameters <var>avbr_accuracy</var> and <var>avbr_convergence</var> are for the
  5956. average variable bitrate control (AVBR) algorithm.
  5957. The algorithm focuses on overall encoding quality while meeting the specified
  5958. bitrate, <var>target_bitrate</var>, within the accuracy range <var>avbr_accuracy</var>,
  5959. after a <var>avbr_Convergence</var> period. This method does not follow HRD and the
  5960. instant bitrate is not capped or padded.
  5961. </p>
  5962. </dd>
  5963. <dt><span><samp><var>skip_frame</var></samp></span></dt>
  5964. <dd><p>Use per-frame metadata &quot;qsv_skip_frame&quot; to skip frame when encoding. This option
  5965. defines the usage of this metadata.
  5966. </p><dl compact="compact">
  5967. <dt><span>&lsquo;<samp>no_skip</samp>&rsquo;</span></dt>
  5968. <dd><p>Frame skipping is disabled.
  5969. </p></dd>
  5970. <dt><span>&lsquo;<samp>insert_dummy</samp>&rsquo;</span></dt>
  5971. <dd><p>Encoder inserts into bitstream frame where all macroblocks are encoded as
  5972. skipped.
  5973. </p></dd>
  5974. <dt><span>&lsquo;<samp>insert_nothing</samp>&rsquo;</span></dt>
  5975. <dd><p>Similar to insert_dummy, but encoder inserts nothing into bitstream. The skipped
  5976. frames are still used in brc. For example, gop still include skipped frames, and
  5977. the frames after skipped frames will be larger in size.
  5978. </p></dd>
  5979. <dt><span>&lsquo;<samp>brc_only</samp>&rsquo;</span></dt>
  5980. <dd><p>skip_frame metadata indicates the number of missed frames before the current
  5981. frame.
  5982. </p></dd>
  5983. </dl>
  5984. </dd>
  5985. </dl>
  5986. <a name="HEVC-Options-1"></a>
  5987. <h4 class="subsection">9.23.6 HEVC Options<span class="pull-right"><a class="anchor hidden-xs" href="#HEVC-Options-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-HEVC-Options-1" aria-hidden="true">TOC</a></span></h4>
  5988. <p>These options are used by hevc_qsv
  5989. </p>
  5990. <dl compact="compact">
  5991. <dt><span><samp><var>extbrc</var></samp></span></dt>
  5992. <dd><p>Extended bitrate control.
  5993. </p>
  5994. </dd>
  5995. <dt><span><samp><var>recovery_point_sei</var></samp></span></dt>
  5996. <dd><p>Set this flag to insert the recovery point SEI message at the beginning of every
  5997. intra refresh cycle.
  5998. </p>
  5999. </dd>
  6000. <dt><span><samp><var>rdo</var></samp></span></dt>
  6001. <dd><p>Enable rate distortion optimization.
  6002. </p>
  6003. </dd>
  6004. <dt><span><samp><var>max_frame_size</var></samp></span></dt>
  6005. <dd><p>Maximum encoded frame size in bytes.
  6006. </p>
  6007. </dd>
  6008. <dt><span><samp><var>max_frame_size_i</var></samp></span></dt>
  6009. <dd><p>Maximum encoded frame size for I frames in bytes. If this value is set as larger
  6010. than zero, then for I frames the value set by max_frame_size is ignored.
  6011. </p>
  6012. </dd>
  6013. <dt><span><samp><var>max_frame_size_p</var></samp></span></dt>
  6014. <dd><p>Maximum encoded frame size for P frames in bytes. If this value is set as larger
  6015. than zero, then for P frames the value set by max_frame_size is ignored.
  6016. </p>
  6017. </dd>
  6018. <dt><span><samp><var>max_slice_size</var></samp></span></dt>
  6019. <dd><p>Maximum encoded slice size in bytes.
  6020. </p>
  6021. </dd>
  6022. <dt><span><samp><var>mbbrc</var></samp></span></dt>
  6023. <dd><p>Setting this flag enables macroblock level bitrate control that generally
  6024. improves subjective visual quality. Enabling this flag may have negative impact
  6025. on performance and objective visual quality metric.
  6026. </p>
  6027. </dd>
  6028. <dt><span><samp><var>low_delay_brc</var></samp></span></dt>
  6029. <dd><p>Setting this flag turns on or off LowDelayBRC feautre in qsv plugin, which provides
  6030. more accurate bitrate control to minimize the variance of bitstream size frame
  6031. by frame. Value: -1-default 0-off 1-on
  6032. </p>
  6033. </dd>
  6034. <dt><span><samp><var>adaptive_i</var></samp></span></dt>
  6035. <dd><p>This flag controls insertion of I frames by the QSV encoder. Turn ON this flag
  6036. to allow changing of frame type from P and B to I.
  6037. </p>
  6038. </dd>
  6039. <dt><span><samp><var>adaptive_b</var></samp></span></dt>
  6040. <dd><p>This flag controls changing of frame type from B to P.
  6041. </p>
  6042. </dd>
  6043. <dt><span><samp><var>p_strategy</var></samp></span></dt>
  6044. <dd><p>Enable P-pyramid: 0-default 1-simple 2-pyramid(bf need to be set to 0).
  6045. </p>
  6046. </dd>
  6047. <dt><span><samp><var>b_strategy</var></samp></span></dt>
  6048. <dd><p>This option controls usage of B frames as reference.
  6049. </p>
  6050. </dd>
  6051. <dt><span><samp><var>dblk_idc</var></samp></span></dt>
  6052. <dd><p>This option disable deblocking. It has value in range 0~2.
  6053. </p>
  6054. </dd>
  6055. <dt><span><samp><var>idr_interval</var></samp></span></dt>
  6056. <dd><p>Distance (in I-frames) between IDR frames.
  6057. </p><dl compact="compact">
  6058. <dt><span>&lsquo;<samp>begin_only</samp>&rsquo;</span></dt>
  6059. <dd><p>Output an IDR-frame only at the beginning of the stream.
  6060. </p></dd>
  6061. </dl>
  6062. </dd>
  6063. <dt><span><samp><var>load_plugin</var></samp></span></dt>
  6064. <dd><p>A user plugin to load in an internal session.
  6065. </p><dl compact="compact">
  6066. <dt><span>&lsquo;<samp>none</samp>&rsquo;</span></dt>
  6067. <dt><span>&lsquo;<samp>hevc_sw</samp>&rsquo;</span></dt>
  6068. <dt><span>&lsquo;<samp>hevc_hw</samp>&rsquo;</span></dt>
  6069. </dl>
  6070. </dd>
  6071. <dt><span><samp><var>load_plugins</var></samp></span></dt>
  6072. <dd><p>A :-separate list of hexadecimal plugin UIDs to load in
  6073. an internal session.
  6074. </p>
  6075. </dd>
  6076. <dt><span><samp><var>look_ahead_depth</var></samp></span></dt>
  6077. <dd><p>Depth of look ahead in number frames, available when extbrc option is enabled.
  6078. </p>
  6079. </dd>
  6080. <dt><span><samp><var>profile</var></samp></span></dt>
  6081. <dd><p>Set the encoding profile (scc requires libmfx &gt;= 1.32).
  6082. </p>
  6083. <dl compact="compact">
  6084. <dt><span>&lsquo;<samp>unknown</samp>&rsquo;</span></dt>
  6085. <dt><span>&lsquo;<samp>main</samp>&rsquo;</span></dt>
  6086. <dt><span>&lsquo;<samp>main10</samp>&rsquo;</span></dt>
  6087. <dt><span>&lsquo;<samp>mainsp</samp>&rsquo;</span></dt>
  6088. <dt><span>&lsquo;<samp>rext</samp>&rsquo;</span></dt>
  6089. <dt><span>&lsquo;<samp>scc</samp>&rsquo;</span></dt>
  6090. </dl>
  6091. </dd>
  6092. <dt><span><samp><var>tier</var></samp></span></dt>
  6093. <dd><p>Set the encoding tier (only level &gt;= 4 can support high tier).
  6094. This option only takes effect when the level option is specified.
  6095. </p>
  6096. <dl compact="compact">
  6097. <dt><span>&lsquo;<samp>main</samp>&rsquo;</span></dt>
  6098. <dt><span>&lsquo;<samp>high</samp>&rsquo;</span></dt>
  6099. </dl>
  6100. </dd>
  6101. <dt><span><samp><var>gpb</var></samp></span></dt>
  6102. <dd><p>1: GPB (generalized P/B frame)
  6103. </p>
  6104. <p>0: regular P frame.
  6105. </p>
  6106. </dd>
  6107. <dt><span><samp><var>tile_cols</var></samp></span></dt>
  6108. <dd><p>Number of columns for tiled encoding.
  6109. </p>
  6110. </dd>
  6111. <dt><span><samp><var>tile_rows</var></samp></span></dt>
  6112. <dd><p>Number of rows for tiled encoding.
  6113. </p>
  6114. </dd>
  6115. <dt><span><samp><var>aud</var></samp></span></dt>
  6116. <dd><p>Insert the Access Unit Delimiter NAL.
  6117. </p>
  6118. </dd>
  6119. <dt><span><samp><var>pic_timing_sei</var></samp></span></dt>
  6120. <dd><p>Insert picture timing SEI with pic_struct_syntax element.
  6121. </p>
  6122. </dd>
  6123. <dt><span><samp><var>transform_skip</var></samp></span></dt>
  6124. <dd><p>Turn this option ON to enable transformskip. It is supported on platform equal
  6125. or newer than ICL.
  6126. </p>
  6127. </dd>
  6128. <dt><span><samp><var>int_ref_type</var></samp></span></dt>
  6129. <dd><p>Specifies intra refresh type. The major goal of intra refresh is improvement of
  6130. error resilience without significant impact on encoded bitstream size caused by
  6131. I frames. The SDK encoder achieves this by encoding part of each frame in
  6132. refresh cycle using intra MBs. <var>none</var> means no refresh. <var>vertical</var> means
  6133. vertical refresh, by column of MBs. <var>horizontal</var> means horizontal refresh,
  6134. by rows of MBs. <var>slice</var> means horizontal refresh by slices without
  6135. overlapping. In case of <var>slice</var>, in_ref_cycle_size is ignored. To enable
  6136. intra refresh, B frame should be set to 0.
  6137. </p>
  6138. </dd>
  6139. <dt><span><samp><var>int_ref_cycle_size</var></samp></span></dt>
  6140. <dd><p>Specifies number of pictures within refresh cycle starting from 2. 0 and 1 are
  6141. invalid values.
  6142. </p>
  6143. </dd>
  6144. <dt><span><samp><var>int_ref_qp_delta</var></samp></span></dt>
  6145. <dd><p>Specifies QP difference for inserted intra MBs. This is signed value in
  6146. [-51, 51] range if target encoding bit-depth for luma samples is 8 and this
  6147. range is [-63, 63] for 10 bit-depth or [-75, 75] for 12 bit-depth respectively.
  6148. </p>
  6149. </dd>
  6150. <dt><span><samp><var>int_ref_cycle_dist</var></samp></span></dt>
  6151. <dd><p>Distance between the beginnings of the intra-refresh cycles in frames.
  6152. </p>
  6153. </dd>
  6154. <dt><span><samp><var>max_qp_i</var></samp></span></dt>
  6155. <dd><p>Maximum video quantizer scale for I frame.
  6156. </p>
  6157. </dd>
  6158. <dt><span><samp><var>min_qp_i</var></samp></span></dt>
  6159. <dd><p>Minimum video quantizer scale for I frame.
  6160. </p>
  6161. </dd>
  6162. <dt><span><samp><var>max_qp_p</var></samp></span></dt>
  6163. <dd><p>Maximum video quantizer scale for P frame.
  6164. </p>
  6165. </dd>
  6166. <dt><span><samp><var>min_qp_p</var></samp></span></dt>
  6167. <dd><p>Minimum video quantizer scale for P frame.
  6168. </p>
  6169. </dd>
  6170. <dt><span><samp><var>max_qp_b</var></samp></span></dt>
  6171. <dd><p>Maximum video quantizer scale for B frame.
  6172. </p>
  6173. </dd>
  6174. <dt><span><samp><var>min_qp_b</var></samp></span></dt>
  6175. <dd><p>Minimum video quantizer scale for B frame.
  6176. </p>
  6177. </dd>
  6178. <dt><span><samp><var>scenario</var></samp></span></dt>
  6179. <dd><p>Provides a hint to encoder about the scenario for the encoding session.
  6180. </p><dl compact="compact">
  6181. <dt><span>&lsquo;<samp>unknown</samp>&rsquo;</span></dt>
  6182. <dt><span>&lsquo;<samp>displayremoting</samp>&rsquo;</span></dt>
  6183. <dt><span>&lsquo;<samp>videoconference</samp>&rsquo;</span></dt>
  6184. <dt><span>&lsquo;<samp>archive</samp>&rsquo;</span></dt>
  6185. <dt><span>&lsquo;<samp>livestreaming</samp>&rsquo;</span></dt>
  6186. <dt><span>&lsquo;<samp>cameracapture</samp>&rsquo;</span></dt>
  6187. <dt><span>&lsquo;<samp>videosurveillance</samp>&rsquo;</span></dt>
  6188. <dt><span>&lsquo;<samp>gamestreaming</samp>&rsquo;</span></dt>
  6189. <dt><span>&lsquo;<samp>remotegaming</samp>&rsquo;</span></dt>
  6190. </dl>
  6191. </dd>
  6192. <dt><span><samp><var>avbr_accuracy</var></samp></span></dt>
  6193. <dd><p>Accuracy of the AVBR ratecontrol (unit of tenth of percent).
  6194. </p>
  6195. </dd>
  6196. <dt><span><samp><var>avbr_convergence</var></samp></span></dt>
  6197. <dd><p>Convergence of the AVBR ratecontrol (unit of 100 frames)
  6198. </p>
  6199. <p>The parameters <var>avbr_accuracy</var> and <var>avbr_convergence</var> are for the
  6200. average variable bitrate control (AVBR) algorithm.
  6201. The algorithm focuses on overall encoding quality while meeting the specified
  6202. bitrate, <var>target_bitrate</var>, within the accuracy range <var>avbr_accuracy</var>,
  6203. after a <var>avbr_Convergence</var> period. This method does not follow HRD and the
  6204. instant bitrate is not capped or padded.
  6205. </p>
  6206. </dd>
  6207. <dt><span><samp><var>skip_frame</var></samp></span></dt>
  6208. <dd><p>Use per-frame metadata &quot;qsv_skip_frame&quot; to skip frame when encoding. This option
  6209. defines the usage of this metadata.
  6210. </p><dl compact="compact">
  6211. <dt><span>&lsquo;<samp>no_skip</samp>&rsquo;</span></dt>
  6212. <dd><p>Frame skipping is disabled.
  6213. </p></dd>
  6214. <dt><span>&lsquo;<samp>insert_dummy</samp>&rsquo;</span></dt>
  6215. <dd><p>Encoder inserts into bitstream frame where all macroblocks are encoded as
  6216. skipped.
  6217. </p></dd>
  6218. <dt><span>&lsquo;<samp>insert_nothing</samp>&rsquo;</span></dt>
  6219. <dd><p>Similar to insert_dummy, but encoder inserts nothing into bitstream. The skipped
  6220. frames are still used in brc. For example, gop still include skipped frames, and
  6221. the frames after skipped frames will be larger in size.
  6222. </p></dd>
  6223. <dt><span>&lsquo;<samp>brc_only</samp>&rsquo;</span></dt>
  6224. <dd><p>skip_frame metadata indicates the number of missed frames before the current
  6225. frame.
  6226. </p></dd>
  6227. </dl>
  6228. </dd>
  6229. </dl>
  6230. <a name="MPEG2-Options"></a>
  6231. <h4 class="subsection">9.23.7 MPEG2 Options<span class="pull-right"><a class="anchor hidden-xs" href="#MPEG2-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-MPEG2-Options" aria-hidden="true">TOC</a></span></h4>
  6232. <p>These options are used by mpeg2_qsv
  6233. </p><dl compact="compact">
  6234. <dt><span><samp><var>profile</var></samp></span></dt>
  6235. <dd><dl compact="compact">
  6236. <dt><span>&lsquo;<samp>unknown</samp>&rsquo;</span></dt>
  6237. <dt><span>&lsquo;<samp>simple</samp>&rsquo;</span></dt>
  6238. <dt><span>&lsquo;<samp>main</samp>&rsquo;</span></dt>
  6239. <dt><span>&lsquo;<samp>high</samp>&rsquo;</span></dt>
  6240. </dl>
  6241. </dd>
  6242. </dl>
  6243. <a name="VP9-Options"></a>
  6244. <h4 class="subsection">9.23.8 VP9 Options<span class="pull-right"><a class="anchor hidden-xs" href="#VP9-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-VP9-Options" aria-hidden="true">TOC</a></span></h4>
  6245. <p>These options are used by vp9_qsv
  6246. </p><dl compact="compact">
  6247. <dt><span><samp><var>profile</var></samp></span></dt>
  6248. <dd><dl compact="compact">
  6249. <dt><span>&lsquo;<samp>unknown</samp>&rsquo;</span></dt>
  6250. <dt><span>&lsquo;<samp>profile0</samp>&rsquo;</span></dt>
  6251. <dt><span>&lsquo;<samp>profile1</samp>&rsquo;</span></dt>
  6252. <dt><span>&lsquo;<samp>profile2</samp>&rsquo;</span></dt>
  6253. <dt><span>&lsquo;<samp>profile3</samp>&rsquo;</span></dt>
  6254. </dl>
  6255. </dd>
  6256. <dt><span><samp><var>tile_cols</var></samp></span></dt>
  6257. <dd><p>Number of columns for tiled encoding (requires libmfx &gt;= 1.29).
  6258. </p>
  6259. </dd>
  6260. <dt><span><samp><var>tile_rows</var></samp></span></dt>
  6261. <dd><p>Number of rows for tiled encoding (requires libmfx &gt;= 1.29).
  6262. </p></dd>
  6263. </dl>
  6264. <a name="AV1-Options"></a>
  6265. <h4 class="subsection">9.23.9 AV1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#AV1-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-AV1-Options" aria-hidden="true">TOC</a></span></h4>
  6266. <p>These options are used by av1_qsv (requires libvpl).
  6267. </p><dl compact="compact">
  6268. <dt><span><samp><var>profile</var></samp></span></dt>
  6269. <dd><dl compact="compact">
  6270. <dt><span>&lsquo;<samp>unknown</samp>&rsquo;</span></dt>
  6271. <dt><span>&lsquo;<samp>main</samp>&rsquo;</span></dt>
  6272. </dl>
  6273. </dd>
  6274. <dt><span><samp><var>tile_cols</var></samp></span></dt>
  6275. <dd><p>Number of columns for tiled encoding.
  6276. </p>
  6277. </dd>
  6278. <dt><span><samp><var>tile_rows</var></samp></span></dt>
  6279. <dd><p>Number of rows for tiled encoding.
  6280. </p>
  6281. </dd>
  6282. <dt><span><samp><var>adaptive_i</var></samp></span></dt>
  6283. <dd><p>This flag controls insertion of I frames by the QSV encoder. Turn ON this flag
  6284. to allow changing of frame type from P and B to I.
  6285. </p>
  6286. </dd>
  6287. <dt><span><samp><var>adaptive_b</var></samp></span></dt>
  6288. <dd><p>This flag controls changing of frame type from B to P.
  6289. </p>
  6290. </dd>
  6291. <dt><span><samp><var>b_strategy</var></samp></span></dt>
  6292. <dd><p>This option controls usage of B frames as reference.
  6293. </p>
  6294. </dd>
  6295. <dt><span><samp><var>extbrc</var></samp></span></dt>
  6296. <dd><p>Extended bitrate control.
  6297. </p>
  6298. </dd>
  6299. <dt><span><samp><var>look_ahead_depth</var></samp></span></dt>
  6300. <dd><p>Depth of look ahead in number frames, available when extbrc option is enabled.
  6301. </p>
  6302. </dd>
  6303. <dt><span><samp><var>low_delay_brc</var></samp></span></dt>
  6304. <dd><p>Setting this flag turns on or off LowDelayBRC feautre in qsv plugin, which provides
  6305. more accurate bitrate control to minimize the variance of bitstream size frame
  6306. by frame. Value: -1-default 0-off 1-on
  6307. </p>
  6308. </dd>
  6309. <dt><span><samp>max_frame_size</samp></span></dt>
  6310. <dd><p>Set the allowed max size in bytes for each frame. If the frame size exceeds
  6311. the limitation, encoder will adjust the QP value to control the frame size.
  6312. Invalid in CQP rate control mode.
  6313. </p></dd>
  6314. </dl>
  6315. <a name="snow"></a>
  6316. <h3 class="section">9.24 snow<span class="pull-right"><a class="anchor hidden-xs" href="#snow" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-snow" aria-hidden="true">TOC</a></span></h3>
  6317. <a name="Options-39"></a>
  6318. <h4 class="subsection">9.24.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-39" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-39" aria-hidden="true">TOC</a></span></h4>
  6319. <dl compact="compact">
  6320. <dt><span><samp>iterative_dia_size</samp></span></dt>
  6321. <dd><p>dia size for the iterative motion estimation
  6322. </p></dd>
  6323. </dl>
  6324. <a name="VAAPI-encoders"></a>
  6325. <h3 class="section">9.25 VAAPI encoders<span class="pull-right"><a class="anchor hidden-xs" href="#VAAPI-encoders" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-VAAPI-encoders" aria-hidden="true">TOC</a></span></h3>
  6326. <p>Wrappers for hardware encoders accessible via VAAPI.
  6327. </p>
  6328. <p>These encoders only accept input in VAAPI hardware surfaces. If you have input
  6329. in software frames, use the <samp>hwupload</samp> filter to upload them to the GPU.
  6330. </p>
  6331. <p>The following standard libavcodec options are used:
  6332. </p><ul>
  6333. <li> <samp>g</samp> / <samp>gop_size</samp>
  6334. </li><li> <samp>bf</samp> / <samp>max_b_frames</samp>
  6335. </li><li> <samp>profile</samp>
  6336. <p>If not set, this will be determined automatically from the format of the input
  6337. frames and the profiles supported by the driver.
  6338. </p></li><li> <samp>level</samp>
  6339. </li><li> <samp>b</samp> / <samp>bit_rate</samp>
  6340. </li><li> <samp>maxrate</samp> / <samp>rc_max_rate</samp>
  6341. </li><li> <samp>bufsize</samp> / <samp>rc_buffer_size</samp>
  6342. </li><li> <samp>rc_init_occupancy</samp> / <samp>rc_initial_buffer_occupancy</samp>
  6343. </li><li> <samp>compression_level</samp>
  6344. <p>Speed / quality tradeoff: higher values are faster / worse quality.
  6345. </p></li><li> <samp>q</samp> / <samp>global_quality</samp>
  6346. <p>Size / quality tradeoff: higher values are smaller / worse quality.
  6347. </p></li><li> <samp>qmin</samp>
  6348. </li><li> <samp>qmax</samp>
  6349. </li><li> <samp>i_qfactor</samp> / <samp>i_quant_factor</samp>
  6350. </li><li> <samp>i_qoffset</samp> / <samp>i_quant_offset</samp>
  6351. </li><li> <samp>b_qfactor</samp> / <samp>b_quant_factor</samp>
  6352. </li><li> <samp>b_qoffset</samp> / <samp>b_quant_offset</samp>
  6353. </li><li> <samp>slices</samp>
  6354. </li></ul>
  6355. <p>All encoders support the following options:
  6356. </p><dl compact="compact">
  6357. <dt><span><samp>low_power</samp></span></dt>
  6358. <dd><p>Some drivers/platforms offer a second encoder for some codecs intended to use
  6359. less power than the default encoder; setting this option will attempt to use
  6360. that encoder. Note that it may support a reduced feature set, so some other
  6361. options may not be available in this mode.
  6362. </p>
  6363. </dd>
  6364. <dt><span><samp>idr_interval</samp></span></dt>
  6365. <dd><p>Set the number of normal intra frames between full-refresh (IDR) frames in
  6366. open-GOP mode. The intra frames are still IRAPs, but will not include global
  6367. headers and may have non-decodable leading pictures.
  6368. </p>
  6369. </dd>
  6370. <dt><span><samp>b_depth</samp></span></dt>
  6371. <dd><p>Set the B-frame reference depth. When set to one (the default), all B-frames
  6372. will refer only to P- or I-frames. When set to greater values multiple layers
  6373. of B-frames will be present, frames in each layer only referring to frames in
  6374. higher layers.
  6375. </p>
  6376. </dd>
  6377. <dt><span><samp>async_depth</samp></span></dt>
  6378. <dd><p>Maximum processing parallelism. Increase this to improve single channel
  6379. performance. This option doesn&rsquo;t work if driver doesn&rsquo;t implement vaSyncBuffer
  6380. function. Please make sure there are enough hw_frames allocated if a large
  6381. number of async_depth is used.
  6382. </p>
  6383. </dd>
  6384. <dt><span><samp>max_frame_size</samp></span></dt>
  6385. <dd><p>Set the allowed max size in bytes for each frame. If the frame size exceeds
  6386. the limitation, encoder will adjust the QP value to control the frame size.
  6387. Invalid in CQP rate control mode.
  6388. </p>
  6389. </dd>
  6390. <dt><span><samp>rc_mode</samp></span></dt>
  6391. <dd><p>Set the rate control mode to use. A given driver may only support a subset of
  6392. modes.
  6393. </p>
  6394. <p>Possible modes:
  6395. </p><dl compact="compact">
  6396. <dt><span><samp>auto</samp></span></dt>
  6397. <dd><p>Choose the mode automatically based on driver support and the other options.
  6398. This is the default.
  6399. </p></dd>
  6400. <dt><span><samp>CQP</samp></span></dt>
  6401. <dd><p>Constant-quality.
  6402. </p></dd>
  6403. <dt><span><samp>CBR</samp></span></dt>
  6404. <dd><p>Constant-bitrate.
  6405. </p></dd>
  6406. <dt><span><samp>VBR</samp></span></dt>
  6407. <dd><p>Variable-bitrate.
  6408. </p></dd>
  6409. <dt><span><samp>ICQ</samp></span></dt>
  6410. <dd><p>Intelligent constant-quality.
  6411. </p></dd>
  6412. <dt><span><samp>QVBR</samp></span></dt>
  6413. <dd><p>Quality-defined variable-bitrate.
  6414. </p></dd>
  6415. <dt><span><samp>AVBR</samp></span></dt>
  6416. <dd><p>Average variable bitrate.
  6417. </p></dd>
  6418. </dl>
  6419. </dd>
  6420. </dl>
  6421. <p>Each encoder also has its own specific options:
  6422. </p><dl compact="compact">
  6423. <dt><span><samp>h264_vaapi</samp></span></dt>
  6424. <dd><p><samp>profile</samp> sets the value of <em>profile_idc</em> and the <em>constraint_set*_flag</em>s.
  6425. <samp>level</samp> sets the value of <em>level_idc</em>.
  6426. </p>
  6427. <dl compact="compact">
  6428. <dt><span><samp>coder</samp></span></dt>
  6429. <dd><p>Set entropy encoder (default is <em>cabac</em>). Possible values:
  6430. </p>
  6431. <dl compact="compact">
  6432. <dt><span>&lsquo;<samp>ac</samp>&rsquo;</span></dt>
  6433. <dt><span>&lsquo;<samp>cabac</samp>&rsquo;</span></dt>
  6434. <dd><p>Use CABAC.
  6435. </p>
  6436. </dd>
  6437. <dt><span>&lsquo;<samp>vlc</samp>&rsquo;</span></dt>
  6438. <dt><span>&lsquo;<samp>cavlc</samp>&rsquo;</span></dt>
  6439. <dd><p>Use CAVLC.
  6440. </p></dd>
  6441. </dl>
  6442. </dd>
  6443. <dt><span><samp>aud</samp></span></dt>
  6444. <dd><p>Include access unit delimiters in the stream (not included by default).
  6445. </p>
  6446. </dd>
  6447. <dt><span><samp>sei</samp></span></dt>
  6448. <dd><p>Set SEI message types to include.
  6449. Some combination of the following values:
  6450. </p><dl compact="compact">
  6451. <dt><span>&lsquo;<samp>identifier</samp>&rsquo;</span></dt>
  6452. <dd><p>Include a <em>user_data_unregistered</em> message containing information about
  6453. the encoder.
  6454. </p></dd>
  6455. <dt><span>&lsquo;<samp>timing</samp>&rsquo;</span></dt>
  6456. <dd><p>Include picture timing parameters (<em>buffering_period</em> and
  6457. <em>pic_timing</em> messages).
  6458. </p></dd>
  6459. <dt><span>&lsquo;<samp>recovery_point</samp>&rsquo;</span></dt>
  6460. <dd><p>Include recovery points where appropriate (<em>recovery_point</em> messages).
  6461. </p></dd>
  6462. </dl>
  6463. </dd>
  6464. </dl>
  6465. </dd>
  6466. <dt><span><samp>hevc_vaapi</samp></span></dt>
  6467. <dd><p><samp>profile</samp> and <samp>level</samp> set the values of
  6468. <em>general_profile_idc</em> and <em>general_level_idc</em> respectively.
  6469. </p>
  6470. <dl compact="compact">
  6471. <dt><span><samp>aud</samp></span></dt>
  6472. <dd><p>Include access unit delimiters in the stream (not included by default).
  6473. </p>
  6474. </dd>
  6475. <dt><span><samp>tier</samp></span></dt>
  6476. <dd><p>Set <em>general_tier_flag</em>. This may affect the level chosen for the stream
  6477. if it is not explicitly specified.
  6478. </p>
  6479. </dd>
  6480. <dt><span><samp>sei</samp></span></dt>
  6481. <dd><p>Set SEI message types to include.
  6482. Some combination of the following values:
  6483. </p><dl compact="compact">
  6484. <dt><span>&lsquo;<samp>hdr</samp>&rsquo;</span></dt>
  6485. <dd><p>Include HDR metadata if the input frames have it
  6486. (<em>mastering_display_colour_volume</em> and <em>content_light_level</em>
  6487. messages).
  6488. </p></dd>
  6489. </dl>
  6490. </dd>
  6491. <dt><span><samp>tiles</samp></span></dt>
  6492. <dd><p>Set the number of tiles to encode the input video with, as columns x rows.
  6493. Larger numbers allow greater parallelism in both encoding and decoding, but
  6494. may decrease coding efficiency.
  6495. </p>
  6496. </dd>
  6497. </dl>
  6498. </dd>
  6499. <dt><span><samp>mjpeg_vaapi</samp></span></dt>
  6500. <dd><p>Only baseline DCT encoding is supported. The encoder always uses the standard
  6501. quantisation and huffman tables - <samp>global_quality</samp> scales the standard
  6502. quantisation table (range 1-100).
  6503. </p>
  6504. <p>For YUV, 4:2:0, 4:2:2 and 4:4:4 subsampling modes are supported. RGB is also
  6505. supported, and will create an RGB JPEG.
  6506. </p>
  6507. <dl compact="compact">
  6508. <dt><span><samp>jfif</samp></span></dt>
  6509. <dd><p>Include JFIF header in each frame (not included by default).
  6510. </p></dd>
  6511. <dt><span><samp>huffman</samp></span></dt>
  6512. <dd><p>Include standard huffman tables (on by default). Turning this off will save
  6513. a few hundred bytes in each output frame, but may lose compatibility with some
  6514. JPEG decoders which don&rsquo;t fully handle MJPEG.
  6515. </p></dd>
  6516. </dl>
  6517. </dd>
  6518. <dt><span><samp>mpeg2_vaapi</samp></span></dt>
  6519. <dd><p><samp>profile</samp> and <samp>level</samp> set the value of <em>profile_and_level_indication</em>.
  6520. </p>
  6521. </dd>
  6522. <dt><span><samp>vp8_vaapi</samp></span></dt>
  6523. <dd><p>B-frames are not supported.
  6524. </p>
  6525. <p><samp>global_quality</samp> sets the <em>q_idx</em> used for non-key frames (range 0-127).
  6526. </p>
  6527. <dl compact="compact">
  6528. <dt><span><samp>loop_filter_level</samp></span></dt>
  6529. <dt><span><samp>loop_filter_sharpness</samp></span></dt>
  6530. <dd><p>Manually set the loop filter parameters.
  6531. </p></dd>
  6532. </dl>
  6533. </dd>
  6534. <dt><span><samp>vp9_vaapi</samp></span></dt>
  6535. <dd><p><samp>global_quality</samp> sets the <em>q_idx</em> used for P-frames (range 0-255).
  6536. </p>
  6537. <dl compact="compact">
  6538. <dt><span><samp>loop_filter_level</samp></span></dt>
  6539. <dt><span><samp>loop_filter_sharpness</samp></span></dt>
  6540. <dd><p>Manually set the loop filter parameters.
  6541. </p></dd>
  6542. </dl>
  6543. <p>B-frames are supported, but the output stream is always in encode order rather than display
  6544. order. If B-frames are enabled, it may be necessary to use the <samp>vp9_raw_reorder</samp>
  6545. bitstream filter to modify the output stream to display frames in the correct order.
  6546. </p>
  6547. <p>Only normal frames are produced - the <samp>vp9_superframe</samp> bitstream filter may be
  6548. required to produce a stream usable with all decoders.
  6549. </p>
  6550. </dd>
  6551. </dl>
  6552. <a name="vbn"></a>
  6553. <h3 class="section">9.26 vbn<span class="pull-right"><a class="anchor hidden-xs" href="#vbn" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-vbn" aria-hidden="true">TOC</a></span></h3>
  6554. <p>Vizrt Binary Image encoder.
  6555. </p>
  6556. <p>This format is used by the broadcast vendor Vizrt for quick texture streaming.
  6557. Advanced features of the format such as LZW compression of texture data or
  6558. generation of mipmaps are not supported.
  6559. </p>
  6560. <a name="Options-40"></a>
  6561. <h4 class="subsection">9.26.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-40" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-40" aria-hidden="true">TOC</a></span></h4>
  6562. <dl compact="compact">
  6563. <dt><span><samp>format <var>string</var></samp></span></dt>
  6564. <dd><p>Sets the texture compression used by the VBN file. Can be <var>dxt1</var>,
  6565. <var>dxt5</var> or <var>raw</var>. Default is <var>dxt5</var>.
  6566. </p></dd>
  6567. </dl>
  6568. <a name="vc2"></a>
  6569. <h3 class="section">9.27 vc2<span class="pull-right"><a class="anchor hidden-xs" href="#vc2" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-vc2" aria-hidden="true">TOC</a></span></h3>
  6570. <p>SMPTE VC-2 (previously BBC Dirac Pro). This codec was primarily aimed at
  6571. professional broadcasting but since it supports yuv420, yuv422 and yuv444 at
  6572. 8 (limited range or full range), 10 or 12 bits, this makes it suitable for
  6573. other tasks which require low overhead and low compression (like screen
  6574. recording).
  6575. </p>
  6576. <a name="Options-41"></a>
  6577. <h4 class="subsection">9.27.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-41" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-41" aria-hidden="true">TOC</a></span></h4>
  6578. <dl compact="compact">
  6579. <dt><span><samp>b</samp></span></dt>
  6580. <dd><p>Sets target video bitrate. Usually that&rsquo;s around 1:6 of the uncompressed
  6581. video bitrate (e.g. for 1920x1080 50fps yuv422p10 that&rsquo;s around 400Mbps). Higher
  6582. values (close to the uncompressed bitrate) turn on lossless compression mode.
  6583. </p>
  6584. </dd>
  6585. <dt><span><samp>field_order</samp></span></dt>
  6586. <dd><p>Enables field coding when set (e.g. to tt - top field first) for interlaced
  6587. inputs. Should increase compression with interlaced content as it splits the
  6588. fields and encodes each separately.
  6589. </p>
  6590. </dd>
  6591. <dt><span><samp>wavelet_depth</samp></span></dt>
  6592. <dd><p>Sets the total amount of wavelet transforms to apply, between 1 and 5 (default).
  6593. Lower values reduce compression and quality. Less capable decoders may not be
  6594. able to handle values of <samp>wavelet_depth</samp> over 3.
  6595. </p>
  6596. </dd>
  6597. <dt><span><samp>wavelet_type</samp></span></dt>
  6598. <dd><p>Sets the transform type. Currently only <var>5_3</var> (LeGall) and <var>9_7</var>
  6599. (Deslauriers-Dubuc)
  6600. are implemented, with 9_7 being the one with better compression and thus
  6601. is the default.
  6602. </p>
  6603. </dd>
  6604. <dt><span><samp>slice_width</samp></span></dt>
  6605. <dt><span><samp>slice_height</samp></span></dt>
  6606. <dd><p>Sets the slice size for each slice. Larger values result in better compression.
  6607. For compatibility with other more limited decoders use <samp>slice_width</samp> of
  6608. 32 and <samp>slice_height</samp> of 8.
  6609. </p>
  6610. </dd>
  6611. <dt><span><samp>tolerance</samp></span></dt>
  6612. <dd><p>Sets the undershoot tolerance of the rate control system in percent. This is
  6613. to prevent an expensive search from being run.
  6614. </p>
  6615. </dd>
  6616. <dt><span><samp>qm</samp></span></dt>
  6617. <dd><p>Sets the quantization matrix preset to use by default or when <samp>wavelet_depth</samp>
  6618. is set to 5
  6619. </p><ul class="no-bullet">
  6620. <li>- <var>default</var>
  6621. Uses the default quantization matrix from the specifications, extended with
  6622. values for the fifth level. This provides a good balance between keeping detail
  6623. and omitting artifacts.
  6624. </li><li>- <var>flat</var>
  6625. Use a completely zeroed out quantization matrix. This increases PSNR but might
  6626. reduce perception. Use in bogus benchmarks.
  6627. </li><li>- <var>color</var>
  6628. Reduces detail but attempts to preserve color at extremely low bitrates.
  6629. </li></ul>
  6630. </dd>
  6631. </dl>
  6632. <a name="Subtitles-Encoders"></a>
  6633. <h2 class="chapter">10 Subtitles Encoders<span class="pull-right"><a class="anchor hidden-xs" href="#Subtitles-Encoders" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Subtitles-Encoders" aria-hidden="true">TOC</a></span></h2>
  6634. <a name="dvdsub-1"></a>
  6635. <h3 class="section">10.1 dvdsub<span class="pull-right"><a class="anchor hidden-xs" href="#dvdsub-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-dvdsub-1" aria-hidden="true">TOC</a></span></h3>
  6636. <p>This codec encodes the bitmap subtitle format that is used in DVDs.
  6637. Typically they are stored in VOBSUB file pairs (*.idx + *.sub),
  6638. and they can also be used in Matroska files.
  6639. </p>
  6640. <a name="Options-42"></a>
  6641. <h4 class="subsection">10.1.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-42" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-42" aria-hidden="true">TOC</a></span></h4>
  6642. <dl compact="compact">
  6643. <dt><span><samp>palette</samp></span></dt>
  6644. <dd><p>Specify the global palette used by the bitmaps.
  6645. </p>
  6646. <p>The format for this option is a string containing 16 24-bits hexadecimal
  6647. numbers (without 0x prefix) separated by commas, for example <code>0d00ee,
  6648. ee450d, 101010, eaeaea, 0ce60b, ec14ed, ebff0b, 0d617a, 7b7b7b, d1d1d1,
  6649. 7b2a0e, 0d950c, 0f007b, cf0dec, cfa80c, 7c127b</code>.
  6650. </p>
  6651. </dd>
  6652. <dt><span><samp>even_rows_fix</samp></span></dt>
  6653. <dd><p>When set to 1, enable a work-around that makes the number of pixel rows
  6654. even in all subtitles. This fixes a problem with some players that
  6655. cut off the bottom row if the number is odd. The work-around just adds
  6656. a fully transparent row if needed. The overhead is low, typically
  6657. one byte per subtitle on average.
  6658. </p>
  6659. <p>By default, this work-around is disabled.
  6660. </p></dd>
  6661. </dl>
  6662. <a name="See-Also"></a>
  6663. <h2 class="chapter">11 See Also<span class="pull-right"><a class="anchor hidden-xs" href="#See-Also" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-See-Also" aria-hidden="true">TOC</a></span></h2>
  6664. <p><a href="ffmpeg.html">ffmpeg</a>, <a href="ffplay.html">ffplay</a>, <a href="ffprobe.html">ffprobe</a>,
  6665. <a href="libavcodec.html">libavcodec</a>
  6666. </p>
  6667. <a name="Authors"></a>
  6668. <h2 class="chapter">12 Authors<span class="pull-right"><a class="anchor hidden-xs" href="#Authors" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Authors" aria-hidden="true">TOC</a></span></h2>
  6669. <p>The FFmpeg developers.
  6670. </p>
  6671. <p>For details about the authorship, see the Git history of the project
  6672. (https://git.ffmpeg.org/ffmpeg), e.g. by typing the command
  6673. <code>git log</code> in the FFmpeg source directory, or browsing the
  6674. online repository at <a href="https://git.ffmpeg.org/ffmpeg">https://git.ffmpeg.org/ffmpeg</a>.
  6675. </p>
  6676. <p>Maintainers for the specific components are listed in the file
  6677. <samp>MAINTAINERS</samp> in the source code tree.
  6678. </p>
  6679. <p style="font-size: small;">
  6680. This document was generated using <a href="https://www.gnu.org/software/texinfo/"><em>makeinfo</em></a>.
  6681. </p>
  6682. </div>
  6683. </body>
  6684. </html>