ffplay.texi 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  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. @example
  10. @c man begin SYNOPSIS
  11. ffplay [options] [@file{input_file}]
  12. @c man end
  13. @end example
  14. @chapter Description
  15. @c man begin DESCRIPTION
  16. FFplay is a very simple and portable media player using the FFmpeg
  17. libraries and the SDL library. It is mostly used as a testbed for the
  18. various FFmpeg APIs.
  19. @c man end
  20. @chapter Options
  21. @c man begin OPTIONS
  22. @include avtools-common-opts.texi
  23. @section Main options
  24. @table @option
  25. @item -x @var{width}
  26. Force displayed width.
  27. @item -y @var{height}
  28. Force displayed height.
  29. @item -s @var{size}
  30. Set frame size (WxH or abbreviation), needed for videos which do
  31. not contain a header with the frame size like raw YUV. This option
  32. has been deprecated in favor of private options, try -video_size.
  33. @item -an
  34. Disable audio.
  35. @item -vn
  36. Disable video.
  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{filter_graph}
  67. @var{filter_graph} is a description of the filter graph to apply to
  68. the input video.
  69. Use the option "-filters" to show all the available filters (including
  70. also sources and sinks).
  71. @item -i @var{input_file}
  72. Read @var{input_file}.
  73. @end table
  74. @section Advanced options
  75. @table @option
  76. @item -pix_fmt @var{format}
  77. Set pixel format.
  78. This option has been deprecated in favor of private options, try -pixel_format.
  79. @item -stats
  80. Show the stream duration, the codec parameters, the current position in
  81. the stream and the audio/video synchronisation drift.
  82. @item -bug
  83. Work around bugs.
  84. @item -fast
  85. Non-spec-compliant optimizations.
  86. @item -genpts
  87. Generate pts.
  88. @item -rtp_tcp
  89. Force RTP/TCP protocol usage instead of RTP/UDP. It is only meaningful
  90. if you are streaming with the RTSP protocol.
  91. @item -sync @var{type}
  92. Set the master clock to audio (@code{type=audio}), video
  93. (@code{type=video}) or external (@code{type=ext}). Default is audio. The
  94. master clock is used to control audio-video synchronization. Most media
  95. players use audio as master clock, but in some cases (streaming or high
  96. quality broadcast) it is necessary to change that. This option is mainly
  97. used for debugging purposes.
  98. @item -threads @var{count}
  99. Set the thread count.
  100. @item -ast @var{audio_stream_number}
  101. Select the desired audio stream number, counting from 0. The number
  102. refers to the list of all the input audio streams. If it is greater
  103. than the number of audio streams minus one, then the last one is
  104. selected, if it is negative the audio playback is disabled.
  105. @item -vst @var{video_stream_number}
  106. Select the desired video stream number, counting from 0. The number
  107. refers to the list of all the input video streams. If it is greater
  108. than the number of video streams minus one, then the last one is
  109. selected, if it is negative the video playback is disabled.
  110. @item -sst @var{subtitle_stream_number}
  111. Select the desired subtitle stream number, counting from 0. The number
  112. refers to the list of all the input subtitle streams. If it is greater
  113. than the number of subtitle streams minus one, then the last one is
  114. selected, if it is negative the subtitle rendering is disabled.
  115. @item -autoexit
  116. Exit when video is done playing.
  117. @item -exitonkeydown
  118. Exit if any key is pressed.
  119. @item -exitonmousedown
  120. Exit if any mouse button is pressed.
  121. @item -codec:@var{stream_type}
  122. Force a specific decoder implementation
  123. @end table
  124. @section While playing
  125. @table @key
  126. @item q, ESC
  127. Quit.
  128. @item f
  129. Toggle full screen.
  130. @item p, SPC
  131. Pause.
  132. @item a
  133. Cycle audio channel.
  134. @item v
  135. Cycle video channel.
  136. @item t
  137. Cycle subtitle channel.
  138. @item w
  139. Show audio waves.
  140. @item left/right
  141. Seek backward/forward 10 seconds.
  142. @item down/up
  143. Seek backward/forward 1 minute.
  144. @item page down/page up
  145. Seek backward/forward 10 minutes.
  146. @item mouse click
  147. Seek to percentage in file corresponding to fraction of width.
  148. @end table
  149. @c man end
  150. @include syntax.texi
  151. @include eval.texi
  152. @include decoders.texi
  153. @include demuxers.texi
  154. @include muxers.texi
  155. @include indevs.texi
  156. @include outdevs.texi
  157. @include protocols.texi
  158. @include filters.texi
  159. @ignore
  160. @setfilename ffplay
  161. @settitle FFplay media player
  162. @c man begin SEEALSO
  163. ffmpeg(1), ffprobe(1), ffserver(1) and the FFmpeg HTML documentation
  164. @c man end
  165. @c man begin AUTHORS
  166. The FFmpeg developers
  167. @c man end
  168. @end ignore
  169. @bye