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.
41 Start in fullscreen mode.
49 Seek to a given position in seconds.
50 @item -t @var{duration}
51 play <duration> seconds of audio/video
55 Disable graphical display.
58 @item -window_title @var{title}
59 Set window title (default is the input filename).
60 @item -loop @var{number}
61 Loops movie playback <number> times. 0 means forever.
62 @item -showmode @var{mode}
63 Set the show mode to use.
64 Available values for @var{mode} are:
71 show audio frequency band using RDFT ((Inverse) Real Discrete Fourier Transform)
74 Default value is "video", if video is not present or cannot be played
75 "rdft" is automatically selected.
77 You can interactively cycle through the available show modes by
78 pressing the key @key{w}.
80 @item -vf @var{filtergraph}
81 Create the filtergraph specified by @var{filtergraph} and use it to
82 filter the video stream.
84 @var{filtergraph} is a description of the filtergraph to apply to
85 the stream, and must have a single video input and a single video
86 output. In the filtergraph, the input is associated to the label
87 @code{in}, and the output to the label @code{out}. See the
88 ffmpeg-filters manual for more information about the filtergraph
91 You can specify this parameter multiple times and cycle through the specified
92 filtergraphs along with the show modes by pressing the key @key{w}.
94 @item -af @var{filtergraph}
95 @var{filtergraph} is a description of the filtergraph to apply to
97 Use the option "-filters" to show all the available filters (including
100 @item -i @var{input_file}
101 Read @var{input_file}.
104 @section Advanced options
106 @item -pix_fmt @var{format}
108 This option has been deprecated in favor of private options, try -pixel_format.
111 Print several playback statistics, in particular show the stream
112 duration, the codec parameters, the current position in the stream and
113 the audio/video synchronisation drift. It is on by default, to
114 explicitly disable it you need to specify @code{-nostats}.
117 Non-spec-compliant optimizations.
120 @item -sync @var{type}
121 Set the master clock to audio (@code{type=audio}), video
122 (@code{type=video}) or external (@code{type=ext}). Default is audio. The
123 master clock is used to control audio-video synchronization. Most media
124 players use audio as master clock, but in some cases (streaming or high
125 quality broadcast) it is necessary to change that. This option is mainly
126 used for debugging purposes.
127 @item -threads @var{count}
128 Set the thread count. By default, @command{ffplay} automatically detects a
129 suitable number of threads to use.
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. Enabled by
168 default, use @option{-noautorotate} to disable it.
171 Drop video frames if video is out of sync. Enabled by default if the master
172 clock is not set to video. Use this option to enable frame dropping for all
173 master clock sources, use @option{-noframedrop} to disable it.
176 Do not limit the input buffer size, read as much data as possible from the
177 input as soon as possible. Enabled by default for realtime streams, where data
178 may be dropped if not read in time. Use this option to enable infinite buffers
179 for all inputs, use @option{-noinfbuf} to disable it.
183 @section While playing
196 Cycle audio channel in the current program.
202 Cycle subtitle channel in the current program.
208 Cycle video filters or show modes.
211 Step to the next frame.
213 Pause if the stream is not already paused, step to the next video
217 Seek backward/forward 10 seconds.
220 Seek backward/forward 1 minute.
222 @item page down/page up
223 Seek to the previous/next chapter.
224 or if there are no chapters
225 Seek backward/forward 10 minutes.
228 Seek to percentage in file corresponding to fraction of width.
240 @ifset config-avcodec
242 @include bitstream_filters.texi
244 @ifset config-avformat
245 @include formats.texi
246 @include protocols.texi
248 @ifset config-avdevice
249 @include devices.texi
251 @ifset config-swresample
252 @include resampler.texi
254 @ifset config-swscale
257 @ifset config-avfilter
258 @include filters.texi
266 @url{ffplay.html,ffplay},
268 @ifset config-not-all
269 @url{ffplay-all.html,ffmpeg-all},
271 @url{ffmpeg.html,ffmpeg}, @url{ffprobe.html,ffprobe}, @url{ffserver.html,ffserver},
272 @url{ffmpeg-utils.html,ffmpeg-utils},
273 @url{ffmpeg-scaler.html,ffmpeg-scaler},
274 @url{ffmpeg-resampler.html,ffmpeg-resampler},
275 @url{ffmpeg-codecs.html,ffmpeg-codecs},
276 @url{ffmpeg-bitstream-filters.html,ffmpeg-bitstream-filters},
277 @url{ffmpeg-formats.html,ffmpeg-formats},
278 @url{ffmpeg-devices.html,ffmpeg-devices},
279 @url{ffmpeg-protocols.html,ffmpeg-protocols},
280 @url{ffmpeg-filters.html,ffmpeg-filters}
287 @ifset config-not-all
290 ffmpeg(1), ffprobe(1), ffserver(1),
291 ffmpeg-utils(1), ffmpeg-scaler(1), ffmpeg-resampler(1),
292 ffmpeg-codecs(1), ffmpeg-bitstream-filters(1), ffmpeg-formats(1),
293 ffmpeg-devices(1), ffmpeg-protocols(1), ffmpeg-filters(1)
296 @include authors.texi
301 @settitle FFplay media player