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.
137 @item -codec:@var{stream_type}
138 Force a specific decoder implementation
141 @section While playing
160 Cycle subtitle channel.
166 Seek backward/forward 10 seconds.
169 Seek backward/forward 1 minute.
171 @item page down/page up
172 Seek backward/forward 10 minutes.
175 Seek to percentage in file corresponding to fraction of width.
182 @include decoders.texi
183 @include demuxers.texi
186 @include outdevs.texi
187 @include protocols.texi
188 @include filters.texi
193 @settitle FFplay media player
196 ffmpeg(1), ffprobe(1), ffserver(1) and the FFmpeg HTML documentation
200 The FFmpeg developers