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.

277 lines
6.9KB

  1. \input texinfo @c -*- texinfo -*-
  2. @settitle ffprobe Documentation
  3. @titlepage
  4. @center @titlefont{ffprobe Documentation}
  5. @end titlepage
  6. @top
  7. @contents
  8. @chapter Synopsis
  9. The generic syntax is:
  10. @example
  11. @c man begin SYNOPSIS
  12. ffprobe [options] [@file{input_file}]
  13. @c man end
  14. @end example
  15. @chapter Description
  16. @c man begin DESCRIPTION
  17. ffprobe gathers information from multimedia streams and prints it in
  18. human- and machine-readable fashion.
  19. For example it can be used to check the format of the container used
  20. by a multimedia stream and the format and type of each media stream
  21. contained in it.
  22. If a filename is specified in input, ffprobe will try to open and
  23. probe the file content. If the file cannot be opened or recognized as
  24. a multimedia file, a positive exit code is returned.
  25. ffprobe may be employed both as a standalone application or in
  26. combination with a textual filter, which may perform more
  27. sophisticated processing, e.g. statistical processing or plotting.
  28. Options are used to list some of the formats supported by ffprobe or
  29. for specifying which information to display, and for setting how
  30. ffprobe will show it.
  31. ffprobe output is designed to be easily parsable by a textual filter,
  32. and consists of one or more sections of a form defined by the selected
  33. writer, which is specified by the @option{print_format} option.
  34. Metadata tags stored in the container or in the streams are recognized
  35. and printed in the corresponding "FORMAT" or "STREAM" section.
  36. @c man end
  37. @chapter Options
  38. @c man begin OPTIONS
  39. @include avtools-common-opts.texi
  40. @section Main options
  41. @table @option
  42. @item -f @var{format}
  43. Force format to use.
  44. @item -unit
  45. Show the unit of the displayed values.
  46. @item -prefix
  47. Use SI prefixes for the displayed values.
  48. Unless the "-byte_binary_prefix" option is used all the prefixes
  49. are decimal.
  50. @item -byte_binary_prefix
  51. Force the use of binary prefixes for byte values.
  52. @item -sexagesimal
  53. Use sexagesimal format HH:MM:SS.MICROSECONDS for time values.
  54. @item -pretty
  55. Prettify the format of the displayed values, it corresponds to the
  56. options "-unit -prefix -byte_binary_prefix -sexagesimal".
  57. @item -print_format @var{writer_name}[=@var{writer_options}]
  58. Set the output printing format.
  59. @var{writer_name} specifies the name of the writer, and
  60. @var{writer_options} specifies the options to be passed to the writer.
  61. For example for printing the output in JSON format, specify:
  62. @example
  63. -print_format json
  64. @end example
  65. For more details on the available output printing formats, see the
  66. Writers section below.
  67. @item -show_format
  68. Show information about the container format of the input multimedia
  69. stream.
  70. All the container format information is printed within a section with
  71. name "FORMAT".
  72. @item -show_packets
  73. Show information about each packet contained in the input multimedia
  74. stream.
  75. The information for each single packet is printed within a dedicated
  76. section with name "PACKET".
  77. @item -show_streams
  78. Show information about each media stream contained in the input
  79. multimedia stream.
  80. Each media stream information is printed within a dedicated section
  81. with name "STREAM".
  82. @item -show_private_data, -private
  83. Show private data, that is data depending on the format of the
  84. particular shown element.
  85. This option is enabled by default, but you may need to disable it
  86. for specific uses, for example when creating XSD-compliant XML output.
  87. @item -i @var{input_file}
  88. Read @var{input_file}.
  89. @end table
  90. @c man end
  91. @chapter Writers
  92. @c man begin WRITERS
  93. A writer defines the output format adopted by @file{ffprobe}, and will be
  94. used for printing all the parts of the output.
  95. A writer may accept one or more arguments, which specify the options to
  96. adopt.
  97. A description of the currently available writers follows.
  98. @section default
  99. Default format.
  100. Print each section in the form:
  101. @example
  102. [SECTION]
  103. key1=val1
  104. ...
  105. keyN=valN
  106. [/SECTION]
  107. @end example
  108. Metadata tags are printed as a line in the corresponding FORMAT or
  109. STREAM section, and are prefixed by the string "TAG:".
  110. @section compact
  111. Compact format.
  112. Each section is printed on a single line.
  113. If no option is specifid, the output has the form:
  114. @example
  115. section|key1=val1| ... |keyN=valN
  116. @end example
  117. Metadata tags are printed in the corresponding "format" or "stream"
  118. section. A metadata tag key, if printed, is prefixed by the string
  119. "tag:".
  120. This writer accepts options as a list of @var{key}=@var{value} pairs,
  121. separated by ":".
  122. The description of the accepted options follows.
  123. @table @option
  124. @item item_sep, s
  125. Specify the character to use for separating fields in the output line.
  126. It must be a single printable character, it is "|" by default.
  127. @item nokey, nk
  128. If set to 1 specify not to print the key of each field. Its default
  129. value is 0.
  130. @item escape, e
  131. Set the escape mode to use, default to "c".
  132. It can assume one of the following values:
  133. @table @option
  134. @item c
  135. Perform C-like escaping. Strings containing a newline ('\n') or
  136. carriage return ('\r'), the escaping character ('\') or the item
  137. separator character @var{SEP} are escaped using C-like fashioned
  138. escaping, so that a newline is converted to the sequence "\n", a
  139. carriage return to "\r", '\' to "\\" and the separator @var{SEP} is
  140. converted to "\@var{SEP}".
  141. @item csv
  142. Perform CSV-like escaping, as described in RFC4180. Strings
  143. containing a newline ('\n'), a carriage return ('\r'), a double quote
  144. ('"'), or @var{SEP} are enclosed in double-quotes.
  145. @item none
  146. Perform no escaping.
  147. @end table
  148. @end table
  149. @section csv
  150. CSV format.
  151. This writer is equivalent to
  152. @code{compact=item_sep=,:nokey=1:escape=csv}.
  153. @section json
  154. JSON based format.
  155. Each section is printed using JSON notation.
  156. For more information about JSON, see @url{http://www.json.org/}.
  157. @section xml
  158. XML based format.
  159. The XML output is described in the XML schema description file
  160. @file{ffprobe.xsd} installed in the FFmpeg datadir.
  161. Note that the output issued will be compliant to the
  162. @file{ffprobe.xsd} schema only when no special global output options
  163. (@option{unit}, @option{prefix}, @option{byte_binary_prefix},
  164. @option{sexagesimal} etc.) are specified.
  165. This writer accepts options as a list of @var{key}=@var{value} pairs,
  166. separated by ":".
  167. The description of the accepted options follows.
  168. @table @option
  169. @item fully_qualified, q
  170. If set to 1 specify if the output should be fully qualified. Default
  171. value is 0.
  172. This is required for generating an XML file which can be validated
  173. through an XSD file.
  174. @item xsd_compliant, x
  175. If set to 1 perform more checks for ensuring that the output is XSD
  176. compliant. Default value is 0.
  177. This option automatically sets @option{fully_qualified} to 1.
  178. @end table
  179. For more information about the XML format, see
  180. @url{http://www.w3.org/XML/}.
  181. @c man end WRITERS
  182. @include decoders.texi
  183. @include demuxers.texi
  184. @include protocols.texi
  185. @include indevs.texi
  186. @ignore
  187. @setfilename ffprobe
  188. @settitle ffprobe media prober
  189. @c man begin SEEALSO
  190. ffmpeg(1), ffplay(1), ffserver(1) and the FFmpeg HTML documentation
  191. @c man end
  192. @c man begin AUTHORS
  193. The FFmpeg developers
  194. @c man end
  195. @end ignore
  196. @bye