ffplay.texi 9.4 KB

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