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. @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_number}
  107. Select the desired audio stream number, counting from 0. The number
  108. refers to the list of all the input audio streams. If it is greater
  109. than the number of audio streams minus one, then the last one is
  110. selected, if it is negative the audio playback is disabled.
  111. @item -vst @var{video_stream_number}
  112. Select the desired video stream number, counting from 0. The number
  113. refers to the list of all the input video streams. If it is greater
  114. than the number of video streams minus one, then the last one is
  115. selected, if it is negative the video playback is disabled.
  116. @item -sst @var{subtitle_stream_number}
  117. Select the desired subtitle stream number, counting from 0. The number
  118. refers to the list of all the input subtitle streams. If it is greater
  119. than the number of subtitle streams minus one, then the last one is
  120. selected, if it is negative the subtitle rendering is disabled.
  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