No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

1501 líneas
49KB

  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 Utilities 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 Utilities 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-Syntax" href="#Syntax">2 Syntax</a>
  27. <ul class="no-bullet">
  28. <li><a id="toc-Quoting-and-escaping" href="#Quoting-and-escaping">2.1 Quoting and escaping</a>
  29. <ul class="no-bullet">
  30. <li><a id="toc-Examples" href="#Examples">2.1.1 Examples</a></li>
  31. </ul></li>
  32. <li><a id="toc-Date" href="#Date">2.2 Date</a></li>
  33. <li><a id="toc-Time-duration" href="#Time-duration">2.3 Time duration</a>
  34. <ul class="no-bullet">
  35. <li><a id="toc-Examples-1" href="#Examples-1">2.3.1 Examples</a></li>
  36. </ul></li>
  37. <li><a id="toc-Video-size" href="#Video-size">2.4 Video size</a></li>
  38. <li><a id="toc-Video-rate" href="#Video-rate">2.5 Video rate</a></li>
  39. <li><a id="toc-Ratio" href="#Ratio">2.6 Ratio</a></li>
  40. <li><a id="toc-Color" href="#Color">2.7 Color</a></li>
  41. <li><a id="toc-Channel-Layout" href="#Channel-Layout">2.8 Channel Layout</a></li>
  42. </ul></li>
  43. <li><a id="toc-Expression-Evaluation" href="#Expression-Evaluation">3 Expression Evaluation</a></li>
  44. <li><a id="toc-See-Also" href="#See-Also">4 See Also</a></li>
  45. <li><a id="toc-Authors" href="#Authors">5 Authors</a></li>
  46. </ul>
  47. </div>
  48. </div>
  49. <a name="Description"></a>
  50. <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>
  51. <p>This document describes some generic features and utilities provided
  52. by the libavutil library.
  53. </p>
  54. <a name="Syntax"></a>
  55. <h2 class="chapter">2 Syntax<span class="pull-right"><a class="anchor hidden-xs" href="#Syntax" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Syntax" aria-hidden="true">TOC</a></span></h2>
  56. <p>This section documents the syntax and formats employed by the FFmpeg
  57. libraries and tools.
  58. </p>
  59. <span id="quoting_005fand_005fescaping"></span><a name="Quoting-and-escaping"></a>
  60. <h3 class="section">2.1 Quoting and escaping<span class="pull-right"><a class="anchor hidden-xs" href="#Quoting-and-escaping" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Quoting-and-escaping" aria-hidden="true">TOC</a></span></h3>
  61. <p>FFmpeg adopts the following quoting and escaping mechanism, unless
  62. explicitly specified. The following rules are applied:
  63. </p>
  64. <ul>
  65. <li> &lsquo;<samp>'</samp>&rsquo; and &lsquo;<samp>\</samp>&rsquo; are special characters (respectively used for
  66. quoting and escaping). In addition to them, there might be other
  67. special characters depending on the specific syntax where the escaping
  68. and quoting are employed.
  69. </li><li> A special character is escaped by prefixing it with a &lsquo;<samp>\</samp>&rsquo;.
  70. </li><li> All characters enclosed between &lsquo;<samp>''</samp>&rsquo; are included literally in the
  71. parsed string. The quote character &lsquo;<samp>'</samp>&rsquo; itself cannot be quoted,
  72. so you may need to close the quote and escape it.
  73. </li><li> Leading and trailing whitespaces, unless escaped or quoted, are
  74. removed from the parsed string.
  75. </li></ul>
  76. <p>Note that you may need to add a second level of escaping when using
  77. the command line or a script, which depends on the syntax of the
  78. adopted shell language.
  79. </p>
  80. <p>The function <code>av_get_token</code> defined in
  81. <samp>libavutil/avstring.h</samp> can be used to parse a token quoted or
  82. escaped according to the rules defined above.
  83. </p>
  84. <p>The tool <samp>tools/ffescape</samp> in the FFmpeg source tree can be used
  85. to automatically quote or escape a string in a script.
  86. </p>
  87. <a name="Examples"></a>
  88. <h4 class="subsection">2.1.1 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>
  89. <ul>
  90. <li> Escape the string <code>Crime d'Amour</code> containing the <code>'</code> special
  91. character:
  92. <div class="example">
  93. <pre class="example">Crime d\'Amour
  94. </pre></div>
  95. </li><li> The string above contains a quote, so the <code>'</code> needs to be escaped
  96. when quoting it:
  97. <div class="example">
  98. <pre class="example">'Crime d'\''Amour'
  99. </pre></div>
  100. </li><li> Include leading or trailing whitespaces using quoting:
  101. <div class="example">
  102. <pre class="example">' this string starts and ends with whitespaces '
  103. </pre></div>
  104. </li><li> Escaping and quoting can be mixed together:
  105. <div class="example">
  106. <pre class="example">' The string '\'string\'' is a string '
  107. </pre></div>
  108. </li><li> To include a literal &lsquo;<samp>\</samp>&rsquo; you can use either escaping or quoting:
  109. <div class="example">
  110. <pre class="example">'c:\foo' can be written as c:\\foo
  111. </pre></div>
  112. </li></ul>
  113. <span id="date-syntax"></span><a name="Date"></a>
  114. <h3 class="section">2.2 Date<span class="pull-right"><a class="anchor hidden-xs" href="#Date" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Date" aria-hidden="true">TOC</a></span></h3>
  115. <p>The accepted syntax is:
  116. </p><div class="example">
  117. <pre class="example">[(YYYY-MM-DD|YYYYMMDD)[T|t| ]]((HH:MM:SS[.m...]]])|(HHMMSS[.m...]]]))[Z]
  118. now
  119. </pre></div>
  120. <p>If the value is &quot;now&quot; it takes the current time.
  121. </p>
  122. <p>Time is local time unless Z is appended, in which case it is
  123. interpreted as UTC.
  124. If the year-month-day part is not specified it takes the current
  125. year-month-day.
  126. </p>
  127. <span id="time-duration-syntax"></span><a name="Time-duration"></a>
  128. <h3 class="section">2.3 Time duration<span class="pull-right"><a class="anchor hidden-xs" href="#Time-duration" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Time-duration" aria-hidden="true">TOC</a></span></h3>
  129. <p>There are two accepted syntaxes for expressing time duration.
  130. </p>
  131. <div class="example">
  132. <pre class="example">[-][<var>HH</var>:]<var>MM</var>:<var>SS</var>[.<var>m</var>...]
  133. </pre></div>
  134. <p><var>HH</var> expresses the number of hours, <var>MM</var> the number of minutes
  135. for a maximum of 2 digits, and <var>SS</var> the number of seconds for a
  136. maximum of 2 digits. The <var>m</var> at the end expresses decimal value for
  137. <var>SS</var>.
  138. </p>
  139. <p><em>or</em>
  140. </p>
  141. <div class="example">
  142. <pre class="example">[-]<var>S</var>+[.<var>m</var>...][s|ms|us]
  143. </pre></div>
  144. <p><var>S</var> expresses the number of seconds, with the optional decimal part
  145. <var>m</var>. The optional literal suffixes &lsquo;<samp>s</samp>&rsquo;, &lsquo;<samp>ms</samp>&rsquo; or &lsquo;<samp>us</samp>&rsquo;
  146. indicate to interpret the value as seconds, milliseconds or microseconds,
  147. respectively.
  148. </p>
  149. <p>In both expressions, the optional &lsquo;<samp>-</samp>&rsquo; indicates negative duration.
  150. </p>
  151. <a name="Examples-1"></a>
  152. <h4 class="subsection">2.3.1 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>
  153. <p>The following examples are all valid time duration:
  154. </p>
  155. <dl compact="compact">
  156. <dt><span>&lsquo;<samp>55</samp>&rsquo;</span></dt>
  157. <dd><p>55 seconds
  158. </p>
  159. </dd>
  160. <dt><span>&lsquo;<samp>0.2</samp>&rsquo;</span></dt>
  161. <dd><p>0.2 seconds
  162. </p>
  163. </dd>
  164. <dt><span>&lsquo;<samp>200ms</samp>&rsquo;</span></dt>
  165. <dd><p>200 milliseconds, that&rsquo;s 0.2s
  166. </p>
  167. </dd>
  168. <dt><span>&lsquo;<samp>200000us</samp>&rsquo;</span></dt>
  169. <dd><p>200000 microseconds, that&rsquo;s 0.2s
  170. </p>
  171. </dd>
  172. <dt><span>&lsquo;<samp>12:03:45</samp>&rsquo;</span></dt>
  173. <dd><p>12 hours, 03 minutes and 45 seconds
  174. </p>
  175. </dd>
  176. <dt><span>&lsquo;<samp>23.189</samp>&rsquo;</span></dt>
  177. <dd><p>23.189 seconds
  178. </p></dd>
  179. </dl>
  180. <span id="video-size-syntax"></span><a name="Video-size"></a>
  181. <h3 class="section">2.4 Video size<span class="pull-right"><a class="anchor hidden-xs" href="#Video-size" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Video-size" aria-hidden="true">TOC</a></span></h3>
  182. <p>Specify the size of the sourced video, it may be a string of the form
  183. <var>width</var>x<var>height</var>, or the name of a size abbreviation.
  184. </p>
  185. <p>The following abbreviations are recognized:
  186. </p><dl compact="compact">
  187. <dt><span>&lsquo;<samp>ntsc</samp>&rsquo;</span></dt>
  188. <dd><p>720x480
  189. </p></dd>
  190. <dt><span>&lsquo;<samp>pal</samp>&rsquo;</span></dt>
  191. <dd><p>720x576
  192. </p></dd>
  193. <dt><span>&lsquo;<samp>qntsc</samp>&rsquo;</span></dt>
  194. <dd><p>352x240
  195. </p></dd>
  196. <dt><span>&lsquo;<samp>qpal</samp>&rsquo;</span></dt>
  197. <dd><p>352x288
  198. </p></dd>
  199. <dt><span>&lsquo;<samp>sntsc</samp>&rsquo;</span></dt>
  200. <dd><p>640x480
  201. </p></dd>
  202. <dt><span>&lsquo;<samp>spal</samp>&rsquo;</span></dt>
  203. <dd><p>768x576
  204. </p></dd>
  205. <dt><span>&lsquo;<samp>film</samp>&rsquo;</span></dt>
  206. <dd><p>352x240
  207. </p></dd>
  208. <dt><span>&lsquo;<samp>ntsc-film</samp>&rsquo;</span></dt>
  209. <dd><p>352x240
  210. </p></dd>
  211. <dt><span>&lsquo;<samp>sqcif</samp>&rsquo;</span></dt>
  212. <dd><p>128x96
  213. </p></dd>
  214. <dt><span>&lsquo;<samp>qcif</samp>&rsquo;</span></dt>
  215. <dd><p>176x144
  216. </p></dd>
  217. <dt><span>&lsquo;<samp>cif</samp>&rsquo;</span></dt>
  218. <dd><p>352x288
  219. </p></dd>
  220. <dt><span>&lsquo;<samp>4cif</samp>&rsquo;</span></dt>
  221. <dd><p>704x576
  222. </p></dd>
  223. <dt><span>&lsquo;<samp>16cif</samp>&rsquo;</span></dt>
  224. <dd><p>1408x1152
  225. </p></dd>
  226. <dt><span>&lsquo;<samp>qqvga</samp>&rsquo;</span></dt>
  227. <dd><p>160x120
  228. </p></dd>
  229. <dt><span>&lsquo;<samp>qvga</samp>&rsquo;</span></dt>
  230. <dd><p>320x240
  231. </p></dd>
  232. <dt><span>&lsquo;<samp>vga</samp>&rsquo;</span></dt>
  233. <dd><p>640x480
  234. </p></dd>
  235. <dt><span>&lsquo;<samp>svga</samp>&rsquo;</span></dt>
  236. <dd><p>800x600
  237. </p></dd>
  238. <dt><span>&lsquo;<samp>xga</samp>&rsquo;</span></dt>
  239. <dd><p>1024x768
  240. </p></dd>
  241. <dt><span>&lsquo;<samp>uxga</samp>&rsquo;</span></dt>
  242. <dd><p>1600x1200
  243. </p></dd>
  244. <dt><span>&lsquo;<samp>qxga</samp>&rsquo;</span></dt>
  245. <dd><p>2048x1536
  246. </p></dd>
  247. <dt><span>&lsquo;<samp>sxga</samp>&rsquo;</span></dt>
  248. <dd><p>1280x1024
  249. </p></dd>
  250. <dt><span>&lsquo;<samp>qsxga</samp>&rsquo;</span></dt>
  251. <dd><p>2560x2048
  252. </p></dd>
  253. <dt><span>&lsquo;<samp>hsxga</samp>&rsquo;</span></dt>
  254. <dd><p>5120x4096
  255. </p></dd>
  256. <dt><span>&lsquo;<samp>wvga</samp>&rsquo;</span></dt>
  257. <dd><p>852x480
  258. </p></dd>
  259. <dt><span>&lsquo;<samp>wxga</samp>&rsquo;</span></dt>
  260. <dd><p>1366x768
  261. </p></dd>
  262. <dt><span>&lsquo;<samp>wsxga</samp>&rsquo;</span></dt>
  263. <dd><p>1600x1024
  264. </p></dd>
  265. <dt><span>&lsquo;<samp>wuxga</samp>&rsquo;</span></dt>
  266. <dd><p>1920x1200
  267. </p></dd>
  268. <dt><span>&lsquo;<samp>woxga</samp>&rsquo;</span></dt>
  269. <dd><p>2560x1600
  270. </p></dd>
  271. <dt><span>&lsquo;<samp>wqsxga</samp>&rsquo;</span></dt>
  272. <dd><p>3200x2048
  273. </p></dd>
  274. <dt><span>&lsquo;<samp>wquxga</samp>&rsquo;</span></dt>
  275. <dd><p>3840x2400
  276. </p></dd>
  277. <dt><span>&lsquo;<samp>whsxga</samp>&rsquo;</span></dt>
  278. <dd><p>6400x4096
  279. </p></dd>
  280. <dt><span>&lsquo;<samp>whuxga</samp>&rsquo;</span></dt>
  281. <dd><p>7680x4800
  282. </p></dd>
  283. <dt><span>&lsquo;<samp>cga</samp>&rsquo;</span></dt>
  284. <dd><p>320x200
  285. </p></dd>
  286. <dt><span>&lsquo;<samp>ega</samp>&rsquo;</span></dt>
  287. <dd><p>640x350
  288. </p></dd>
  289. <dt><span>&lsquo;<samp>hd480</samp>&rsquo;</span></dt>
  290. <dd><p>852x480
  291. </p></dd>
  292. <dt><span>&lsquo;<samp>hd720</samp>&rsquo;</span></dt>
  293. <dd><p>1280x720
  294. </p></dd>
  295. <dt><span>&lsquo;<samp>hd1080</samp>&rsquo;</span></dt>
  296. <dd><p>1920x1080
  297. </p></dd>
  298. <dt><span>&lsquo;<samp>2k</samp>&rsquo;</span></dt>
  299. <dd><p>2048x1080
  300. </p></dd>
  301. <dt><span>&lsquo;<samp>2kflat</samp>&rsquo;</span></dt>
  302. <dd><p>1998x1080
  303. </p></dd>
  304. <dt><span>&lsquo;<samp>2kscope</samp>&rsquo;</span></dt>
  305. <dd><p>2048x858
  306. </p></dd>
  307. <dt><span>&lsquo;<samp>4k</samp>&rsquo;</span></dt>
  308. <dd><p>4096x2160
  309. </p></dd>
  310. <dt><span>&lsquo;<samp>4kflat</samp>&rsquo;</span></dt>
  311. <dd><p>3996x2160
  312. </p></dd>
  313. <dt><span>&lsquo;<samp>4kscope</samp>&rsquo;</span></dt>
  314. <dd><p>4096x1716
  315. </p></dd>
  316. <dt><span>&lsquo;<samp>nhd</samp>&rsquo;</span></dt>
  317. <dd><p>640x360
  318. </p></dd>
  319. <dt><span>&lsquo;<samp>hqvga</samp>&rsquo;</span></dt>
  320. <dd><p>240x160
  321. </p></dd>
  322. <dt><span>&lsquo;<samp>wqvga</samp>&rsquo;</span></dt>
  323. <dd><p>400x240
  324. </p></dd>
  325. <dt><span>&lsquo;<samp>fwqvga</samp>&rsquo;</span></dt>
  326. <dd><p>432x240
  327. </p></dd>
  328. <dt><span>&lsquo;<samp>hvga</samp>&rsquo;</span></dt>
  329. <dd><p>480x320
  330. </p></dd>
  331. <dt><span>&lsquo;<samp>qhd</samp>&rsquo;</span></dt>
  332. <dd><p>960x540
  333. </p></dd>
  334. <dt><span>&lsquo;<samp>2kdci</samp>&rsquo;</span></dt>
  335. <dd><p>2048x1080
  336. </p></dd>
  337. <dt><span>&lsquo;<samp>4kdci</samp>&rsquo;</span></dt>
  338. <dd><p>4096x2160
  339. </p></dd>
  340. <dt><span>&lsquo;<samp>uhd2160</samp>&rsquo;</span></dt>
  341. <dd><p>3840x2160
  342. </p></dd>
  343. <dt><span>&lsquo;<samp>uhd4320</samp>&rsquo;</span></dt>
  344. <dd><p>7680x4320
  345. </p></dd>
  346. </dl>
  347. <span id="video-rate-syntax"></span><a name="Video-rate"></a>
  348. <h3 class="section">2.5 Video rate<span class="pull-right"><a class="anchor hidden-xs" href="#Video-rate" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Video-rate" aria-hidden="true">TOC</a></span></h3>
  349. <p>Specify the frame rate of a video, expressed as the number of frames
  350. generated per second. It has to be a string in the format
  351. <var>frame_rate_num</var>/<var>frame_rate_den</var>, an integer number, a float
  352. number or a valid video frame rate abbreviation.
  353. </p>
  354. <p>The following abbreviations are recognized:
  355. </p><dl compact="compact">
  356. <dt><span>&lsquo;<samp>ntsc</samp>&rsquo;</span></dt>
  357. <dd><p>30000/1001
  358. </p></dd>
  359. <dt><span>&lsquo;<samp>pal</samp>&rsquo;</span></dt>
  360. <dd><p>25/1
  361. </p></dd>
  362. <dt><span>&lsquo;<samp>qntsc</samp>&rsquo;</span></dt>
  363. <dd><p>30000/1001
  364. </p></dd>
  365. <dt><span>&lsquo;<samp>qpal</samp>&rsquo;</span></dt>
  366. <dd><p>25/1
  367. </p></dd>
  368. <dt><span>&lsquo;<samp>sntsc</samp>&rsquo;</span></dt>
  369. <dd><p>30000/1001
  370. </p></dd>
  371. <dt><span>&lsquo;<samp>spal</samp>&rsquo;</span></dt>
  372. <dd><p>25/1
  373. </p></dd>
  374. <dt><span>&lsquo;<samp>film</samp>&rsquo;</span></dt>
  375. <dd><p>24/1
  376. </p></dd>
  377. <dt><span>&lsquo;<samp>ntsc-film</samp>&rsquo;</span></dt>
  378. <dd><p>24000/1001
  379. </p></dd>
  380. </dl>
  381. <span id="ratio-syntax"></span><a name="Ratio"></a>
  382. <h3 class="section">2.6 Ratio<span class="pull-right"><a class="anchor hidden-xs" href="#Ratio" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Ratio" aria-hidden="true">TOC</a></span></h3>
  383. <p>A ratio can be expressed as an expression, or in the form
  384. <var>numerator</var>:<var>denominator</var>.
  385. </p>
  386. <p>Note that a ratio with infinite (1/0) or negative value is
  387. considered valid, so you should check on the returned value if you
  388. want to exclude those values.
  389. </p>
  390. <p>The undefined value can be expressed using the &quot;0:0&quot; string.
  391. </p>
  392. <span id="color-syntax"></span><a name="Color"></a>
  393. <h3 class="section">2.7 Color<span class="pull-right"><a class="anchor hidden-xs" href="#Color" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Color" aria-hidden="true">TOC</a></span></h3>
  394. <p>It can be the name of a color as defined below (case insensitive match) or a
  395. <code>[0x|#]RRGGBB[AA]</code> sequence, possibly followed by @ and a string
  396. representing the alpha component.
  397. </p>
  398. <p>The alpha component may be a string composed by &quot;0x&quot; followed by an
  399. hexadecimal number or a decimal number between 0.0 and 1.0, which
  400. represents the opacity value (&lsquo;<samp>0x00</samp>&rsquo; or &lsquo;<samp>0.0</samp>&rsquo; means completely
  401. transparent, &lsquo;<samp>0xff</samp>&rsquo; or &lsquo;<samp>1.0</samp>&rsquo; completely opaque). If the alpha
  402. component is not specified then &lsquo;<samp>0xff</samp>&rsquo; is assumed.
  403. </p>
  404. <p>The string &lsquo;<samp>random</samp>&rsquo; will result in a random color.
  405. </p>
  406. <p>The following names of colors are recognized:
  407. </p><dl compact="compact">
  408. <dt><span>&lsquo;<samp>AliceBlue</samp>&rsquo;</span></dt>
  409. <dd><p>0xF0F8FF
  410. </p></dd>
  411. <dt><span>&lsquo;<samp>AntiqueWhite</samp>&rsquo;</span></dt>
  412. <dd><p>0xFAEBD7
  413. </p></dd>
  414. <dt><span>&lsquo;<samp>Aqua</samp>&rsquo;</span></dt>
  415. <dd><p>0x00FFFF
  416. </p></dd>
  417. <dt><span>&lsquo;<samp>Aquamarine</samp>&rsquo;</span></dt>
  418. <dd><p>0x7FFFD4
  419. </p></dd>
  420. <dt><span>&lsquo;<samp>Azure</samp>&rsquo;</span></dt>
  421. <dd><p>0xF0FFFF
  422. </p></dd>
  423. <dt><span>&lsquo;<samp>Beige</samp>&rsquo;</span></dt>
  424. <dd><p>0xF5F5DC
  425. </p></dd>
  426. <dt><span>&lsquo;<samp>Bisque</samp>&rsquo;</span></dt>
  427. <dd><p>0xFFE4C4
  428. </p></dd>
  429. <dt><span>&lsquo;<samp>Black</samp>&rsquo;</span></dt>
  430. <dd><p>0x000000
  431. </p></dd>
  432. <dt><span>&lsquo;<samp>BlanchedAlmond</samp>&rsquo;</span></dt>
  433. <dd><p>0xFFEBCD
  434. </p></dd>
  435. <dt><span>&lsquo;<samp>Blue</samp>&rsquo;</span></dt>
  436. <dd><p>0x0000FF
  437. </p></dd>
  438. <dt><span>&lsquo;<samp>BlueViolet</samp>&rsquo;</span></dt>
  439. <dd><p>0x8A2BE2
  440. </p></dd>
  441. <dt><span>&lsquo;<samp>Brown</samp>&rsquo;</span></dt>
  442. <dd><p>0xA52A2A
  443. </p></dd>
  444. <dt><span>&lsquo;<samp>BurlyWood</samp>&rsquo;</span></dt>
  445. <dd><p>0xDEB887
  446. </p></dd>
  447. <dt><span>&lsquo;<samp>CadetBlue</samp>&rsquo;</span></dt>
  448. <dd><p>0x5F9EA0
  449. </p></dd>
  450. <dt><span>&lsquo;<samp>Chartreuse</samp>&rsquo;</span></dt>
  451. <dd><p>0x7FFF00
  452. </p></dd>
  453. <dt><span>&lsquo;<samp>Chocolate</samp>&rsquo;</span></dt>
  454. <dd><p>0xD2691E
  455. </p></dd>
  456. <dt><span>&lsquo;<samp>Coral</samp>&rsquo;</span></dt>
  457. <dd><p>0xFF7F50
  458. </p></dd>
  459. <dt><span>&lsquo;<samp>CornflowerBlue</samp>&rsquo;</span></dt>
  460. <dd><p>0x6495ED
  461. </p></dd>
  462. <dt><span>&lsquo;<samp>Cornsilk</samp>&rsquo;</span></dt>
  463. <dd><p>0xFFF8DC
  464. </p></dd>
  465. <dt><span>&lsquo;<samp>Crimson</samp>&rsquo;</span></dt>
  466. <dd><p>0xDC143C
  467. </p></dd>
  468. <dt><span>&lsquo;<samp>Cyan</samp>&rsquo;</span></dt>
  469. <dd><p>0x00FFFF
  470. </p></dd>
  471. <dt><span>&lsquo;<samp>DarkBlue</samp>&rsquo;</span></dt>
  472. <dd><p>0x00008B
  473. </p></dd>
  474. <dt><span>&lsquo;<samp>DarkCyan</samp>&rsquo;</span></dt>
  475. <dd><p>0x008B8B
  476. </p></dd>
  477. <dt><span>&lsquo;<samp>DarkGoldenRod</samp>&rsquo;</span></dt>
  478. <dd><p>0xB8860B
  479. </p></dd>
  480. <dt><span>&lsquo;<samp>DarkGray</samp>&rsquo;</span></dt>
  481. <dd><p>0xA9A9A9
  482. </p></dd>
  483. <dt><span>&lsquo;<samp>DarkGreen</samp>&rsquo;</span></dt>
  484. <dd><p>0x006400
  485. </p></dd>
  486. <dt><span>&lsquo;<samp>DarkKhaki</samp>&rsquo;</span></dt>
  487. <dd><p>0xBDB76B
  488. </p></dd>
  489. <dt><span>&lsquo;<samp>DarkMagenta</samp>&rsquo;</span></dt>
  490. <dd><p>0x8B008B
  491. </p></dd>
  492. <dt><span>&lsquo;<samp>DarkOliveGreen</samp>&rsquo;</span></dt>
  493. <dd><p>0x556B2F
  494. </p></dd>
  495. <dt><span>&lsquo;<samp>Darkorange</samp>&rsquo;</span></dt>
  496. <dd><p>0xFF8C00
  497. </p></dd>
  498. <dt><span>&lsquo;<samp>DarkOrchid</samp>&rsquo;</span></dt>
  499. <dd><p>0x9932CC
  500. </p></dd>
  501. <dt><span>&lsquo;<samp>DarkRed</samp>&rsquo;</span></dt>
  502. <dd><p>0x8B0000
  503. </p></dd>
  504. <dt><span>&lsquo;<samp>DarkSalmon</samp>&rsquo;</span></dt>
  505. <dd><p>0xE9967A
  506. </p></dd>
  507. <dt><span>&lsquo;<samp>DarkSeaGreen</samp>&rsquo;</span></dt>
  508. <dd><p>0x8FBC8F
  509. </p></dd>
  510. <dt><span>&lsquo;<samp>DarkSlateBlue</samp>&rsquo;</span></dt>
  511. <dd><p>0x483D8B
  512. </p></dd>
  513. <dt><span>&lsquo;<samp>DarkSlateGray</samp>&rsquo;</span></dt>
  514. <dd><p>0x2F4F4F
  515. </p></dd>
  516. <dt><span>&lsquo;<samp>DarkTurquoise</samp>&rsquo;</span></dt>
  517. <dd><p>0x00CED1
  518. </p></dd>
  519. <dt><span>&lsquo;<samp>DarkViolet</samp>&rsquo;</span></dt>
  520. <dd><p>0x9400D3
  521. </p></dd>
  522. <dt><span>&lsquo;<samp>DeepPink</samp>&rsquo;</span></dt>
  523. <dd><p>0xFF1493
  524. </p></dd>
  525. <dt><span>&lsquo;<samp>DeepSkyBlue</samp>&rsquo;</span></dt>
  526. <dd><p>0x00BFFF
  527. </p></dd>
  528. <dt><span>&lsquo;<samp>DimGray</samp>&rsquo;</span></dt>
  529. <dd><p>0x696969
  530. </p></dd>
  531. <dt><span>&lsquo;<samp>DodgerBlue</samp>&rsquo;</span></dt>
  532. <dd><p>0x1E90FF
  533. </p></dd>
  534. <dt><span>&lsquo;<samp>FireBrick</samp>&rsquo;</span></dt>
  535. <dd><p>0xB22222
  536. </p></dd>
  537. <dt><span>&lsquo;<samp>FloralWhite</samp>&rsquo;</span></dt>
  538. <dd><p>0xFFFAF0
  539. </p></dd>
  540. <dt><span>&lsquo;<samp>ForestGreen</samp>&rsquo;</span></dt>
  541. <dd><p>0x228B22
  542. </p></dd>
  543. <dt><span>&lsquo;<samp>Fuchsia</samp>&rsquo;</span></dt>
  544. <dd><p>0xFF00FF
  545. </p></dd>
  546. <dt><span>&lsquo;<samp>Gainsboro</samp>&rsquo;</span></dt>
  547. <dd><p>0xDCDCDC
  548. </p></dd>
  549. <dt><span>&lsquo;<samp>GhostWhite</samp>&rsquo;</span></dt>
  550. <dd><p>0xF8F8FF
  551. </p></dd>
  552. <dt><span>&lsquo;<samp>Gold</samp>&rsquo;</span></dt>
  553. <dd><p>0xFFD700
  554. </p></dd>
  555. <dt><span>&lsquo;<samp>GoldenRod</samp>&rsquo;</span></dt>
  556. <dd><p>0xDAA520
  557. </p></dd>
  558. <dt><span>&lsquo;<samp>Gray</samp>&rsquo;</span></dt>
  559. <dd><p>0x808080
  560. </p></dd>
  561. <dt><span>&lsquo;<samp>Green</samp>&rsquo;</span></dt>
  562. <dd><p>0x008000
  563. </p></dd>
  564. <dt><span>&lsquo;<samp>GreenYellow</samp>&rsquo;</span></dt>
  565. <dd><p>0xADFF2F
  566. </p></dd>
  567. <dt><span>&lsquo;<samp>HoneyDew</samp>&rsquo;</span></dt>
  568. <dd><p>0xF0FFF0
  569. </p></dd>
  570. <dt><span>&lsquo;<samp>HotPink</samp>&rsquo;</span></dt>
  571. <dd><p>0xFF69B4
  572. </p></dd>
  573. <dt><span>&lsquo;<samp>IndianRed</samp>&rsquo;</span></dt>
  574. <dd><p>0xCD5C5C
  575. </p></dd>
  576. <dt><span>&lsquo;<samp>Indigo</samp>&rsquo;</span></dt>
  577. <dd><p>0x4B0082
  578. </p></dd>
  579. <dt><span>&lsquo;<samp>Ivory</samp>&rsquo;</span></dt>
  580. <dd><p>0xFFFFF0
  581. </p></dd>
  582. <dt><span>&lsquo;<samp>Khaki</samp>&rsquo;</span></dt>
  583. <dd><p>0xF0E68C
  584. </p></dd>
  585. <dt><span>&lsquo;<samp>Lavender</samp>&rsquo;</span></dt>
  586. <dd><p>0xE6E6FA
  587. </p></dd>
  588. <dt><span>&lsquo;<samp>LavenderBlush</samp>&rsquo;</span></dt>
  589. <dd><p>0xFFF0F5
  590. </p></dd>
  591. <dt><span>&lsquo;<samp>LawnGreen</samp>&rsquo;</span></dt>
  592. <dd><p>0x7CFC00
  593. </p></dd>
  594. <dt><span>&lsquo;<samp>LemonChiffon</samp>&rsquo;</span></dt>
  595. <dd><p>0xFFFACD
  596. </p></dd>
  597. <dt><span>&lsquo;<samp>LightBlue</samp>&rsquo;</span></dt>
  598. <dd><p>0xADD8E6
  599. </p></dd>
  600. <dt><span>&lsquo;<samp>LightCoral</samp>&rsquo;</span></dt>
  601. <dd><p>0xF08080
  602. </p></dd>
  603. <dt><span>&lsquo;<samp>LightCyan</samp>&rsquo;</span></dt>
  604. <dd><p>0xE0FFFF
  605. </p></dd>
  606. <dt><span>&lsquo;<samp>LightGoldenRodYellow</samp>&rsquo;</span></dt>
  607. <dd><p>0xFAFAD2
  608. </p></dd>
  609. <dt><span>&lsquo;<samp>LightGreen</samp>&rsquo;</span></dt>
  610. <dd><p>0x90EE90
  611. </p></dd>
  612. <dt><span>&lsquo;<samp>LightGrey</samp>&rsquo;</span></dt>
  613. <dd><p>0xD3D3D3
  614. </p></dd>
  615. <dt><span>&lsquo;<samp>LightPink</samp>&rsquo;</span></dt>
  616. <dd><p>0xFFB6C1
  617. </p></dd>
  618. <dt><span>&lsquo;<samp>LightSalmon</samp>&rsquo;</span></dt>
  619. <dd><p>0xFFA07A
  620. </p></dd>
  621. <dt><span>&lsquo;<samp>LightSeaGreen</samp>&rsquo;</span></dt>
  622. <dd><p>0x20B2AA
  623. </p></dd>
  624. <dt><span>&lsquo;<samp>LightSkyBlue</samp>&rsquo;</span></dt>
  625. <dd><p>0x87CEFA
  626. </p></dd>
  627. <dt><span>&lsquo;<samp>LightSlateGray</samp>&rsquo;</span></dt>
  628. <dd><p>0x778899
  629. </p></dd>
  630. <dt><span>&lsquo;<samp>LightSteelBlue</samp>&rsquo;</span></dt>
  631. <dd><p>0xB0C4DE
  632. </p></dd>
  633. <dt><span>&lsquo;<samp>LightYellow</samp>&rsquo;</span></dt>
  634. <dd><p>0xFFFFE0
  635. </p></dd>
  636. <dt><span>&lsquo;<samp>Lime</samp>&rsquo;</span></dt>
  637. <dd><p>0x00FF00
  638. </p></dd>
  639. <dt><span>&lsquo;<samp>LimeGreen</samp>&rsquo;</span></dt>
  640. <dd><p>0x32CD32
  641. </p></dd>
  642. <dt><span>&lsquo;<samp>Linen</samp>&rsquo;</span></dt>
  643. <dd><p>0xFAF0E6
  644. </p></dd>
  645. <dt><span>&lsquo;<samp>Magenta</samp>&rsquo;</span></dt>
  646. <dd><p>0xFF00FF
  647. </p></dd>
  648. <dt><span>&lsquo;<samp>Maroon</samp>&rsquo;</span></dt>
  649. <dd><p>0x800000
  650. </p></dd>
  651. <dt><span>&lsquo;<samp>MediumAquaMarine</samp>&rsquo;</span></dt>
  652. <dd><p>0x66CDAA
  653. </p></dd>
  654. <dt><span>&lsquo;<samp>MediumBlue</samp>&rsquo;</span></dt>
  655. <dd><p>0x0000CD
  656. </p></dd>
  657. <dt><span>&lsquo;<samp>MediumOrchid</samp>&rsquo;</span></dt>
  658. <dd><p>0xBA55D3
  659. </p></dd>
  660. <dt><span>&lsquo;<samp>MediumPurple</samp>&rsquo;</span></dt>
  661. <dd><p>0x9370D8
  662. </p></dd>
  663. <dt><span>&lsquo;<samp>MediumSeaGreen</samp>&rsquo;</span></dt>
  664. <dd><p>0x3CB371
  665. </p></dd>
  666. <dt><span>&lsquo;<samp>MediumSlateBlue</samp>&rsquo;</span></dt>
  667. <dd><p>0x7B68EE
  668. </p></dd>
  669. <dt><span>&lsquo;<samp>MediumSpringGreen</samp>&rsquo;</span></dt>
  670. <dd><p>0x00FA9A
  671. </p></dd>
  672. <dt><span>&lsquo;<samp>MediumTurquoise</samp>&rsquo;</span></dt>
  673. <dd><p>0x48D1CC
  674. </p></dd>
  675. <dt><span>&lsquo;<samp>MediumVioletRed</samp>&rsquo;</span></dt>
  676. <dd><p>0xC71585
  677. </p></dd>
  678. <dt><span>&lsquo;<samp>MidnightBlue</samp>&rsquo;</span></dt>
  679. <dd><p>0x191970
  680. </p></dd>
  681. <dt><span>&lsquo;<samp>MintCream</samp>&rsquo;</span></dt>
  682. <dd><p>0xF5FFFA
  683. </p></dd>
  684. <dt><span>&lsquo;<samp>MistyRose</samp>&rsquo;</span></dt>
  685. <dd><p>0xFFE4E1
  686. </p></dd>
  687. <dt><span>&lsquo;<samp>Moccasin</samp>&rsquo;</span></dt>
  688. <dd><p>0xFFE4B5
  689. </p></dd>
  690. <dt><span>&lsquo;<samp>NavajoWhite</samp>&rsquo;</span></dt>
  691. <dd><p>0xFFDEAD
  692. </p></dd>
  693. <dt><span>&lsquo;<samp>Navy</samp>&rsquo;</span></dt>
  694. <dd><p>0x000080
  695. </p></dd>
  696. <dt><span>&lsquo;<samp>OldLace</samp>&rsquo;</span></dt>
  697. <dd><p>0xFDF5E6
  698. </p></dd>
  699. <dt><span>&lsquo;<samp>Olive</samp>&rsquo;</span></dt>
  700. <dd><p>0x808000
  701. </p></dd>
  702. <dt><span>&lsquo;<samp>OliveDrab</samp>&rsquo;</span></dt>
  703. <dd><p>0x6B8E23
  704. </p></dd>
  705. <dt><span>&lsquo;<samp>Orange</samp>&rsquo;</span></dt>
  706. <dd><p>0xFFA500
  707. </p></dd>
  708. <dt><span>&lsquo;<samp>OrangeRed</samp>&rsquo;</span></dt>
  709. <dd><p>0xFF4500
  710. </p></dd>
  711. <dt><span>&lsquo;<samp>Orchid</samp>&rsquo;</span></dt>
  712. <dd><p>0xDA70D6
  713. </p></dd>
  714. <dt><span>&lsquo;<samp>PaleGoldenRod</samp>&rsquo;</span></dt>
  715. <dd><p>0xEEE8AA
  716. </p></dd>
  717. <dt><span>&lsquo;<samp>PaleGreen</samp>&rsquo;</span></dt>
  718. <dd><p>0x98FB98
  719. </p></dd>
  720. <dt><span>&lsquo;<samp>PaleTurquoise</samp>&rsquo;</span></dt>
  721. <dd><p>0xAFEEEE
  722. </p></dd>
  723. <dt><span>&lsquo;<samp>PaleVioletRed</samp>&rsquo;</span></dt>
  724. <dd><p>0xD87093
  725. </p></dd>
  726. <dt><span>&lsquo;<samp>PapayaWhip</samp>&rsquo;</span></dt>
  727. <dd><p>0xFFEFD5
  728. </p></dd>
  729. <dt><span>&lsquo;<samp>PeachPuff</samp>&rsquo;</span></dt>
  730. <dd><p>0xFFDAB9
  731. </p></dd>
  732. <dt><span>&lsquo;<samp>Peru</samp>&rsquo;</span></dt>
  733. <dd><p>0xCD853F
  734. </p></dd>
  735. <dt><span>&lsquo;<samp>Pink</samp>&rsquo;</span></dt>
  736. <dd><p>0xFFC0CB
  737. </p></dd>
  738. <dt><span>&lsquo;<samp>Plum</samp>&rsquo;</span></dt>
  739. <dd><p>0xDDA0DD
  740. </p></dd>
  741. <dt><span>&lsquo;<samp>PowderBlue</samp>&rsquo;</span></dt>
  742. <dd><p>0xB0E0E6
  743. </p></dd>
  744. <dt><span>&lsquo;<samp>Purple</samp>&rsquo;</span></dt>
  745. <dd><p>0x800080
  746. </p></dd>
  747. <dt><span>&lsquo;<samp>Red</samp>&rsquo;</span></dt>
  748. <dd><p>0xFF0000
  749. </p></dd>
  750. <dt><span>&lsquo;<samp>RosyBrown</samp>&rsquo;</span></dt>
  751. <dd><p>0xBC8F8F
  752. </p></dd>
  753. <dt><span>&lsquo;<samp>RoyalBlue</samp>&rsquo;</span></dt>
  754. <dd><p>0x4169E1
  755. </p></dd>
  756. <dt><span>&lsquo;<samp>SaddleBrown</samp>&rsquo;</span></dt>
  757. <dd><p>0x8B4513
  758. </p></dd>
  759. <dt><span>&lsquo;<samp>Salmon</samp>&rsquo;</span></dt>
  760. <dd><p>0xFA8072
  761. </p></dd>
  762. <dt><span>&lsquo;<samp>SandyBrown</samp>&rsquo;</span></dt>
  763. <dd><p>0xF4A460
  764. </p></dd>
  765. <dt><span>&lsquo;<samp>SeaGreen</samp>&rsquo;</span></dt>
  766. <dd><p>0x2E8B57
  767. </p></dd>
  768. <dt><span>&lsquo;<samp>SeaShell</samp>&rsquo;</span></dt>
  769. <dd><p>0xFFF5EE
  770. </p></dd>
  771. <dt><span>&lsquo;<samp>Sienna</samp>&rsquo;</span></dt>
  772. <dd><p>0xA0522D
  773. </p></dd>
  774. <dt><span>&lsquo;<samp>Silver</samp>&rsquo;</span></dt>
  775. <dd><p>0xC0C0C0
  776. </p></dd>
  777. <dt><span>&lsquo;<samp>SkyBlue</samp>&rsquo;</span></dt>
  778. <dd><p>0x87CEEB
  779. </p></dd>
  780. <dt><span>&lsquo;<samp>SlateBlue</samp>&rsquo;</span></dt>
  781. <dd><p>0x6A5ACD
  782. </p></dd>
  783. <dt><span>&lsquo;<samp>SlateGray</samp>&rsquo;</span></dt>
  784. <dd><p>0x708090
  785. </p></dd>
  786. <dt><span>&lsquo;<samp>Snow</samp>&rsquo;</span></dt>
  787. <dd><p>0xFFFAFA
  788. </p></dd>
  789. <dt><span>&lsquo;<samp>SpringGreen</samp>&rsquo;</span></dt>
  790. <dd><p>0x00FF7F
  791. </p></dd>
  792. <dt><span>&lsquo;<samp>SteelBlue</samp>&rsquo;</span></dt>
  793. <dd><p>0x4682B4
  794. </p></dd>
  795. <dt><span>&lsquo;<samp>Tan</samp>&rsquo;</span></dt>
  796. <dd><p>0xD2B48C
  797. </p></dd>
  798. <dt><span>&lsquo;<samp>Teal</samp>&rsquo;</span></dt>
  799. <dd><p>0x008080
  800. </p></dd>
  801. <dt><span>&lsquo;<samp>Thistle</samp>&rsquo;</span></dt>
  802. <dd><p>0xD8BFD8
  803. </p></dd>
  804. <dt><span>&lsquo;<samp>Tomato</samp>&rsquo;</span></dt>
  805. <dd><p>0xFF6347
  806. </p></dd>
  807. <dt><span>&lsquo;<samp>Turquoise</samp>&rsquo;</span></dt>
  808. <dd><p>0x40E0D0
  809. </p></dd>
  810. <dt><span>&lsquo;<samp>Violet</samp>&rsquo;</span></dt>
  811. <dd><p>0xEE82EE
  812. </p></dd>
  813. <dt><span>&lsquo;<samp>Wheat</samp>&rsquo;</span></dt>
  814. <dd><p>0xF5DEB3
  815. </p></dd>
  816. <dt><span>&lsquo;<samp>White</samp>&rsquo;</span></dt>
  817. <dd><p>0xFFFFFF
  818. </p></dd>
  819. <dt><span>&lsquo;<samp>WhiteSmoke</samp>&rsquo;</span></dt>
  820. <dd><p>0xF5F5F5
  821. </p></dd>
  822. <dt><span>&lsquo;<samp>Yellow</samp>&rsquo;</span></dt>
  823. <dd><p>0xFFFF00
  824. </p></dd>
  825. <dt><span>&lsquo;<samp>YellowGreen</samp>&rsquo;</span></dt>
  826. <dd><p>0x9ACD32
  827. </p></dd>
  828. </dl>
  829. <span id="channel-layout-syntax"></span><a name="Channel-Layout"></a>
  830. <h3 class="section">2.8 Channel Layout<span class="pull-right"><a class="anchor hidden-xs" href="#Channel-Layout" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Channel-Layout" aria-hidden="true">TOC</a></span></h3>
  831. <p>A channel layout specifies the spatial disposition of the channels in
  832. a multi-channel audio stream. To specify a channel layout, FFmpeg
  833. makes use of a special syntax.
  834. </p>
  835. <p>Individual channels are identified by an id, as given by the table
  836. below:
  837. </p><dl compact="compact">
  838. <dt><span>&lsquo;<samp>FL</samp>&rsquo;</span></dt>
  839. <dd><p>front left
  840. </p></dd>
  841. <dt><span>&lsquo;<samp>FR</samp>&rsquo;</span></dt>
  842. <dd><p>front right
  843. </p></dd>
  844. <dt><span>&lsquo;<samp>FC</samp>&rsquo;</span></dt>
  845. <dd><p>front center
  846. </p></dd>
  847. <dt><span>&lsquo;<samp>LFE</samp>&rsquo;</span></dt>
  848. <dd><p>low frequency
  849. </p></dd>
  850. <dt><span>&lsquo;<samp>BL</samp>&rsquo;</span></dt>
  851. <dd><p>back left
  852. </p></dd>
  853. <dt><span>&lsquo;<samp>BR</samp>&rsquo;</span></dt>
  854. <dd><p>back right
  855. </p></dd>
  856. <dt><span>&lsquo;<samp>FLC</samp>&rsquo;</span></dt>
  857. <dd><p>front left-of-center
  858. </p></dd>
  859. <dt><span>&lsquo;<samp>FRC</samp>&rsquo;</span></dt>
  860. <dd><p>front right-of-center
  861. </p></dd>
  862. <dt><span>&lsquo;<samp>BC</samp>&rsquo;</span></dt>
  863. <dd><p>back center
  864. </p></dd>
  865. <dt><span>&lsquo;<samp>SL</samp>&rsquo;</span></dt>
  866. <dd><p>side left
  867. </p></dd>
  868. <dt><span>&lsquo;<samp>SR</samp>&rsquo;</span></dt>
  869. <dd><p>side right
  870. </p></dd>
  871. <dt><span>&lsquo;<samp>TC</samp>&rsquo;</span></dt>
  872. <dd><p>top center
  873. </p></dd>
  874. <dt><span>&lsquo;<samp>TFL</samp>&rsquo;</span></dt>
  875. <dd><p>top front left
  876. </p></dd>
  877. <dt><span>&lsquo;<samp>TFC</samp>&rsquo;</span></dt>
  878. <dd><p>top front center
  879. </p></dd>
  880. <dt><span>&lsquo;<samp>TFR</samp>&rsquo;</span></dt>
  881. <dd><p>top front right
  882. </p></dd>
  883. <dt><span>&lsquo;<samp>TBL</samp>&rsquo;</span></dt>
  884. <dd><p>top back left
  885. </p></dd>
  886. <dt><span>&lsquo;<samp>TBC</samp>&rsquo;</span></dt>
  887. <dd><p>top back center
  888. </p></dd>
  889. <dt><span>&lsquo;<samp>TBR</samp>&rsquo;</span></dt>
  890. <dd><p>top back right
  891. </p></dd>
  892. <dt><span>&lsquo;<samp>DL</samp>&rsquo;</span></dt>
  893. <dd><p>downmix left
  894. </p></dd>
  895. <dt><span>&lsquo;<samp>DR</samp>&rsquo;</span></dt>
  896. <dd><p>downmix right
  897. </p></dd>
  898. <dt><span>&lsquo;<samp>WL</samp>&rsquo;</span></dt>
  899. <dd><p>wide left
  900. </p></dd>
  901. <dt><span>&lsquo;<samp>WR</samp>&rsquo;</span></dt>
  902. <dd><p>wide right
  903. </p></dd>
  904. <dt><span>&lsquo;<samp>SDL</samp>&rsquo;</span></dt>
  905. <dd><p>surround direct left
  906. </p></dd>
  907. <dt><span>&lsquo;<samp>SDR</samp>&rsquo;</span></dt>
  908. <dd><p>surround direct right
  909. </p></dd>
  910. <dt><span>&lsquo;<samp>LFE2</samp>&rsquo;</span></dt>
  911. <dd><p>low frequency 2
  912. </p></dd>
  913. </dl>
  914. <p>Standard channel layout compositions can be specified by using the
  915. following identifiers:
  916. </p><dl compact="compact">
  917. <dt><span>&lsquo;<samp>mono</samp>&rsquo;</span></dt>
  918. <dd><p>FC
  919. </p></dd>
  920. <dt><span>&lsquo;<samp>stereo</samp>&rsquo;</span></dt>
  921. <dd><p>FL+FR
  922. </p></dd>
  923. <dt><span>&lsquo;<samp>2.1</samp>&rsquo;</span></dt>
  924. <dd><p>FL+FR+LFE
  925. </p></dd>
  926. <dt><span>&lsquo;<samp>3.0</samp>&rsquo;</span></dt>
  927. <dd><p>FL+FR+FC
  928. </p></dd>
  929. <dt><span>&lsquo;<samp>3.0(back)</samp>&rsquo;</span></dt>
  930. <dd><p>FL+FR+BC
  931. </p></dd>
  932. <dt><span>&lsquo;<samp>4.0</samp>&rsquo;</span></dt>
  933. <dd><p>FL+FR+FC+BC
  934. </p></dd>
  935. <dt><span>&lsquo;<samp>quad</samp>&rsquo;</span></dt>
  936. <dd><p>FL+FR+BL+BR
  937. </p></dd>
  938. <dt><span>&lsquo;<samp>quad(side)</samp>&rsquo;</span></dt>
  939. <dd><p>FL+FR+SL+SR
  940. </p></dd>
  941. <dt><span>&lsquo;<samp>3.1</samp>&rsquo;</span></dt>
  942. <dd><p>FL+FR+FC+LFE
  943. </p></dd>
  944. <dt><span>&lsquo;<samp>5.0</samp>&rsquo;</span></dt>
  945. <dd><p>FL+FR+FC+BL+BR
  946. </p></dd>
  947. <dt><span>&lsquo;<samp>5.0(side)</samp>&rsquo;</span></dt>
  948. <dd><p>FL+FR+FC+SL+SR
  949. </p></dd>
  950. <dt><span>&lsquo;<samp>4.1</samp>&rsquo;</span></dt>
  951. <dd><p>FL+FR+FC+LFE+BC
  952. </p></dd>
  953. <dt><span>&lsquo;<samp>5.1</samp>&rsquo;</span></dt>
  954. <dd><p>FL+FR+FC+LFE+BL+BR
  955. </p></dd>
  956. <dt><span>&lsquo;<samp>5.1(side)</samp>&rsquo;</span></dt>
  957. <dd><p>FL+FR+FC+LFE+SL+SR
  958. </p></dd>
  959. <dt><span>&lsquo;<samp>6.0</samp>&rsquo;</span></dt>
  960. <dd><p>FL+FR+FC+BC+SL+SR
  961. </p></dd>
  962. <dt><span>&lsquo;<samp>6.0(front)</samp>&rsquo;</span></dt>
  963. <dd><p>FL+FR+FLC+FRC+SL+SR
  964. </p></dd>
  965. <dt><span>&lsquo;<samp>hexagonal</samp>&rsquo;</span></dt>
  966. <dd><p>FL+FR+FC+BL+BR+BC
  967. </p></dd>
  968. <dt><span>&lsquo;<samp>6.1</samp>&rsquo;</span></dt>
  969. <dd><p>FL+FR+FC+LFE+BC+SL+SR
  970. </p></dd>
  971. <dt><span>&lsquo;<samp>6.1</samp>&rsquo;</span></dt>
  972. <dd><p>FL+FR+FC+LFE+BL+BR+BC
  973. </p></dd>
  974. <dt><span>&lsquo;<samp>6.1(front)</samp>&rsquo;</span></dt>
  975. <dd><p>FL+FR+LFE+FLC+FRC+SL+SR
  976. </p></dd>
  977. <dt><span>&lsquo;<samp>7.0</samp>&rsquo;</span></dt>
  978. <dd><p>FL+FR+FC+BL+BR+SL+SR
  979. </p></dd>
  980. <dt><span>&lsquo;<samp>7.0(front)</samp>&rsquo;</span></dt>
  981. <dd><p>FL+FR+FC+FLC+FRC+SL+SR
  982. </p></dd>
  983. <dt><span>&lsquo;<samp>7.1</samp>&rsquo;</span></dt>
  984. <dd><p>FL+FR+FC+LFE+BL+BR+SL+SR
  985. </p></dd>
  986. <dt><span>&lsquo;<samp>7.1(wide)</samp>&rsquo;</span></dt>
  987. <dd><p>FL+FR+FC+LFE+BL+BR+FLC+FRC
  988. </p></dd>
  989. <dt><span>&lsquo;<samp>7.1(wide-side)</samp>&rsquo;</span></dt>
  990. <dd><p>FL+FR+FC+LFE+FLC+FRC+SL+SR
  991. </p></dd>
  992. <dt><span>&lsquo;<samp>7.1(top)</samp>&rsquo;</span></dt>
  993. <dd><p>FL+FR+FC+LFE+BL+BR+TFL+TFR
  994. </p></dd>
  995. <dt><span>&lsquo;<samp>octagonal</samp>&rsquo;</span></dt>
  996. <dd><p>FL+FR+FC+BL+BR+BC+SL+SR
  997. </p></dd>
  998. <dt><span>&lsquo;<samp>cube</samp>&rsquo;</span></dt>
  999. <dd><p>FL+FR+BL+BR+TFL+TFR+TBL+TBR
  1000. </p></dd>
  1001. <dt><span>&lsquo;<samp>hexadecagonal</samp>&rsquo;</span></dt>
  1002. <dd><p>FL+FR+FC+BL+BR+BC+SL+SR+WL+WR+TBL+TBR+TBC+TFC+TFL+TFR
  1003. </p></dd>
  1004. <dt><span>&lsquo;<samp>downmix</samp>&rsquo;</span></dt>
  1005. <dd><p>DL+DR
  1006. </p></dd>
  1007. <dt><span>&lsquo;<samp>22.2</samp>&rsquo;</span></dt>
  1008. <dd><p>FL+FR+FC+LFE+BL+BR+FLC+FRC+BC+SL+SR+TC+TFL+TFC+TFR+TBL+TBC+TBR+LFE2+TSL+TSR+BFC+BFL+BFR
  1009. </p></dd>
  1010. </dl>
  1011. <p>A custom channel layout can be specified as a sequence of terms, separated by &rsquo;+&rsquo;.
  1012. Each term can be:
  1013. </p><ul>
  1014. <li> the name of a single channel (e.g. &lsquo;<samp>FL</samp>&rsquo;, &lsquo;<samp>FR</samp>&rsquo;, &lsquo;<samp>FC</samp>&rsquo;, &lsquo;<samp>LFE</samp>&rsquo;, etc.),
  1015. each optionally containing a custom name after a &rsquo;@&rsquo;, (e.g. &lsquo;<samp>FL@Left</samp>&rsquo;,
  1016. &lsquo;<samp>FR@Right</samp>&rsquo;, &lsquo;<samp>FC@Center</samp>&rsquo;, &lsquo;<samp>LFE@Low_Frequency</samp>&rsquo;, etc.)
  1017. </li></ul>
  1018. <p>A standard channel layout can be specified by the following:
  1019. </p><ul>
  1020. <li> the name of a single channel (e.g. &lsquo;<samp>FL</samp>&rsquo;, &lsquo;<samp>FR</samp>&rsquo;, &lsquo;<samp>FC</samp>&rsquo;, &lsquo;<samp>LFE</samp>&rsquo;, etc.)
  1021. </li><li> the name of a standard channel layout (e.g. &lsquo;<samp>mono</samp>&rsquo;,
  1022. &lsquo;<samp>stereo</samp>&rsquo;, &lsquo;<samp>4.0</samp>&rsquo;, &lsquo;<samp>quad</samp>&rsquo;, &lsquo;<samp>5.0</samp>&rsquo;, etc.)
  1023. </li><li> a number of channels, in decimal, followed by &rsquo;c&rsquo;, yielding the default channel
  1024. layout for that number of channels (see the function
  1025. <code>av_channel_layout_default</code>). Note that not all channel counts have a
  1026. default layout.
  1027. </li><li> a number of channels, in decimal, followed by &rsquo;C&rsquo;, yielding an unknown channel
  1028. layout with the specified number of channels. Note that not all channel layout
  1029. specification strings support unknown channel layouts.
  1030. </li><li> a channel layout mask, in hexadecimal starting with &quot;0x&quot; (see the
  1031. <code>AV_CH_*</code> macros in <samp>libavutil/channel_layout.h</samp>.
  1032. </li></ul>
  1033. <p>Before libavutil version 53 the trailing character &quot;c&quot; to specify a number of
  1034. channels was optional, but now it is required, while a channel layout mask can
  1035. also be specified as a decimal number (if and only if not followed by &quot;c&quot; or &quot;C&quot;).
  1036. </p>
  1037. <p>See also the function <code>av_channel_layout_from_string</code> defined in
  1038. <samp>libavutil/channel_layout.h</samp>.
  1039. </p>
  1040. <a name="Expression-Evaluation"></a>
  1041. <h2 class="chapter">3 Expression Evaluation<span class="pull-right"><a class="anchor hidden-xs" href="#Expression-Evaluation" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Expression-Evaluation" aria-hidden="true">TOC</a></span></h2>
  1042. <p>When evaluating an arithmetic expression, FFmpeg uses an internal
  1043. formula evaluator, implemented through the <samp>libavutil/eval.h</samp>
  1044. interface.
  1045. </p>
  1046. <p>An expression may contain unary, binary operators, constants, and
  1047. functions.
  1048. </p>
  1049. <p>Two expressions <var>expr1</var> and <var>expr2</var> can be combined to form
  1050. another expression &quot;<var>expr1</var>;<var>expr2</var>&quot;.
  1051. <var>expr1</var> and <var>expr2</var> are evaluated in turn, and the new
  1052. expression evaluates to the value of <var>expr2</var>.
  1053. </p>
  1054. <p>The following binary operators are available: <code>+</code>, <code>-</code>,
  1055. <code>*</code>, <code>/</code>, <code>^</code>.
  1056. </p>
  1057. <p>The following unary operators are available: <code>+</code>, <code>-</code>.
  1058. </p>
  1059. <p>The following functions are available:
  1060. </p><dl compact="compact">
  1061. <dt><span><samp>abs(x)</samp></span></dt>
  1062. <dd><p>Compute absolute value of <var>x</var>.
  1063. </p>
  1064. </dd>
  1065. <dt><span><samp>acos(x)</samp></span></dt>
  1066. <dd><p>Compute arccosine of <var>x</var>.
  1067. </p>
  1068. </dd>
  1069. <dt><span><samp>asin(x)</samp></span></dt>
  1070. <dd><p>Compute arcsine of <var>x</var>.
  1071. </p>
  1072. </dd>
  1073. <dt><span><samp>atan(x)</samp></span></dt>
  1074. <dd><p>Compute arctangent of <var>x</var>.
  1075. </p>
  1076. </dd>
  1077. <dt><span><samp>atan2(x, y)</samp></span></dt>
  1078. <dd><p>Compute principal value of the arc tangent of <var>y</var>/<var>x</var>.
  1079. </p>
  1080. </dd>
  1081. <dt><span><samp>between(x, min, max)</samp></span></dt>
  1082. <dd><p>Return 1 if <var>x</var> is greater than or equal to <var>min</var> and lesser than or
  1083. equal to <var>max</var>, 0 otherwise.
  1084. </p>
  1085. </dd>
  1086. <dt><span><samp>bitand(x, y)</samp></span></dt>
  1087. <dt><span><samp>bitor(x, y)</samp></span></dt>
  1088. <dd><p>Compute bitwise and/or operation on <var>x</var> and <var>y</var>.
  1089. </p>
  1090. <p>The results of the evaluation of <var>x</var> and <var>y</var> are converted to
  1091. integers before executing the bitwise operation.
  1092. </p>
  1093. <p>Note that both the conversion to integer and the conversion back to
  1094. floating point can lose precision. Beware of unexpected results for
  1095. large numbers (usually 2^53 and larger).
  1096. </p>
  1097. </dd>
  1098. <dt><span><samp>ceil(expr)</samp></span></dt>
  1099. <dd><p>Round the value of expression <var>expr</var> upwards to the nearest
  1100. integer. For example, &quot;ceil(1.5)&quot; is &quot;2.0&quot;.
  1101. </p>
  1102. </dd>
  1103. <dt><span><samp>clip(x, min, max)</samp></span></dt>
  1104. <dd><p>Return the value of <var>x</var> clipped between <var>min</var> and <var>max</var>.
  1105. </p>
  1106. </dd>
  1107. <dt><span><samp>cos(x)</samp></span></dt>
  1108. <dd><p>Compute cosine of <var>x</var>.
  1109. </p>
  1110. </dd>
  1111. <dt><span><samp>cosh(x)</samp></span></dt>
  1112. <dd><p>Compute hyperbolic cosine of <var>x</var>.
  1113. </p>
  1114. </dd>
  1115. <dt><span><samp>eq(x, y)</samp></span></dt>
  1116. <dd><p>Return 1 if <var>x</var> and <var>y</var> are equivalent, 0 otherwise.
  1117. </p>
  1118. </dd>
  1119. <dt><span><samp>exp(x)</samp></span></dt>
  1120. <dd><p>Compute exponential of <var>x</var> (with base <code>e</code>, the Euler&rsquo;s number).
  1121. </p>
  1122. </dd>
  1123. <dt><span><samp>floor(expr)</samp></span></dt>
  1124. <dd><p>Round the value of expression <var>expr</var> downwards to the nearest
  1125. integer. For example, &quot;floor(-1.5)&quot; is &quot;-2.0&quot;.
  1126. </p>
  1127. </dd>
  1128. <dt><span><samp>gauss(x)</samp></span></dt>
  1129. <dd><p>Compute Gauss function of <var>x</var>, corresponding to
  1130. <code>exp(-x*x/2) / sqrt(2*PI)</code>.
  1131. </p>
  1132. </dd>
  1133. <dt><span><samp>gcd(x, y)</samp></span></dt>
  1134. <dd><p>Return the greatest common divisor of <var>x</var> and <var>y</var>. If both <var>x</var> and
  1135. <var>y</var> are 0 or either or both are less than zero then behavior is undefined.
  1136. </p>
  1137. </dd>
  1138. <dt><span><samp>gt(x, y)</samp></span></dt>
  1139. <dd><p>Return 1 if <var>x</var> is greater than <var>y</var>, 0 otherwise.
  1140. </p>
  1141. </dd>
  1142. <dt><span><samp>gte(x, y)</samp></span></dt>
  1143. <dd><p>Return 1 if <var>x</var> is greater than or equal to <var>y</var>, 0 otherwise.
  1144. </p>
  1145. </dd>
  1146. <dt><span><samp>hypot(x, y)</samp></span></dt>
  1147. <dd><p>This function is similar to the C function with the same name; it returns
  1148. &quot;sqrt(<var>x</var>*<var>x</var> + <var>y</var>*<var>y</var>)&quot;, the length of the hypotenuse of a
  1149. right triangle with sides of length <var>x</var> and <var>y</var>, or the distance of the
  1150. point (<var>x</var>, <var>y</var>) from the origin.
  1151. </p>
  1152. </dd>
  1153. <dt><span><samp>if(x, y)</samp></span></dt>
  1154. <dd><p>Evaluate <var>x</var>, and if the result is non-zero return the result of
  1155. the evaluation of <var>y</var>, return 0 otherwise.
  1156. </p>
  1157. </dd>
  1158. <dt><span><samp>if(x, y, z)</samp></span></dt>
  1159. <dd><p>Evaluate <var>x</var>, and if the result is non-zero return the evaluation
  1160. result of <var>y</var>, otherwise the evaluation result of <var>z</var>.
  1161. </p>
  1162. </dd>
  1163. <dt><span><samp>ifnot(x, y)</samp></span></dt>
  1164. <dd><p>Evaluate <var>x</var>, and if the result is zero return the result of the
  1165. evaluation of <var>y</var>, return 0 otherwise.
  1166. </p>
  1167. </dd>
  1168. <dt><span><samp>ifnot(x, y, z)</samp></span></dt>
  1169. <dd><p>Evaluate <var>x</var>, and if the result is zero return the evaluation
  1170. result of <var>y</var>, otherwise the evaluation result of <var>z</var>.
  1171. </p>
  1172. </dd>
  1173. <dt><span><samp>isinf(x)</samp></span></dt>
  1174. <dd><p>Return 1.0 if <var>x</var> is +/-INFINITY, 0.0 otherwise.
  1175. </p>
  1176. </dd>
  1177. <dt><span><samp>isnan(x)</samp></span></dt>
  1178. <dd><p>Return 1.0 if <var>x</var> is NAN, 0.0 otherwise.
  1179. </p>
  1180. </dd>
  1181. <dt><span><samp>ld(var)</samp></span></dt>
  1182. <dd><p>Load the value of the internal variable with number
  1183. <var>var</var>, which was previously stored with st(<var>var</var>, <var>expr</var>).
  1184. The function returns the loaded value.
  1185. </p>
  1186. </dd>
  1187. <dt><span><samp>lerp(x, y, z)</samp></span></dt>
  1188. <dd><p>Return linear interpolation between <var>x</var> and <var>y</var> by amount of <var>z</var>.
  1189. </p>
  1190. </dd>
  1191. <dt><span><samp>log(x)</samp></span></dt>
  1192. <dd><p>Compute natural logarithm of <var>x</var>.
  1193. </p>
  1194. </dd>
  1195. <dt><span><samp>lt(x, y)</samp></span></dt>
  1196. <dd><p>Return 1 if <var>x</var> is lesser than <var>y</var>, 0 otherwise.
  1197. </p>
  1198. </dd>
  1199. <dt><span><samp>lte(x, y)</samp></span></dt>
  1200. <dd><p>Return 1 if <var>x</var> is lesser than or equal to <var>y</var>, 0 otherwise.
  1201. </p>
  1202. </dd>
  1203. <dt><span><samp>max(x, y)</samp></span></dt>
  1204. <dd><p>Return the maximum between <var>x</var> and <var>y</var>.
  1205. </p>
  1206. </dd>
  1207. <dt><span><samp>min(x, y)</samp></span></dt>
  1208. <dd><p>Return the minimum between <var>x</var> and <var>y</var>.
  1209. </p>
  1210. </dd>
  1211. <dt><span><samp>mod(x, y)</samp></span></dt>
  1212. <dd><p>Compute the remainder of division of <var>x</var> by <var>y</var>.
  1213. </p>
  1214. </dd>
  1215. <dt><span><samp>not(expr)</samp></span></dt>
  1216. <dd><p>Return 1.0 if <var>expr</var> is zero, 0.0 otherwise.
  1217. </p>
  1218. </dd>
  1219. <dt><span><samp>pow(x, y)</samp></span></dt>
  1220. <dd><p>Compute the power of <var>x</var> elevated <var>y</var>, it is equivalent to
  1221. &quot;(<var>x</var>)^(<var>y</var>)&quot;.
  1222. </p>
  1223. </dd>
  1224. <dt><span><samp>print(t)</samp></span></dt>
  1225. <dt><span><samp>print(t, l)</samp></span></dt>
  1226. <dd><p>Print the value of expression <var>t</var> with loglevel <var>l</var>. If
  1227. <var>l</var> is not specified then a default log level is used.
  1228. Returns the value of the expression printed.
  1229. </p>
  1230. <p>Prints t with loglevel l
  1231. </p>
  1232. </dd>
  1233. <dt><span><samp>random(x)</samp></span></dt>
  1234. <dd><p>Return a pseudo random value between 0.0 and 1.0. <var>x</var> is the index of the
  1235. internal variable which will be used to save the seed/state.
  1236. </p>
  1237. </dd>
  1238. <dt><span><samp>root(expr, max)</samp></span></dt>
  1239. <dd><p>Find an input value for which the function represented by <var>expr</var>
  1240. with argument <var>ld(0)</var> is 0 in the interval 0..<var>max</var>.
  1241. </p>
  1242. <p>The expression in <var>expr</var> must denote a continuous function or the
  1243. result is undefined.
  1244. </p>
  1245. <p><var>ld(0)</var> is used to represent the function input value, which means
  1246. that the given expression will be evaluated multiple times with
  1247. various input values that the expression can access through
  1248. <code>ld(0)</code>. When the expression evaluates to 0 then the
  1249. corresponding input value will be returned.
  1250. </p>
  1251. </dd>
  1252. <dt><span><samp>round(expr)</samp></span></dt>
  1253. <dd><p>Round the value of expression <var>expr</var> to the nearest integer. For example, &quot;round(1.5)&quot; is &quot;2.0&quot;.
  1254. </p>
  1255. </dd>
  1256. <dt><span><samp>sgn(x)</samp></span></dt>
  1257. <dd><p>Compute sign of <var>x</var>.
  1258. </p>
  1259. </dd>
  1260. <dt><span><samp>sin(x)</samp></span></dt>
  1261. <dd><p>Compute sine of <var>x</var>.
  1262. </p>
  1263. </dd>
  1264. <dt><span><samp>sinh(x)</samp></span></dt>
  1265. <dd><p>Compute hyperbolic sine of <var>x</var>.
  1266. </p>
  1267. </dd>
  1268. <dt><span><samp>sqrt(expr)</samp></span></dt>
  1269. <dd><p>Compute the square root of <var>expr</var>. This is equivalent to
  1270. &quot;(<var>expr</var>)^.5&quot;.
  1271. </p>
  1272. </dd>
  1273. <dt><span><samp>squish(x)</samp></span></dt>
  1274. <dd><p>Compute expression <code>1/(1 + exp(4*x))</code>.
  1275. </p>
  1276. </dd>
  1277. <dt><span><samp>st(var, expr)</samp></span></dt>
  1278. <dd><p>Store the value of the expression <var>expr</var> in an internal
  1279. variable. <var>var</var> specifies the number of the variable where to
  1280. store the value, and it is a value ranging from 0 to 9. The function
  1281. returns the value stored in the internal variable.
  1282. Note, Variables are currently not shared between expressions.
  1283. </p>
  1284. </dd>
  1285. <dt><span><samp>tan(x)</samp></span></dt>
  1286. <dd><p>Compute tangent of <var>x</var>.
  1287. </p>
  1288. </dd>
  1289. <dt><span><samp>tanh(x)</samp></span></dt>
  1290. <dd><p>Compute hyperbolic tangent of <var>x</var>.
  1291. </p>
  1292. </dd>
  1293. <dt><span><samp>taylor(expr, x)</samp></span></dt>
  1294. <dt><span><samp>taylor(expr, x, id)</samp></span></dt>
  1295. <dd><p>Evaluate a Taylor series at <var>x</var>, given an expression representing
  1296. the <code>ld(id)</code>-th derivative of a function at 0.
  1297. </p>
  1298. <p>When the series does not converge the result is undefined.
  1299. </p>
  1300. <p><var>ld(id)</var> is used to represent the derivative order in <var>expr</var>,
  1301. which means that the given expression will be evaluated multiple times
  1302. with various input values that the expression can access through
  1303. <code>ld(id)</code>. If <var>id</var> is not specified then 0 is assumed.
  1304. </p>
  1305. <p>Note, when you have the derivatives at y instead of 0,
  1306. <code>taylor(expr, x-y)</code> can be used.
  1307. </p>
  1308. </dd>
  1309. <dt><span><samp>time(0)</samp></span></dt>
  1310. <dd><p>Return the current (wallclock) time in seconds.
  1311. </p>
  1312. </dd>
  1313. <dt><span><samp>trunc(expr)</samp></span></dt>
  1314. <dd><p>Round the value of expression <var>expr</var> towards zero to the nearest
  1315. integer. For example, &quot;trunc(-1.5)&quot; is &quot;-1.0&quot;.
  1316. </p>
  1317. </dd>
  1318. <dt><span><samp>while(cond, expr)</samp></span></dt>
  1319. <dd><p>Evaluate expression <var>expr</var> while the expression <var>cond</var> is
  1320. non-zero, and returns the value of the last <var>expr</var> evaluation, or
  1321. NAN if <var>cond</var> was always false.
  1322. </p></dd>
  1323. </dl>
  1324. <p>The following constants are available:
  1325. </p><dl compact="compact">
  1326. <dt><span><samp>PI</samp></span></dt>
  1327. <dd><p>area of the unit disc, approximately 3.14
  1328. </p></dd>
  1329. <dt><span><samp>E</samp></span></dt>
  1330. <dd><p>exp(1) (Euler&rsquo;s number), approximately 2.718
  1331. </p></dd>
  1332. <dt><span><samp>PHI</samp></span></dt>
  1333. <dd><p>golden ratio (1+sqrt(5))/2, approximately 1.618
  1334. </p></dd>
  1335. </dl>
  1336. <p>Assuming that an expression is considered &quot;true&quot; if it has a non-zero
  1337. value, note that:
  1338. </p>
  1339. <p><code>*</code> works like AND
  1340. </p>
  1341. <p><code>+</code> works like OR
  1342. </p>
  1343. <p>For example the construct:
  1344. </p><div class="example">
  1345. <pre class="example">if (A AND B) then C
  1346. </pre></div>
  1347. <p>is equivalent to:
  1348. </p><div class="example">
  1349. <pre class="example">if(A*B, C)
  1350. </pre></div>
  1351. <p>In your C code, you can extend the list of unary and binary functions,
  1352. and define recognized constants, so that they are available for your
  1353. expressions.
  1354. </p>
  1355. <p>The evaluator also recognizes the International System unit prefixes.
  1356. If &rsquo;i&rsquo; is appended after the prefix, binary prefixes are used, which
  1357. are based on powers of 1024 instead of powers of 1000.
  1358. The &rsquo;B&rsquo; postfix multiplies the value by 8, and can be appended after a
  1359. unit prefix or used alone. This allows using for example &rsquo;KB&rsquo;, &rsquo;MiB&rsquo;,
  1360. &rsquo;G&rsquo; and &rsquo;B&rsquo; as number postfix.
  1361. </p>
  1362. <p>The list of available International System prefixes follows, with
  1363. indication of the corresponding powers of 10 and of 2.
  1364. </p><dl compact="compact">
  1365. <dt><span><samp>y</samp></span></dt>
  1366. <dd><p>10^-24 / 2^-80
  1367. </p></dd>
  1368. <dt><span><samp>z</samp></span></dt>
  1369. <dd><p>10^-21 / 2^-70
  1370. </p></dd>
  1371. <dt><span><samp>a</samp></span></dt>
  1372. <dd><p>10^-18 / 2^-60
  1373. </p></dd>
  1374. <dt><span><samp>f</samp></span></dt>
  1375. <dd><p>10^-15 / 2^-50
  1376. </p></dd>
  1377. <dt><span><samp>p</samp></span></dt>
  1378. <dd><p>10^-12 / 2^-40
  1379. </p></dd>
  1380. <dt><span><samp>n</samp></span></dt>
  1381. <dd><p>10^-9 / 2^-30
  1382. </p></dd>
  1383. <dt><span><samp>u</samp></span></dt>
  1384. <dd><p>10^-6 / 2^-20
  1385. </p></dd>
  1386. <dt><span><samp>m</samp></span></dt>
  1387. <dd><p>10^-3 / 2^-10
  1388. </p></dd>
  1389. <dt><span><samp>c</samp></span></dt>
  1390. <dd><p>10^-2
  1391. </p></dd>
  1392. <dt><span><samp>d</samp></span></dt>
  1393. <dd><p>10^-1
  1394. </p></dd>
  1395. <dt><span><samp>h</samp></span></dt>
  1396. <dd><p>10^2
  1397. </p></dd>
  1398. <dt><span><samp>k</samp></span></dt>
  1399. <dd><p>10^3 / 2^10
  1400. </p></dd>
  1401. <dt><span><samp>K</samp></span></dt>
  1402. <dd><p>10^3 / 2^10
  1403. </p></dd>
  1404. <dt><span><samp>M</samp></span></dt>
  1405. <dd><p>10^6 / 2^20
  1406. </p></dd>
  1407. <dt><span><samp>G</samp></span></dt>
  1408. <dd><p>10^9 / 2^30
  1409. </p></dd>
  1410. <dt><span><samp>T</samp></span></dt>
  1411. <dd><p>10^12 / 2^40
  1412. </p></dd>
  1413. <dt><span><samp>P</samp></span></dt>
  1414. <dd><p>10^15 / 2^50
  1415. </p></dd>
  1416. <dt><span><samp>E</samp></span></dt>
  1417. <dd><p>10^18 / 2^60
  1418. </p></dd>
  1419. <dt><span><samp>Z</samp></span></dt>
  1420. <dd><p>10^21 / 2^70
  1421. </p></dd>
  1422. <dt><span><samp>Y</samp></span></dt>
  1423. <dd><p>10^24 / 2^80
  1424. </p></dd>
  1425. </dl>
  1426. <a name="See-Also"></a>
  1427. <h2 class="chapter">4 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>
  1428. <p><a href="ffmpeg.html">ffmpeg</a>, <a href="ffplay.html">ffplay</a>, <a href="ffprobe.html">ffprobe</a>,
  1429. <a href="libavutil.html">libavutil</a>
  1430. </p>
  1431. <a name="Authors"></a>
  1432. <h2 class="chapter">5 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>
  1433. <p>The FFmpeg developers.
  1434. </p>
  1435. <p>For details about the authorship, see the Git history of the project
  1436. (https://git.ffmpeg.org/ffmpeg), e.g. by typing the command
  1437. <code>git log</code> in the FFmpeg source directory, or browsing the
  1438. online repository at <a href="https://git.ffmpeg.org/ffmpeg">https://git.ffmpeg.org/ffmpeg</a>.
  1439. </p>
  1440. <p>Maintainers for the specific components are listed in the file
  1441. <samp>MAINTAINERS</samp> in the source code tree.
  1442. </p>
  1443. <p style="font-size: small;">
  1444. This document was generated using <a href="https://www.gnu.org/software/texinfo/"><em>makeinfo</em></a>.
  1445. </p>
  1446. </div>
  1447. </body>
  1448. </html>