1 \input texinfo @c -*- texinfo -*-
2 @documentencoding UTF-8
4 @settitle ffplay Documentation
6 @center @titlefont{ffplay Documentation}
15 ffplay [@var{options}] [@file{input_file}]
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 a given position in seconds.
51 @item -t @var{duration}
52 play <duration> seconds of audio/video
56 Disable graphical display.
59 @item -window_title @var{title}
60 Set window title (default is the input filename).
61 @item -loop @var{number}
62 Loops movie playback <number> times. 0 means forever.
63 @item -showmode @var{mode}
64 Set the show mode to use.
65 Available values for @var{mode} are:
72 show audio frequency band using RDFT ((Inverse) Real Discrete Fourier Transform)
75 Default value is "video", if video is not present or cannot be played
76 "rdft" is automatically selected.
78 You can interactively cycle through the available show modes by
79 pressing the key @key{w}.
81 @item -vf @var{filtergraph}
82 Create the filtergraph specified by @var{filtergraph} and use it to
83 filter the video stream.
85 @var{filtergraph} is a description of the filtergraph to apply to
86 the stream, and must have a single video input and a single video
87 output. In the filtergraph, the input is associated to the label
88 @code{in}, and the output to the label @code{out}. See the
89 ffmpeg-filters manual for more information about the filtergraph
92 You can specify this parameter multiple times and cycle through the specified
93 filtergraphs along with the show modes by pressing the key @key{w}.
95 @item -af @var{filtergraph}
96 @var{filtergraph} is a description of the filtergraph to apply to
98 Use the option "-filters" to show all the available filters (including
101 @item -i @var{input_file}
102 Read @var{input_file}.
105 @section Advanced options
107 @item -pix_fmt @var{format}
109 This option has been deprecated in favor of private options, try -pixel_format.
112 Print several playback statistics, in particular show the stream
113 duration, the codec parameters, the current position in the stream and
114 the audio/video synchronisation drift. It is on by default, to
115 explicitly disable it you need to specify @code{-nostats}.
118 Non-spec-compliant optimizations.
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 -ast @var{audio_stream_specifier}
129 Select the desired audio stream using the given stream specifier. The stream
130 specifiers are described in the @ref{Stream specifiers} chapter. If this option
131 is not specified, the "best" audio stream is selected in the program of the
132 already selected video stream.
133 @item -vst @var{video_stream_specifier}
134 Select the desired video stream using the given stream specifier. The stream
135 specifiers are described in the @ref{Stream specifiers} chapter. If this option
136 is not specified, the "best" video stream is selected.
137 @item -sst @var{subtitle_stream_specifier}
138 Select the desired subtitle stream using the given stream specifier. The stream
139 specifiers are described in the @ref{Stream specifiers} chapter. If this option
140 is not specified, the "best" subtitle stream is selected in the program of the
141 already selected video or audio stream.
143 Exit when video is done playing.
145 Exit if any key is pressed.
146 @item -exitonmousedown
147 Exit if any mouse button is pressed.
149 @item -codec:@var{media_specifier} @var{codec_name}
150 Force a specific decoder implementation for the stream identified by
151 @var{media_specifier}, which can assume the values @code{a} (audio),
152 @code{v} (video), and @code{s} subtitle.
154 @item -acodec @var{codec_name}
155 Force a specific audio decoder.
157 @item -vcodec @var{codec_name}
158 Force a specific video decoder.
160 @item -scodec @var{codec_name}
161 Force a specific subtitle decoder.
164 Automatically rotate the video according to file metadata. Enabled by
165 default, use @option{-noautorotate} to disable it.
168 Drop video frames if video is out of sync. Enabled by default if the master
169 clock is not set to video. Use this option to enable frame dropping for all
170 master clock sources, use @option{-noframedrop} to disable it.
173 Do not limit the input buffer size, read as much data as possible from the
174 input as soon as possible. Enabled by default for realtime streams, where data
175 may be dropped if not read in time. Use this option to enable infinite buffers
176 for all inputs, use @option{-noinfbuf} to disable it.
180 @section While playing
193 Cycle audio channel in the current program.
199 Cycle subtitle channel in the current program.
205 Cycle video filters or show modes.
208 Step to the next frame.
210 Pause if the stream is not already paused, step to the next video
214 Seek backward/forward 10 seconds.
217 Seek backward/forward 1 minute.
219 @item page down/page up
220 Seek to the previous/next chapter.
221 or if there are no chapters
222 Seek backward/forward 10 minutes.
225 Seek to percentage in file corresponding to fraction of width.
237 @ifset config-avcodec
239 @include bitstream_filters.texi
241 @ifset config-avformat
242 @include formats.texi
243 @include protocols.texi
245 @ifset config-avdevice
246 @include devices.texi
248 @ifset config-swresample
249 @include resampler.texi
251 @ifset config-swscale
254 @ifset config-avfilter
255 @include filters.texi
263 @url{ffplay.html,ffplay},
265 @ifset config-not-all
266 @url{ffplay-all.html,ffmpeg-all},
268 @url{ffmpeg.html,ffmpeg}, @url{ffprobe.html,ffprobe}, @url{ffserver.html,ffserver},
269 @url{ffmpeg-utils.html,ffmpeg-utils},
270 @url{ffmpeg-scaler.html,ffmpeg-scaler},
271 @url{ffmpeg-resampler.html,ffmpeg-resampler},
272 @url{ffmpeg-codecs.html,ffmpeg-codecs},
273 @url{ffmpeg-bitstream-filters.html,ffmpeg-bitstream-filters},
274 @url{ffmpeg-formats.html,ffmpeg-formats},
275 @url{ffmpeg-devices.html,ffmpeg-devices},
276 @url{ffmpeg-protocols.html,ffmpeg-protocols},
277 @url{ffmpeg-filters.html,ffmpeg-filters}
284 @ifset config-not-all
287 ffmpeg(1), ffprobe(1), ffserver(1),
288 ffmpeg-utils(1), ffmpeg-scaler(1), ffmpeg-resampler(1),
289 ffmpeg-codecs(1), ffmpeg-bitstream-filters(1), ffmpeg-formats(1),
290 ffmpeg-devices(1), ffmpeg-protocols(1), ffmpeg-filters(1)
293 @include authors.texi
298 @settitle FFplay media player