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 avtools-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{filter_graph}
77 @var{filter_graph} is a description of the filter graph to apply to
79 Use the option "-filters" to show all the available filters (including
80 also sources and sinks).
82 @item -i @var{input_file}
83 Read @var{input_file}.
86 @section Advanced options
88 @item -pix_fmt @var{format}
90 This option has been deprecated in favor of private options, try -pixel_format.
92 Show the stream duration, the codec parameters, the current position in
93 the stream and the audio/video synchronisation drift.
97 Non-spec-compliant optimizations.
101 Force RTP/TCP protocol usage instead of RTP/UDP. It is only meaningful
102 if you are streaming with the RTSP protocol.
103 @item -sync @var{type}
104 Set the master clock to audio (@code{type=audio}), video
105 (@code{type=video}) or external (@code{type=ext}). Default is audio. The
106 master clock is used to control audio-video synchronization. Most media
107 players use audio as master clock, but in some cases (streaming or high
108 quality broadcast) it is necessary to change that. This option is mainly
109 used for debugging purposes.
110 @item -threads @var{count}
111 Set the thread count.
112 @item -ast @var{audio_stream_number}
113 Select the desired audio stream number, counting from 0. The number
114 refers to the list of all the input audio streams. If it is greater
115 than the number of audio streams minus one, then the last one is
116 selected, if it is negative the audio playback is disabled.
117 @item -vst @var{video_stream_number}
118 Select the desired video stream number, counting from 0. The number
119 refers to the list of all the input video streams. If it is greater
120 than the number of video streams minus one, then the last one is
121 selected, if it is negative the video playback is disabled.
122 @item -sst @var{subtitle_stream_number}
123 Select the desired subtitle stream number, counting from 0. The number
124 refers to the list of all the input subtitle streams. If it is greater
125 than the number of subtitle streams minus one, then the last one is
126 selected, if it is negative the subtitle rendering is disabled.
128 Exit when video is done playing.
130 Exit if any key is pressed.
131 @item -exitonmousedown
132 Exit if any mouse button is pressed.
134 @item -codec:@var{media_specifier} @var{codec_name}
135 Force a specific decoder implementation for the stream identified by
136 @var{media_specifier}, which can assume the values @code{a} (audio),
137 @code{v} (video), and @code{s} subtitle.
139 @item -acodec @var{codec_name}
140 Force a specific audio decoder.
142 @item -vcodec @var{codec_name}
143 Force a specific video decoder.
145 @item -scodec @var{codec_name}
146 Force a specific subtitle decoder.
149 @section While playing
168 Cycle subtitle channel.
174 Seek backward/forward 10 seconds.
177 Seek backward/forward 1 minute.
179 @item page down/page up
180 Seek backward/forward 10 minutes.
183 Seek to percentage in file corresponding to fraction of width.
191 @include decoders.texi
192 @include demuxers.texi
195 @include outdevs.texi
196 @include protocols.texi
197 @include filters.texi
202 @url{ffmpeg.html,ffmpeg}, @url{ffprobe.html,ffprobe}, @url{ffserver.html,ffserver},
203 @url{ffmpeg-utils.html,ffmpeg-utils},
204 @url{ffmpeg-scaler.html,ffmpeg-scaler},
205 @url{ffmpeg-resampler.html,ffmpeg-resampler},
206 @url{ffmpeg-codecs.html,ffmpeg-codecs},
207 @url{ffmpeg-bitstream-filters,ffmpeg-bitstream-filters},
208 @url{ffmpeg-formats.html,ffmpeg-formats},
209 @url{ffmpeg-devices.html,ffmpeg-devices},
210 @url{ffmpeg-protocols.html,ffmpeg-protocols},
211 @url{ffmpeg-filters.html,ffmpeg-filters}
215 ffmpeg(1), ffprobe(1), ffserver(1),
216 ffmpeg-utils(1), ffmpeg-scaler(1), ffmpeg-resampler(1),
217 ffmpeg-codecs(1), ffmpeg-bitstream-filters(1), ffmpeg-formats(1),
218 ffmpeg-devices(1), ffmpeg-protocols(1), ffmpeg-filters(1)
221 @include authors.texi
226 @settitle FFplay media player