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.

302 lines
7.9KB

  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 fftools-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 -fs
  30. Start in fullscreen mode.
  31. @item -an
  32. Disable audio.
  33. @item -vn
  34. Disable video.
  35. @item -sn
  36. Disable subtitles.
  37. @item -ss @var{pos}
  38. Seek to a given position in seconds.
  39. @item -t @var{duration}
  40. play <duration> seconds of audio/video
  41. @item -bytes
  42. Seek by bytes.
  43. @item -nodisp
  44. Disable graphical display.
  45. @item -f @var{fmt}
  46. Force format.
  47. @item -window_title @var{title}
  48. Set window title (default is the input filename).
  49. @item -loop @var{number}
  50. Loops movie playback <number> times. 0 means forever.
  51. @item -showmode @var{mode}
  52. Set the show mode to use.
  53. Available values for @var{mode} are:
  54. @table @samp
  55. @item 0, video
  56. show video
  57. @item 1, waves
  58. show audio waves
  59. @item 2, rdft
  60. show audio frequency band using RDFT ((Inverse) Real Discrete Fourier Transform)
  61. @end table
  62. Default value is "video", if video is not present or cannot be played
  63. "rdft" is automatically selected.
  64. You can interactively cycle through the available show modes by
  65. pressing the key @key{w}.
  66. @item -vf @var{filtergraph}
  67. Create the filtergraph specified by @var{filtergraph} and use it to
  68. filter the video stream.
  69. @var{filtergraph} is a description of the filtergraph to apply to
  70. the stream, and must have a single video input and a single video
  71. output. In the filtergraph, the input is associated to the label
  72. @code{in}, and the output to the label @code{out}. See the
  73. ffmpeg-filters manual for more information about the filtergraph
  74. syntax.
  75. You can specify this parameter multiple times and cycle through the specified
  76. filtergraphs along with the show modes by pressing the key @key{w}.
  77. @item -af @var{filtergraph}
  78. @var{filtergraph} is a description of the filtergraph to apply to
  79. the input audio.
  80. Use the option "-filters" to show all the available filters (including
  81. sources and sinks).
  82. @item -i @var{input_file}
  83. Read @var{input_file}.
  84. @end table
  85. @section Advanced options
  86. @table @option
  87. @item -pix_fmt @var{format}
  88. Set pixel format.
  89. This option has been deprecated in favor of private options, try -pixel_format.
  90. @item -stats
  91. Print several playback statistics, in particular show the stream
  92. duration, the codec parameters, the current position in the stream and
  93. the audio/video synchronisation drift. It is on by default, to
  94. explicitly disable it you need to specify @code{-nostats}.
  95. @item -fast
  96. Non-spec-compliant optimizations.
  97. @item -genpts
  98. Generate pts.
  99. @item -sync @var{type}
  100. Set the master clock to audio (@code{type=audio}), video
  101. (@code{type=video}) or external (@code{type=ext}). Default is audio. The
  102. master clock is used to control audio-video synchronization. Most media
  103. players use audio as master clock, but in some cases (streaming or high
  104. quality broadcast) it is necessary to change that. This option is mainly
  105. used for debugging purposes.
  106. @item -ast @var{audio_stream_specifier}
  107. Select the desired audio stream using the given stream specifier. The stream
  108. specifiers are described in the @ref{Stream specifiers} chapter. If this option
  109. is not specified, the "best" audio stream is selected in the program of the
  110. already selected video stream.
  111. @item -vst @var{video_stream_specifier}
  112. Select the desired video stream using the given stream specifier. The stream
  113. specifiers are described in the @ref{Stream specifiers} chapter. If this option
  114. is not specified, the "best" video stream is selected.
  115. @item -sst @var{subtitle_stream_specifier}
  116. Select the desired subtitle stream using the given stream specifier. The stream
  117. specifiers are described in the @ref{Stream specifiers} chapter. If this option
  118. is not specified, the "best" subtitle stream is selected in the program of the
  119. already selected video or audio stream.
  120. @item -autoexit
  121. Exit when video is done playing.
  122. @item -exitonkeydown
  123. Exit if any key is pressed.
  124. @item -exitonmousedown
  125. Exit if any mouse button is pressed.
  126. @item -codec:@var{media_specifier} @var{codec_name}
  127. Force a specific decoder implementation for the stream identified by
  128. @var{media_specifier}, which can assume the values @code{a} (audio),
  129. @code{v} (video), and @code{s} subtitle.
  130. @item -acodec @var{codec_name}
  131. Force a specific audio decoder.
  132. @item -vcodec @var{codec_name}
  133. Force a specific video decoder.
  134. @item -scodec @var{codec_name}
  135. Force a specific subtitle decoder.
  136. @item -autorotate
  137. Automatically rotate the video according to presentation metadata. Enabled by
  138. default, use @option{-noautorotate} to disable it.
  139. @item -framedrop
  140. Drop video frames if video is out of sync. Enabled by default if the master
  141. clock is not set to video. Use this option to enable frame dropping for all
  142. master clock sources, use @option{-noframedrop} to disable it.
  143. @item -infbuf
  144. Do not limit the input buffer size, read as much data as possible from the
  145. input as soon as possible. Enabled by default for realtime streams, where data
  146. may be dropped if not read in time. Use this option to enable infinite buffers
  147. for all inputs, use @option{-noinfbuf} to disable it.
  148. @end table
  149. @section While playing
  150. @table @key
  151. @item q, ESC
  152. Quit.
  153. @item f
  154. Toggle full screen.
  155. @item p, SPC
  156. Pause.
  157. @item a
  158. Cycle audio channel in the current program.
  159. @item v
  160. Cycle video channel.
  161. @item t
  162. Cycle subtitle channel in the current program.
  163. @item c
  164. Cycle program.
  165. @item w
  166. Cycle video filters or show modes.
  167. @item s
  168. Step to the next frame.
  169. Pause if the stream is not already paused, step to the next video
  170. frame, and pause.
  171. @item left/right
  172. Seek backward/forward 10 seconds.
  173. @item down/up
  174. Seek backward/forward 1 minute.
  175. @item page down/page up
  176. Seek to the previous/next chapter.
  177. or if there are no chapters
  178. Seek backward/forward 10 minutes.
  179. @item mouse click
  180. Seek to percentage in file corresponding to fraction of width.
  181. @end table
  182. @c man end
  183. @include config.texi
  184. @ifset config-all
  185. @set config-readonly
  186. @ifset config-avutil
  187. @include utils.texi
  188. @end ifset
  189. @ifset config-avcodec
  190. @include codecs.texi
  191. @include bitstream_filters.texi
  192. @end ifset
  193. @ifset config-avformat
  194. @include formats.texi
  195. @include protocols.texi
  196. @end ifset
  197. @ifset config-avdevice
  198. @include devices.texi
  199. @end ifset
  200. @ifset config-swresample
  201. @include resampler.texi
  202. @end ifset
  203. @ifset config-swscale
  204. @include scaler.texi
  205. @end ifset
  206. @ifset config-avfilter
  207. @include filters.texi
  208. @end ifset
  209. @end ifset
  210. @chapter See Also
  211. @ifhtml
  212. @ifset config-all
  213. @url{ffplay.html,ffplay},
  214. @end ifset
  215. @ifset config-not-all
  216. @url{ffplay-all.html,ffmpeg-all},
  217. @end ifset
  218. @url{ffmpeg.html,ffmpeg}, @url{ffprobe.html,ffprobe}, @url{ffserver.html,ffserver},
  219. @url{ffmpeg-utils.html,ffmpeg-utils},
  220. @url{ffmpeg-scaler.html,ffmpeg-scaler},
  221. @url{ffmpeg-resampler.html,ffmpeg-resampler},
  222. @url{ffmpeg-codecs.html,ffmpeg-codecs},
  223. @url{ffmpeg-bitstream-filters.html,ffmpeg-bitstream-filters},
  224. @url{ffmpeg-formats.html,ffmpeg-formats},
  225. @url{ffmpeg-devices.html,ffmpeg-devices},
  226. @url{ffmpeg-protocols.html,ffmpeg-protocols},
  227. @url{ffmpeg-filters.html,ffmpeg-filters}
  228. @end ifhtml
  229. @ifnothtml
  230. @ifset config-all
  231. ffplay(1),
  232. @end ifset
  233. @ifset config-not-all
  234. ffplay-all(1),
  235. @end ifset
  236. ffmpeg(1), ffprobe(1), ffserver(1),
  237. ffmpeg-utils(1), ffmpeg-scaler(1), ffmpeg-resampler(1),
  238. ffmpeg-codecs(1), ffmpeg-bitstream-filters(1), ffmpeg-formats(1),
  239. ffmpeg-devices(1), ffmpeg-protocols(1), ffmpeg-filters(1)
  240. @end ifnothtml
  241. @include authors.texi
  242. @ignore
  243. @setfilename ffplay
  244. @settitle FFplay media player
  245. @end ignore
  246. @bye