1 \input texinfo @c -*- texinfo -*-
3 @settitle ffplay Documentation
5 @center @titlefont{ffplay Documentation}
16 ffplay [options] [@file{input_file}]
21 @c man begin DESCRIPTION
23 FFplay is a very simple and portable media player using the FFmpeg
24 libraries and the SDL library. It is mostly used as a testbed for the
31 @include avtools-common-opts.texi
37 Force displayed width.
39 Force displayed height.
41 Set frame size (WxH or abbreviation), needed for videos which do
42 not contain a header with the frame size like raw YUV. This option
43 has been deprecated in favor of private options, try -video_size.
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{filter_graph}
81 @var{filter_graph} is a description of the filter graph to apply to
83 Use the option "-filters" to show all the available filters (including
84 also sources and sinks).
86 @item -i @var{input_file}
87 Read @var{input_file}.
90 @section Advanced options
92 @item -pix_fmt @var{format}
94 This option has been deprecated in favor of private options, try -pixel_format.
96 Show the stream duration, the codec parameters, the current position in
97 the stream and the audio/video synchronisation drift.
101 Non-spec-compliant optimizations.
105 Force RTP/TCP protocol usage instead of RTP/UDP. It is only meaningful
106 if you are streaming with the RTSP protocol.
107 @item -sync @var{type}
108 Set the master clock to audio (@code{type=audio}), video
109 (@code{type=video}) or external (@code{type=ext}). Default is audio. The
110 master clock is used to control audio-video synchronization. Most media
111 players use audio as master clock, but in some cases (streaming or high
112 quality broadcast) it is necessary to change that. This option is mainly
113 used for debugging purposes.
114 @item -threads @var{count}
115 Set the thread count.
116 @item -ast @var{audio_stream_number}
117 Select the desired audio stream number, counting from 0. The number
118 refers to the list of all the input audio streams. If it is greater
119 than the number of audio streams minus one, then the last one is
120 selected, if it is negative the audio playback is disabled.
121 @item -vst @var{video_stream_number}
122 Select the desired video stream number, counting from 0. The number
123 refers to the list of all the input video streams. If it is greater
124 than the number of video streams minus one, then the last one is
125 selected, if it is negative the video playback is disabled.
126 @item -sst @var{subtitle_stream_number}
127 Select the desired subtitle stream number, counting from 0. The number
128 refers to the list of all the input subtitle streams. If it is greater
129 than the number of subtitle streams minus one, then the last one is
130 selected, if it is negative the subtitle rendering is disabled.
132 Exit when video is done playing.
134 Exit if any key is pressed.
135 @item -exitonmousedown
136 Exit if any mouse button is pressed.
138 @item -codec:@var{media_specifier} @var{codec_name}
139 Force a specific decoder implementation for the stream identified by
140 @var{media_specifier}, which can assume the values @code{a} (audio),
141 @code{v} (video), and @code{s} subtitle.
143 @item -acodec @var{codec_name}
144 Force a specific audio decoder.
146 @item -vcodec @var{codec_name}
147 Force a specific video decoder.
149 @item -scodec @var{codec_name}
150 Force a specific subtitle decoder.
153 @section While playing
172 Cycle subtitle channel.
178 Seek backward/forward 10 seconds.
181 Seek backward/forward 1 minute.
183 @item page down/page up
184 Seek backward/forward 10 minutes.
187 Seek to percentage in file corresponding to fraction of width.
195 @include decoders.texi
196 @include demuxers.texi
199 @include outdevs.texi
200 @include protocols.texi
201 @include filters.texi
206 @settitle FFplay media player
209 ffmpeg(1), ffprobe(1), ffserver(1) and the FFmpeg HTML documentation
213 The FFmpeg developers