1 \input texinfo @c -*- texinfo -*-
3 @settitle ffplay Documentation
5 @center @titlefont{ffplay Documentation}
14 ffplay [@var{options}] [@file{input_file}]
17 @c man begin DESCRIPTION
19 FFplay is a very simple and portable media player using the FFmpeg
20 libraries and the SDL library. It is mostly used as a testbed for the
27 @include fftools-common-opts.texi
33 Force displayed width.
35 Force displayed height.
37 Set frame size (WxH or abbreviation), needed for videos which do
38 not contain a header with the frame size like raw YUV. This option
39 has been deprecated in favor of private options, try -video_size.
45 Seek to a given position in seconds.
46 @item -t @var{duration}
47 play <duration> seconds of audio/video
51 Disable graphical display.
54 @item -window_title @var{title}
55 Set window title (default is the input filename).
56 @item -loop @var{number}
57 Loops movie playback <number> times. 0 means forever.
58 @item -showmode @var{mode}
59 Set the show mode to use.
60 Available values for @var{mode} are:
67 show audio frequency band using RDFT ((Inverse) Real Discrete Fourier Transform)
70 Default value is "video", if video is not present or cannot be played
71 "rdft" is automatically selected.
73 You can interactively cycle through the available show modes by
74 pressing the key @key{w}.
76 @item -vf @var{filtergraph}
77 Create the filtergraph specified by @var{filtergraph} and use it to
78 filter the video stream.
80 @var{filtergraph} is a description of the filtergraph to apply to
81 the stream, and must have a single video input and a single video
82 output. In the filtergraph, the input is associated to the label
83 @code{in}, and the output to the label @code{out}. See the
84 ffmpeg-filters manual for more information about the filtergraph
87 You can specify this parameter multiple times and cycle through the specified
88 filtergraphs along with the show modes by pressing the key @key{w}.
90 @item -af @var{filtergraph}
91 @var{filtergraph} is a description of the filtergraph to apply to
93 Use the option "-filters" to show all the available filters (including
96 @item -i @var{input_file}
97 Read @var{input_file}.
100 @section Advanced options
102 @item -pix_fmt @var{format}
104 This option has been deprecated in favor of private options, try -pixel_format.
107 Print several playback statistics, in particular show the stream
108 duration, the codec parameters, the current position in the stream and
109 the audio/video synchronisation drift. It is on by default, to
110 explicitly disable it you need to specify @code{-nostats}.
115 Non-spec-compliant optimizations.
119 Force RTP/TCP protocol usage instead of RTP/UDP. It is only meaningful
120 if you are streaming with the RTSP protocol.
121 @item -sync @var{type}
122 Set the master clock to audio (@code{type=audio}), video
123 (@code{type=video}) or external (@code{type=ext}). Default is audio. The
124 master clock is used to control audio-video synchronization. Most media
125 players use audio as master clock, but in some cases (streaming or high
126 quality broadcast) it is necessary to change that. This option is mainly
127 used for debugging purposes.
128 @item -threads @var{count}
129 Set the thread count.
130 @item -ast @var{audio_stream_number}
131 Select the desired audio stream number, counting from 0. The number
132 refers to the list of all the input audio streams. If it is greater
133 than the number of audio streams minus one, then the last one is
134 selected, if it is negative the audio playback is disabled.
135 @item -vst @var{video_stream_number}
136 Select the desired video stream number, counting from 0. The number
137 refers to the list of all the input video streams. If it is greater
138 than the number of video streams minus one, then the last one is
139 selected, if it is negative the video playback is disabled.
140 @item -sst @var{subtitle_stream_number}
141 Select the desired subtitle stream number, counting from 0. The number
142 refers to the list of all the input subtitle streams. If it is greater
143 than the number of subtitle streams minus one, then the last one is
144 selected, if it is negative the subtitle rendering is disabled.
146 Exit when video is done playing.
148 Exit if any key is pressed.
149 @item -exitonmousedown
150 Exit if any mouse button is pressed.
152 @item -codec:@var{media_specifier} @var{codec_name}
153 Force a specific decoder implementation for the stream identified by
154 @var{media_specifier}, which can assume the values @code{a} (audio),
155 @code{v} (video), and @code{s} subtitle.
157 @item -acodec @var{codec_name}
158 Force a specific audio decoder.
160 @item -vcodec @var{codec_name}
161 Force a specific video decoder.
163 @item -scodec @var{codec_name}
164 Force a specific subtitle decoder.
167 Automatically rotate the video according to presentation metadata. Set by
168 default, use -noautorotate to disable.
171 @section While playing
184 Cycle audio channel in the current program.
190 Cycle subtitle channel in the current program.
196 Cycle video filters or show modes.
199 Step to the next frame.
201 Pause if the stream is not already paused, step to the next video
205 Seek backward/forward 10 seconds.
208 Seek backward/forward 1 minute.
210 @item page down/page up
211 Seek to the previous/next chapter.
212 or if there are no chapters
213 Seek backward/forward 10 minutes.
216 Seek to percentage in file corresponding to fraction of width.
228 @ifset config-avcodec
230 @include bitstream_filters.texi
232 @ifset config-avformat
233 @include formats.texi
234 @include protocols.texi
236 @ifset config-avdevice
237 @include devices.texi
239 @ifset config-swresample
240 @include resampler.texi
242 @ifset config-swscale
245 @ifset config-avfilter
246 @include filters.texi
254 @url{ffplay.html,ffplay},
256 @ifset config-not-all
257 @url{ffplay-all.html,ffmpeg-all},
259 @url{ffmpeg.html,ffmpeg}, @url{ffprobe.html,ffprobe}, @url{ffserver.html,ffserver},
260 @url{ffmpeg-utils.html,ffmpeg-utils},
261 @url{ffmpeg-scaler.html,ffmpeg-scaler},
262 @url{ffmpeg-resampler.html,ffmpeg-resampler},
263 @url{ffmpeg-codecs.html,ffmpeg-codecs},
264 @url{ffmpeg-bitstream-filters.html,ffmpeg-bitstream-filters},
265 @url{ffmpeg-formats.html,ffmpeg-formats},
266 @url{ffmpeg-devices.html,ffmpeg-devices},
267 @url{ffmpeg-protocols.html,ffmpeg-protocols},
268 @url{ffmpeg-filters.html,ffmpeg-filters}
275 @ifset config-not-all
278 ffmpeg(1), ffprobe(1), ffserver(1),
279 ffmpeg-utils(1), ffmpeg-scaler(1), ffmpeg-resampler(1),
280 ffmpeg-codecs(1), ffmpeg-bitstream-filters(1), ffmpeg-formats(1),
281 ffmpeg-devices(1), ffmpeg-protocols(1), ffmpeg-filters(1)
284 @include authors.texi
289 @settitle FFplay media player