ffprobe.texi 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  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 -i @var{input_file}
  83. Read @var{input_file}.
  84. @end table
  85. @c man end
  86. @chapter Writers
  87. @c man begin WRITERS
  88. A writer defines the output format adopted by @file{ffprobe}, and will be
  89. used for printing all the parts of the output.
  90. A writer may accept one or more arguments, which specify the options to
  91. adopt.
  92. A description of the currently available writers follows.
  93. @section default
  94. Default format.
  95. Print each section in the form:
  96. @example
  97. [SECTION]
  98. key1=val1
  99. ...
  100. keyN=valN
  101. [/SECTION]
  102. @end example
  103. Metadata tags are printed as a line in the corresponding FORMAT or
  104. STREAM section, and are prefixed by the string "TAG:".
  105. @section compact
  106. Compact format.
  107. Each section is printed on a single line.
  108. If no option is specifid, the output has the form:
  109. @example
  110. section|key1=val1| ... |keyN=valN
  111. @end example
  112. Metadata tags are printed in the corresponding "format" or "stream"
  113. section. A metadata tag key, if printed, is prefixed by the string
  114. "tag:".
  115. This writer accepts options as a list of @var{key}=@var{value} pairs,
  116. separated by ":".
  117. The description of the accepted options follows.
  118. @table @option
  119. @item item_sep, s
  120. Specify the character to use for separating fields in the output line.
  121. It must be a single printable character, it is "|" by default.
  122. @item nokey, nk
  123. If set to 1 specify not to print the key of each field. Its default
  124. value is 0.
  125. @item escape, e
  126. Set the escape mode to use, default to "c".
  127. It can assume one of the following values:
  128. @table @option
  129. @item c
  130. Perform C-like escaping. Strings containing a newline ('\n') or
  131. carriage return ('\r'), the escaping character ('\') or the item
  132. separator character @var{SEP} are escaped using C-like fashioned
  133. escaping, so that a newline is converted to the sequence "\n", a
  134. carriage return to "\r", '\' to "\\" and the separator @var{SEP} is
  135. converted to "\@var{SEP}".
  136. @item csv
  137. Perform CSV-like escaping, as described in RFC4180. Strings
  138. containing a newline ('\n'), a carriage return ('\r'), a double quote
  139. ('"'), or @var{SEP} are enclosed in double-quotes.
  140. @item none
  141. Perform no escaping.
  142. @end table
  143. @end table
  144. @section csv
  145. CSV format.
  146. This writer is equivalent to
  147. @code{compact=item_sep=,:nokey=1:escape=csv}.
  148. @section json
  149. JSON based format.
  150. Each section is printed using JSON notation.
  151. For more information about JSON, see @url{http://www.json.org/}.
  152. @c man end WRITERS
  153. @include decoders.texi
  154. @include demuxers.texi
  155. @include protocols.texi
  156. @include indevs.texi
  157. @ignore
  158. @setfilename ffprobe
  159. @settitle ffprobe media prober
  160. @c man begin SEEALSO
  161. ffmpeg(1), ffplay(1), ffserver(1) and the FFmpeg HTML documentation
  162. @c man end
  163. @c man begin AUTHORS
  164. The FFmpeg developers
  165. @c man end
  166. @end ignore
  167. @bye