]> git.sesse.net Git - ffmpeg/blob - doc/ffplay.texi
ffplay.texi: document -i FILE option
[ffmpeg] / doc / ffplay.texi
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
14 @example
15 @c man begin SYNOPSIS
16 ffplay [options] [@file{input_file}]
17 @c man end
18 @end example
19
20 @chapter Description
21 @c man begin DESCRIPTION
22
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
25 various FFmpeg APIs.
26 @c man end
27
28 @chapter Options
29 @c man begin OPTIONS
30
31 @include fftools-common-opts.texi
32
33 @section Main options
34
35 @table @option
36 @item -x @var{width}
37 Force displayed width.
38 @item -y @var{height}
39 Force displayed height.
40 @item -s @var{size}
41 Set frame size (WxH or abbreviation), needed for videos which don't
42 contain a header with the frame size like raw YUV.
43 @item -an
44 Disable audio.
45 @item -vn
46 Disable video.
47 @item -ss @var{pos}
48 Seek to a given position in seconds.
49 @item -t @var{duration}
50 play <duration> seconds of audio/video
51 @item -bytes
52 Seek by bytes.
53 @item -nodisp
54 Disable graphical display.
55 @item -f @var{fmt}
56 Force format.
57 @item -window_title @var{title}
58 Set window title (default is the input filename).
59 @item -loop @var{number}
60 Loops movie playback <number> times. 0 means forever.
61 @item -showmode @var{mode}
62 Set the show mode to use.
63 Available values for @var{mode} are:
64 @table @samp
65 @item 0, video
66 show video
67 @item 1, waves
68 show audio waves
69 @item 2, rdft
70 show audio frequency band using RDFT ((Inverse) Real Discrete Fourier Transform)
71 @end table
72
73 Default value is "video", if video is not present or cannot be played
74 "rdft" is automatically selected.
75
76 You can interactively cycle through the available show modes by
77 pressing the key @key{w}.
78
79 @item -vf @var{filter_graph}
80 @var{filter_graph} is a description of the filter graph to apply to
81 the input video.
82 Use the option "-filters" to show all the available filters (including
83 also sources and sinks).
84
85 @item -i @var{input_file}
86 Read @var{input_file}.
87 @end table
88
89 @section Advanced options
90 @table @option
91 @item -pix_fmt @var{format}
92 Set pixel format.
93 @item -stats
94 Show the stream duration, the codec parameters, the current position in
95 the stream and the audio/video synchronisation drift.
96 @item -debug
97 Print specific debug info.
98 @item -bug
99 Work around bugs.
100 @item -vismv
101 Visualize motion vectors.
102 @item -fast
103 Non-spec-compliant optimizations.
104 @item -genpts
105 Generate pts.
106 @item -rtp_tcp
107 Force RTP/TCP protocol usage instead of RTP/UDP. It is only meaningful
108 if you are streaming with the RTSP protocol.
109 @item -sync @var{type}
110 Set the master clock to audio (@code{type=audio}), video
111 (@code{type=video}) or external (@code{type=ext}). Default is audio. The
112 master clock is used to control audio-video synchronization. Most media
113 players use audio as master clock, but in some cases (streaming or high
114 quality broadcast) it is necessary to change that. This option is mainly
115 used for debugging purposes.
116 @item -threads @var{count}
117 Set the thread count.
118 @item -ast @var{audio_stream_number}
119 Select the desired audio stream number, counting from 0. The number
120 refers to the list of all the input audio streams. If it is greater
121 than the number of audio streams minus one, then the last one is
122 selected, if it is negative the audio playback is disabled.
123 @item -vst @var{video_stream_number}
124 Select the desired video stream number, counting from 0. The number
125 refers to the list of all the input video streams. If it is greater
126 than the number of video streams minus one, then the last one is
127 selected, if it is negative the video playback is disabled.
128 @item -sst @var{subtitle_stream_number}
129 Select the desired subtitle stream number, counting from 0. The number
130 refers to the list of all the input subtitle streams. If it is greater
131 than the number of subtitle streams minus one, then the last one is
132 selected, if it is negative the subtitle rendering is disabled.
133 @item -autoexit
134 Exit when video is done playing.
135 @item -exitonkeydown
136 Exit if any key is pressed.
137 @item -exitonmousedown
138 Exit if any mouse button is pressed.
139 @end table
140
141 @section While playing
142
143 @table @key
144 @item q, ESC
145 Quit.
146
147 @item f
148 Toggle full screen.
149
150 @item p, SPC
151 Pause.
152
153 @item a
154 Cycle audio channel.
155
156 @item v
157 Cycle video channel.
158
159 @item t
160 Cycle subtitle channel.
161
162 @item w
163 Show audio waves.
164
165 @item left/right
166 Seek backward/forward 10 seconds.
167
168 @item down/up
169 Seek backward/forward 1 minute.
170
171 @item mouse click
172 Seek to percentage in file corresponding to fraction of width.
173
174 @end table
175
176 @c man end
177
178 @include eval.texi
179 @include decoders.texi
180 @include demuxers.texi
181 @include muxers.texi
182 @include indevs.texi
183 @include outdevs.texi
184 @include protocols.texi
185 @include filters.texi
186
187 @ignore
188
189 @setfilename ffplay
190 @settitle FFplay media player
191
192 @c man begin SEEALSO
193 ffmpeg(1), ffprobe(1), ffserver(1) and the FFmpeg HTML documentation
194 @c man end
195
196 @c man begin AUTHORS
197 The FFmpeg developers
198 @c man end
199
200 @end ignore
201
202 @bye