1 \input texinfo @c -*- texinfo -*-
2 @documentencoding UTF-8
4 @settitle ffplay Documentation
6 @center @titlefont{ffplay Documentation}
15 ffplay [@var{options}] [@file{input_url}]
18 @c man begin DESCRIPTION
20 FFplay is a very simple and portable media player using the FFmpeg
21 libraries and the SDL library. It is mostly used as a testbed for the
28 @include fftools-common-opts.texi
34 Force displayed width.
36 Force displayed height.
38 Set frame size (WxH or abbreviation), needed for videos which do
39 not contain a header with the frame size like raw YUV. This option
40 has been deprecated in favor of private options, try -video_size.
42 Start in fullscreen mode.
50 Seek to @var{pos}. Note that in most formats it is not possible to seek
51 exactly, so @command{ffplay} will seek to the nearest seek point to
54 @var{pos} must be a time duration specification,
55 see @ref{time duration syntax,,the Time duration section in the ffmpeg-utils(1) manual,ffmpeg-utils}.
56 @item -t @var{duration}
57 Play @var{duration} seconds of audio/video.
59 @var{duration} must be a time duration specification,
60 see @ref{time duration syntax,,the Time duration section in the ffmpeg-utils(1) manual,ffmpeg-utils}.
64 Disable graphical display.
66 Set the startup volume. 0 means silence, 100 means no volume reduction or
67 amplification. Negative values are treated as 0, values above 100 are treated
71 @item -window_title @var{title}
72 Set window title (default is the input filename).
73 @item -loop @var{number}
74 Loops movie playback <number> times. 0 means forever.
75 @item -showmode @var{mode}
76 Set the show mode to use.
77 Available values for @var{mode} are:
84 show audio frequency band using RDFT ((Inverse) Real Discrete Fourier Transform)
87 Default value is "video", if video is not present or cannot be played
88 "rdft" is automatically selected.
90 You can interactively cycle through the available show modes by
91 pressing the key @key{w}.
93 @item -vf @var{filtergraph}
94 Create the filtergraph specified by @var{filtergraph} and use it to
95 filter the video stream.
97 @var{filtergraph} is a description of the filtergraph to apply to
98 the stream, and must have a single video input and a single video
99 output. In the filtergraph, the input is associated to the label
100 @code{in}, and the output to the label @code{out}. See the
101 ffmpeg-filters manual for more information about the filtergraph
104 You can specify this parameter multiple times and cycle through the specified
105 filtergraphs along with the show modes by pressing the key @key{w}.
107 @item -af @var{filtergraph}
108 @var{filtergraph} is a description of the filtergraph to apply to
110 Use the option "-filters" to show all the available filters (including
113 @item -i @var{input_url}
114 Read @var{input_url}.
117 @section Advanced options
119 @item -pix_fmt @var{format}
121 This option has been deprecated in favor of private options, try -pixel_format.
124 Print several playback statistics, in particular show the stream
125 duration, the codec parameters, the current position in the stream and
126 the audio/video synchronisation drift. It is on by default, to
127 explicitly disable it you need to specify @code{-nostats}.
130 Non-spec-compliant optimizations.
133 @item -sync @var{type}
134 Set the master clock to audio (@code{type=audio}), video
135 (@code{type=video}) or external (@code{type=ext}). Default is audio. The
136 master clock is used to control audio-video synchronization. Most media
137 players use audio as master clock, but in some cases (streaming or high
138 quality broadcast) it is necessary to change that. This option is mainly
139 used for debugging purposes.
140 @item -ast @var{audio_stream_specifier}
141 Select the desired audio stream using the given stream specifier. The stream
142 specifiers are described in the @ref{Stream specifiers} chapter. If this option
143 is not specified, the "best" audio stream is selected in the program of the
144 already selected video stream.
145 @item -vst @var{video_stream_specifier}
146 Select the desired video stream using the given stream specifier. The stream
147 specifiers are described in the @ref{Stream specifiers} chapter. If this option
148 is not specified, the "best" video stream is selected.
149 @item -sst @var{subtitle_stream_specifier}
150 Select the desired subtitle stream using the given stream specifier. The stream
151 specifiers are described in the @ref{Stream specifiers} chapter. If this option
152 is not specified, the "best" subtitle stream is selected in the program of the
153 already selected video or audio stream.
155 Exit when video is done playing.
157 Exit if any key is pressed.
158 @item -exitonmousedown
159 Exit if any mouse button is pressed.
161 @item -codec:@var{media_specifier} @var{codec_name}
162 Force a specific decoder implementation for the stream identified by
163 @var{media_specifier}, which can assume the values @code{a} (audio),
164 @code{v} (video), and @code{s} subtitle.
166 @item -acodec @var{codec_name}
167 Force a specific audio decoder.
169 @item -vcodec @var{codec_name}
170 Force a specific video decoder.
172 @item -scodec @var{codec_name}
173 Force a specific subtitle decoder.
176 Automatically rotate the video according to file metadata. Enabled by
177 default, use @option{-noautorotate} to disable it.
180 Drop video frames if video is out of sync. Enabled by default if the master
181 clock is not set to video. Use this option to enable frame dropping for all
182 master clock sources, use @option{-noframedrop} to disable it.
185 Do not limit the input buffer size, read as much data as possible from the
186 input as soon as possible. Enabled by default for realtime streams, where data
187 may be dropped if not read in time. Use this option to enable infinite buffers
188 for all inputs, use @option{-noinfbuf} to disable it.
192 @section While playing
208 Decrease and increase volume respectively.
211 Decrease and increase volume respectively.
214 Cycle audio channel in the current program.
220 Cycle subtitle channel in the current program.
226 Cycle video filters or show modes.
229 Step to the next frame.
231 Pause if the stream is not already paused, step to the next video
235 Seek backward/forward 10 seconds.
238 Seek backward/forward 1 minute.
240 @item page down/page up
241 Seek to the previous/next chapter.
242 or if there are no chapters
243 Seek backward/forward 10 minutes.
245 @item right mouse click
246 Seek to percentage in file corresponding to fraction of width.
248 @item left mouse double-click
261 @ifset config-avcodec
263 @include bitstream_filters.texi
265 @ifset config-avformat
266 @include formats.texi
267 @include protocols.texi
269 @ifset config-avdevice
270 @include devices.texi
272 @ifset config-swresample
273 @include resampler.texi
275 @ifset config-swscale
278 @ifset config-avfilter
279 @include filters.texi
287 @url{ffplay.html,ffplay},
289 @ifset config-not-all
290 @url{ffplay-all.html,ffmpeg-all},
292 @url{ffmpeg.html,ffmpeg}, @url{ffprobe.html,ffprobe}, @url{ffserver.html,ffserver},
293 @url{ffmpeg-utils.html,ffmpeg-utils},
294 @url{ffmpeg-scaler.html,ffmpeg-scaler},
295 @url{ffmpeg-resampler.html,ffmpeg-resampler},
296 @url{ffmpeg-codecs.html,ffmpeg-codecs},
297 @url{ffmpeg-bitstream-filters.html,ffmpeg-bitstream-filters},
298 @url{ffmpeg-formats.html,ffmpeg-formats},
299 @url{ffmpeg-devices.html,ffmpeg-devices},
300 @url{ffmpeg-protocols.html,ffmpeg-protocols},
301 @url{ffmpeg-filters.html,ffmpeg-filters}
308 @ifset config-not-all
311 ffmpeg(1), ffprobe(1), ffserver(1),
312 ffmpeg-utils(1), ffmpeg-scaler(1), ffmpeg-resampler(1),
313 ffmpeg-codecs(1), ffmpeg-bitstream-filters(1), ffmpeg-formats(1),
314 ffmpeg-devices(1), ffmpeg-protocols(1), ffmpeg-filters(1)
317 @include authors.texi
322 @settitle FFplay media player