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.

331 lines
8.8KB

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