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.

226 lines
6.0KB

  1. \input texinfo @c -*- texinfo -*-
  2. @settitle ffplay Documentation
  3. @titlepage
  4. @center @titlefont{ffplay Documentation}
  5. @end titlepage
  6. @top
  7. @contents
  8. @chapter Synopsis
  9. ffplay [@var{options}] [@file{input_file}]
  10. @chapter Description
  11. @c man begin DESCRIPTION
  12. FFplay is a very simple and portable media player using the FFmpeg
  13. libraries and the SDL library. It is mostly used as a testbed for the
  14. various FFmpeg APIs.
  15. @c man end
  16. @chapter Options
  17. @c man begin OPTIONS
  18. @include avtools-common-opts.texi
  19. @section Main options
  20. @table @option
  21. @item -x @var{width}
  22. Force displayed width.
  23. @item -y @var{height}
  24. Force displayed height.
  25. @item -s @var{size}
  26. Set frame size (WxH or abbreviation), needed for videos which do
  27. not contain a header with the frame size like raw YUV. This option
  28. has been deprecated in favor of private options, try -video_size.
  29. @item -an
  30. Disable audio.
  31. @item -vn
  32. Disable video.
  33. @item -ss @var{pos}
  34. Seek to a given position in seconds.
  35. @item -t @var{duration}
  36. play <duration> seconds of audio/video
  37. @item -bytes
  38. Seek by bytes.
  39. @item -nodisp
  40. Disable graphical display.
  41. @item -f @var{fmt}
  42. Force format.
  43. @item -window_title @var{title}
  44. Set window title (default is the input filename).
  45. @item -loop @var{number}
  46. Loops movie playback <number> times. 0 means forever.
  47. @item -showmode @var{mode}
  48. Set the show mode to use.
  49. Available values for @var{mode} are:
  50. @table @samp
  51. @item 0, video
  52. show video
  53. @item 1, waves
  54. show audio waves
  55. @item 2, rdft
  56. show audio frequency band using RDFT ((Inverse) Real Discrete Fourier Transform)
  57. @end table
  58. Default value is "video", if video is not present or cannot be played
  59. "rdft" is automatically selected.
  60. You can interactively cycle through the available show modes by
  61. pressing the key @key{w}.
  62. @item -vf @var{filter_graph}
  63. Create the filter graph specified by @var{filter_graph} and use it to
  64. filter the video stream.
  65. @var{filter_graph} is a description of the filter graph to apply to
  66. the stream, and must have a single video input and a single video
  67. output. In the filter graph, the input is associated to the label
  68. @code{in}, and the output to the label @code{out}. See the
  69. ffmpeg-filters manual for more information about the filtergraph
  70. syntax.
  71. @item -i @var{input_file}
  72. Read @var{input_file}.
  73. @end table
  74. @section Advanced options
  75. @table @option
  76. @item -pix_fmt @var{format}
  77. Set pixel format.
  78. This option has been deprecated in favor of private options, try -pixel_format.
  79. @item -stats
  80. Show the stream duration, the codec parameters, the current position in
  81. the stream and the audio/video synchronisation drift.
  82. @item -bug
  83. Work around bugs.
  84. @item -fast
  85. Non-spec-compliant optimizations.
  86. @item -genpts
  87. Generate pts.
  88. @item -rtp_tcp
  89. Force RTP/TCP protocol usage instead of RTP/UDP. It is only meaningful
  90. if you are streaming with the RTSP protocol.
  91. @item -sync @var{type}
  92. Set the master clock to audio (@code{type=audio}), video
  93. (@code{type=video}) or external (@code{type=ext}). Default is audio. The
  94. master clock is used to control audio-video synchronization. Most media
  95. players use audio as master clock, but in some cases (streaming or high
  96. quality broadcast) it is necessary to change that. This option is mainly
  97. used for debugging purposes.
  98. @item -threads @var{count}
  99. Set the thread count.
  100. @item -ast @var{audio_stream_number}
  101. Select the desired audio stream number, counting from 0. The number
  102. refers to the list of all the input audio streams. If it is greater
  103. than the number of audio streams minus one, then the last one is
  104. selected, if it is negative the audio playback is disabled.
  105. @item -vst @var{video_stream_number}
  106. Select the desired video stream number, counting from 0. The number
  107. refers to the list of all the input video streams. If it is greater
  108. than the number of video streams minus one, then the last one is
  109. selected, if it is negative the video playback is disabled.
  110. @item -sst @var{subtitle_stream_number}
  111. Select the desired subtitle stream number, counting from 0. The number
  112. refers to the list of all the input subtitle streams. If it is greater
  113. than the number of subtitle streams minus one, then the last one is
  114. selected, if it is negative the subtitle rendering is disabled.
  115. @item -autoexit
  116. Exit when video is done playing.
  117. @item -exitonkeydown
  118. Exit if any key is pressed.
  119. @item -exitonmousedown
  120. Exit if any mouse button is pressed.
  121. @item -codec:@var{media_specifier} @var{codec_name}
  122. Force a specific decoder implementation for the stream identified by
  123. @var{media_specifier}, which can assume the values @code{a} (audio),
  124. @code{v} (video), and @code{s} subtitle.
  125. @item -acodec @var{codec_name}
  126. Force a specific audio decoder.
  127. @item -vcodec @var{codec_name}
  128. Force a specific video decoder.
  129. @item -scodec @var{codec_name}
  130. Force a specific subtitle decoder.
  131. @end table
  132. @section While playing
  133. @table @key
  134. @item q, ESC
  135. Quit.
  136. @item f
  137. Toggle full screen.
  138. @item p, SPC
  139. Pause.
  140. @item a
  141. Cycle audio channel.
  142. @item v
  143. Cycle video channel.
  144. @item t
  145. Cycle subtitle channel.
  146. @item w
  147. Show audio waves.
  148. @item left/right
  149. Seek backward/forward 10 seconds.
  150. @item down/up
  151. Seek backward/forward 1 minute.
  152. @item page down/page up
  153. Seek backward/forward 10 minutes.
  154. @item mouse click
  155. Seek to percentage in file corresponding to fraction of width.
  156. @end table
  157. @c man end
  158. @chapter See Also
  159. @ifhtml
  160. @url{ffmpeg.html,ffmpeg}, @url{ffprobe.html,ffprobe}, @url{ffserver.html,ffserver},
  161. @url{ffmpeg-utils.html,ffmpeg-utils},
  162. @url{ffmpeg-scaler.html,ffmpeg-scaler},
  163. @url{ffmpeg-resampler.html,ffmpeg-resampler},
  164. @url{ffmpeg-codecs.html,ffmpeg-codecs},
  165. @url{ffmpeg-bitstream-filters,ffmpeg-bitstream-filters},
  166. @url{ffmpeg-formats.html,ffmpeg-formats},
  167. @url{ffmpeg-devices.html,ffmpeg-devices},
  168. @url{ffmpeg-protocols.html,ffmpeg-protocols},
  169. @url{ffmpeg-filters.html,ffmpeg-filters}
  170. @end ifhtml
  171. @ifnothtml
  172. ffmpeg(1), ffprobe(1), ffserver(1),
  173. ffmpeg-utils(1), ffmpeg-scaler(1), ffmpeg-resampler(1),
  174. ffmpeg-codecs(1), ffmpeg-bitstream-filters(1), ffmpeg-formats(1),
  175. ffmpeg-devices(1), ffmpeg-protocols(1), ffmpeg-filters(1)
  176. @end ifnothtml
  177. @include authors.texi
  178. @ignore
  179. @setfilename ffplay
  180. @settitle FFplay media player
  181. @end ignore
  182. @bye