ffplay.texi 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  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 avtools-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 -an
  30. Disable audio.
  31. @item -vn
  32. Disable video.
  33. @item -ss @var{pos}
  34. Seek to a given position in seconds.
  35. @item -t @var{duration}
  36. play <duration> seconds of audio/video
  37. @item -bytes
  38. Seek by bytes.
  39. @item -nodisp
  40. Disable graphical display.
  41. @item -f @var{fmt}
  42. Force format.
  43. @item -window_title @var{title}
  44. Set window title (default is the input filename).
  45. @item -loop @var{number}
  46. Loops movie playback <number> times. 0 means forever.
  47. @item -showmode @var{mode}
  48. Set the show mode to use.
  49. Available values for @var{mode} are:
  50. @table @samp
  51. @item 0, video
  52. show video
  53. @item 1, waves
  54. show audio waves
  55. @item 2, rdft
  56. show audio frequency band using RDFT ((Inverse) Real Discrete Fourier Transform)
  57. @end table
  58. Default value is "video", if video is not present or cannot be played
  59. "rdft" is automatically selected.
  60. You can interactively cycle through the available show modes by
  61. pressing the key @key{w}.
  62. @item -vf @var{filter_graph}
  63. @var{filter_graph} is a description of the filter graph to apply to
  64. the input video.
  65. Use the option "-filters" to show all the available filters (including
  66. also sources and sinks).
  67. @item -i @var{input_file}
  68. Read @var{input_file}.
  69. @end table
  70. @section Advanced options
  71. @table @option
  72. @item -pix_fmt @var{format}
  73. Set pixel format.
  74. This option has been deprecated in favor of private options, try -pixel_format.
  75. @item -stats
  76. Show the stream duration, the codec parameters, the current position in
  77. the stream and the audio/video synchronisation drift.
  78. @item -bug
  79. Work around bugs.
  80. @item -fast
  81. Non-spec-compliant optimizations.
  82. @item -genpts
  83. Generate pts.
  84. @item -rtp_tcp
  85. Force RTP/TCP protocol usage instead of RTP/UDP. It is only meaningful
  86. if you are streaming with the RTSP protocol.
  87. @item -sync @var{type}
  88. Set the master clock to audio (@code{type=audio}), video
  89. (@code{type=video}) or external (@code{type=ext}). Default is audio. The
  90. master clock is used to control audio-video synchronization. Most media
  91. players use audio as master clock, but in some cases (streaming or high
  92. quality broadcast) it is necessary to change that. This option is mainly
  93. used for debugging purposes.
  94. @item -threads @var{count}
  95. Set the thread count.
  96. @item -ast @var{audio_stream_number}
  97. Select the desired audio stream number, counting from 0. The number
  98. refers to the list of all the input audio streams. If it is greater
  99. than the number of audio streams minus one, then the last one is
  100. selected, if it is negative the audio playback is disabled.
  101. @item -vst @var{video_stream_number}
  102. Select the desired video stream number, counting from 0. The number
  103. refers to the list of all the input video streams. If it is greater
  104. than the number of video streams minus one, then the last one is
  105. selected, if it is negative the video playback is disabled.
  106. @item -sst @var{subtitle_stream_number}
  107. Select the desired subtitle stream number, counting from 0. The number
  108. refers to the list of all the input subtitle streams. If it is greater
  109. than the number of subtitle streams minus one, then the last one is
  110. selected, if it is negative the subtitle rendering is disabled.
  111. @item -autoexit
  112. Exit when video is done playing.
  113. @item -exitonkeydown
  114. Exit if any key is pressed.
  115. @item -exitonmousedown
  116. Exit if any mouse button is pressed.
  117. @item -codec:@var{media_specifier} @var{codec_name}
  118. Force a specific decoder implementation for the stream identified by
  119. @var{media_specifier}, which can assume the values @code{a} (audio),
  120. @code{v} (video), and @code{s} subtitle.
  121. @item -acodec @var{codec_name}
  122. Force a specific audio decoder.
  123. @item -vcodec @var{codec_name}
  124. Force a specific video decoder.
  125. @item -scodec @var{codec_name}
  126. Force a specific subtitle decoder.
  127. @end table
  128. @section While playing
  129. @table @key
  130. @item q, ESC
  131. Quit.
  132. @item f
  133. Toggle full screen.
  134. @item p, SPC
  135. Pause.
  136. @item a
  137. Cycle audio channel.
  138. @item v
  139. Cycle video channel.
  140. @item t
  141. Cycle subtitle channel.
  142. @item w
  143. Show audio waves.
  144. @item left/right
  145. Seek backward/forward 10 seconds.
  146. @item down/up
  147. Seek backward/forward 1 minute.
  148. @item page down/page up
  149. Seek backward/forward 10 minutes.
  150. @item mouse click
  151. Seek to percentage in file corresponding to fraction of width.
  152. @end table
  153. @c man end
  154. @chapter See Also
  155. @ifhtml
  156. @url{ffmpeg.html,ffmpeg}, @url{ffprobe.html,ffprobe}, @url{ffserver.html,ffserver},
  157. @url{ffmpeg-utils.html,ffmpeg-utils},
  158. @url{ffmpeg-scaler.html,ffmpeg-scaler},
  159. @url{ffmpeg-resampler.html,ffmpeg-resampler},
  160. @url{ffmpeg-codecs.html,ffmpeg-codecs},
  161. @url{ffmpeg-bitstream-filters,ffmpeg-bitstream-filters},
  162. @url{ffmpeg-formats.html,ffmpeg-formats},
  163. @url{ffmpeg-devices.html,ffmpeg-devices},
  164. @url{ffmpeg-protocols.html,ffmpeg-protocols},
  165. @url{ffmpeg-filters.html,ffmpeg-filters}
  166. @end ifhtml
  167. @ifnothtml
  168. ffmpeg(1), ffprobe(1), ffserver(1),
  169. ffmpeg-utils(1), ffmpeg-scaler(1), ffmpeg-resampler(1),
  170. ffmpeg-codecs(1), ffmpeg-bitstream-filters(1), ffmpeg-formats(1),
  171. ffmpeg-devices(1), ffmpeg-protocols(1), ffmpeg-filters(1)
  172. @end ifnothtml
  173. @include authors.texi
  174. @ignore
  175. @setfilename ffplay
  176. @settitle FFplay media player
  177. @end ignore
  178. @bye