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 Set custom interval, in seconds, for seeking using left/right keys. Default is 10 seconds.
66 Disable graphical display.
70 Set the startup volume. 0 means silence, 100 means no volume reduction or
71 amplification. Negative values are treated as 0, values above 100 are treated
75 @item -window_title @var{title}
76 Set window title (default is the input filename).
77 @item -loop @var{number}
78 Loops movie playback <number> times. 0 means forever.
79 @item -showmode @var{mode}
80 Set the show mode to use.
81 Available values for @var{mode} are:
88 show audio frequency band using RDFT ((Inverse) Real Discrete Fourier Transform)
91 Default value is "video", if video is not present or cannot be played
92 "rdft" is automatically selected.
94 You can interactively cycle through the available show modes by
95 pressing the key @key{w}.
97 @item -vf @var{filtergraph}
98 Create the filtergraph specified by @var{filtergraph} and use it to
99 filter the video stream.
101 @var{filtergraph} is a description of the filtergraph to apply to
102 the stream, and must have a single video input and a single video
103 output. In the filtergraph, the input is associated to the label
104 @code{in}, and the output to the label @code{out}. See the
105 ffmpeg-filters manual for more information about the filtergraph
108 You can specify this parameter multiple times and cycle through the specified
109 filtergraphs along with the show modes by pressing the key @key{w}.
111 @item -af @var{filtergraph}
112 @var{filtergraph} is a description of the filtergraph to apply to
114 Use the option "-filters" to show all the available filters (including
117 @item -i @var{input_url}
118 Read @var{input_url}.
121 @section Advanced options
123 @item -pix_fmt @var{format}
125 This option has been deprecated in favor of private options, try -pixel_format.
128 Print several playback statistics, in particular show the stream
129 duration, the codec parameters, the current position in the stream and
130 the audio/video synchronisation drift. It is on by default, to
131 explicitly disable it you need to specify @code{-nostats}.
134 Non-spec-compliant optimizations.
137 @item -sync @var{type}
138 Set the master clock to audio (@code{type=audio}), video
139 (@code{type=video}) or external (@code{type=ext}). Default is audio. The
140 master clock is used to control audio-video synchronization. Most media
141 players use audio as master clock, but in some cases (streaming or high
142 quality broadcast) it is necessary to change that. This option is mainly
143 used for debugging purposes.
144 @item -ast @var{audio_stream_specifier}
145 Select the desired audio stream using the given stream specifier. The stream
146 specifiers are described in the @ref{Stream specifiers} chapter. If this option
147 is not specified, the "best" audio stream is selected in the program of the
148 already selected video stream.
149 @item -vst @var{video_stream_specifier}
150 Select the desired video 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" video stream is selected.
153 @item -sst @var{subtitle_stream_specifier}
154 Select the desired subtitle stream using the given stream specifier. The stream
155 specifiers are described in the @ref{Stream specifiers} chapter. If this option
156 is not specified, the "best" subtitle stream is selected in the program of the
157 already selected video or audio stream.
159 Exit when video is done playing.
161 Exit if any key is pressed.
162 @item -exitonmousedown
163 Exit if any mouse button is pressed.
165 @item -codec:@var{media_specifier} @var{codec_name}
166 Force a specific decoder implementation for the stream identified by
167 @var{media_specifier}, which can assume the values @code{a} (audio),
168 @code{v} (video), and @code{s} subtitle.
170 @item -acodec @var{codec_name}
171 Force a specific audio decoder.
173 @item -vcodec @var{codec_name}
174 Force a specific video decoder.
176 @item -scodec @var{codec_name}
177 Force a specific subtitle decoder.
180 Automatically rotate the video according to file metadata. Enabled by
181 default, use @option{-noautorotate} to disable it.
184 Drop video frames if video is out of sync. Enabled by default if the master
185 clock is not set to video. Use this option to enable frame dropping for all
186 master clock sources, use @option{-noframedrop} to disable it.
189 Do not limit the input buffer size, read as much data as possible from the
190 input as soon as possible. Enabled by default for realtime streams, where data
191 may be dropped if not read in time. Use this option to enable infinite buffers
192 for all inputs, use @option{-noinfbuf} to disable it.
196 @section While playing
212 Decrease and increase volume respectively.
215 Decrease and increase volume respectively.
218 Cycle audio channel in the current program.
224 Cycle subtitle channel in the current program.
230 Cycle video filters or show modes.
233 Step to the next frame.
235 Pause if the stream is not already paused, step to the next video
239 Seek backward/forward 10 seconds.
242 Seek backward/forward 1 minute.
244 @item page down/page up
245 Seek to the previous/next chapter.
246 or if there are no chapters
247 Seek backward/forward 10 minutes.
249 @item right mouse click
250 Seek to percentage in file corresponding to fraction of width.
252 @item left mouse double-click
265 @ifset config-avcodec
267 @include bitstream_filters.texi
269 @ifset config-avformat
270 @include formats.texi
271 @include protocols.texi
273 @ifset config-avdevice
274 @include devices.texi
276 @ifset config-swresample
277 @include resampler.texi
279 @ifset config-swscale
282 @ifset config-avfilter
283 @include filters.texi
291 @url{ffplay.html,ffplay},
293 @ifset config-not-all
294 @url{ffplay-all.html,ffmpeg-all},
296 @url{ffmpeg.html,ffmpeg}, @url{ffprobe.html,ffprobe},
297 @url{ffmpeg-utils.html,ffmpeg-utils},
298 @url{ffmpeg-scaler.html,ffmpeg-scaler},
299 @url{ffmpeg-resampler.html,ffmpeg-resampler},
300 @url{ffmpeg-codecs.html,ffmpeg-codecs},
301 @url{ffmpeg-bitstream-filters.html,ffmpeg-bitstream-filters},
302 @url{ffmpeg-formats.html,ffmpeg-formats},
303 @url{ffmpeg-devices.html,ffmpeg-devices},
304 @url{ffmpeg-protocols.html,ffmpeg-protocols},
305 @url{ffmpeg-filters.html,ffmpeg-filters}
312 @ifset config-not-all
315 ffmpeg(1), ffprobe(1),
316 ffmpeg-utils(1), ffmpeg-scaler(1), ffmpeg-resampler(1),
317 ffmpeg-codecs(1), ffmpeg-bitstream-filters(1), ffmpeg-formats(1),
318 ffmpeg-devices(1), ffmpeg-protocols(1), ffmpeg-filters(1)
321 @include authors.texi
326 @settitle FFplay media player