Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
ffplay.html922 linesDownload Raw Back to doc
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 7.1.1 -->4  <head>5    <meta charset="utf-8">6    <title>7      ffplay Documentation8    </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      ffplay Documentation17      </h1>18 19 20<a name="SEC_Top"></a>21 22<div class="element-contents" id="SEC_Contents">23<h2 class="contents-heading">Table of Contents</h2>24 25<div class="contents">26 27<ul class="toc-numbered-mark">28  <li><a id="toc-Synopsis" href="#Synopsis">1 Synopsis</a></li>29  <li><a id="toc-Description" href="#Description">2 Description</a></li>30  <li><a id="toc-Options" href="#Options">3 Options</a>31  <ul class="toc-numbered-mark">32    <li><a id="toc-Stream-specifiers-1" href="#Stream-specifiers-1">3.1 Stream specifiers</a></li>33    <li><a id="toc-Generic-options" href="#Generic-options">3.2 Generic options</a></li>34    <li><a id="toc-AVOptions" href="#AVOptions">3.3 AVOptions</a></li>35    <li><a id="toc-Main-options" href="#Main-options">3.4 Main options</a></li>36    <li><a id="toc-Advanced-options" href="#Advanced-options">3.5 Advanced options</a></li>37    <li><a id="toc-While-playing" href="#While-playing">3.6 While playing</a></li>38  </ul></li>39  <li><a id="toc-See-Also" href="#See-Also">4 See Also</a></li>40  <li><a id="toc-Authors" href="#Authors">5 Authors</a></li>41</ul>42</div>43</div>44 45<a name="Synopsis"></a>46<h2 class="chapter">1 Synopsis<span class="pull-right"><a class="anchor hidden-xs" href="#Synopsis" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Synopsis" aria-hidden="true">TOC</a></span></h2>47 48<p>ffplay [<var class="var">options</var>] [<samp class="file">input_url</samp>]49</p>50<a name="Description"></a>51<h2 class="chapter">2 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>52 53<p>FFplay is a very simple and portable media player using the FFmpeg54libraries and the SDL library. It is mostly used as a testbed for the55various FFmpeg APIs.56</p>57<a name="Options"></a>58<h2 class="chapter">3 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options" aria-hidden="true">TOC</a></span></h2>59 60<p>All the numerical options, if not specified otherwise, accept a string61representing a number as input, which may be followed by one of the SI62unit prefixes, for example: &rsquo;K&rsquo;, &rsquo;M&rsquo;, or &rsquo;G&rsquo;.63</p>64<p>If &rsquo;i&rsquo; is appended to the SI unit prefix, the complete prefix will be65interpreted as a unit prefix for binary multiples, which are based on66powers of 1024 instead of powers of 1000. Appending &rsquo;B&rsquo; to the SI unit67prefix multiplies the value by 8. This allows using, for example:68&rsquo;KB&rsquo;, &rsquo;MiB&rsquo;, &rsquo;G&rsquo; and &rsquo;B&rsquo; as number suffixes.69</p>70<p>Options which do not take arguments are boolean options, and set the71corresponding value to true. They can be set to false by prefixing72the option name with &quot;no&quot;. For example using &quot;-nofoo&quot;73will set the boolean option with name &quot;foo&quot; to false.74</p>75<p>Options that take arguments support a special syntax where the argument given on76the command line is interpreted as a path to the file from which the actual77argument value is loaded. To use this feature, add a forward slash &rsquo;/&rsquo;78immediately before the option name (after the leading dash). E.g.79</p><div class="example">80<pre class="example-preformatted">ffmpeg -i INPUT -/filter:v filter.script OUTPUT81</pre></div>82<p>will load a filtergraph description from the file named <samp class="file">filter.script</samp>.83</p>84<a class="anchor" id="Stream-specifiers"></a><a name="Stream-specifiers-1"></a>85<h3 class="section">3.1 Stream specifiers<span class="pull-right"><a class="anchor hidden-xs" href="#Stream-specifiers-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Stream-specifiers-1" aria-hidden="true">TOC</a></span></h3>86<p>Some options are applied per-stream, e.g. bitrate or codec. Stream specifiers87are used to precisely specify which stream(s) a given option belongs to.88</p>89<p>A stream specifier is a string generally appended to the option name and90separated from it by a colon. E.g. <code class="code">-codec:a:1 ac3</code> contains the91<code class="code">a:1</code> stream specifier, which matches the second audio stream. Therefore, it92would select the ac3 codec for the second audio stream.93</p>94<p>A stream specifier can match several streams, so that the option is applied to all95of them. E.g. the stream specifier in <code class="code">-b:a 128k</code> matches all audio96streams.97</p>98<p>An empty stream specifier matches all streams. For example, <code class="code">-codec copy</code>99or <code class="code">-codec: copy</code> would copy all the streams without reencoding.100</p>101<p>Possible forms of stream specifiers are:102</p><dl class="table">103<dt><samp class="option"><var class="var">stream_index</var></samp></dt>104<dd><p>Matches the stream with this index. E.g. <code class="code">-threads:1 4</code> would set the105thread count for the second stream to 4. If <var class="var">stream_index</var> is used as an106additional stream specifier (see below), then it selects stream number107<var class="var">stream_index</var> from the matching streams. Stream numbering is based on the108order of the streams as detected by libavformat except when a stream group109specifier or program ID is also specified. In this case it is based on the110ordering of the streams in the group or program.111</p></dd>112<dt><samp class="option"><var class="var">stream_type</var>[:<var class="var">additional_stream_specifier</var>]</samp></dt>113<dd><p><var class="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;114for subtitle, &rsquo;d&rsquo; for data, and &rsquo;t&rsquo; for attachments. &rsquo;v&rsquo; matches all video115streams, &rsquo;V&rsquo; only matches video streams which are not attached pictures, video116thumbnails or cover arts. If <var class="var">additional_stream_specifier</var> is used, then117it matches streams which both have this type and match the118<var class="var">additional_stream_specifier</var>. Otherwise, it matches all streams of the119specified type.120</p></dd>121<dt><samp class="option">g:<var class="var">group_specifier</var>[:<var class="var">additional_stream_specifier</var>]</samp></dt>122<dd><p>Matches streams which are in the group with the specifier <var class="var">group_specifier</var>.123if <var class="var">additional_stream_specifier</var> is used, then it matches streams which both124are part of the group and match the <var class="var">additional_stream_specifier</var>.125<var class="var">group_specifier</var> may be one of the following:126</p><dl class="table">127<dt><samp class="option"><var class="var">group_index</var></samp></dt>128<dd><p>Match the stream with this group index.129</p></dd>130<dt><samp class="option">#<var class="var">group_id</var> or i:<var class="var">group_id</var></samp></dt>131<dd><p>Match the stream with this group id.132</p></dd>133</dl>134</dd>135<dt><samp class="option">p:<var class="var">program_id</var>[:<var class="var">additional_stream_specifier</var>]</samp></dt>136<dd><p>Matches streams which are in the program with the id <var class="var">program_id</var>. If137<var class="var">additional_stream_specifier</var> is used, then it matches streams which both138are part of the program and match the <var class="var">additional_stream_specifier</var>.139</p>140</dd>141<dt><samp class="option">#<var class="var">stream_id</var> or i:<var class="var">stream_id</var></samp></dt>142<dd><p>Match the stream by stream id (e.g. PID in MPEG-TS container).143</p></dd>144<dt><samp class="option">m:<var class="var">key</var>[:<var class="var">value</var>]</samp></dt>145<dd><p>Matches streams with the metadata tag <var class="var">key</var> having the specified value. If146<var class="var">value</var> is not given, matches streams that contain the given tag with any147value. The colon character &rsquo;:&rsquo; in <var class="var">key</var> or <var class="var">value</var> needs to be148backslash-escaped.149</p></dd>150<dt><samp class="option">disp:<var class="var">dispositions</var>[:<var class="var">additional_stream_specifier</var>]</samp></dt>151<dd><p>Matches streams with the given disposition(s). <var class="var">dispositions</var> is a list of152one or more dispositions (as printed by the <samp class="option">-dispositions</samp> option)153joined with &rsquo;+&rsquo;.154</p></dd>155<dt><samp class="option">u</samp></dt>156<dd><p>Matches streams with usable configuration, the codec must be defined and the157essential information such as video dimension or audio sample rate must be present.158</p>159<p>Note that in <code class="command">ffmpeg</code>, matching by metadata will only work properly for160input files.161</p></dd>162</dl>163 164<a name="Generic-options"></a>165<h3 class="section">3.2 Generic options<span class="pull-right"><a class="anchor hidden-xs" href="#Generic-options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Generic-options" aria-hidden="true">TOC</a></span></h3>166 167<p>These options are shared amongst the ff* tools.168</p>169<dl class="table">170<dt><samp class="option">-L, -license</samp></dt>171<dd><p>Show license.172</p>173</dd>174<dt><samp class="option">-h, -?, -help, --help [<var class="var">arg</var>]</samp></dt>175<dd><p>Show help. An optional parameter may be specified to print help about a specific176item. If no argument is specified, only basic (non advanced) tool177options are shown.178</p>179<p>Possible values of <var class="var">arg</var> are:180</p><dl class="table">181<dt><samp class="option">long</samp></dt>182<dd><p>Print advanced tool options in addition to the basic tool options.183</p>184</dd>185<dt><samp class="option">full</samp></dt>186<dd><p>Print complete list of options, including shared and private options187for encoders, decoders, demuxers, muxers, filters, etc.188</p>189</dd>190<dt><samp class="option">decoder=<var class="var">decoder_name</var></samp></dt>191<dd><p>Print detailed information about the decoder named <var class="var">decoder_name</var>. Use the192<samp class="option">-decoders</samp> option to get a list of all decoders.193</p>194</dd>195<dt><samp class="option">encoder=<var class="var">encoder_name</var></samp></dt>196<dd><p>Print detailed information about the encoder named <var class="var">encoder_name</var>. Use the197<samp class="option">-encoders</samp> option to get a list of all encoders.198</p>199</dd>200<dt><samp class="option">demuxer=<var class="var">demuxer_name</var></samp></dt>201<dd><p>Print detailed information about the demuxer named <var class="var">demuxer_name</var>. Use the202<samp class="option">-formats</samp> option to get a list of all demuxers and muxers.203</p>204</dd>205<dt><samp class="option">muxer=<var class="var">muxer_name</var></samp></dt>206<dd><p>Print detailed information about the muxer named <var class="var">muxer_name</var>. Use the207<samp class="option">-formats</samp> option to get a list of all muxers and demuxers.208</p>209</dd>210<dt><samp class="option">filter=<var class="var">filter_name</var></samp></dt>211<dd><p>Print detailed information about the filter named <var class="var">filter_name</var>. Use the212<samp class="option">-filters</samp> option to get a list of all filters.213</p>214</dd>215<dt><samp class="option">bsf=<var class="var">bitstream_filter_name</var></samp></dt>216<dd><p>Print detailed information about the bitstream filter named <var class="var">bitstream_filter_name</var>.217Use the <samp class="option">-bsfs</samp> option to get a list of all bitstream filters.218</p>219</dd>220<dt><samp class="option">protocol=<var class="var">protocol_name</var></samp></dt>221<dd><p>Print detailed information about the protocol named <var class="var">protocol_name</var>.222Use the <samp class="option">-protocols</samp> option to get a list of all protocols.223</p></dd>224</dl>225 226</dd>227<dt><samp class="option">-version</samp></dt>228<dd><p>Show version.229</p>230</dd>231<dt><samp class="option">-buildconf</samp></dt>232<dd><p>Show the build configuration, one option per line.233</p>234</dd>235<dt><samp class="option">-formats</samp></dt>236<dd><p>Show available formats (including devices).237</p>238</dd>239<dt><samp class="option">-demuxers</samp></dt>240<dd><p>Show available demuxers.241</p>242</dd>243<dt><samp class="option">-muxers</samp></dt>244<dd><p>Show available muxers.245</p>246</dd>247<dt><samp class="option">-devices</samp></dt>248<dd><p>Show available devices.249</p>250</dd>251<dt><samp class="option">-codecs</samp></dt>252<dd><p>Show all codecs known to libavcodec.253</p>254<p>Note that the term &rsquo;codec&rsquo; is used throughout this documentation as a shortcut255for what is more correctly called a media bitstream format.256</p>257</dd>258<dt><samp class="option">-decoders</samp></dt>259<dd><p>Show available decoders.260</p>261</dd>262<dt><samp class="option">-encoders</samp></dt>263<dd><p>Show all available encoders.264</p>265</dd>266<dt><samp class="option">-bsfs</samp></dt>267<dd><p>Show available bitstream filters.268</p>269</dd>270<dt><samp class="option">-protocols</samp></dt>271<dd><p>Show available protocols.272</p>273</dd>274<dt><samp class="option">-filters</samp></dt>275<dd><p>Show available libavfilter filters.276</p>277</dd>278<dt><samp class="option">-pix_fmts</samp></dt>279<dd><p>Show available pixel formats.280</p>281</dd>282<dt><samp class="option">-sample_fmts</samp></dt>283<dd><p>Show available sample formats.284</p>285</dd>286<dt><samp class="option">-layouts</samp></dt>287<dd><p>Show channel names and standard channel layouts.288</p>289</dd>290<dt><samp class="option">-dispositions</samp></dt>291<dd><p>Show stream dispositions.292</p>293</dd>294<dt><samp class="option">-colors</samp></dt>295<dd><p>Show recognized color names.296</p>297</dd>298<dt><samp class="option">-sources <var class="var">device</var>[,<var class="var">opt1</var>=<var class="var">val1</var>[,<var class="var">opt2</var>=<var class="var">val2</var>]...]</samp></dt>299<dd><p>Show autodetected sources of the input device.300Some devices may provide system-dependent source names that cannot be autodetected.301The returned list cannot be assumed to be always complete.302</p><div class="example">303<pre class="example-preformatted">ffmpeg -sources pulse,server=192.168.0.4304</pre></div>305 306</dd>307<dt><samp class="option">-sinks <var class="var">device</var>[,<var class="var">opt1</var>=<var class="var">val1</var>[,<var class="var">opt2</var>=<var class="var">val2</var>]...]</samp></dt>308<dd><p>Show autodetected sinks of the output device.309Some devices may provide system-dependent sink names that cannot be autodetected.310The returned list cannot be assumed to be always complete.311</p><div class="example">312<pre class="example-preformatted">ffmpeg -sinks pulse,server=192.168.0.4313</pre></div>314 315</dd>316<dt><samp class="option">-loglevel [<var class="var">flags</var>+]<var class="var">loglevel</var> | -v [<var class="var">flags</var>+]<var class="var">loglevel</var></samp></dt>317<dd><p>Set logging level and flags used by the library.318</p>319<p>The optional <var class="var">flags</var> prefix can consist of the following values:320</p><dl class="table">321<dt>&lsquo;<samp class="samp">repeat</samp>&rsquo;</dt>322<dd><p>Indicates that repeated log output should not be compressed to the first line323and the &quot;Last message repeated n times&quot; line will be omitted.324</p></dd>325<dt>&lsquo;<samp class="samp">level</samp>&rsquo;</dt>326<dd><p>Indicates that log output should add a <code class="code">[level]</code> prefix to each message327line. This can be used as an alternative to log coloring, e.g. when dumping the328log to file.329</p></dd>330<dt>&lsquo;<samp class="samp">time</samp>&rsquo;</dt>331<dd><p>Indicates that log lines should be prefixed with time information.332</p></dd>333<dt>&lsquo;<samp class="samp">datetime</samp>&rsquo;</dt>334<dd><p>Indicates that log lines should be prefixed with date and time information.335</p></dd>336</dl>337<p>Flags can also be used alone by adding a &rsquo;+&rsquo;/&rsquo;-&rsquo; prefix to set/reset a single338flag without affecting other <var class="var">flags</var> or changing <var class="var">loglevel</var>. When339setting both <var class="var">flags</var> and <var class="var">loglevel</var>, a &rsquo;+&rsquo; separator is expected340between the last <var class="var">flags</var> value and before <var class="var">loglevel</var>.341</p>342<p><var class="var">loglevel</var> is a string or a number containing one of the following values:343</p><dl class="table">344<dt>&lsquo;<samp class="samp">quiet, -8</samp>&rsquo;</dt>345<dd><p>Show nothing at all; be silent.346</p></dd>347<dt>&lsquo;<samp class="samp">panic, 0</samp>&rsquo;</dt>348<dd><p>Only show fatal errors which could lead the process to crash, such as349an assertion failure. This is not currently used for anything.350</p></dd>351<dt>&lsquo;<samp class="samp">fatal, 8</samp>&rsquo;</dt>352<dd><p>Only show fatal errors. These are errors after which the process absolutely353cannot continue.354</p></dd>355<dt>&lsquo;<samp class="samp">error, 16</samp>&rsquo;</dt>356<dd><p>Show all errors, including ones which can be recovered from.357</p></dd>358<dt>&lsquo;<samp class="samp">warning, 24</samp>&rsquo;</dt>359<dd><p>Show all warnings and errors. Any message related to possibly360incorrect or unexpected events will be shown.361</p></dd>362<dt>&lsquo;<samp class="samp">info, 32</samp>&rsquo;</dt>363<dd><p>Show informative messages during processing. This is in addition to364warnings and errors. This is the default value.365</p></dd>366<dt>&lsquo;<samp class="samp">verbose, 40</samp>&rsquo;</dt>367<dd><p>Same as <code class="code">info</code>, except more verbose.368</p></dd>369<dt>&lsquo;<samp class="samp">debug, 48</samp>&rsquo;</dt>370<dd><p>Show everything, including debugging information.371</p></dd>372<dt>&lsquo;<samp class="samp">trace, 56</samp>&rsquo;</dt>373</dl>374 375<p>For example to enable repeated log output, add the <code class="code">level</code> prefix, and set376<var class="var">loglevel</var> to <code class="code">verbose</code>:377</p><div class="example">378<pre class="example-preformatted">ffmpeg -loglevel repeat+level+verbose -i input output379</pre></div>380<p>Another example that enables repeated log output without affecting current381state of <code class="code">level</code> prefix flag or <var class="var">loglevel</var>:382</p><div class="example">383<pre class="example-preformatted">ffmpeg [...] -loglevel +repeat384</pre></div>385 386<p>By default the program logs to stderr. If coloring is supported by the387terminal, colors are used to mark errors and warnings. Log coloring388can be disabled setting the environment variable389<code class="env">AV_LOG_FORCE_NOCOLOR</code>, or can be forced setting390the environment variable <code class="env">AV_LOG_FORCE_COLOR</code>.391</p>392</dd>393<dt><samp class="option">-report</samp></dt>394<dd><p>Dump full command line and log output to a file named395<code class="code"><var class="var">program</var>-<var class="var">YYYYMMDD</var>-<var class="var">HHMMSS</var>.log</code> in the current396directory.397This file can be useful for bug reports.398It also implies <code class="code">-loglevel debug</code>.399</p>400<p>Setting the environment variable <code class="env">FFREPORT</code> to any value has the401same effect. If the value is a &rsquo;:&rsquo;-separated key=value sequence, these402options will affect the report; option values must be escaped if they403contain special characters or the options delimiter &rsquo;:&rsquo; (see the404&ldquo;Quoting and escaping&rdquo; section in the ffmpeg-utils manual).405</p>406<p>The following options are recognized:407</p><dl class="table">408<dt><samp class="option">file</samp></dt>409<dd><p>set the file name to use for the report; <code class="code">%p</code> is expanded to the name410of the program, <code class="code">%t</code> is expanded to a timestamp, <code class="code">%%</code> is expanded411to a plain <code class="code">%</code>412</p></dd>413<dt><samp class="option">level</samp></dt>414<dd><p>set the log verbosity level using a numerical value (see <code class="code">-loglevel</code>).415</p></dd>416</dl>417 418<p>For example, to output a report to a file named <samp class="file">ffreport.log</samp>419using a log level of <code class="code">32</code> (alias for log level <code class="code">info</code>):420</p>421<div class="example">422<pre class="example-preformatted">FFREPORT=file=ffreport.log:level=32 ffmpeg -i input output423</pre></div>424 425<p>Errors in parsing the environment variable are not fatal, and will not426appear in the report.427</p>428</dd>429<dt><samp class="option">-hide_banner</samp></dt>430<dd><p>Suppress printing banner.431</p>432<p>All FFmpeg tools will normally show a copyright notice, build options433and library versions. This option can be used to suppress printing434this information.435</p>436</dd>437<dt><samp class="option">-cpuflags flags (<em class="emph">global</em>)</samp></dt>438<dd><p>Allows setting and clearing cpu flags. This option is intended439for testing. Do not use it unless you know what you&rsquo;re doing.440</p><div class="example">441<pre class="example-preformatted">ffmpeg -cpuflags -sse+mmx ...442ffmpeg -cpuflags mmx ...443ffmpeg -cpuflags 0 ...444</pre></div>445<p>Possible flags for this option are:446</p><dl class="table">447<dt>&lsquo;<samp class="samp">x86</samp>&rsquo;</dt>448<dd><dl class="table">449<dt>&lsquo;<samp class="samp">mmx</samp>&rsquo;</dt>450<dt>&lsquo;<samp class="samp">mmxext</samp>&rsquo;</dt>451<dt>&lsquo;<samp class="samp">sse</samp>&rsquo;</dt>452<dt>&lsquo;<samp class="samp">sse2</samp>&rsquo;</dt>453<dt>&lsquo;<samp class="samp">sse2slow</samp>&rsquo;</dt>454<dt>&lsquo;<samp class="samp">sse3</samp>&rsquo;</dt>455<dt>&lsquo;<samp class="samp">sse3slow</samp>&rsquo;</dt>456<dt>&lsquo;<samp class="samp">ssse3</samp>&rsquo;</dt>457<dt>&lsquo;<samp class="samp">atom</samp>&rsquo;</dt>458<dt>&lsquo;<samp class="samp">sse4.1</samp>&rsquo;</dt>459<dt>&lsquo;<samp class="samp">sse4.2</samp>&rsquo;</dt>460<dt>&lsquo;<samp class="samp">avx</samp>&rsquo;</dt>461<dt>&lsquo;<samp class="samp">avx2</samp>&rsquo;</dt>462<dt>&lsquo;<samp class="samp">xop</samp>&rsquo;</dt>463<dt>&lsquo;<samp class="samp">fma3</samp>&rsquo;</dt>464<dt>&lsquo;<samp class="samp">fma4</samp>&rsquo;</dt>465<dt>&lsquo;<samp class="samp">3dnow</samp>&rsquo;</dt>466<dt>&lsquo;<samp class="samp">3dnowext</samp>&rsquo;</dt>467<dt>&lsquo;<samp class="samp">bmi1</samp>&rsquo;</dt>468<dt>&lsquo;<samp class="samp">bmi2</samp>&rsquo;</dt>469<dt>&lsquo;<samp class="samp">cmov</samp>&rsquo;</dt>470</dl>471</dd>472<dt>&lsquo;<samp class="samp">ARM</samp>&rsquo;</dt>473<dd><dl class="table">474<dt>&lsquo;<samp class="samp">armv5te</samp>&rsquo;</dt>475<dt>&lsquo;<samp class="samp">armv6</samp>&rsquo;</dt>476<dt>&lsquo;<samp class="samp">armv6t2</samp>&rsquo;</dt>477<dt>&lsquo;<samp class="samp">vfp</samp>&rsquo;</dt>478<dt>&lsquo;<samp class="samp">vfpv3</samp>&rsquo;</dt>479<dt>&lsquo;<samp class="samp">neon</samp>&rsquo;</dt>480<dt>&lsquo;<samp class="samp">setend</samp>&rsquo;</dt>481</dl>482</dd>483<dt>&lsquo;<samp class="samp">AArch64</samp>&rsquo;</dt>484<dd><dl class="table">485<dt>&lsquo;<samp class="samp">armv8</samp>&rsquo;</dt>486<dt>&lsquo;<samp class="samp">vfp</samp>&rsquo;</dt>487<dt>&lsquo;<samp class="samp">neon</samp>&rsquo;</dt>488</dl>489</dd>490<dt>&lsquo;<samp class="samp">PowerPC</samp>&rsquo;</dt>491<dd><dl class="table">492<dt>&lsquo;<samp class="samp">altivec</samp>&rsquo;</dt>493</dl>494</dd>495<dt>&lsquo;<samp class="samp">Specific Processors</samp>&rsquo;</dt>496<dd><dl class="table">497<dt>&lsquo;<samp class="samp">pentium2</samp>&rsquo;</dt>498<dt>&lsquo;<samp class="samp">pentium3</samp>&rsquo;</dt>499<dt>&lsquo;<samp class="samp">pentium4</samp>&rsquo;</dt>500<dt>&lsquo;<samp class="samp">k6</samp>&rsquo;</dt>501<dt>&lsquo;<samp class="samp">k62</samp>&rsquo;</dt>502<dt>&lsquo;<samp class="samp">athlon</samp>&rsquo;</dt>503<dt>&lsquo;<samp class="samp">athlonxp</samp>&rsquo;</dt>504<dt>&lsquo;<samp class="samp">k8</samp>&rsquo;</dt>505</dl>506</dd>507</dl>508 509</dd>510<dt><samp class="option">-cpucount <var class="var">count</var> (<em class="emph">global</em>)</samp></dt>511<dd><p>Override detection of CPU count. This option is intended512for testing. Do not use it unless you know what you&rsquo;re doing.513</p><div class="example">514<pre class="example-preformatted">ffmpeg -cpucount 2515</pre></div>516 517</dd>518<dt><samp class="option">-max_alloc <var class="var">bytes</var></samp></dt>519<dd><p>Set the maximum size limit for allocating a block on the heap by ffmpeg&rsquo;s520family of malloc functions. Exercise <strong class="strong">extreme caution</strong> when using521this option. Don&rsquo;t use if you do not understand the full consequence of doing so.522Default is INT_MAX.523</p></dd>524</dl>525 526<a name="AVOptions"></a>527<h3 class="section">3.3 AVOptions<span class="pull-right"><a class="anchor hidden-xs" href="#AVOptions" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-AVOptions" aria-hidden="true">TOC</a></span></h3>528 529<p>These options are provided directly by the libavformat, libavdevice and530libavcodec libraries. To see the list of available AVOptions, use the531<samp class="option">-help</samp> option. They are separated into two categories:532</p><dl class="table">533<dt><samp class="option">generic</samp></dt>534<dd><p>These options can be set for any container, codec or device. Generic options535are listed under AVFormatContext options for containers/devices and under536AVCodecContext options for codecs.537</p></dd>538<dt><samp class="option">private</samp></dt>539<dd><p>These options are specific to the given container, device or codec. Private540options are listed under their corresponding containers/devices/codecs.541</p></dd>542</dl>543 544<p>For example to write an ID3v2.3 header instead of a default ID3v2.4 to545an MP3 file, use the <samp class="option">id3v2_version</samp> private option of the MP3546muxer:547</p><div class="example">548<pre class="example-preformatted">ffmpeg -i input.flac -id3v2_version 3 out.mp3549</pre></div>550 551<p>All codec AVOptions are per-stream, and thus a stream specifier552should be attached to them:553</p><div class="example">554<pre class="example-preformatted">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.mp4555</pre></div>556 557<p>In the above example, a multichannel audio stream is mapped twice for output.558The first instance is encoded with codec ac3 and bitrate 640k.559The second instance is downmixed to 2 channels and encoded with codec aac. A bitrate of 128k is specified for it using560absolute index of the output stream.561</p>562<p>Note: the <samp class="option">-nooption</samp> syntax cannot be used for boolean563AVOptions, use <samp class="option">-option 0</samp>/<samp class="option">-option 1</samp>.564</p>565<p>Note: the old undocumented way of specifying per-stream AVOptions by566prepending v/a/s to the options name is now obsolete and will be567removed soon.568</p>569<a name="Main-options"></a>570<h3 class="section">3.4 Main options<span class="pull-right"><a class="anchor hidden-xs" href="#Main-options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Main-options" aria-hidden="true">TOC</a></span></h3>571 572<dl class="table">573<dt><samp class="option">-x <var class="var">width</var></samp></dt>574<dd><p>Force displayed width.575</p></dd>576<dt><samp class="option">-y <var class="var">height</var></samp></dt>577<dd><p>Force displayed height.578</p></dd>579<dt><samp class="option">-fs</samp></dt>580<dd><p>Start in fullscreen mode.581</p></dd>582<dt><samp class="option">-an</samp></dt>583<dd><p>Disable audio.584</p></dd>585<dt><samp class="option">-vn</samp></dt>586<dd><p>Disable video.587</p></dd>588<dt><samp class="option">-sn</samp></dt>589<dd><p>Disable subtitles.590</p></dd>591<dt><samp class="option">-ss <var class="var">pos</var></samp></dt>592<dd><p>Seek to <var class="var">pos</var>. Note that in most formats it is not possible to seek593exactly, so <code class="command">ffplay</code> will seek to the nearest seek point to594<var class="var">pos</var>.595</p>596<p><var class="var">pos</var> must be a time duration specification,597see <a data-manual="ffmpeg-utils" href="ffmpeg-utils.html#time-duration-syntax">the Time duration section in the ffmpeg-utils(1) manual</a>.598</p></dd>599<dt><samp class="option">-t <var class="var">duration</var></samp></dt>600<dd><p>Play <var class="var">duration</var> seconds of audio/video.601</p>602<p><var class="var">duration</var> must be a time duration specification,603see <a data-manual="ffmpeg-utils" href="ffmpeg-utils.html#time-duration-syntax">the Time duration section in the ffmpeg-utils(1) manual</a>.604</p></dd>605<dt><samp class="option">-bytes</samp></dt>606<dd><p>Seek by bytes.607</p></dd>608<dt><samp class="option">-seek_interval</samp></dt>609<dd><p>Set custom interval, in seconds, for seeking using left/right keys. Default is 10 seconds.610</p></dd>611<dt><samp class="option">-nodisp</samp></dt>612<dd><p>Disable graphical display.613</p></dd>614<dt><samp class="option">-noborder</samp></dt>615<dd><p>Borderless window.616</p></dd>617<dt><samp class="option">-alwaysontop</samp></dt>618<dd><p>Window always on top. Available on: X11 with SDL &gt;= 2.0.5, Windows SDL &gt;= 2.0.6.619</p></dd>620<dt><samp class="option">-volume</samp></dt>621<dd><p>Set the startup volume. 0 means silence, 100 means no volume reduction or622amplification. Negative values are treated as 0, values above 100 are treated623as 100.624</p></dd>625<dt><samp class="option">-f <var class="var">fmt</var></samp></dt>626<dd><p>Force format.627</p></dd>628<dt><samp class="option">-window_title <var class="var">title</var></samp></dt>629<dd><p>Set window title (default is the input filename).630</p></dd>631<dt><samp class="option">-left <var class="var">title</var></samp></dt>632<dd><p>Set the x position for the left of the window (default is a centered window).633</p></dd>634<dt><samp class="option">-top <var class="var">title</var></samp></dt>635<dd><p>Set the y position for the top of the window (default is a centered window).636</p></dd>637<dt><samp class="option">-loop <var class="var">number</var></samp></dt>638<dd><p>Loops movie playback &lt;number&gt; times. 0 means forever.639</p></dd>640<dt><samp class="option">-showmode <var class="var">mode</var></samp></dt>641<dd><p>Set the show mode to use.642Available values for <var class="var">mode</var> are:643</p><dl class="table">644<dt>&lsquo;<samp class="samp">0, video</samp>&rsquo;</dt>645<dd><p>show video646</p></dd>647<dt>&lsquo;<samp class="samp">1, waves</samp>&rsquo;</dt>648<dd><p>show audio waves649</p></dd>650<dt>&lsquo;<samp class="samp">2, rdft</samp>&rsquo;</dt>651<dd><p>show audio frequency band using RDFT ((Inverse) Real Discrete Fourier Transform)652</p></dd>653</dl>654 655<p>Default value is &quot;video&quot;, if video is not present or cannot be played656&quot;rdft&quot; is automatically selected.657</p>658<p>You can interactively cycle through the available show modes by659pressing the key <kbd class="key">w</kbd>.660</p>661</dd>662<dt><samp class="option">-vf <var class="var">filtergraph</var></samp></dt>663<dd><p>Create the filtergraph specified by <var class="var">filtergraph</var> and use it to664filter the video stream.665</p>666<p><var class="var">filtergraph</var> is a description of the filtergraph to apply to667the stream, and must have a single video input and a single video668output. In the filtergraph, the input is associated to the label669<code class="code">in</code>, and the output to the label <code class="code">out</code>. See the670ffmpeg-filters manual for more information about the filtergraph671syntax.672</p>673<p>You can specify this parameter multiple times and cycle through the specified674filtergraphs along with the show modes by pressing the key <kbd class="key">w</kbd>.675</p>676</dd>677<dt><samp class="option">-af <var class="var">filtergraph</var></samp></dt>678<dd><p><var class="var">filtergraph</var> is a description of the filtergraph to apply to679the input audio.680Use the option &quot;-filters&quot; to show all the available filters (including681sources and sinks).682</p>683</dd>684<dt><samp class="option">-i <var class="var">input_url</var></samp></dt>685<dd><p>Read <var class="var">input_url</var>.686</p></dd>687</dl>688 689<a name="Advanced-options"></a>690<h3 class="section">3.5 Advanced options<span class="pull-right"><a class="anchor hidden-xs" href="#Advanced-options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Advanced-options" aria-hidden="true">TOC</a></span></h3>691<dl class="table">692<dt><samp class="option">-stats</samp></dt>693<dd><p>Print several playback statistics, in particular show the stream694duration, the codec parameters, the current position in the stream and695the audio/video synchronisation drift. It is shown by default, unless the696log level is lower than <code class="code">info</code>. Its display can be forced by manually697specifying this option. To disable it, you need to specify <code class="code">-nostats</code>.698</p>699</dd>700<dt><samp class="option">-fast</samp></dt>701<dd><p>Non-spec-compliant optimizations.702</p></dd>703<dt><samp class="option">-genpts</samp></dt>704<dd><p>Generate pts.705</p></dd>706<dt><samp class="option">-sync <var class="var">type</var></samp></dt>707<dd><p>Set the master clock to audio (<code class="code">type=audio</code>), video708(<code class="code">type=video</code>) or external (<code class="code">type=ext</code>). Default is audio. The709master clock is used to control audio-video synchronization. Most media710players use audio as master clock, but in some cases (streaming or high711quality broadcast) it is necessary to change that. This option is mainly712used for debugging purposes.713</p></dd>714<dt><samp class="option">-ast <var class="var">audio_stream_specifier</var></samp></dt>715<dd><p>Select the desired audio stream using the given stream specifier. The stream716specifiers are described in the <a class="ref" href="#Stream-specifiers">Stream specifiers</a> chapter. If this option717is not specified, the &quot;best&quot; audio stream is selected in the program of the718already selected video stream.719</p></dd>720<dt><samp class="option">-vst <var class="var">video_stream_specifier</var></samp></dt>721<dd><p>Select the desired video stream using the given stream specifier. The stream722specifiers are described in the <a class="ref" href="#Stream-specifiers">Stream specifiers</a> chapter. If this option723is not specified, the &quot;best&quot; video stream is selected.724</p></dd>725<dt><samp class="option">-sst <var class="var">subtitle_stream_specifier</var></samp></dt>726<dd><p>Select the desired subtitle stream using the given stream specifier. The stream727specifiers are described in the <a class="ref" href="#Stream-specifiers">Stream specifiers</a> chapter. If this option728is not specified, the &quot;best&quot; subtitle stream is selected in the program of the729already selected video or audio stream.730</p></dd>731<dt><samp class="option">-autoexit</samp></dt>732<dd><p>Exit when video is done playing.733</p></dd>734<dt><samp class="option">-exitonkeydown</samp></dt>735<dd><p>Exit if any key is pressed.736</p></dd>737<dt><samp class="option">-exitonmousedown</samp></dt>738<dd><p>Exit if any mouse button is pressed.739</p>740</dd>741<dt><samp class="option">-codec:<var class="var">media_specifier</var> <var class="var">codec_name</var></samp></dt>742<dd><p>Force a specific decoder implementation for the stream identified by743<var class="var">media_specifier</var>, which can assume the values <code class="code">a</code> (audio),744<code class="code">v</code> (video), and <code class="code">s</code> subtitle.745</p>746</dd>747<dt><samp class="option">-acodec <var class="var">codec_name</var></samp></dt>748<dd><p>Force a specific audio decoder.749</p>750</dd>751<dt><samp class="option">-vcodec <var class="var">codec_name</var></samp></dt>752<dd><p>Force a specific video decoder.753</p>754</dd>755<dt><samp class="option">-scodec <var class="var">codec_name</var></samp></dt>756<dd><p>Force a specific subtitle decoder.757</p>758</dd>759<dt><samp class="option">-autorotate</samp></dt>760<dd><p>Automatically rotate the video according to file metadata. Enabled by761default, use <samp class="option">-noautorotate</samp> to disable it.762</p>763</dd>764<dt><samp class="option">-framedrop</samp></dt>765<dd><p>Drop video frames if video is out of sync. Enabled by default if the master766clock is not set to video. Use this option to enable frame dropping for all767master clock sources, use <samp class="option">-noframedrop</samp> to disable it.768</p>769</dd>770<dt><samp class="option">-infbuf</samp></dt>771<dd><p>Do not limit the input buffer size, read as much data as possible from the772input as soon as possible. Enabled by default for realtime streams, where data773may be dropped if not read in time. Use this option to enable infinite buffers774for all inputs, use <samp class="option">-noinfbuf</samp> to disable it.775</p>776</dd>777<dt><samp class="option">-filter_threads <var class="var">nb_threads</var></samp></dt>778<dd><p>Defines how many threads are used to process a filter pipeline. Each pipeline779will produce a thread pool with this many threads available for parallel780processing. The default is 0 which means that the thread count will be781determined by the number of available CPUs.782</p>783</dd>784<dt><samp class="option">-enable_vulkan</samp></dt>785<dd><p>Use vulkan renderer rather than SDL builtin renderer. Depends on libplacebo.786</p>787</dd>788<dt><samp class="option">-vulkan_params</samp></dt>789<dd>790<p>Vulkan configuration using a list of <var class="var">key</var>=<var class="var">value</var> pairs separated by791&quot;:&quot;.792</p>793</dd>794<dt><samp class="option">-hwaccel</samp></dt>795<dd><p>Use HW accelerated decoding. Enable this option will enable vulkan renderer796automatically.797</p>798</dd>799<dt><samp class="option">-video_bg <var class="var">pattern</var></samp></dt>800<dd><p>Set the video background pattern used for transparent videos. For solid color801patterns you can use the color name or color code as specified in the802<a data-manual="ffmpeg-utils" href="ffmpeg-utils.html#color-syntax">Color section in the ffmpeg-utils(1) manual</a>.803You can also use the special <code class="code">tiles</code> keyword for a checker board style804pattern. This is also the default. The <code class="code">none</code> pattern does rendering805without alpha blending effectively ignoring alpha channel.806</p>807</dd>808</dl>809 810<a name="While-playing"></a>811<h3 class="section">3.6 While playing<span class="pull-right"><a class="anchor hidden-xs" href="#While-playing" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-While-playing" aria-hidden="true">TOC</a></span></h3>812 813<dl class="table">814<dt><kbd class="key">q, ESC</kbd></dt>815<dd><p>Quit.816</p>817</dd>818<dt><kbd class="key">f</kbd></dt>819<dd><p>Toggle full screen.820</p>821</dd>822<dt><kbd class="key">p, SPC</kbd></dt>823<dd><p>Pause.824</p>825</dd>826<dt><kbd class="key">m</kbd></dt>827<dd><p>Toggle mute.828</p>829</dd>830<dt><kbd class="key">9, 0</kbd></dt>831<dt><kbd class="key">/, *</kbd></dt>832<dd><p>Decrease and increase volume respectively.833</p>834</dd>835<dt><kbd class="key">a</kbd></dt>836<dd><p>Cycle audio channel in the current program.837</p>838</dd>839<dt><kbd class="key">v</kbd></dt>840<dd><p>Cycle video channel.841</p>842</dd>843<dt><kbd class="key">t</kbd></dt>844<dd><p>Cycle subtitle channel in the current program.845</p>846</dd>847<dt><kbd class="key">c</kbd></dt>848<dd><p>Cycle program.849</p>850</dd>851<dt><kbd class="key">w</kbd></dt>852<dd><p>Cycle video filters or show modes.853</p>854</dd>855<dt><kbd class="key">s</kbd></dt>856<dd><p>Step to the next frame.857</p>858<p>Pause if the stream is not already paused, step to the next video859frame, and pause.860</p>861</dd>862<dt><kbd class="key">left/right</kbd></dt>863<dd><p>Seek backward/forward by 10 seconds or a custom interval if -seek_interval is set.864</p>865</dd>866<dt><kbd class="key">down/up</kbd></dt>867<dd><p>Seek backward/forward 1 minute.868</p>869</dd>870<dt><kbd class="key">page down/page up</kbd></dt>871<dd><p>Seek to previous/next chapter or backward/forward 10 minutes if no chapters.872</p>873</dd>874<dt><kbd class="key">right mouse click</kbd></dt>875<dd><p>Seek to percentage in file corresponding to fraction of width.876</p>877</dd>878<dt><kbd class="key">left mouse double-click</kbd></dt>879<dd><p>Toggle full screen.880</p>881</dd>882</dl>883 884 885 886<a name="See-Also"></a>887<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>888 889<p><a class="url" href="ffplay-all.html">ffmpeg-all</a>,890<a class="url" href="ffmpeg.html">ffmpeg</a>, <a class="url" href="ffprobe.html">ffprobe</a>,891<a class="url" href="ffmpeg-utils.html">ffmpeg-utils</a>,892<a class="url" href="ffmpeg-scaler.html">ffmpeg-scaler</a>,893<a class="url" href="ffmpeg-resampler.html">ffmpeg-resampler</a>,894<a class="url" href="ffmpeg-codecs.html">ffmpeg-codecs</a>,895<a class="url" href="ffmpeg-bitstream-filters.html">ffmpeg-bitstream-filters</a>,896<a class="url" href="ffmpeg-formats.html">ffmpeg-formats</a>,897<a class="url" href="ffmpeg-devices.html">ffmpeg-devices</a>,898<a class="url" href="ffmpeg-protocols.html">ffmpeg-protocols</a>,899<a class="url" href="ffmpeg-filters.html">ffmpeg-filters</a>900</p>901 902<a name="Authors"></a>903<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>904 905<p>The FFmpeg developers.906</p>907<p>For details about the authorship, see the Git history of the project908(https://git.ffmpeg.org/ffmpeg), e.g. by typing the command909<code class="command">git log</code> in the FFmpeg source directory, or browsing the910online repository at <a class="url" href="https://git.ffmpeg.org/ffmpeg">https://git.ffmpeg.org/ffmpeg</a>.911</p>912<p>Maintainers for the specific components are listed in the file913<samp class="file">MAINTAINERS</samp> in the source code tree.914</p>915 916      <p style="font-size: small;">917        This document was generated using <a class="uref" href="https://www.gnu.org/software/texinfo/"><em class="emph">makeinfo</em></a>.918      </p>919    </div>920  </body>921</html>922 
codekingpro/portable-devtools · Team Ai