Imported Debian version 2.5.0~trusty1.1
[deb_ffmpeg.git] / ffmpeg / doc / ffplay.texi
CommitLineData
2ba45a60
DM
1\input texinfo @c -*- texinfo -*-
2
3@settitle ffplay Documentation
4@titlepage
5@center @titlefont{ffplay Documentation}
6@end titlepage
7
8@top
9
10@contents
11
12@chapter Synopsis
13
14ffplay [@var{options}] [@file{input_file}]
15
16@chapter Description
17@c man begin DESCRIPTION
18
19FFplay is a very simple and portable media player using the FFmpeg
20libraries and the SDL library. It is mostly used as a testbed for the
21various FFmpeg APIs.
22@c man end
23
24@chapter Options
25@c man begin OPTIONS
26
27@include fftools-common-opts.texi
28
29@section Main options
30
31@table @option
32@item -x @var{width}
33Force displayed width.
34@item -y @var{height}
35Force displayed height.
36@item -s @var{size}
37Set frame size (WxH or abbreviation), needed for videos which do
38not contain a header with the frame size like raw YUV. This option
39has been deprecated in favor of private options, try -video_size.
f6fa7814
DM
40@item -fs
41Start in fullscreen mode.
2ba45a60
DM
42@item -an
43Disable audio.
44@item -vn
45Disable video.
f6fa7814
DM
46@item -sn
47Disable subtitles.
2ba45a60
DM
48@item -ss @var{pos}
49Seek to a given position in seconds.
50@item -t @var{duration}
51play <duration> seconds of audio/video
52@item -bytes
53Seek by bytes.
54@item -nodisp
55Disable graphical display.
56@item -f @var{fmt}
57Force format.
58@item -window_title @var{title}
59Set window title (default is the input filename).
60@item -loop @var{number}
61Loops movie playback <number> times. 0 means forever.
62@item -showmode @var{mode}
63Set the show mode to use.
64Available values for @var{mode} are:
65@table @samp
66@item 0, video
67show video
68@item 1, waves
69show audio waves
70@item 2, rdft
71show audio frequency band using RDFT ((Inverse) Real Discrete Fourier Transform)
72@end table
73
74Default value is "video", if video is not present or cannot be played
75"rdft" is automatically selected.
76
77You can interactively cycle through the available show modes by
78pressing the key @key{w}.
79
80@item -vf @var{filtergraph}
81Create the filtergraph specified by @var{filtergraph} and use it to
82filter the video stream.
83
84@var{filtergraph} is a description of the filtergraph to apply to
85the stream, and must have a single video input and a single video
86output. In the filtergraph, the input is associated to the label
87@code{in}, and the output to the label @code{out}. See the
88ffmpeg-filters manual for more information about the filtergraph
89syntax.
90
91You can specify this parameter multiple times and cycle through the specified
92filtergraphs along with the show modes by pressing the key @key{w}.
93
94@item -af @var{filtergraph}
95@var{filtergraph} is a description of the filtergraph to apply to
96the input audio.
97Use the option "-filters" to show all the available filters (including
98sources and sinks).
99
100@item -i @var{input_file}
101Read @var{input_file}.
102@end table
103
104@section Advanced options
105@table @option
106@item -pix_fmt @var{format}
107Set pixel format.
108This option has been deprecated in favor of private options, try -pixel_format.
109
110@item -stats
111Print several playback statistics, in particular show the stream
112duration, the codec parameters, the current position in the stream and
113the audio/video synchronisation drift. It is on by default, to
114explicitly disable it you need to specify @code{-nostats}.
115
2ba45a60
DM
116@item -fast
117Non-spec-compliant optimizations.
118@item -genpts
119Generate pts.
2ba45a60
DM
120@item -sync @var{type}
121Set the master clock to audio (@code{type=audio}), video
122(@code{type=video}) or external (@code{type=ext}). Default is audio. The
123master clock is used to control audio-video synchronization. Most media
124players use audio as master clock, but in some cases (streaming or high
125quality broadcast) it is necessary to change that. This option is mainly
126used for debugging purposes.
127@item -threads @var{count}
f6fa7814
DM
128Set the thread count. By default, @command{ffplay} automatically detects a
129suitable number of threads to use.
2ba45a60
DM
130@item -ast @var{audio_stream_number}
131Select the desired audio stream number, counting from 0. The number
132refers to the list of all the input audio streams. If it is greater
133than the number of audio streams minus one, then the last one is
134selected, if it is negative the audio playback is disabled.
135@item -vst @var{video_stream_number}
136Select the desired video stream number, counting from 0. The number
137refers to the list of all the input video streams. If it is greater
138than the number of video streams minus one, then the last one is
139selected, if it is negative the video playback is disabled.
140@item -sst @var{subtitle_stream_number}
141Select the desired subtitle stream number, counting from 0. The number
142refers to the list of all the input subtitle streams. If it is greater
143than the number of subtitle streams minus one, then the last one is
144selected, if it is negative the subtitle rendering is disabled.
145@item -autoexit
146Exit when video is done playing.
147@item -exitonkeydown
148Exit if any key is pressed.
149@item -exitonmousedown
150Exit if any mouse button is pressed.
151
152@item -codec:@var{media_specifier} @var{codec_name}
153Force 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.
156
157@item -acodec @var{codec_name}
158Force a specific audio decoder.
159
160@item -vcodec @var{codec_name}
161Force a specific video decoder.
162
163@item -scodec @var{codec_name}
164Force a specific subtitle decoder.
165
166@item -autorotate
f6fa7814
DM
167Automatically rotate the video according to presentation metadata. Enabled by
168default, use @option{-noautorotate} to disable it.
169
170@item -framedrop
171Drop video frames if video is out of sync. Enabled by default if the master
172clock is not set to video. Use this option to enable frame dropping for all
173master clock sources, use @option{-noframedrop} to disable it.
174
175@item -infbuf
176Do not limit the input buffer size, read as much data as possible from the
177input as soon as possible. Enabled by default for realtime streams, where data
178may be dropped if not read in time. Use this option to enable infinite buffers
179for all inputs, use @option{-noinfbuf} to disable it.
180
2ba45a60
DM
181@end table
182
183@section While playing
184
185@table @key
186@item q, ESC
187Quit.
188
189@item f
190Toggle full screen.
191
192@item p, SPC
193Pause.
194
195@item a
196Cycle audio channel in the current program.
197
198@item v
199Cycle video channel.
200
201@item t
202Cycle subtitle channel in the current program.
203
204@item c
205Cycle program.
206
207@item w
208Cycle video filters or show modes.
209
210@item s
211Step to the next frame.
212
213Pause if the stream is not already paused, step to the next video
214frame, and pause.
215
216@item left/right
217Seek backward/forward 10 seconds.
218
219@item down/up
220Seek backward/forward 1 minute.
221
222@item page down/page up
223Seek to the previous/next chapter.
224or if there are no chapters
225Seek backward/forward 10 minutes.
226
227@item mouse click
228Seek to percentage in file corresponding to fraction of width.
229
230@end table
231
232@c man end
233
234@include config.texi
235@ifset config-all
236@set config-readonly
237@ifset config-avutil
238@include utils.texi
239@end ifset
240@ifset config-avcodec
241@include codecs.texi
242@include bitstream_filters.texi
243@end ifset
244@ifset config-avformat
245@include formats.texi
246@include protocols.texi
247@end ifset
248@ifset config-avdevice
249@include devices.texi
250@end ifset
251@ifset config-swresample
252@include resampler.texi
253@end ifset
254@ifset config-swscale
255@include scaler.texi
256@end ifset
257@ifset config-avfilter
258@include filters.texi
259@end ifset
260@end ifset
261
262@chapter See Also
263
264@ifhtml
265@ifset config-all
266@url{ffplay.html,ffplay},
267@end ifset
268@ifset config-not-all
269@url{ffplay-all.html,ffmpeg-all},
270@end ifset
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}
281@end ifhtml
282
283@ifnothtml
284@ifset config-all
285ffplay(1),
286@end ifset
287@ifset config-not-all
288ffplay-all(1),
289@end ifset
290ffmpeg(1), ffprobe(1), ffserver(1),
291ffmpeg-utils(1), ffmpeg-scaler(1), ffmpeg-resampler(1),
292ffmpeg-codecs(1), ffmpeg-bitstream-filters(1), ffmpeg-formats(1),
293ffmpeg-devices(1), ffmpeg-protocols(1), ffmpeg-filters(1)
294@end ifnothtml
295
296@include authors.texi
297
298@ignore
299
300@setfilename ffplay
301@settitle FFplay media player
302
303@end ignore
304
305@bye