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.

306 lines
8.1KB

  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 -threads @var{count}
  107. Set the thread count. By default, @command{ffplay} automatically detects a
  108. suitable number of threads to use.
  109. @item -ast @var{audio_stream_number}
  110. Select the desired audio stream number, counting from 0. The number
  111. refers to the list of all the input audio streams. If it is greater
  112. than the number of audio streams minus one, then the last one is
  113. selected, if it is negative the audio playback is disabled.
  114. @item -vst @var{video_stream_number}
  115. Select the desired video stream number, counting from 0. The number
  116. refers to the list of all the input video streams. If it is greater
  117. than the number of video streams minus one, then the last one is
  118. selected, if it is negative the video playback is disabled.
  119. @item -sst @var{subtitle_stream_number}
  120. Select the desired subtitle stream number, counting from 0. The number
  121. refers to the list of all the input subtitle streams. If it is greater
  122. than the number of subtitle streams minus one, then the last one is
  123. selected, if it is negative the subtitle rendering is disabled.
  124. @item -autoexit
  125. Exit when video is done playing.
  126. @item -exitonkeydown
  127. Exit if any key is pressed.
  128. @item -exitonmousedown
  129. Exit if any mouse button is pressed.
  130. @item -codec:@var{media_specifier} @var{codec_name}
  131. Force a specific decoder implementation for the stream identified by
  132. @var{media_specifier}, which can assume the values @code{a} (audio),
  133. @code{v} (video), and @code{s} subtitle.
  134. @item -acodec @var{codec_name}
  135. Force a specific audio decoder.
  136. @item -vcodec @var{codec_name}
  137. Force a specific video decoder.
  138. @item -scodec @var{codec_name}
  139. Force a specific subtitle decoder.
  140. @item -autorotate
  141. Automatically rotate the video according to presentation metadata. Enabled by
  142. default, use @option{-noautorotate} to disable it.
  143. @item -framedrop
  144. Drop video frames if video is out of sync. Enabled by default if the master
  145. clock is not set to video. Use this option to enable frame dropping for all
  146. master clock sources, use @option{-noframedrop} to disable it.
  147. @item -infbuf
  148. Do not limit the input buffer size, read as much data as possible from the
  149. input as soon as possible. Enabled by default for realtime streams, where data
  150. may be dropped if not read in time. Use this option to enable infinite buffers
  151. for all inputs, use @option{-noinfbuf} to disable it.
  152. @end table
  153. @section While playing
  154. @table @key
  155. @item q, ESC
  156. Quit.
  157. @item f
  158. Toggle full screen.
  159. @item p, SPC
  160. Pause.
  161. @item a
  162. Cycle audio channel in the current program.
  163. @item v
  164. Cycle video channel.
  165. @item t
  166. Cycle subtitle channel in the current program.
  167. @item c
  168. Cycle program.
  169. @item w
  170. Cycle video filters or show modes.
  171. @item s
  172. Step to the next frame.
  173. Pause if the stream is not already paused, step to the next video
  174. frame, and pause.
  175. @item left/right
  176. Seek backward/forward 10 seconds.
  177. @item down/up
  178. Seek backward/forward 1 minute.
  179. @item page down/page up
  180. Seek to the previous/next chapter.
  181. or if there are no chapters
  182. Seek backward/forward 10 minutes.
  183. @item mouse click
  184. Seek to percentage in file corresponding to fraction of width.
  185. @end table
  186. @c man end
  187. @include config.texi
  188. @ifset config-all
  189. @set config-readonly
  190. @ifset config-avutil
  191. @include utils.texi
  192. @end ifset
  193. @ifset config-avcodec
  194. @include codecs.texi
  195. @include bitstream_filters.texi
  196. @end ifset
  197. @ifset config-avformat
  198. @include formats.texi
  199. @include protocols.texi
  200. @end ifset
  201. @ifset config-avdevice
  202. @include devices.texi
  203. @end ifset
  204. @ifset config-swresample
  205. @include resampler.texi
  206. @end ifset
  207. @ifset config-swscale
  208. @include scaler.texi
  209. @end ifset
  210. @ifset config-avfilter
  211. @include filters.texi
  212. @end ifset
  213. @end ifset
  214. @chapter See Also
  215. @ifhtml
  216. @ifset config-all
  217. @url{ffplay.html,ffplay},
  218. @end ifset
  219. @ifset config-not-all
  220. @url{ffplay-all.html,ffmpeg-all},
  221. @end ifset
  222. @url{ffmpeg.html,ffmpeg}, @url{ffprobe.html,ffprobe}, @url{ffserver.html,ffserver},
  223. @url{ffmpeg-utils.html,ffmpeg-utils},
  224. @url{ffmpeg-scaler.html,ffmpeg-scaler},
  225. @url{ffmpeg-resampler.html,ffmpeg-resampler},
  226. @url{ffmpeg-codecs.html,ffmpeg-codecs},
  227. @url{ffmpeg-bitstream-filters.html,ffmpeg-bitstream-filters},
  228. @url{ffmpeg-formats.html,ffmpeg-formats},
  229. @url{ffmpeg-devices.html,ffmpeg-devices},
  230. @url{ffmpeg-protocols.html,ffmpeg-protocols},
  231. @url{ffmpeg-filters.html,ffmpeg-filters}
  232. @end ifhtml
  233. @ifnothtml
  234. @ifset config-all
  235. ffplay(1),
  236. @end ifset
  237. @ifset config-not-all
  238. ffplay-all(1),
  239. @end ifset
  240. ffmpeg(1), ffprobe(1), ffserver(1),
  241. ffmpeg-utils(1), ffmpeg-scaler(1), ffmpeg-resampler(1),
  242. ffmpeg-codecs(1), ffmpeg-bitstream-filters(1), ffmpeg-formats(1),
  243. ffmpeg-devices(1), ffmpeg-protocols(1), ffmpeg-filters(1)
  244. @end ifnothtml
  245. @include authors.texi
  246. @ignore
  247. @setfilename ffplay
  248. @settitle FFplay media player
  249. @end ignore
  250. @bye