星火微课系统客户端
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

ffplay.html 33KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  6. <title>FFmpeg documentation</title>
  7. <link rel="stylesheet" href="bootstrap.min.css" />
  8. <link rel="stylesheet" href="style.min.css" />
  9. <meta name="description" content="ffplay Documentation: ">
  10. <meta name="keywords" content="FFmpeg documentation : ffplay ">
  11. <meta name="Generator" content="texi2html 5.0">
  12. <!-- Created on March 9, 2020 by texi2html 5.0 -->
  13. <!--
  14. texi2html was written by:
  15. Lionel Cons <Lionel.Cons@cern.ch> (original author)
  16. Karl Berry <karl@freefriends.org>
  17. Olaf Bachmann <obachman@mathematik.uni-kl.de>
  18. and many others.
  19. Maintained by: Many creative people.
  20. Send bugs and suggestions to <texi2html-bug@nongnu.org>
  21. -->
  22. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  23. </head>
  24. <body>
  25. <div class="container">
  26. <h1 class="titlefont">ffplay Documentation</h1>
  27. <hr>
  28. <a name="SEC_Top"></a>
  29. <a name="SEC_Contents"></a>
  30. <h1>Table of Contents</h1>
  31. <div class="contents">
  32. <ul class="no-bullet">
  33. <li><a name="toc-Synopsis" href="#Synopsis">1 Synopsis</a></li>
  34. <li><a name="toc-Description" href="#Description">2 Description</a></li>
  35. <li><a name="toc-Options" href="#Options">3 Options</a>
  36. <ul class="no-bullet">
  37. <li><a name="toc-Stream-specifiers-1" href="#Stream-specifiers-1">3.1 Stream specifiers</a></li>
  38. <li><a name="toc-Generic-options" href="#Generic-options">3.2 Generic options</a></li>
  39. <li><a name="toc-AVOptions" href="#AVOptions">3.3 AVOptions</a></li>
  40. <li><a name="toc-Main-options" href="#Main-options">3.4 Main options</a></li>
  41. <li><a name="toc-Advanced-options" href="#Advanced-options">3.5 Advanced options</a></li>
  42. <li><a name="toc-While-playing" href="#While-playing">3.6 While playing</a></li>
  43. </ul></li>
  44. <li><a name="toc-See-Also" href="#See-Also">4 See Also</a></li>
  45. <li><a name="toc-Authors" href="#Authors">5 Authors</a></li>
  46. </ul>
  47. </div>
  48. <hr size="6">
  49. <a name="Synopsis"></a>
  50. <h1 class="chapter"><a href="ffplay.html#toc-Synopsis">1 Synopsis</a></h1>
  51. <p>ffplay [<var>options</var>] [&lsquo;<tt>input_url</tt>&rsquo;]
  52. </p>
  53. <a name="Description"></a>
  54. <h1 class="chapter"><a href="ffplay.html#toc-Description">2 Description</a></h1>
  55. <p>FFplay is a very simple and portable media player using the FFmpeg
  56. libraries and the SDL library. It is mostly used as a testbed for the
  57. various FFmpeg APIs.
  58. </p>
  59. <a name="Options"></a>
  60. <h1 class="chapter"><a href="ffplay.html#toc-Options">3 Options</a></h1>
  61. <p>All the numerical options, if not specified otherwise, accept a string
  62. representing a number as input, which may be followed by one of the SI
  63. unit prefixes, for example: &rsquo;K&rsquo;, &rsquo;M&rsquo;, or &rsquo;G&rsquo;.
  64. </p>
  65. <p>If &rsquo;i&rsquo; is appended to the SI unit prefix, the complete prefix will be
  66. interpreted as a unit prefix for binary multiples, which are based on
  67. powers of 1024 instead of powers of 1000. Appending &rsquo;B&rsquo; to the SI unit
  68. prefix multiplies the value by 8. This allows using, for example:
  69. &rsquo;KB&rsquo;, &rsquo;MiB&rsquo;, &rsquo;G&rsquo; and &rsquo;B&rsquo; as number suffixes.
  70. </p>
  71. <p>Options which do not take arguments are boolean options, and set the
  72. corresponding value to true. They can be set to false by prefixing
  73. the option name with &quot;no&quot;. For example using &quot;-nofoo&quot;
  74. will set the boolean option with name &quot;foo&quot; to false.
  75. </p>
  76. <p><a name="Stream-specifiers"></a>
  77. </p><a name="Stream-specifiers-1"></a>
  78. <h2 class="section"><a href="ffplay.html#toc-Stream-specifiers-1">3.1 Stream specifiers</a></h2>
  79. <p>Some options are applied per-stream, e.g. bitrate or codec. Stream specifiers
  80. are used to precisely specify which stream(s) a given option belongs to.
  81. </p>
  82. <p>A stream specifier is a string generally appended to the option name and
  83. separated from it by a colon. E.g. <code>-codec:a:1 ac3</code> contains the
  84. <code>a:1</code> stream specifier, which matches the second audio stream. Therefore, it
  85. would select the ac3 codec for the second audio stream.
  86. </p>
  87. <p>A stream specifier can match several streams, so that the option is applied to all
  88. of them. E.g. the stream specifier in <code>-b:a 128k</code> matches all audio
  89. streams.
  90. </p>
  91. <p>An empty stream specifier matches all streams. For example, <code>-codec copy</code>
  92. or <code>-codec: copy</code> would copy all the streams without reencoding.
  93. </p>
  94. <p>Possible forms of stream specifiers are:
  95. </p><dl compact="compact">
  96. <dt>&lsquo;<samp><var>stream_index</var></samp>&rsquo;</dt>
  97. <dd><p>Matches the stream with this index. E.g. <code>-threads:1 4</code> would set the
  98. thread count for the second stream to 4. If <var>stream_index</var> is used as an
  99. additional stream specifier (see below), then it selects stream number
  100. <var>stream_index</var> from the matching streams. Stream numbering is based on the
  101. order of the streams as detected by libavformat except when a program ID is
  102. also specified. In this case it is based on the ordering of the streams in the
  103. program.
  104. </p></dd>
  105. <dt>&lsquo;<samp><var>stream_type</var>[:<var>additional_stream_specifier</var>]</samp>&rsquo;</dt>
  106. <dd><p><var>stream_type</var> is one of following: &rsquo;v&rsquo; or &rsquo;V&rsquo; for video, &rsquo;a&rsquo; for audio, &rsquo;s&rsquo;
  107. for subtitle, &rsquo;d&rsquo; for data, and &rsquo;t&rsquo; for attachments. &rsquo;v&rsquo; matches all video
  108. streams, &rsquo;V&rsquo; only matches video streams which are not attached pictures, video
  109. thumbnails or cover arts. If <var>additional_stream_specifier</var> is used, then
  110. it matches streams which both have this type and match the
  111. <var>additional_stream_specifier</var>. Otherwise, it matches all streams of the
  112. specified type.
  113. </p></dd>
  114. <dt>&lsquo;<samp>p:<var>program_id</var>[:<var>additional_stream_specifier</var>]</samp>&rsquo;</dt>
  115. <dd><p>Matches streams which are in the program with the id <var>program_id</var>. If
  116. <var>additional_stream_specifier</var> is used, then it matches streams which both
  117. are part of the program and match the <var>additional_stream_specifier</var>.
  118. </p>
  119. </dd>
  120. <dt>&lsquo;<samp>#<var>stream_id</var> or i:<var>stream_id</var></samp>&rsquo;</dt>
  121. <dd><p>Match the stream by stream id (e.g. PID in MPEG-TS container).
  122. </p></dd>
  123. <dt>&lsquo;<samp>m:<var>key</var>[:<var>value</var>]</samp>&rsquo;</dt>
  124. <dd><p>Matches streams with the metadata tag <var>key</var> having the specified value. If
  125. <var>value</var> is not given, matches streams that contain the given tag with any
  126. value.
  127. </p></dd>
  128. <dt>&lsquo;<samp>u</samp>&rsquo;</dt>
  129. <dd><p>Matches streams with usable configuration, the codec must be defined and the
  130. essential information such as video dimension or audio sample rate must be present.
  131. </p>
  132. <p>Note that in <code>ffmpeg</code>, matching by metadata will only work properly for
  133. input files.
  134. </p></dd>
  135. </dl>
  136. <a name="Generic-options"></a>
  137. <h2 class="section"><a href="ffplay.html#toc-Generic-options">3.2 Generic options</a></h2>
  138. <p>These options are shared amongst the ff* tools.
  139. </p>
  140. <dl compact="compact">
  141. <dt>&lsquo;<samp>-L</samp>&rsquo;</dt>
  142. <dd><p>Show license.
  143. </p>
  144. </dd>
  145. <dt>&lsquo;<samp>-h, -?, -help, --help [<var>arg</var>]</samp>&rsquo;</dt>
  146. <dd><p>Show help. An optional parameter may be specified to print help about a specific
  147. item. If no argument is specified, only basic (non advanced) tool
  148. options are shown.
  149. </p>
  150. <p>Possible values of <var>arg</var> are:
  151. </p><dl compact="compact">
  152. <dt>&lsquo;<samp>long</samp>&rsquo;</dt>
  153. <dd><p>Print advanced tool options in addition to the basic tool options.
  154. </p>
  155. </dd>
  156. <dt>&lsquo;<samp>full</samp>&rsquo;</dt>
  157. <dd><p>Print complete list of options, including shared and private options
  158. for encoders, decoders, demuxers, muxers, filters, etc.
  159. </p>
  160. </dd>
  161. <dt>&lsquo;<samp>decoder=<var>decoder_name</var></samp>&rsquo;</dt>
  162. <dd><p>Print detailed information about the decoder named <var>decoder_name</var>. Use the
  163. &lsquo;<samp>-decoders</samp>&rsquo; option to get a list of all decoders.
  164. </p>
  165. </dd>
  166. <dt>&lsquo;<samp>encoder=<var>encoder_name</var></samp>&rsquo;</dt>
  167. <dd><p>Print detailed information about the encoder named <var>encoder_name</var>. Use the
  168. &lsquo;<samp>-encoders</samp>&rsquo; option to get a list of all encoders.
  169. </p>
  170. </dd>
  171. <dt>&lsquo;<samp>demuxer=<var>demuxer_name</var></samp>&rsquo;</dt>
  172. <dd><p>Print detailed information about the demuxer named <var>demuxer_name</var>. Use the
  173. &lsquo;<samp>-formats</samp>&rsquo; option to get a list of all demuxers and muxers.
  174. </p>
  175. </dd>
  176. <dt>&lsquo;<samp>muxer=<var>muxer_name</var></samp>&rsquo;</dt>
  177. <dd><p>Print detailed information about the muxer named <var>muxer_name</var>. Use the
  178. &lsquo;<samp>-formats</samp>&rsquo; option to get a list of all muxers and demuxers.
  179. </p>
  180. </dd>
  181. <dt>&lsquo;<samp>filter=<var>filter_name</var></samp>&rsquo;</dt>
  182. <dd><p>Print detailed information about the filter name <var>filter_name</var>. Use the
  183. &lsquo;<samp>-filters</samp>&rsquo; option to get a list of all filters.
  184. </p>
  185. </dd>
  186. <dt>&lsquo;<samp>bsf=<var>bitstream_filter_name</var></samp>&rsquo;</dt>
  187. <dd><p>Print detailed information about the bitstream filter name <var>bitstream_filter_name</var>.
  188. Use the &lsquo;<samp>-bsfs</samp>&rsquo; option to get a list of all bitstream filters.
  189. </p></dd>
  190. </dl>
  191. </dd>
  192. <dt>&lsquo;<samp>-version</samp>&rsquo;</dt>
  193. <dd><p>Show version.
  194. </p>
  195. </dd>
  196. <dt>&lsquo;<samp>-formats</samp>&rsquo;</dt>
  197. <dd><p>Show available formats (including devices).
  198. </p>
  199. </dd>
  200. <dt>&lsquo;<samp>-demuxers</samp>&rsquo;</dt>
  201. <dd><p>Show available demuxers.
  202. </p>
  203. </dd>
  204. <dt>&lsquo;<samp>-muxers</samp>&rsquo;</dt>
  205. <dd><p>Show available muxers.
  206. </p>
  207. </dd>
  208. <dt>&lsquo;<samp>-devices</samp>&rsquo;</dt>
  209. <dd><p>Show available devices.
  210. </p>
  211. </dd>
  212. <dt>&lsquo;<samp>-codecs</samp>&rsquo;</dt>
  213. <dd><p>Show all codecs known to libavcodec.
  214. </p>
  215. <p>Note that the term &rsquo;codec&rsquo; is used throughout this documentation as a shortcut
  216. for what is more correctly called a media bitstream format.
  217. </p>
  218. </dd>
  219. <dt>&lsquo;<samp>-decoders</samp>&rsquo;</dt>
  220. <dd><p>Show available decoders.
  221. </p>
  222. </dd>
  223. <dt>&lsquo;<samp>-encoders</samp>&rsquo;</dt>
  224. <dd><p>Show all available encoders.
  225. </p>
  226. </dd>
  227. <dt>&lsquo;<samp>-bsfs</samp>&rsquo;</dt>
  228. <dd><p>Show available bitstream filters.
  229. </p>
  230. </dd>
  231. <dt>&lsquo;<samp>-protocols</samp>&rsquo;</dt>
  232. <dd><p>Show available protocols.
  233. </p>
  234. </dd>
  235. <dt>&lsquo;<samp>-filters</samp>&rsquo;</dt>
  236. <dd><p>Show available libavfilter filters.
  237. </p>
  238. </dd>
  239. <dt>&lsquo;<samp>-pix_fmts</samp>&rsquo;</dt>
  240. <dd><p>Show available pixel formats.
  241. </p>
  242. </dd>
  243. <dt>&lsquo;<samp>-sample_fmts</samp>&rsquo;</dt>
  244. <dd><p>Show available sample formats.
  245. </p>
  246. </dd>
  247. <dt>&lsquo;<samp>-layouts</samp>&rsquo;</dt>
  248. <dd><p>Show channel names and standard channel layouts.
  249. </p>
  250. </dd>
  251. <dt>&lsquo;<samp>-colors</samp>&rsquo;</dt>
  252. <dd><p>Show recognized color names.
  253. </p>
  254. </dd>
  255. <dt>&lsquo;<samp>-sources <var>device</var>[,<var>opt1</var>=<var>val1</var>[,<var>opt2</var>=<var>val2</var>]...]</samp>&rsquo;</dt>
  256. <dd><p>Show autodetected sources of the input device.
  257. Some devices may provide system-dependent source names that cannot be autodetected.
  258. The returned list cannot be assumed to be always complete.
  259. </p><div class="example">
  260. <pre class="example">ffmpeg -sources pulse,server=192.168.0.4
  261. </pre></div>
  262. </dd>
  263. <dt>&lsquo;<samp>-sinks <var>device</var>[,<var>opt1</var>=<var>val1</var>[,<var>opt2</var>=<var>val2</var>]...]</samp>&rsquo;</dt>
  264. <dd><p>Show autodetected sinks of the output device.
  265. Some devices may provide system-dependent sink names that cannot be autodetected.
  266. The returned list cannot be assumed to be always complete.
  267. </p><div class="example">
  268. <pre class="example">ffmpeg -sinks pulse,server=192.168.0.4
  269. </pre></div>
  270. </dd>
  271. <dt>&lsquo;<samp>-loglevel [<var>flags</var>+]<var>loglevel</var> | -v [<var>flags</var>+]<var>loglevel</var></samp>&rsquo;</dt>
  272. <dd><p>Set logging level and flags used by the library.
  273. </p>
  274. <p>The optional <var>flags</var> prefix can consist of the following values:
  275. </p><dl compact="compact">
  276. <dt>&lsquo;<samp>repeat</samp>&rsquo;</dt>
  277. <dd><p>Indicates that repeated log output should not be compressed to the first line
  278. and the &quot;Last message repeated n times&quot; line will be omitted.
  279. </p></dd>
  280. <dt>&lsquo;<samp>level</samp>&rsquo;</dt>
  281. <dd><p>Indicates that log output should add a <code>[level]</code> prefix to each message
  282. line. This can be used as an alternative to log coloring, e.g. when dumping the
  283. log to file.
  284. </p></dd>
  285. </dl>
  286. <p>Flags can also be used alone by adding a &rsquo;+&rsquo;/&rsquo;-&rsquo; prefix to set/reset a single
  287. flag without affecting other <var>flags</var> or changing <var>loglevel</var>. When
  288. setting both <var>flags</var> and <var>loglevel</var>, a &rsquo;+&rsquo; separator is expected
  289. between the last <var>flags</var> value and before <var>loglevel</var>.
  290. </p>
  291. <p><var>loglevel</var> is a string or a number containing one of the following values:
  292. </p><dl compact="compact">
  293. <dt>&lsquo;<samp>quiet, -8</samp>&rsquo;</dt>
  294. <dd><p>Show nothing at all; be silent.
  295. </p></dd>
  296. <dt>&lsquo;<samp>panic, 0</samp>&rsquo;</dt>
  297. <dd><p>Only show fatal errors which could lead the process to crash, such as
  298. an assertion failure. This is not currently used for anything.
  299. </p></dd>
  300. <dt>&lsquo;<samp>fatal, 8</samp>&rsquo;</dt>
  301. <dd><p>Only show fatal errors. These are errors after which the process absolutely
  302. cannot continue.
  303. </p></dd>
  304. <dt>&lsquo;<samp>error, 16</samp>&rsquo;</dt>
  305. <dd><p>Show all errors, including ones which can be recovered from.
  306. </p></dd>
  307. <dt>&lsquo;<samp>warning, 24</samp>&rsquo;</dt>
  308. <dd><p>Show all warnings and errors. Any message related to possibly
  309. incorrect or unexpected events will be shown.
  310. </p></dd>
  311. <dt>&lsquo;<samp>info, 32</samp>&rsquo;</dt>
  312. <dd><p>Show informative messages during processing. This is in addition to
  313. warnings and errors. This is the default value.
  314. </p></dd>
  315. <dt>&lsquo;<samp>verbose, 40</samp>&rsquo;</dt>
  316. <dd><p>Same as <code>info</code>, except more verbose.
  317. </p></dd>
  318. <dt>&lsquo;<samp>debug, 48</samp>&rsquo;</dt>
  319. <dd><p>Show everything, including debugging information.
  320. </p></dd>
  321. <dt>&lsquo;<samp>trace, 56</samp>&rsquo;</dt>
  322. </dl>
  323. <p>For example to enable repeated log output, add the <code>level</code> prefix, and set
  324. <var>loglevel</var> to <code>verbose</code>:
  325. </p><div class="example">
  326. <pre class="example">ffmpeg -loglevel repeat+level+verbose -i input output
  327. </pre></div>
  328. <p>Another example that enables repeated log output without affecting current
  329. state of <code>level</code> prefix flag or <var>loglevel</var>:
  330. </p><div class="example">
  331. <pre class="example">ffmpeg [...] -loglevel +repeat
  332. </pre></div>
  333. <p>By default the program logs to stderr. If coloring is supported by the
  334. terminal, colors are used to mark errors and warnings. Log coloring
  335. can be disabled setting the environment variable
  336. <code>AV_LOG_FORCE_NOCOLOR</code>, or can be forced setting
  337. the environment variable <code>AV_LOG_FORCE_COLOR</code>.
  338. </p>
  339. </dd>
  340. <dt>&lsquo;<samp>-report</samp>&rsquo;</dt>
  341. <dd><p>Dump full command line and log output to a file named
  342. <code><var>program</var>-<var>YYYYMMDD</var>-<var>HHMMSS</var>.log</code> in the current
  343. directory.
  344. This file can be useful for bug reports.
  345. It also implies <code>-loglevel debug</code>.
  346. </p>
  347. <p>Setting the environment variable <code>FFREPORT</code> to any value has the
  348. same effect. If the value is a &rsquo;:&rsquo;-separated key=value sequence, these
  349. options will affect the report; option values must be escaped if they
  350. contain special characters or the options delimiter &rsquo;:&rsquo; (see the
  351. &ldquo;Quoting and escaping&rdquo; section in the ffmpeg-utils manual).
  352. </p>
  353. <p>The following options are recognized:
  354. </p><dl compact="compact">
  355. <dt>&lsquo;<samp>file</samp>&rsquo;</dt>
  356. <dd><p>set the file name to use for the report; <code>%p</code> is expanded to the name
  357. of the program, <code>%t</code> is expanded to a timestamp, <code>%%</code> is expanded
  358. to a plain <code>%</code>
  359. </p></dd>
  360. <dt>&lsquo;<samp>level</samp>&rsquo;</dt>
  361. <dd><p>set the log verbosity level using a numerical value (see <code>-loglevel</code>).
  362. </p></dd>
  363. </dl>
  364. <p>For example, to output a report to a file named &lsquo;<tt>ffreport.log</tt>&rsquo;
  365. using a log level of <code>32</code> (alias for log level <code>info</code>):
  366. </p>
  367. <div class="example">
  368. <pre class="example">FFREPORT=file=ffreport.log:level=32 ffmpeg -i input output
  369. </pre></div>
  370. <p>Errors in parsing the environment variable are not fatal, and will not
  371. appear in the report.
  372. </p>
  373. </dd>
  374. <dt>&lsquo;<samp>-hide_banner</samp>&rsquo;</dt>
  375. <dd><p>Suppress printing banner.
  376. </p>
  377. <p>All FFmpeg tools will normally show a copyright notice, build options
  378. and library versions. This option can be used to suppress printing
  379. this information.
  380. </p>
  381. </dd>
  382. <dt>&lsquo;<samp>-cpuflags flags (<em>global</em>)</samp>&rsquo;</dt>
  383. <dd><p>Allows setting and clearing cpu flags. This option is intended
  384. for testing. Do not use it unless you know what you&rsquo;re doing.
  385. </p><div class="example">
  386. <pre class="example">ffmpeg -cpuflags -sse+mmx ...
  387. ffmpeg -cpuflags mmx ...
  388. ffmpeg -cpuflags 0 ...
  389. </pre></div>
  390. <p>Possible flags for this option are:
  391. </p><dl compact="compact">
  392. <dt>&lsquo;<samp>x86</samp>&rsquo;</dt>
  393. <dd><dl compact="compact">
  394. <dt>&lsquo;<samp>mmx</samp>&rsquo;</dt>
  395. <dt>&lsquo;<samp>mmxext</samp>&rsquo;</dt>
  396. <dt>&lsquo;<samp>sse</samp>&rsquo;</dt>
  397. <dt>&lsquo;<samp>sse2</samp>&rsquo;</dt>
  398. <dt>&lsquo;<samp>sse2slow</samp>&rsquo;</dt>
  399. <dt>&lsquo;<samp>sse3</samp>&rsquo;</dt>
  400. <dt>&lsquo;<samp>sse3slow</samp>&rsquo;</dt>
  401. <dt>&lsquo;<samp>ssse3</samp>&rsquo;</dt>
  402. <dt>&lsquo;<samp>atom</samp>&rsquo;</dt>
  403. <dt>&lsquo;<samp>sse4.1</samp>&rsquo;</dt>
  404. <dt>&lsquo;<samp>sse4.2</samp>&rsquo;</dt>
  405. <dt>&lsquo;<samp>avx</samp>&rsquo;</dt>
  406. <dt>&lsquo;<samp>avx2</samp>&rsquo;</dt>
  407. <dt>&lsquo;<samp>xop</samp>&rsquo;</dt>
  408. <dt>&lsquo;<samp>fma3</samp>&rsquo;</dt>
  409. <dt>&lsquo;<samp>fma4</samp>&rsquo;</dt>
  410. <dt>&lsquo;<samp>3dnow</samp>&rsquo;</dt>
  411. <dt>&lsquo;<samp>3dnowext</samp>&rsquo;</dt>
  412. <dt>&lsquo;<samp>bmi1</samp>&rsquo;</dt>
  413. <dt>&lsquo;<samp>bmi2</samp>&rsquo;</dt>
  414. <dt>&lsquo;<samp>cmov</samp>&rsquo;</dt>
  415. </dl>
  416. </dd>
  417. <dt>&lsquo;<samp>ARM</samp>&rsquo;</dt>
  418. <dd><dl compact="compact">
  419. <dt>&lsquo;<samp>armv5te</samp>&rsquo;</dt>
  420. <dt>&lsquo;<samp>armv6</samp>&rsquo;</dt>
  421. <dt>&lsquo;<samp>armv6t2</samp>&rsquo;</dt>
  422. <dt>&lsquo;<samp>vfp</samp>&rsquo;</dt>
  423. <dt>&lsquo;<samp>vfpv3</samp>&rsquo;</dt>
  424. <dt>&lsquo;<samp>neon</samp>&rsquo;</dt>
  425. <dt>&lsquo;<samp>setend</samp>&rsquo;</dt>
  426. </dl>
  427. </dd>
  428. <dt>&lsquo;<samp>AArch64</samp>&rsquo;</dt>
  429. <dd><dl compact="compact">
  430. <dt>&lsquo;<samp>armv8</samp>&rsquo;</dt>
  431. <dt>&lsquo;<samp>vfp</samp>&rsquo;</dt>
  432. <dt>&lsquo;<samp>neon</samp>&rsquo;</dt>
  433. </dl>
  434. </dd>
  435. <dt>&lsquo;<samp>PowerPC</samp>&rsquo;</dt>
  436. <dd><dl compact="compact">
  437. <dt>&lsquo;<samp>altivec</samp>&rsquo;</dt>
  438. </dl>
  439. </dd>
  440. <dt>&lsquo;<samp>Specific Processors</samp>&rsquo;</dt>
  441. <dd><dl compact="compact">
  442. <dt>&lsquo;<samp>pentium2</samp>&rsquo;</dt>
  443. <dt>&lsquo;<samp>pentium3</samp>&rsquo;</dt>
  444. <dt>&lsquo;<samp>pentium4</samp>&rsquo;</dt>
  445. <dt>&lsquo;<samp>k6</samp>&rsquo;</dt>
  446. <dt>&lsquo;<samp>k62</samp>&rsquo;</dt>
  447. <dt>&lsquo;<samp>athlon</samp>&rsquo;</dt>
  448. <dt>&lsquo;<samp>athlonxp</samp>&rsquo;</dt>
  449. <dt>&lsquo;<samp>k8</samp>&rsquo;</dt>
  450. </dl>
  451. </dd>
  452. </dl>
  453. </dd>
  454. </dl>
  455. <a name="AVOptions"></a>
  456. <h2 class="section"><a href="ffplay.html#toc-AVOptions">3.3 AVOptions</a></h2>
  457. <p>These options are provided directly by the libavformat, libavdevice and
  458. libavcodec libraries. To see the list of available AVOptions, use the
  459. &lsquo;<samp>-help</samp>&rsquo; option. They are separated into two categories:
  460. </p><dl compact="compact">
  461. <dt>&lsquo;<samp>generic</samp>&rsquo;</dt>
  462. <dd><p>These options can be set for any container, codec or device. Generic options
  463. are listed under AVFormatContext options for containers/devices and under
  464. AVCodecContext options for codecs.
  465. </p></dd>
  466. <dt>&lsquo;<samp>private</samp>&rsquo;</dt>
  467. <dd><p>These options are specific to the given container, device or codec. Private
  468. options are listed under their corresponding containers/devices/codecs.
  469. </p></dd>
  470. </dl>
  471. <p>For example to write an ID3v2.3 header instead of a default ID3v2.4 to
  472. an MP3 file, use the &lsquo;<samp>id3v2_version</samp>&rsquo; private option of the MP3
  473. muxer:
  474. </p><div class="example">
  475. <pre class="example">ffmpeg -i input.flac -id3v2_version 3 out.mp3
  476. </pre></div>
  477. <p>All codec AVOptions are per-stream, and thus a stream specifier
  478. should be attached to them:
  479. </p><div class="example">
  480. <pre class="example">ffmpeg -i multichannel.mxf -map 0:v:0 -map 0:a:0 -map 0:a:0 -c:a:0 ac3 -b:a:0 640k -ac:a:1 2 -c:a:1 aac -b:2 128k out.mp4
  481. </pre></div>
  482. <p>In the above example, a multichannel audio stream is mapped twice for output.
  483. The first instance is encoded with codec ac3 and bitrate 640k.
  484. The second instance is downmixed to 2 channels and encoded with codec aac. A bitrate of 128k is specified for it using
  485. absolute index of the output stream.
  486. </p>
  487. <p>Note: the &lsquo;<samp>-nooption</samp>&rsquo; syntax cannot be used for boolean
  488. AVOptions, use &lsquo;<samp>-option 0</samp>&rsquo;/&lsquo;<samp>-option 1</samp>&rsquo;.
  489. </p>
  490. <p>Note: the old undocumented way of specifying per-stream AVOptions by
  491. prepending v/a/s to the options name is now obsolete and will be
  492. removed soon.
  493. </p>
  494. <a name="Main-options"></a>
  495. <h2 class="section"><a href="ffplay.html#toc-Main-options">3.4 Main options</a></h2>
  496. <dl compact="compact">
  497. <dt>&lsquo;<samp>-x <var>width</var></samp>&rsquo;</dt>
  498. <dd><p>Force displayed width.
  499. </p></dd>
  500. <dt>&lsquo;<samp>-y <var>height</var></samp>&rsquo;</dt>
  501. <dd><p>Force displayed height.
  502. </p></dd>
  503. <dt>&lsquo;<samp>-s <var>size</var></samp>&rsquo;</dt>
  504. <dd><p>Set frame size (WxH or abbreviation), needed for videos which do
  505. not contain a header with the frame size like raw YUV. This option
  506. has been deprecated in favor of private options, try -video_size.
  507. </p></dd>
  508. <dt>&lsquo;<samp>-fs</samp>&rsquo;</dt>
  509. <dd><p>Start in fullscreen mode.
  510. </p></dd>
  511. <dt>&lsquo;<samp>-an</samp>&rsquo;</dt>
  512. <dd><p>Disable audio.
  513. </p></dd>
  514. <dt>&lsquo;<samp>-vn</samp>&rsquo;</dt>
  515. <dd><p>Disable video.
  516. </p></dd>
  517. <dt>&lsquo;<samp>-sn</samp>&rsquo;</dt>
  518. <dd><p>Disable subtitles.
  519. </p></dd>
  520. <dt>&lsquo;<samp>-ss <var>pos</var></samp>&rsquo;</dt>
  521. <dd><p>Seek to <var>pos</var>. Note that in most formats it is not possible to seek
  522. exactly, so <code>ffplay</code> will seek to the nearest seek point to
  523. <var>pos</var>.
  524. </p>
  525. <p><var>pos</var> must be a time duration specification,
  526. see <a href="ffmpeg-utils.html#time-duration-syntax">(ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual</a>.
  527. </p></dd>
  528. <dt>&lsquo;<samp>-t <var>duration</var></samp>&rsquo;</dt>
  529. <dd><p>Play <var>duration</var> seconds of audio/video.
  530. </p>
  531. <p><var>duration</var> must be a time duration specification,
  532. see <a href="ffmpeg-utils.html#time-duration-syntax">(ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual</a>.
  533. </p></dd>
  534. <dt>&lsquo;<samp>-bytes</samp>&rsquo;</dt>
  535. <dd><p>Seek by bytes.
  536. </p></dd>
  537. <dt>&lsquo;<samp>-seek_interval</samp>&rsquo;</dt>
  538. <dd><p>Set custom interval, in seconds, for seeking using left/right keys. Default is 10 seconds.
  539. </p></dd>
  540. <dt>&lsquo;<samp>-nodisp</samp>&rsquo;</dt>
  541. <dd><p>Disable graphical display.
  542. </p></dd>
  543. <dt>&lsquo;<samp>-noborder</samp>&rsquo;</dt>
  544. <dd><p>Borderless window.
  545. </p></dd>
  546. <dt>&lsquo;<samp>-alwaysontop</samp>&rsquo;</dt>
  547. <dd><p>Window always on top. Available on: X11 with SDL &gt;= 2.0.5, Windows SDL &gt;= 2.0.6.
  548. </p></dd>
  549. <dt>&lsquo;<samp>-volume</samp>&rsquo;</dt>
  550. <dd><p>Set the startup volume. 0 means silence, 100 means no volume reduction or
  551. amplification. Negative values are treated as 0, values above 100 are treated
  552. as 100.
  553. </p></dd>
  554. <dt>&lsquo;<samp>-f <var>fmt</var></samp>&rsquo;</dt>
  555. <dd><p>Force format.
  556. </p></dd>
  557. <dt>&lsquo;<samp>-window_title <var>title</var></samp>&rsquo;</dt>
  558. <dd><p>Set window title (default is the input filename).
  559. </p></dd>
  560. <dt>&lsquo;<samp>-left <var>title</var></samp>&rsquo;</dt>
  561. <dd><p>Set the x position for the left of the window (default is a centered window).
  562. </p></dd>
  563. <dt>&lsquo;<samp>-top <var>title</var></samp>&rsquo;</dt>
  564. <dd><p>Set the y position for the top of the window (default is a centered window).
  565. </p></dd>
  566. <dt>&lsquo;<samp>-loop <var>number</var></samp>&rsquo;</dt>
  567. <dd><p>Loops movie playback &lt;number&gt; times. 0 means forever.
  568. </p></dd>
  569. <dt>&lsquo;<samp>-showmode <var>mode</var></samp>&rsquo;</dt>
  570. <dd><p>Set the show mode to use.
  571. Available values for <var>mode</var> are:
  572. </p><dl compact="compact">
  573. <dt>&lsquo;<samp>0, video</samp>&rsquo;</dt>
  574. <dd><p>show video
  575. </p></dd>
  576. <dt>&lsquo;<samp>1, waves</samp>&rsquo;</dt>
  577. <dd><p>show audio waves
  578. </p></dd>
  579. <dt>&lsquo;<samp>2, rdft</samp>&rsquo;</dt>
  580. <dd><p>show audio frequency band using RDFT ((Inverse) Real Discrete Fourier Transform)
  581. </p></dd>
  582. </dl>
  583. <p>Default value is &quot;video&quot;, if video is not present or cannot be played
  584. &quot;rdft&quot; is automatically selected.
  585. </p>
  586. <p>You can interactively cycle through the available show modes by
  587. pressing the key &lt;w&gt;.
  588. </p>
  589. </dd>
  590. <dt>&lsquo;<samp>-vf <var>filtergraph</var></samp>&rsquo;</dt>
  591. <dd><p>Create the filtergraph specified by <var>filtergraph</var> and use it to
  592. filter the video stream.
  593. </p>
  594. <p><var>filtergraph</var> is a description of the filtergraph to apply to
  595. the stream, and must have a single video input and a single video
  596. output. In the filtergraph, the input is associated to the label
  597. <code>in</code>, and the output to the label <code>out</code>. See the
  598. ffmpeg-filters manual for more information about the filtergraph
  599. syntax.
  600. </p>
  601. <p>You can specify this parameter multiple times and cycle through the specified
  602. filtergraphs along with the show modes by pressing the key &lt;w&gt;.
  603. </p>
  604. </dd>
  605. <dt>&lsquo;<samp>-af <var>filtergraph</var></samp>&rsquo;</dt>
  606. <dd><p><var>filtergraph</var> is a description of the filtergraph to apply to
  607. the input audio.
  608. Use the option &quot;-filters&quot; to show all the available filters (including
  609. sources and sinks).
  610. </p>
  611. </dd>
  612. <dt>&lsquo;<samp>-i <var>input_url</var></samp>&rsquo;</dt>
  613. <dd><p>Read <var>input_url</var>.
  614. </p></dd>
  615. </dl>
  616. <a name="Advanced-options"></a>
  617. <h2 class="section"><a href="ffplay.html#toc-Advanced-options">3.5 Advanced options</a></h2>
  618. <dl compact="compact">
  619. <dt>&lsquo;<samp>-pix_fmt <var>format</var></samp>&rsquo;</dt>
  620. <dd><p>Set pixel format.
  621. This option has been deprecated in favor of private options, try -pixel_format.
  622. </p>
  623. </dd>
  624. <dt>&lsquo;<samp>-stats</samp>&rsquo;</dt>
  625. <dd><p>Print several playback statistics, in particular show the stream
  626. duration, the codec parameters, the current position in the stream and
  627. the audio/video synchronisation drift. It is on by default, to
  628. explicitly disable it you need to specify <code>-nostats</code>.
  629. </p>
  630. </dd>
  631. <dt>&lsquo;<samp>-fast</samp>&rsquo;</dt>
  632. <dd><p>Non-spec-compliant optimizations.
  633. </p></dd>
  634. <dt>&lsquo;<samp>-genpts</samp>&rsquo;</dt>
  635. <dd><p>Generate pts.
  636. </p></dd>
  637. <dt>&lsquo;<samp>-sync <var>type</var></samp>&rsquo;</dt>
  638. <dd><p>Set the master clock to audio (<code>type=audio</code>), video
  639. (<code>type=video</code>) or external (<code>type=ext</code>). Default is audio. The
  640. master clock is used to control audio-video synchronization. Most media
  641. players use audio as master clock, but in some cases (streaming or high
  642. quality broadcast) it is necessary to change that. This option is mainly
  643. used for debugging purposes.
  644. </p></dd>
  645. <dt>&lsquo;<samp>-ast <var>audio_stream_specifier</var></samp>&rsquo;</dt>
  646. <dd><p>Select the desired audio stream using the given stream specifier. The stream
  647. specifiers are described in the <a href="#Stream-specifiers">Stream specifiers</a> chapter. If this option
  648. is not specified, the &quot;best&quot; audio stream is selected in the program of the
  649. already selected video stream.
  650. </p></dd>
  651. <dt>&lsquo;<samp>-vst <var>video_stream_specifier</var></samp>&rsquo;</dt>
  652. <dd><p>Select the desired video stream using the given stream specifier. The stream
  653. specifiers are described in the <a href="#Stream-specifiers">Stream specifiers</a> chapter. If this option
  654. is not specified, the &quot;best&quot; video stream is selected.
  655. </p></dd>
  656. <dt>&lsquo;<samp>-sst <var>subtitle_stream_specifier</var></samp>&rsquo;</dt>
  657. <dd><p>Select the desired subtitle stream using the given stream specifier. The stream
  658. specifiers are described in the <a href="#Stream-specifiers">Stream specifiers</a> chapter. If this option
  659. is not specified, the &quot;best&quot; subtitle stream is selected in the program of the
  660. already selected video or audio stream.
  661. </p></dd>
  662. <dt>&lsquo;<samp>-autoexit</samp>&rsquo;</dt>
  663. <dd><p>Exit when video is done playing.
  664. </p></dd>
  665. <dt>&lsquo;<samp>-exitonkeydown</samp>&rsquo;</dt>
  666. <dd><p>Exit if any key is pressed.
  667. </p></dd>
  668. <dt>&lsquo;<samp>-exitonmousedown</samp>&rsquo;</dt>
  669. <dd><p>Exit if any mouse button is pressed.
  670. </p>
  671. </dd>
  672. <dt>&lsquo;<samp>-codec:<var>media_specifier</var> <var>codec_name</var></samp>&rsquo;</dt>
  673. <dd><p>Force a specific decoder implementation for the stream identified by
  674. <var>media_specifier</var>, which can assume the values <code>a</code> (audio),
  675. <code>v</code> (video), and <code>s</code> subtitle.
  676. </p>
  677. </dd>
  678. <dt>&lsquo;<samp>-acodec <var>codec_name</var></samp>&rsquo;</dt>
  679. <dd><p>Force a specific audio decoder.
  680. </p>
  681. </dd>
  682. <dt>&lsquo;<samp>-vcodec <var>codec_name</var></samp>&rsquo;</dt>
  683. <dd><p>Force a specific video decoder.
  684. </p>
  685. </dd>
  686. <dt>&lsquo;<samp>-scodec <var>codec_name</var></samp>&rsquo;</dt>
  687. <dd><p>Force a specific subtitle decoder.
  688. </p>
  689. </dd>
  690. <dt>&lsquo;<samp>-autorotate</samp>&rsquo;</dt>
  691. <dd><p>Automatically rotate the video according to file metadata. Enabled by
  692. default, use &lsquo;<samp>-noautorotate</samp>&rsquo; to disable it.
  693. </p>
  694. </dd>
  695. <dt>&lsquo;<samp>-framedrop</samp>&rsquo;</dt>
  696. <dd><p>Drop video frames if video is out of sync. Enabled by default if the master
  697. clock is not set to video. Use this option to enable frame dropping for all
  698. master clock sources, use &lsquo;<samp>-noframedrop</samp>&rsquo; to disable it.
  699. </p>
  700. </dd>
  701. <dt>&lsquo;<samp>-infbuf</samp>&rsquo;</dt>
  702. <dd><p>Do not limit the input buffer size, read as much data as possible from the
  703. input as soon as possible. Enabled by default for realtime streams, where data
  704. may be dropped if not read in time. Use this option to enable infinite buffers
  705. for all inputs, use &lsquo;<samp>-noinfbuf</samp>&rsquo; to disable it.
  706. </p>
  707. </dd>
  708. <dt>&lsquo;<samp>-filter_threads <var>nb_threads</var></samp>&rsquo;</dt>
  709. <dd><p>Defines how many threads are used to process a filter pipeline. Each pipeline
  710. will produce a thread pool with this many threads available for parallel
  711. processing. The default is 0 which means that the thread count will be
  712. determined by the number of available CPUs.
  713. </p>
  714. </dd>
  715. </dl>
  716. <a name="While-playing"></a>
  717. <h2 class="section"><a href="ffplay.html#toc-While-playing">3.6 While playing</a></h2>
  718. <dl compact="compact">
  719. <dt>&lt;q, ESC&gt;</dt>
  720. <dd><p>Quit.
  721. </p>
  722. </dd>
  723. <dt>&lt;f&gt;</dt>
  724. <dd><p>Toggle full screen.
  725. </p>
  726. </dd>
  727. <dt>&lt;p, SPC&gt;</dt>
  728. <dd><p>Pause.
  729. </p>
  730. </dd>
  731. <dt>&lt;m&gt;</dt>
  732. <dd><p>Toggle mute.
  733. </p>
  734. </dd>
  735. <dt>&lt;9, 0&gt;</dt>
  736. <dd><p>Decrease and increase volume respectively.
  737. </p>
  738. </dd>
  739. <dt>&lt;/, *&gt;</dt>
  740. <dd><p>Decrease and increase volume respectively.
  741. </p>
  742. </dd>
  743. <dt>&lt;a&gt;</dt>
  744. <dd><p>Cycle audio channel in the current program.
  745. </p>
  746. </dd>
  747. <dt>&lt;v&gt;</dt>
  748. <dd><p>Cycle video channel.
  749. </p>
  750. </dd>
  751. <dt>&lt;t&gt;</dt>
  752. <dd><p>Cycle subtitle channel in the current program.
  753. </p>
  754. </dd>
  755. <dt>&lt;c&gt;</dt>
  756. <dd><p>Cycle program.
  757. </p>
  758. </dd>
  759. <dt>&lt;w&gt;</dt>
  760. <dd><p>Cycle video filters or show modes.
  761. </p>
  762. </dd>
  763. <dt>&lt;s&gt;</dt>
  764. <dd><p>Step to the next frame.
  765. </p>
  766. <p>Pause if the stream is not already paused, step to the next video
  767. frame, and pause.
  768. </p>
  769. </dd>
  770. <dt>&lt;left/right&gt;</dt>
  771. <dd><p>Seek backward/forward 10 seconds.
  772. </p>
  773. </dd>
  774. <dt>&lt;down/up&gt;</dt>
  775. <dd><p>Seek backward/forward 1 minute.
  776. </p>
  777. </dd>
  778. <dt>&lt;page down/page up&gt;</dt>
  779. <dd><p>Seek to the previous/next chapter.
  780. or if there are no chapters
  781. Seek backward/forward 10 minutes.
  782. </p>
  783. </dd>
  784. <dt>&lt;right mouse click&gt;</dt>
  785. <dd><p>Seek to percentage in file corresponding to fraction of width.
  786. </p>
  787. </dd>
  788. <dt>&lt;left mouse double-click&gt;</dt>
  789. <dd><p>Toggle full screen.
  790. </p>
  791. </dd>
  792. </dl>
  793. <a name="See-Also"></a>
  794. <h1 class="chapter"><a href="ffplay.html#toc-See-Also">4 See Also</a></h1>
  795. <p><a href="ffplay-all.html">ffmpeg-all</a>,
  796. <a href="ffmpeg.html">ffmpeg</a>, <a href="ffprobe.html">ffprobe</a>,
  797. <a href="ffmpeg-utils.html">ffmpeg-utils</a>,
  798. <a href="ffmpeg-scaler.html">ffmpeg-scaler</a>,
  799. <a href="ffmpeg-resampler.html">ffmpeg-resampler</a>,
  800. <a href="ffmpeg-codecs.html">ffmpeg-codecs</a>,
  801. <a href="ffmpeg-bitstream-filters.html">ffmpeg-bitstream-filters</a>,
  802. <a href="ffmpeg-formats.html">ffmpeg-formats</a>,
  803. <a href="ffmpeg-devices.html">ffmpeg-devices</a>,
  804. <a href="ffmpeg-protocols.html">ffmpeg-protocols</a>,
  805. <a href="ffmpeg-filters.html">ffmpeg-filters</a>
  806. </p>
  807. <a name="Authors"></a>
  808. <h1 class="chapter"><a href="ffplay.html#toc-Authors">5 Authors</a></h1>
  809. <p>The FFmpeg developers.
  810. </p>
  811. <p>For details about the authorship, see the Git history of the project
  812. (git://source.ffmpeg.org/ffmpeg), e.g. by typing the command
  813. <code>git log</code> in the FFmpeg source directory, or browsing the
  814. online repository at <a href="http://source.ffmpeg.org">http://source.ffmpeg.org</a>.
  815. </p>
  816. <p>Maintainers for the specific components are listed in the file
  817. &lsquo;<tt>MAINTAINERS</tt>&rsquo; in the source code tree.
  818. </p>
  819. </div>
  820. </body>
  821. </html>