You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1220 lines
50KB

  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. ffprobe 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. ffprobe 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-Synopsis" href="#Synopsis">1 Synopsis</a></li>
  26. <li><a id="toc-Description" href="#Description">2 Description</a></li>
  27. <li><a id="toc-Options" href="#Options">3 Options</a>
  28. <ul class="no-bullet">
  29. <li><a id="toc-Stream-specifiers-1" href="#Stream-specifiers-1">3.1 Stream specifiers</a></li>
  30. <li><a id="toc-Generic-options" href="#Generic-options">3.2 Generic options</a></li>
  31. <li><a id="toc-AVOptions" href="#AVOptions">3.3 AVOptions</a></li>
  32. <li><a id="toc-Main-options" href="#Main-options">3.4 Main options</a></li>
  33. </ul></li>
  34. <li><a id="toc-Writers" href="#Writers">4 Writers</a>
  35. <ul class="no-bullet">
  36. <li><a id="toc-default" href="#default">4.1 default</a></li>
  37. <li><a id="toc-compact_002c-csv" href="#compact_002c-csv">4.2 compact, csv</a></li>
  38. <li><a id="toc-flat" href="#flat">4.3 flat</a></li>
  39. <li><a id="toc-ini" href="#ini">4.4 ini</a></li>
  40. <li><a id="toc-json" href="#json">4.5 json</a></li>
  41. <li><a id="toc-xml" href="#xml">4.6 xml</a></li>
  42. </ul></li>
  43. <li><a id="toc-Timecode" href="#Timecode">5 Timecode</a></li>
  44. <li><a id="toc-See-Also" href="#See-Also">6 See Also</a></li>
  45. <li><a id="toc-Authors" href="#Authors">7 Authors</a></li>
  46. </ul>
  47. </div>
  48. </div>
  49. <a name="Synopsis"></a>
  50. <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>
  51. <p>ffprobe [<var>options</var>] <samp>input_url</samp>
  52. </p>
  53. <a name="Description"></a>
  54. <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>
  55. <p>ffprobe gathers information from multimedia streams and prints it in
  56. human- and machine-readable fashion.
  57. </p>
  58. <p>For example it can be used to check the format of the container used
  59. by a multimedia stream and the format and type of each media stream
  60. contained in it.
  61. </p>
  62. <p>If a url is specified in input, ffprobe will try to open and
  63. probe the url content. If the url cannot be opened or recognized as
  64. a multimedia file, a positive exit code is returned.
  65. </p>
  66. <p>If no output is specified as output with <samp>o</samp> ffprobe will write
  67. to stdout.
  68. </p>
  69. <p>ffprobe may be employed both as a standalone application or in
  70. combination with a textual filter, which may perform more
  71. sophisticated processing, e.g. statistical processing or plotting.
  72. </p>
  73. <p>Options are used to list some of the formats supported by ffprobe or
  74. for specifying which information to display, and for setting how
  75. ffprobe will show it.
  76. </p>
  77. <p>ffprobe output is designed to be easily parsable by a textual filter,
  78. and consists of one or more sections of a form defined by the selected
  79. writer, which is specified by the <samp>print_format</samp> option.
  80. </p>
  81. <p>Sections may contain other nested sections, and are identified by a
  82. name (which may be shared by other sections), and an unique
  83. name. See the output of <samp>sections</samp>.
  84. </p>
  85. <p>Metadata tags stored in the container or in the streams are recognized
  86. and printed in the corresponding &quot;FORMAT&quot;, &quot;STREAM&quot; or &quot;PROGRAM_STREAM&quot;
  87. section.
  88. </p>
  89. <a name="Options"></a>
  90. <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>
  91. <p>All the numerical options, if not specified otherwise, accept a string
  92. representing a number as input, which may be followed by one of the SI
  93. unit prefixes, for example: &rsquo;K&rsquo;, &rsquo;M&rsquo;, or &rsquo;G&rsquo;.
  94. </p>
  95. <p>If &rsquo;i&rsquo; is appended to the SI unit prefix, the complete prefix will be
  96. interpreted as a unit prefix for binary multiples, which are based on
  97. powers of 1024 instead of powers of 1000. Appending &rsquo;B&rsquo; to the SI unit
  98. prefix multiplies the value by 8. This allows using, for example:
  99. &rsquo;KB&rsquo;, &rsquo;MiB&rsquo;, &rsquo;G&rsquo; and &rsquo;B&rsquo; as number suffixes.
  100. </p>
  101. <p>Options which do not take arguments are boolean options, and set the
  102. corresponding value to true. They can be set to false by prefixing
  103. the option name with &quot;no&quot;. For example using &quot;-nofoo&quot;
  104. will set the boolean option with name &quot;foo&quot; to false.
  105. </p>
  106. <span id="Stream-specifiers"></span><a name="Stream-specifiers-1"></a>
  107. <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>
  108. <p>Some options are applied per-stream, e.g. bitrate or codec. Stream specifiers
  109. are used to precisely specify which stream(s) a given option belongs to.
  110. </p>
  111. <p>A stream specifier is a string generally appended to the option name and
  112. separated from it by a colon. E.g. <code>-codec:a:1 ac3</code> contains the
  113. <code>a:1</code> stream specifier, which matches the second audio stream. Therefore, it
  114. would select the ac3 codec for the second audio stream.
  115. </p>
  116. <p>A stream specifier can match several streams, so that the option is applied to all
  117. of them. E.g. the stream specifier in <code>-b:a 128k</code> matches all audio
  118. streams.
  119. </p>
  120. <p>An empty stream specifier matches all streams. For example, <code>-codec copy</code>
  121. or <code>-codec: copy</code> would copy all the streams without reencoding.
  122. </p>
  123. <p>Possible forms of stream specifiers are:
  124. </p><dl compact="compact">
  125. <dt><span><samp><var>stream_index</var></samp></span></dt>
  126. <dd><p>Matches the stream with this index. E.g. <code>-threads:1 4</code> would set the
  127. thread count for the second stream to 4. If <var>stream_index</var> is used as an
  128. additional stream specifier (see below), then it selects stream number
  129. <var>stream_index</var> from the matching streams. Stream numbering is based on the
  130. order of the streams as detected by libavformat except when a program ID is
  131. also specified. In this case it is based on the ordering of the streams in the
  132. program.
  133. </p></dd>
  134. <dt><span><samp><var>stream_type</var>[:<var>additional_stream_specifier</var>]</samp></span></dt>
  135. <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;
  136. for subtitle, &rsquo;d&rsquo; for data, and &rsquo;t&rsquo; for attachments. &rsquo;v&rsquo; matches all video
  137. streams, &rsquo;V&rsquo; only matches video streams which are not attached pictures, video
  138. thumbnails or cover arts. If <var>additional_stream_specifier</var> is used, then
  139. it matches streams which both have this type and match the
  140. <var>additional_stream_specifier</var>. Otherwise, it matches all streams of the
  141. specified type.
  142. </p></dd>
  143. <dt><span><samp>p:<var>program_id</var>[:<var>additional_stream_specifier</var>]</samp></span></dt>
  144. <dd><p>Matches streams which are in the program with the id <var>program_id</var>. If
  145. <var>additional_stream_specifier</var> is used, then it matches streams which both
  146. are part of the program and match the <var>additional_stream_specifier</var>.
  147. </p>
  148. </dd>
  149. <dt><span><samp>#<var>stream_id</var> or i:<var>stream_id</var></samp></span></dt>
  150. <dd><p>Match the stream by stream id (e.g. PID in MPEG-TS container).
  151. </p></dd>
  152. <dt><span><samp>m:<var>key</var>[:<var>value</var>]</samp></span></dt>
  153. <dd><p>Matches streams with the metadata tag <var>key</var> having the specified value. If
  154. <var>value</var> is not given, matches streams that contain the given tag with any
  155. value.
  156. </p></dd>
  157. <dt><span><samp>u</samp></span></dt>
  158. <dd><p>Matches streams with usable configuration, the codec must be defined and the
  159. essential information such as video dimension or audio sample rate must be present.
  160. </p>
  161. <p>Note that in <code>ffmpeg</code>, matching by metadata will only work properly for
  162. input files.
  163. </p></dd>
  164. </dl>
  165. <a name="Generic-options"></a>
  166. <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>
  167. <p>These options are shared amongst the ff* tools.
  168. </p>
  169. <dl compact="compact">
  170. <dt><span><samp>-L</samp></span></dt>
  171. <dd><p>Show license.
  172. </p>
  173. </dd>
  174. <dt><span><samp>-h, -?, -help, --help [<var>arg</var>]</samp></span></dt>
  175. <dd><p>Show help. An optional parameter may be specified to print help about a specific
  176. item. If no argument is specified, only basic (non advanced) tool
  177. options are shown.
  178. </p>
  179. <p>Possible values of <var>arg</var> are:
  180. </p><dl compact="compact">
  181. <dt><span><samp>long</samp></span></dt>
  182. <dd><p>Print advanced tool options in addition to the basic tool options.
  183. </p>
  184. </dd>
  185. <dt><span><samp>full</samp></span></dt>
  186. <dd><p>Print complete list of options, including shared and private options
  187. for encoders, decoders, demuxers, muxers, filters, etc.
  188. </p>
  189. </dd>
  190. <dt><span><samp>decoder=<var>decoder_name</var></samp></span></dt>
  191. <dd><p>Print detailed information about the decoder named <var>decoder_name</var>. Use the
  192. <samp>-decoders</samp> option to get a list of all decoders.
  193. </p>
  194. </dd>
  195. <dt><span><samp>encoder=<var>encoder_name</var></samp></span></dt>
  196. <dd><p>Print detailed information about the encoder named <var>encoder_name</var>. Use the
  197. <samp>-encoders</samp> option to get a list of all encoders.
  198. </p>
  199. </dd>
  200. <dt><span><samp>demuxer=<var>demuxer_name</var></samp></span></dt>
  201. <dd><p>Print detailed information about the demuxer named <var>demuxer_name</var>. Use the
  202. <samp>-formats</samp> option to get a list of all demuxers and muxers.
  203. </p>
  204. </dd>
  205. <dt><span><samp>muxer=<var>muxer_name</var></samp></span></dt>
  206. <dd><p>Print detailed information about the muxer named <var>muxer_name</var>. Use the
  207. <samp>-formats</samp> option to get a list of all muxers and demuxers.
  208. </p>
  209. </dd>
  210. <dt><span><samp>filter=<var>filter_name</var></samp></span></dt>
  211. <dd><p>Print detailed information about the filter named <var>filter_name</var>. Use the
  212. <samp>-filters</samp> option to get a list of all filters.
  213. </p>
  214. </dd>
  215. <dt><span><samp>bsf=<var>bitstream_filter_name</var></samp></span></dt>
  216. <dd><p>Print detailed information about the bitstream filter named <var>bitstream_filter_name</var>.
  217. Use the <samp>-bsfs</samp> option to get a list of all bitstream filters.
  218. </p>
  219. </dd>
  220. <dt><span><samp>protocol=<var>protocol_name</var></samp></span></dt>
  221. <dd><p>Print detailed information about the protocol named <var>protocol_name</var>.
  222. Use the <samp>-protocols</samp> option to get a list of all protocols.
  223. </p></dd>
  224. </dl>
  225. </dd>
  226. <dt><span><samp>-version</samp></span></dt>
  227. <dd><p>Show version.
  228. </p>
  229. </dd>
  230. <dt><span><samp>-buildconf</samp></span></dt>
  231. <dd><p>Show the build configuration, one option per line.
  232. </p>
  233. </dd>
  234. <dt><span><samp>-formats</samp></span></dt>
  235. <dd><p>Show available formats (including devices).
  236. </p>
  237. </dd>
  238. <dt><span><samp>-demuxers</samp></span></dt>
  239. <dd><p>Show available demuxers.
  240. </p>
  241. </dd>
  242. <dt><span><samp>-muxers</samp></span></dt>
  243. <dd><p>Show available muxers.
  244. </p>
  245. </dd>
  246. <dt><span><samp>-devices</samp></span></dt>
  247. <dd><p>Show available devices.
  248. </p>
  249. </dd>
  250. <dt><span><samp>-codecs</samp></span></dt>
  251. <dd><p>Show all codecs known to libavcodec.
  252. </p>
  253. <p>Note that the term &rsquo;codec&rsquo; is used throughout this documentation as a shortcut
  254. for what is more correctly called a media bitstream format.
  255. </p>
  256. </dd>
  257. <dt><span><samp>-decoders</samp></span></dt>
  258. <dd><p>Show available decoders.
  259. </p>
  260. </dd>
  261. <dt><span><samp>-encoders</samp></span></dt>
  262. <dd><p>Show all available encoders.
  263. </p>
  264. </dd>
  265. <dt><span><samp>-bsfs</samp></span></dt>
  266. <dd><p>Show available bitstream filters.
  267. </p>
  268. </dd>
  269. <dt><span><samp>-protocols</samp></span></dt>
  270. <dd><p>Show available protocols.
  271. </p>
  272. </dd>
  273. <dt><span><samp>-filters</samp></span></dt>
  274. <dd><p>Show available libavfilter filters.
  275. </p>
  276. </dd>
  277. <dt><span><samp>-pix_fmts</samp></span></dt>
  278. <dd><p>Show available pixel formats.
  279. </p>
  280. </dd>
  281. <dt><span><samp>-sample_fmts</samp></span></dt>
  282. <dd><p>Show available sample formats.
  283. </p>
  284. </dd>
  285. <dt><span><samp>-layouts</samp></span></dt>
  286. <dd><p>Show channel names and standard channel layouts.
  287. </p>
  288. </dd>
  289. <dt><span><samp>-dispositions</samp></span></dt>
  290. <dd><p>Show stream dispositions.
  291. </p>
  292. </dd>
  293. <dt><span><samp>-colors</samp></span></dt>
  294. <dd><p>Show recognized color names.
  295. </p>
  296. </dd>
  297. <dt><span><samp>-sources <var>device</var>[,<var>opt1</var>=<var>val1</var>[,<var>opt2</var>=<var>val2</var>]...]</samp></span></dt>
  298. <dd><p>Show autodetected sources of the input device.
  299. Some devices may provide system-dependent source names that cannot be autodetected.
  300. The returned list cannot be assumed to be always complete.
  301. </p><div class="example">
  302. <pre class="example">ffmpeg -sources pulse,server=192.168.0.4
  303. </pre></div>
  304. </dd>
  305. <dt><span><samp>-sinks <var>device</var>[,<var>opt1</var>=<var>val1</var>[,<var>opt2</var>=<var>val2</var>]...]</samp></span></dt>
  306. <dd><p>Show autodetected sinks of the output device.
  307. Some devices may provide system-dependent sink names that cannot be autodetected.
  308. The returned list cannot be assumed to be always complete.
  309. </p><div class="example">
  310. <pre class="example">ffmpeg -sinks pulse,server=192.168.0.4
  311. </pre></div>
  312. </dd>
  313. <dt><span><samp>-loglevel [<var>flags</var>+]<var>loglevel</var> | -v [<var>flags</var>+]<var>loglevel</var></samp></span></dt>
  314. <dd><p>Set logging level and flags used by the library.
  315. </p>
  316. <p>The optional <var>flags</var> prefix can consist of the following values:
  317. </p><dl compact="compact">
  318. <dt><span>&lsquo;<samp>repeat</samp>&rsquo;</span></dt>
  319. <dd><p>Indicates that repeated log output should not be compressed to the first line
  320. and the &quot;Last message repeated n times&quot; line will be omitted.
  321. </p></dd>
  322. <dt><span>&lsquo;<samp>level</samp>&rsquo;</span></dt>
  323. <dd><p>Indicates that log output should add a <code>[level]</code> prefix to each message
  324. line. This can be used as an alternative to log coloring, e.g. when dumping the
  325. log to file.
  326. </p></dd>
  327. </dl>
  328. <p>Flags can also be used alone by adding a &rsquo;+&rsquo;/&rsquo;-&rsquo; prefix to set/reset a single
  329. flag without affecting other <var>flags</var> or changing <var>loglevel</var>. When
  330. setting both <var>flags</var> and <var>loglevel</var>, a &rsquo;+&rsquo; separator is expected
  331. between the last <var>flags</var> value and before <var>loglevel</var>.
  332. </p>
  333. <p><var>loglevel</var> is a string or a number containing one of the following values:
  334. </p><dl compact="compact">
  335. <dt><span>&lsquo;<samp>quiet, -8</samp>&rsquo;</span></dt>
  336. <dd><p>Show nothing at all; be silent.
  337. </p></dd>
  338. <dt><span>&lsquo;<samp>panic, 0</samp>&rsquo;</span></dt>
  339. <dd><p>Only show fatal errors which could lead the process to crash, such as
  340. an assertion failure. This is not currently used for anything.
  341. </p></dd>
  342. <dt><span>&lsquo;<samp>fatal, 8</samp>&rsquo;</span></dt>
  343. <dd><p>Only show fatal errors. These are errors after which the process absolutely
  344. cannot continue.
  345. </p></dd>
  346. <dt><span>&lsquo;<samp>error, 16</samp>&rsquo;</span></dt>
  347. <dd><p>Show all errors, including ones which can be recovered from.
  348. </p></dd>
  349. <dt><span>&lsquo;<samp>warning, 24</samp>&rsquo;</span></dt>
  350. <dd><p>Show all warnings and errors. Any message related to possibly
  351. incorrect or unexpected events will be shown.
  352. </p></dd>
  353. <dt><span>&lsquo;<samp>info, 32</samp>&rsquo;</span></dt>
  354. <dd><p>Show informative messages during processing. This is in addition to
  355. warnings and errors. This is the default value.
  356. </p></dd>
  357. <dt><span>&lsquo;<samp>verbose, 40</samp>&rsquo;</span></dt>
  358. <dd><p>Same as <code>info</code>, except more verbose.
  359. </p></dd>
  360. <dt><span>&lsquo;<samp>debug, 48</samp>&rsquo;</span></dt>
  361. <dd><p>Show everything, including debugging information.
  362. </p></dd>
  363. <dt><span>&lsquo;<samp>trace, 56</samp>&rsquo;</span></dt>
  364. </dl>
  365. <p>For example to enable repeated log output, add the <code>level</code> prefix, and set
  366. <var>loglevel</var> to <code>verbose</code>:
  367. </p><div class="example">
  368. <pre class="example">ffmpeg -loglevel repeat+level+verbose -i input output
  369. </pre></div>
  370. <p>Another example that enables repeated log output without affecting current
  371. state of <code>level</code> prefix flag or <var>loglevel</var>:
  372. </p><div class="example">
  373. <pre class="example">ffmpeg [...] -loglevel +repeat
  374. </pre></div>
  375. <p>By default the program logs to stderr. If coloring is supported by the
  376. terminal, colors are used to mark errors and warnings. Log coloring
  377. can be disabled setting the environment variable
  378. <code>AV_LOG_FORCE_NOCOLOR</code>, or can be forced setting
  379. the environment variable <code>AV_LOG_FORCE_COLOR</code>.
  380. </p>
  381. </dd>
  382. <dt><span><samp>-report</samp></span></dt>
  383. <dd><p>Dump full command line and log output to a file named
  384. <code><var>program</var>-<var>YYYYMMDD</var>-<var>HHMMSS</var>.log</code> in the current
  385. directory.
  386. This file can be useful for bug reports.
  387. It also implies <code>-loglevel debug</code>.
  388. </p>
  389. <p>Setting the environment variable <code>FFREPORT</code> to any value has the
  390. same effect. If the value is a &rsquo;:&rsquo;-separated key=value sequence, these
  391. options will affect the report; option values must be escaped if they
  392. contain special characters or the options delimiter &rsquo;:&rsquo; (see the
  393. &ldquo;Quoting and escaping&rdquo; section in the ffmpeg-utils manual).
  394. </p>
  395. <p>The following options are recognized:
  396. </p><dl compact="compact">
  397. <dt><span><samp>file</samp></span></dt>
  398. <dd><p>set the file name to use for the report; <code>%p</code> is expanded to the name
  399. of the program, <code>%t</code> is expanded to a timestamp, <code>%%</code> is expanded
  400. to a plain <code>%</code>
  401. </p></dd>
  402. <dt><span><samp>level</samp></span></dt>
  403. <dd><p>set the log verbosity level using a numerical value (see <code>-loglevel</code>).
  404. </p></dd>
  405. </dl>
  406. <p>For example, to output a report to a file named <samp>ffreport.log</samp>
  407. using a log level of <code>32</code> (alias for log level <code>info</code>):
  408. </p>
  409. <div class="example">
  410. <pre class="example">FFREPORT=file=ffreport.log:level=32 ffmpeg -i input output
  411. </pre></div>
  412. <p>Errors in parsing the environment variable are not fatal, and will not
  413. appear in the report.
  414. </p>
  415. </dd>
  416. <dt><span><samp>-hide_banner</samp></span></dt>
  417. <dd><p>Suppress printing banner.
  418. </p>
  419. <p>All FFmpeg tools will normally show a copyright notice, build options
  420. and library versions. This option can be used to suppress printing
  421. this information.
  422. </p>
  423. </dd>
  424. <dt><span><samp>-cpuflags flags (<em>global</em>)</samp></span></dt>
  425. <dd><p>Allows setting and clearing cpu flags. This option is intended
  426. for testing. Do not use it unless you know what you&rsquo;re doing.
  427. </p><div class="example">
  428. <pre class="example">ffmpeg -cpuflags -sse+mmx ...
  429. ffmpeg -cpuflags mmx ...
  430. ffmpeg -cpuflags 0 ...
  431. </pre></div>
  432. <p>Possible flags for this option are:
  433. </p><dl compact="compact">
  434. <dt><span>&lsquo;<samp>x86</samp>&rsquo;</span></dt>
  435. <dd><dl compact="compact">
  436. <dt><span>&lsquo;<samp>mmx</samp>&rsquo;</span></dt>
  437. <dt><span>&lsquo;<samp>mmxext</samp>&rsquo;</span></dt>
  438. <dt><span>&lsquo;<samp>sse</samp>&rsquo;</span></dt>
  439. <dt><span>&lsquo;<samp>sse2</samp>&rsquo;</span></dt>
  440. <dt><span>&lsquo;<samp>sse2slow</samp>&rsquo;</span></dt>
  441. <dt><span>&lsquo;<samp>sse3</samp>&rsquo;</span></dt>
  442. <dt><span>&lsquo;<samp>sse3slow</samp>&rsquo;</span></dt>
  443. <dt><span>&lsquo;<samp>ssse3</samp>&rsquo;</span></dt>
  444. <dt><span>&lsquo;<samp>atom</samp>&rsquo;</span></dt>
  445. <dt><span>&lsquo;<samp>sse4.1</samp>&rsquo;</span></dt>
  446. <dt><span>&lsquo;<samp>sse4.2</samp>&rsquo;</span></dt>
  447. <dt><span>&lsquo;<samp>avx</samp>&rsquo;</span></dt>
  448. <dt><span>&lsquo;<samp>avx2</samp>&rsquo;</span></dt>
  449. <dt><span>&lsquo;<samp>xop</samp>&rsquo;</span></dt>
  450. <dt><span>&lsquo;<samp>fma3</samp>&rsquo;</span></dt>
  451. <dt><span>&lsquo;<samp>fma4</samp>&rsquo;</span></dt>
  452. <dt><span>&lsquo;<samp>3dnow</samp>&rsquo;</span></dt>
  453. <dt><span>&lsquo;<samp>3dnowext</samp>&rsquo;</span></dt>
  454. <dt><span>&lsquo;<samp>bmi1</samp>&rsquo;</span></dt>
  455. <dt><span>&lsquo;<samp>bmi2</samp>&rsquo;</span></dt>
  456. <dt><span>&lsquo;<samp>cmov</samp>&rsquo;</span></dt>
  457. </dl>
  458. </dd>
  459. <dt><span>&lsquo;<samp>ARM</samp>&rsquo;</span></dt>
  460. <dd><dl compact="compact">
  461. <dt><span>&lsquo;<samp>armv5te</samp>&rsquo;</span></dt>
  462. <dt><span>&lsquo;<samp>armv6</samp>&rsquo;</span></dt>
  463. <dt><span>&lsquo;<samp>armv6t2</samp>&rsquo;</span></dt>
  464. <dt><span>&lsquo;<samp>vfp</samp>&rsquo;</span></dt>
  465. <dt><span>&lsquo;<samp>vfpv3</samp>&rsquo;</span></dt>
  466. <dt><span>&lsquo;<samp>neon</samp>&rsquo;</span></dt>
  467. <dt><span>&lsquo;<samp>setend</samp>&rsquo;</span></dt>
  468. </dl>
  469. </dd>
  470. <dt><span>&lsquo;<samp>AArch64</samp>&rsquo;</span></dt>
  471. <dd><dl compact="compact">
  472. <dt><span>&lsquo;<samp>armv8</samp>&rsquo;</span></dt>
  473. <dt><span>&lsquo;<samp>vfp</samp>&rsquo;</span></dt>
  474. <dt><span>&lsquo;<samp>neon</samp>&rsquo;</span></dt>
  475. </dl>
  476. </dd>
  477. <dt><span>&lsquo;<samp>PowerPC</samp>&rsquo;</span></dt>
  478. <dd><dl compact="compact">
  479. <dt><span>&lsquo;<samp>altivec</samp>&rsquo;</span></dt>
  480. </dl>
  481. </dd>
  482. <dt><span>&lsquo;<samp>Specific Processors</samp>&rsquo;</span></dt>
  483. <dd><dl compact="compact">
  484. <dt><span>&lsquo;<samp>pentium2</samp>&rsquo;</span></dt>
  485. <dt><span>&lsquo;<samp>pentium3</samp>&rsquo;</span></dt>
  486. <dt><span>&lsquo;<samp>pentium4</samp>&rsquo;</span></dt>
  487. <dt><span>&lsquo;<samp>k6</samp>&rsquo;</span></dt>
  488. <dt><span>&lsquo;<samp>k62</samp>&rsquo;</span></dt>
  489. <dt><span>&lsquo;<samp>athlon</samp>&rsquo;</span></dt>
  490. <dt><span>&lsquo;<samp>athlonxp</samp>&rsquo;</span></dt>
  491. <dt><span>&lsquo;<samp>k8</samp>&rsquo;</span></dt>
  492. </dl>
  493. </dd>
  494. </dl>
  495. </dd>
  496. <dt><span><samp>-cpucount <var>count</var> (<em>global</em>)</samp></span></dt>
  497. <dd><p>Override detection of CPU count. This option is intended
  498. for testing. Do not use it unless you know what you&rsquo;re doing.
  499. </p><div class="example">
  500. <pre class="example">ffmpeg -cpucount 2
  501. </pre></div>
  502. </dd>
  503. <dt><span><samp>-max_alloc <var>bytes</var></samp></span></dt>
  504. <dd><p>Set the maximum size limit for allocating a block on the heap by ffmpeg&rsquo;s
  505. family of malloc functions. Exercise <strong>extreme caution</strong> when using
  506. this option. Don&rsquo;t use if you do not understand the full consequence of doing so.
  507. Default is INT_MAX.
  508. </p></dd>
  509. </dl>
  510. <a name="AVOptions"></a>
  511. <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>
  512. <p>These options are provided directly by the libavformat, libavdevice and
  513. libavcodec libraries. To see the list of available AVOptions, use the
  514. <samp>-help</samp> option. They are separated into two categories:
  515. </p><dl compact="compact">
  516. <dt><span><samp>generic</samp></span></dt>
  517. <dd><p>These options can be set for any container, codec or device. Generic options
  518. are listed under AVFormatContext options for containers/devices and under
  519. AVCodecContext options for codecs.
  520. </p></dd>
  521. <dt><span><samp>private</samp></span></dt>
  522. <dd><p>These options are specific to the given container, device or codec. Private
  523. options are listed under their corresponding containers/devices/codecs.
  524. </p></dd>
  525. </dl>
  526. <p>For example to write an ID3v2.3 header instead of a default ID3v2.4 to
  527. an MP3 file, use the <samp>id3v2_version</samp> private option of the MP3
  528. muxer:
  529. </p><div class="example">
  530. <pre class="example">ffmpeg -i input.flac -id3v2_version 3 out.mp3
  531. </pre></div>
  532. <p>All codec AVOptions are per-stream, and thus a stream specifier
  533. should be attached to them:
  534. </p><div class="example">
  535. <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
  536. </pre></div>
  537. <p>In the above example, a multichannel audio stream is mapped twice for output.
  538. The first instance is encoded with codec ac3 and bitrate 640k.
  539. The second instance is downmixed to 2 channels and encoded with codec aac. A bitrate of 128k is specified for it using
  540. absolute index of the output stream.
  541. </p>
  542. <p>Note: the <samp>-nooption</samp> syntax cannot be used for boolean
  543. AVOptions, use <samp>-option 0</samp>/<samp>-option 1</samp>.
  544. </p>
  545. <p>Note: the old undocumented way of specifying per-stream AVOptions by
  546. prepending v/a/s to the options name is now obsolete and will be
  547. removed soon.
  548. </p>
  549. <a name="Main-options"></a>
  550. <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>
  551. <dl compact="compact">
  552. <dt><span><samp>-f <var>format</var></samp></span></dt>
  553. <dd><p>Force format to use.
  554. </p>
  555. </dd>
  556. <dt><span><samp>-unit</samp></span></dt>
  557. <dd><p>Show the unit of the displayed values.
  558. </p>
  559. </dd>
  560. <dt><span><samp>-prefix</samp></span></dt>
  561. <dd><p>Use SI prefixes for the displayed values.
  562. Unless the &quot;-byte_binary_prefix&quot; option is used all the prefixes
  563. are decimal.
  564. </p>
  565. </dd>
  566. <dt><span><samp>-byte_binary_prefix</samp></span></dt>
  567. <dd><p>Force the use of binary prefixes for byte values.
  568. </p>
  569. </dd>
  570. <dt><span><samp>-sexagesimal</samp></span></dt>
  571. <dd><p>Use sexagesimal format HH:MM:SS.MICROSECONDS for time values.
  572. </p>
  573. </dd>
  574. <dt><span><samp>-pretty</samp></span></dt>
  575. <dd><p>Prettify the format of the displayed values, it corresponds to the
  576. options &quot;-unit -prefix -byte_binary_prefix -sexagesimal&quot;.
  577. </p>
  578. </dd>
  579. <dt><span><samp>-of, -print_format <var>writer_name</var>[=<var>writer_options</var>]</samp></span></dt>
  580. <dd><p>Set the output printing format.
  581. </p>
  582. <p><var>writer_name</var> specifies the name of the writer, and
  583. <var>writer_options</var> specifies the options to be passed to the writer.
  584. </p>
  585. <p>For example for printing the output in JSON format, specify:
  586. </p><div class="example">
  587. <pre class="example">-print_format json
  588. </pre></div>
  589. <p>For more details on the available output printing formats, see the
  590. Writers section below.
  591. </p>
  592. </dd>
  593. <dt><span><samp>-sections</samp></span></dt>
  594. <dd><p>Print sections structure and section information, and exit. The output
  595. is not meant to be parsed by a machine.
  596. </p>
  597. </dd>
  598. <dt><span><samp>-select_streams <var>stream_specifier</var></samp></span></dt>
  599. <dd><p>Select only the streams specified by <var>stream_specifier</var>. This
  600. option affects only the options related to streams
  601. (e.g. <code>show_streams</code>, <code>show_packets</code>, etc.).
  602. </p>
  603. <p>For example to show only audio streams, you can use the command:
  604. </p><div class="example">
  605. <pre class="example">ffprobe -show_streams -select_streams a INPUT
  606. </pre></div>
  607. <p>To show only video packets belonging to the video stream with index 1:
  608. </p><div class="example">
  609. <pre class="example">ffprobe -show_packets -select_streams v:1 INPUT
  610. </pre></div>
  611. </dd>
  612. <dt><span><samp>-show_data</samp></span></dt>
  613. <dd><p>Show payload data, as a hexadecimal and ASCII dump. Coupled with
  614. <samp>-show_packets</samp>, it will dump the packets&rsquo; data. Coupled with
  615. <samp>-show_streams</samp>, it will dump the codec extradata.
  616. </p>
  617. <p>The dump is printed as the &quot;data&quot; field. It may contain newlines.
  618. </p>
  619. </dd>
  620. <dt><span><samp>-show_data_hash <var>algorithm</var></samp></span></dt>
  621. <dd><p>Show a hash of payload data, for packets with <samp>-show_packets</samp> and for
  622. codec extradata with <samp>-show_streams</samp>.
  623. </p>
  624. </dd>
  625. <dt><span><samp>-show_error</samp></span></dt>
  626. <dd><p>Show information about the error found when trying to probe the input.
  627. </p>
  628. <p>The error information is printed within a section with name &quot;ERROR&quot;.
  629. </p>
  630. </dd>
  631. <dt><span><samp>-show_format</samp></span></dt>
  632. <dd><p>Show information about the container format of the input multimedia
  633. stream.
  634. </p>
  635. <p>All the container format information is printed within a section with
  636. name &quot;FORMAT&quot;.
  637. </p>
  638. </dd>
  639. <dt><span><samp>-show_format_entry <var>name</var></samp></span></dt>
  640. <dd><p>Like <samp>-show_format</samp>, but only prints the specified entry of the
  641. container format information, rather than all. This option may be given more
  642. than once, then all specified entries will be shown.
  643. </p>
  644. <p>This option is deprecated, use <code>show_entries</code> instead.
  645. </p>
  646. </dd>
  647. <dt><span><samp>-show_entries <var>section_entries</var></samp></span></dt>
  648. <dd><p>Set list of entries to show.
  649. </p>
  650. <p>Entries are specified according to the following
  651. syntax. <var>section_entries</var> contains a list of section entries
  652. separated by <code>:</code>. Each section entry is composed by a section
  653. name (or unique name), optionally followed by a list of entries local
  654. to that section, separated by <code>,</code>.
  655. </p>
  656. <p>If section name is specified but is followed by no <code>=</code>, all
  657. entries are printed to output, together with all the contained
  658. sections. Otherwise only the entries specified in the local section
  659. entries list are printed. In particular, if <code>=</code> is specified but
  660. the list of local entries is empty, then no entries will be shown for
  661. that section.
  662. </p>
  663. <p>Note that the order of specification of the local section entries is
  664. not honored in the output, and the usual display order will be
  665. retained.
  666. </p>
  667. <p>The formal syntax is given by:
  668. </p><div class="example">
  669. <pre class="example"><var>LOCAL_SECTION_ENTRIES</var> ::= <var>SECTION_ENTRY_NAME</var>[,<var>LOCAL_SECTION_ENTRIES</var>]
  670. <var>SECTION_ENTRY</var> ::= <var>SECTION_NAME</var>[=[<var>LOCAL_SECTION_ENTRIES</var>]]
  671. <var>SECTION_ENTRIES</var> ::= <var>SECTION_ENTRY</var>[:<var>SECTION_ENTRIES</var>]
  672. </pre></div>
  673. <p>For example, to show only the index and type of each stream, and the PTS
  674. time, duration time, and stream index of the packets, you can specify
  675. the argument:
  676. </p><div class="example">
  677. <pre class="example">packet=pts_time,duration_time,stream_index : stream=index,codec_type
  678. </pre></div>
  679. <p>To show all the entries in the section &quot;format&quot;, but only the codec
  680. type in the section &quot;stream&quot;, specify the argument:
  681. </p><div class="example">
  682. <pre class="example">format : stream=codec_type
  683. </pre></div>
  684. <p>To show all the tags in the stream and format sections:
  685. </p><div class="example">
  686. <pre class="example">stream_tags : format_tags
  687. </pre></div>
  688. <p>To show only the <code>title</code> tag (if available) in the stream
  689. sections:
  690. </p><div class="example">
  691. <pre class="example">stream_tags=title
  692. </pre></div>
  693. </dd>
  694. <dt><span><samp>-show_packets</samp></span></dt>
  695. <dd><p>Show information about each packet contained in the input multimedia
  696. stream.
  697. </p>
  698. <p>The information for each single packet is printed within a dedicated
  699. section with name &quot;PACKET&quot;.
  700. </p>
  701. </dd>
  702. <dt><span><samp>-show_frames</samp></span></dt>
  703. <dd><p>Show information about each frame and subtitle contained in the input
  704. multimedia stream.
  705. </p>
  706. <p>The information for each single frame is printed within a dedicated
  707. section with name &quot;FRAME&quot; or &quot;SUBTITLE&quot;.
  708. </p>
  709. </dd>
  710. <dt><span><samp>-show_log <var>loglevel</var></samp></span></dt>
  711. <dd><p>Show logging information from the decoder about each frame according to
  712. the value set in <var>loglevel</var>, (see <code>-loglevel</code>). This option requires <code>-show_frames</code>.
  713. </p>
  714. <p>The information for each log message is printed within a dedicated
  715. section with name &quot;LOG&quot;.
  716. </p>
  717. </dd>
  718. <dt><span><samp>-show_streams</samp></span></dt>
  719. <dd><p>Show information about each media stream contained in the input
  720. multimedia stream.
  721. </p>
  722. <p>Each media stream information is printed within a dedicated section
  723. with name &quot;STREAM&quot;.
  724. </p>
  725. </dd>
  726. <dt><span><samp>-show_programs</samp></span></dt>
  727. <dd><p>Show information about programs and their streams contained in the input
  728. multimedia stream.
  729. </p>
  730. <p>Each media stream information is printed within a dedicated section
  731. with name &quot;PROGRAM_STREAM&quot;.
  732. </p>
  733. </dd>
  734. <dt><span><samp>-show_chapters</samp></span></dt>
  735. <dd><p>Show information about chapters stored in the format.
  736. </p>
  737. <p>Each chapter is printed within a dedicated section with name &quot;CHAPTER&quot;.
  738. </p>
  739. </dd>
  740. <dt><span><samp>-count_frames</samp></span></dt>
  741. <dd><p>Count the number of frames per stream and report it in the
  742. corresponding stream section.
  743. </p>
  744. </dd>
  745. <dt><span><samp>-count_packets</samp></span></dt>
  746. <dd><p>Count the number of packets per stream and report it in the
  747. corresponding stream section.
  748. </p>
  749. </dd>
  750. <dt><span><samp>-read_intervals <var>read_intervals</var></samp></span></dt>
  751. <dd>
  752. <p>Read only the specified intervals. <var>read_intervals</var> must be a
  753. sequence of interval specifications separated by &quot;,&quot;.
  754. <code>ffprobe</code> will seek to the interval starting point, and will
  755. continue reading from that.
  756. </p>
  757. <p>Each interval is specified by two optional parts, separated by &quot;%&quot;.
  758. </p>
  759. <p>The first part specifies the interval start position. It is
  760. interpreted as an absolute position, or as a relative offset from the
  761. current position if it is preceded by the &quot;+&quot; character. If this first
  762. part is not specified, no seeking will be performed when reading this
  763. interval.
  764. </p>
  765. <p>The second part specifies the interval end position. It is interpreted
  766. as an absolute position, or as a relative offset from the current
  767. position if it is preceded by the &quot;+&quot; character. If the offset
  768. specification starts with &quot;#&quot;, it is interpreted as the number of
  769. packets to read (not including the flushing packets) from the interval
  770. start. If no second part is specified, the program will read until the
  771. end of the input.
  772. </p>
  773. <p>Note that seeking is not accurate, thus the actual interval start
  774. point may be different from the specified position. Also, when an
  775. interval duration is specified, the absolute end time will be computed
  776. by adding the duration to the interval start point found by seeking
  777. the file, rather than to the specified start value.
  778. </p>
  779. <p>The formal syntax is given by:
  780. </p><div class="example">
  781. <pre class="example"><var>INTERVAL</var> ::= [<var>START</var>|+<var>START_OFFSET</var>][%[<var>END</var>|+<var>END_OFFSET</var>]]
  782. <var>INTERVALS</var> ::= <var>INTERVAL</var>[,<var>INTERVALS</var>]
  783. </pre></div>
  784. <p>A few examples follow.
  785. </p><ul>
  786. <li> Seek to time 10, read packets until 20 seconds after the found seek
  787. point, then seek to position <code>01:30</code> (1 minute and thirty
  788. seconds) and read packets until position <code>01:45</code>.
  789. <div class="example">
  790. <pre class="example">10%+20,01:30%01:45
  791. </pre></div>
  792. </li><li> Read only 42 packets after seeking to position <code>01:23</code>:
  793. <div class="example">
  794. <pre class="example">01:23%+#42
  795. </pre></div>
  796. </li><li> Read only the first 20 seconds from the start:
  797. <div class="example">
  798. <pre class="example">%+20
  799. </pre></div>
  800. </li><li> Read from the start until position <code>02:30</code>:
  801. <div class="example">
  802. <pre class="example">%02:30
  803. </pre></div>
  804. </li></ul>
  805. </dd>
  806. <dt><span><samp>-show_private_data, -private</samp></span></dt>
  807. <dd><p>Show private data, that is data depending on the format of the
  808. particular shown element.
  809. This option is enabled by default, but you may need to disable it
  810. for specific uses, for example when creating XSD-compliant XML output.
  811. </p>
  812. </dd>
  813. <dt><span><samp>-show_program_version</samp></span></dt>
  814. <dd><p>Show information related to program version.
  815. </p>
  816. <p>Version information is printed within a section with name
  817. &quot;PROGRAM_VERSION&quot;.
  818. </p>
  819. </dd>
  820. <dt><span><samp>-show_library_versions</samp></span></dt>
  821. <dd><p>Show information related to library versions.
  822. </p>
  823. <p>Version information for each library is printed within a section with
  824. name &quot;LIBRARY_VERSION&quot;.
  825. </p>
  826. </dd>
  827. <dt><span><samp>-show_versions</samp></span></dt>
  828. <dd><p>Show information related to program and library versions. This is the
  829. equivalent of setting both <samp>-show_program_version</samp> and
  830. <samp>-show_library_versions</samp> options.
  831. </p>
  832. </dd>
  833. <dt><span><samp>-show_pixel_formats</samp></span></dt>
  834. <dd><p>Show information about all pixel formats supported by FFmpeg.
  835. </p>
  836. <p>Pixel format information for each format is printed within a section
  837. with name &quot;PIXEL_FORMAT&quot;.
  838. </p>
  839. </dd>
  840. <dt><span><samp>-show_optional_fields <var>value</var></samp></span></dt>
  841. <dd><p>Some writers viz. JSON and XML, omit the printing of fields with invalid or non-applicable values,
  842. while other writers always print them. This option enables one to control this behaviour.
  843. Valid values are <code>always</code>/<code>1</code>, <code>never</code>/<code>0</code> and <code>auto</code>/<code>-1</code>.
  844. Default is <var>auto</var>.
  845. </p>
  846. </dd>
  847. <dt><span><samp>-bitexact</samp></span></dt>
  848. <dd><p>Force bitexact output, useful to produce output which is not dependent
  849. on the specific build.
  850. </p>
  851. </dd>
  852. <dt><span><samp>-i <var>input_url</var></samp></span></dt>
  853. <dd><p>Read <var>input_url</var>.
  854. </p>
  855. </dd>
  856. <dt><span><samp>-o <var>output_url</var></samp></span></dt>
  857. <dd><p>Write output to <var>output_url</var>. If not specified, the output is sent
  858. to stdout.
  859. </p>
  860. </dd>
  861. </dl>
  862. <a name="Writers"></a>
  863. <h2 class="chapter">4 Writers<span class="pull-right"><a class="anchor hidden-xs" href="#Writers" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Writers" aria-hidden="true">TOC</a></span></h2>
  864. <p>A writer defines the output format adopted by <code>ffprobe</code>, and will be
  865. used for printing all the parts of the output.
  866. </p>
  867. <p>A writer may accept one or more arguments, which specify the options
  868. to adopt. The options are specified as a list of <var>key</var>=<var>value</var>
  869. pairs, separated by &quot;:&quot;.
  870. </p>
  871. <p>All writers support the following options:
  872. </p>
  873. <dl compact="compact">
  874. <dt><span><samp>string_validation, sv</samp></span></dt>
  875. <dd><p>Set string validation mode.
  876. </p>
  877. <p>The following values are accepted.
  878. </p><dl compact="compact">
  879. <dt><span>&lsquo;<samp>fail</samp>&rsquo;</span></dt>
  880. <dd><p>The writer will fail immediately in case an invalid string (UTF-8)
  881. sequence or code point is found in the input. This is especially
  882. useful to validate input metadata.
  883. </p>
  884. </dd>
  885. <dt><span>&lsquo;<samp>ignore</samp>&rsquo;</span></dt>
  886. <dd><p>Any validation error will be ignored. This will result in possibly
  887. broken output, especially with the json or xml writer.
  888. </p>
  889. </dd>
  890. <dt><span>&lsquo;<samp>replace</samp>&rsquo;</span></dt>
  891. <dd><p>The writer will substitute invalid UTF-8 sequences or code points with
  892. the string specified with the <samp>string_validation_replacement</samp>.
  893. </p></dd>
  894. </dl>
  895. <p>Default value is &lsquo;<samp>replace</samp>&rsquo;.
  896. </p>
  897. </dd>
  898. <dt><span><samp>string_validation_replacement, svr</samp></span></dt>
  899. <dd><p>Set replacement string to use in case <samp>string_validation</samp> is
  900. set to &lsquo;<samp>replace</samp>&rsquo;.
  901. </p>
  902. <p>In case the option is not specified, the writer will assume the empty
  903. string, that is it will remove the invalid sequences from the input
  904. strings.
  905. </p></dd>
  906. </dl>
  907. <p>A description of the currently available writers follows.
  908. </p>
  909. <a name="default"></a>
  910. <h3 class="section">4.1 default<span class="pull-right"><a class="anchor hidden-xs" href="#default" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-default" aria-hidden="true">TOC</a></span></h3>
  911. <p>Default format.
  912. </p>
  913. <p>Print each section in the form:
  914. </p><div class="example">
  915. <pre class="example">[SECTION]
  916. key1=val1
  917. ...
  918. keyN=valN
  919. [/SECTION]
  920. </pre></div>
  921. <p>Metadata tags are printed as a line in the corresponding FORMAT, STREAM or
  922. PROGRAM_STREAM section, and are prefixed by the string &quot;TAG:&quot;.
  923. </p>
  924. <p>A description of the accepted options follows.
  925. </p>
  926. <dl compact="compact">
  927. <dt><span><samp>nokey, nk</samp></span></dt>
  928. <dd><p>If set to 1 specify not to print the key of each field. Default value
  929. is 0.
  930. </p>
  931. </dd>
  932. <dt><span><samp>noprint_wrappers, nw</samp></span></dt>
  933. <dd><p>If set to 1 specify not to print the section header and footer.
  934. Default value is 0.
  935. </p></dd>
  936. </dl>
  937. <a name="compact_002c-csv"></a>
  938. <h3 class="section">4.2 compact, csv<span class="pull-right"><a class="anchor hidden-xs" href="#compact_002c-csv" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-compact_002c-csv" aria-hidden="true">TOC</a></span></h3>
  939. <p>Compact and CSV format.
  940. </p>
  941. <p>The <code>csv</code> writer is equivalent to <code>compact</code>, but supports
  942. different defaults.
  943. </p>
  944. <p>Each section is printed on a single line.
  945. If no option is specified, the output has the form:
  946. </p><div class="example">
  947. <pre class="example">section|key1=val1| ... |keyN=valN
  948. </pre></div>
  949. <p>Metadata tags are printed in the corresponding &quot;format&quot; or &quot;stream&quot;
  950. section. A metadata tag key, if printed, is prefixed by the string
  951. &quot;tag:&quot;.
  952. </p>
  953. <p>The description of the accepted options follows.
  954. </p>
  955. <dl compact="compact">
  956. <dt><span><samp>item_sep, s</samp></span></dt>
  957. <dd><p>Specify the character to use for separating fields in the output line.
  958. It must be a single printable character, it is &quot;|&quot; by default (&quot;,&quot; for
  959. the <code>csv</code> writer).
  960. </p>
  961. </dd>
  962. <dt><span><samp>nokey, nk</samp></span></dt>
  963. <dd><p>If set to 1 specify not to print the key of each field. Its default
  964. value is 0 (1 for the <code>csv</code> writer).
  965. </p>
  966. </dd>
  967. <dt><span><samp>escape, e</samp></span></dt>
  968. <dd><p>Set the escape mode to use, default to &quot;c&quot; (&quot;csv&quot; for the <code>csv</code>
  969. writer).
  970. </p>
  971. <p>It can assume one of the following values:
  972. </p><dl compact="compact">
  973. <dt><span><samp>c</samp></span></dt>
  974. <dd><p>Perform C-like escaping. Strings containing a newline (&lsquo;<samp>\n</samp>&rsquo;), carriage
  975. return (&lsquo;<samp>\r</samp>&rsquo;), a tab (&lsquo;<samp>\t</samp>&rsquo;), a form feed (&lsquo;<samp>\f</samp>&rsquo;), the escaping
  976. character (&lsquo;<samp>\</samp>&rsquo;) or the item separator character <var>SEP</var> are escaped
  977. using C-like fashioned escaping, so that a newline is converted to the
  978. sequence &lsquo;<samp>\n</samp>&rsquo;, a carriage return to &lsquo;<samp>\r</samp>&rsquo;, &lsquo;<samp>\</samp>&rsquo; to &lsquo;<samp>\\</samp>&rsquo; and
  979. the separator <var>SEP</var> is converted to &lsquo;<samp>\<var>SEP</var></samp>&rsquo;.
  980. </p>
  981. </dd>
  982. <dt><span><samp>csv</samp></span></dt>
  983. <dd><p>Perform CSV-like escaping, as described in RFC4180. Strings
  984. containing a newline (&lsquo;<samp>\n</samp>&rsquo;), a carriage return (&lsquo;<samp>\r</samp>&rsquo;), a double quote
  985. (&lsquo;<samp>&quot;</samp>&rsquo;), or <var>SEP</var> are enclosed in double-quotes.
  986. </p>
  987. </dd>
  988. <dt><span><samp>none</samp></span></dt>
  989. <dd><p>Perform no escaping.
  990. </p></dd>
  991. </dl>
  992. </dd>
  993. <dt><span><samp>print_section, p</samp></span></dt>
  994. <dd><p>Print the section name at the beginning of each line if the value is
  995. <code>1</code>, disable it with value set to <code>0</code>. Default value is
  996. <code>1</code>.
  997. </p>
  998. </dd>
  999. </dl>
  1000. <a name="flat"></a>
  1001. <h3 class="section">4.3 flat<span class="pull-right"><a class="anchor hidden-xs" href="#flat" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-flat" aria-hidden="true">TOC</a></span></h3>
  1002. <p>Flat format.
  1003. </p>
  1004. <p>A free-form output where each line contains an explicit key=value, such as
  1005. &quot;streams.stream.3.tags.foo=bar&quot;. The output is shell escaped, so it can be
  1006. directly embedded in sh scripts as long as the separator character is an
  1007. alphanumeric character or an underscore (see <var>sep_char</var> option).
  1008. </p>
  1009. <p>The description of the accepted options follows.
  1010. </p>
  1011. <dl compact="compact">
  1012. <dt><span><samp>sep_char, s</samp></span></dt>
  1013. <dd><p>Separator character used to separate the chapter, the section name, IDs and
  1014. potential tags in the printed field key.
  1015. </p>
  1016. <p>Default value is &lsquo;<samp>.</samp>&rsquo;.
  1017. </p>
  1018. </dd>
  1019. <dt><span><samp>hierarchical, h</samp></span></dt>
  1020. <dd><p>Specify if the section name specification should be hierarchical. If
  1021. set to 1, and if there is more than one section in the current
  1022. chapter, the section name will be prefixed by the name of the
  1023. chapter. A value of 0 will disable this behavior.
  1024. </p>
  1025. <p>Default value is 1.
  1026. </p></dd>
  1027. </dl>
  1028. <a name="ini"></a>
  1029. <h3 class="section">4.4 ini<span class="pull-right"><a class="anchor hidden-xs" href="#ini" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-ini" aria-hidden="true">TOC</a></span></h3>
  1030. <p>INI format output.
  1031. </p>
  1032. <p>Print output in an INI based format.
  1033. </p>
  1034. <p>The following conventions are adopted:
  1035. </p>
  1036. <ul>
  1037. <li> all key and values are UTF-8
  1038. </li><li> &lsquo;<samp>.</samp>&rsquo; is the subgroup separator
  1039. </li><li> newline, &lsquo;<samp>\t</samp>&rsquo;, &lsquo;<samp>\f</samp>&rsquo;, &lsquo;<samp>\b</samp>&rsquo; and the following characters are
  1040. escaped
  1041. </li><li> &lsquo;<samp>\</samp>&rsquo; is the escape character
  1042. </li><li> &lsquo;<samp>#</samp>&rsquo; is the comment indicator
  1043. </li><li> &lsquo;<samp>=</samp>&rsquo; is the key/value separator
  1044. </li><li> &lsquo;<samp>:</samp>&rsquo; is not used but usually parsed as key/value separator
  1045. </li></ul>
  1046. <p>This writer accepts options as a list of <var>key</var>=<var>value</var> pairs,
  1047. separated by &lsquo;<samp>:</samp>&rsquo;.
  1048. </p>
  1049. <p>The description of the accepted options follows.
  1050. </p>
  1051. <dl compact="compact">
  1052. <dt><span><samp>hierarchical, h</samp></span></dt>
  1053. <dd><p>Specify if the section name specification should be hierarchical. If
  1054. set to 1, and if there is more than one section in the current
  1055. chapter, the section name will be prefixed by the name of the
  1056. chapter. A value of 0 will disable this behavior.
  1057. </p>
  1058. <p>Default value is 1.
  1059. </p></dd>
  1060. </dl>
  1061. <a name="json"></a>
  1062. <h3 class="section">4.5 json<span class="pull-right"><a class="anchor hidden-xs" href="#json" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-json" aria-hidden="true">TOC</a></span></h3>
  1063. <p>JSON based format.
  1064. </p>
  1065. <p>Each section is printed using JSON notation.
  1066. </p>
  1067. <p>The description of the accepted options follows.
  1068. </p>
  1069. <dl compact="compact">
  1070. <dt><span><samp>compact, c</samp></span></dt>
  1071. <dd><p>If set to 1 enable compact output, that is each section will be
  1072. printed on a single line. Default value is 0.
  1073. </p></dd>
  1074. </dl>
  1075. <p>For more information about JSON, see <a href="http://www.json.org/">http://www.json.org/</a>.
  1076. </p>
  1077. <a name="xml"></a>
  1078. <h3 class="section">4.6 xml<span class="pull-right"><a class="anchor hidden-xs" href="#xml" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-xml" aria-hidden="true">TOC</a></span></h3>
  1079. <p>XML based format.
  1080. </p>
  1081. <p>The XML output is described in the XML schema description file
  1082. <samp>ffprobe.xsd</samp> installed in the FFmpeg datadir.
  1083. </p>
  1084. <p>An updated version of the schema can be retrieved at the url
  1085. <a href="http://www.ffmpeg.org/schema/ffprobe.xsd">http://www.ffmpeg.org/schema/ffprobe.xsd</a>, which redirects to the
  1086. latest schema committed into the FFmpeg development source code tree.
  1087. </p>
  1088. <p>Note that the output issued will be compliant to the
  1089. <samp>ffprobe.xsd</samp> schema only when no special global output options
  1090. (<samp>unit</samp>, <samp>prefix</samp>, <samp>byte_binary_prefix</samp>,
  1091. <samp>sexagesimal</samp> etc.) are specified.
  1092. </p>
  1093. <p>The description of the accepted options follows.
  1094. </p>
  1095. <dl compact="compact">
  1096. <dt><span><samp>fully_qualified, q</samp></span></dt>
  1097. <dd><p>If set to 1 specify if the output should be fully qualified. Default
  1098. value is 0.
  1099. This is required for generating an XML file which can be validated
  1100. through an XSD file.
  1101. </p>
  1102. </dd>
  1103. <dt><span><samp>xsd_strict, x</samp></span></dt>
  1104. <dd><p>If set to 1 perform more checks for ensuring that the output is XSD
  1105. compliant. Default value is 0.
  1106. This option automatically sets <samp>fully_qualified</samp> to 1.
  1107. </p></dd>
  1108. </dl>
  1109. <p>For more information about the XML format, see
  1110. <a href="https://www.w3.org/XML/">https://www.w3.org/XML/</a>.
  1111. </p>
  1112. <a name="Timecode"></a>
  1113. <h2 class="chapter">5 Timecode<span class="pull-right"><a class="anchor hidden-xs" href="#Timecode" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Timecode" aria-hidden="true">TOC</a></span></h2>
  1114. <p><code>ffprobe</code> supports Timecode extraction:
  1115. </p>
  1116. <ul>
  1117. <li> MPEG1/2 timecode is extracted from the GOP, and is available in the video
  1118. stream details (<samp>-show_streams</samp>, see <var>timecode</var>).
  1119. </li><li> MOV timecode is extracted from tmcd track, so is available in the tmcd
  1120. stream metadata (<samp>-show_streams</samp>, see <var>TAG:timecode</var>).
  1121. </li><li> DV, GXF and AVI timecodes are available in format metadata
  1122. (<samp>-show_format</samp>, see <var>TAG:timecode</var>).
  1123. </li></ul>
  1124. <a name="See-Also"></a>
  1125. <h2 class="chapter">6 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>
  1126. <p><a href="ffprobe-all.html">ffprobe-all</a>,
  1127. <a href="ffmpeg.html">ffmpeg</a>, <a href="ffplay.html">ffplay</a>,
  1128. <a href="ffmpeg-utils.html">ffmpeg-utils</a>,
  1129. <a href="ffmpeg-scaler.html">ffmpeg-scaler</a>,
  1130. <a href="ffmpeg-resampler.html">ffmpeg-resampler</a>,
  1131. <a href="ffmpeg-codecs.html">ffmpeg-codecs</a>,
  1132. <a href="ffmpeg-bitstream-filters.html">ffmpeg-bitstream-filters</a>,
  1133. <a href="ffmpeg-formats.html">ffmpeg-formats</a>,
  1134. <a href="ffmpeg-devices.html">ffmpeg-devices</a>,
  1135. <a href="ffmpeg-protocols.html">ffmpeg-protocols</a>,
  1136. <a href="ffmpeg-filters.html">ffmpeg-filters</a>
  1137. </p>
  1138. <a name="Authors"></a>
  1139. <h2 class="chapter">7 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>
  1140. <p>The FFmpeg developers.
  1141. </p>
  1142. <p>For details about the authorship, see the Git history of the project
  1143. (https://git.ffmpeg.org/ffmpeg), e.g. by typing the command
  1144. <code>git log</code> in the FFmpeg source directory, or browsing the
  1145. online repository at <a href="https://git.ffmpeg.org/ffmpeg">https://git.ffmpeg.org/ffmpeg</a>.
  1146. </p>
  1147. <p>Maintainers for the specific components are listed in the file
  1148. <samp>MAINTAINERS</samp> in the source code tree.
  1149. </p>
  1150. <p style="font-size: small;">
  1151. This document was generated using <a href="https://www.gnu.org/software/texinfo/"><em>makeinfo</em></a>.
  1152. </p>
  1153. </div>
  1154. </body>
  1155. </html>