ffplay.texi 4.7 KB

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