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.

303 lines
7.9KB

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