1 \input texinfo @c -*- texinfo -*-
3 @settitle FFplay Documentation
6 @center @titlefont{FFplay Documentation}
14 ffplay [options] @file{input_file}
19 @c man begin DESCRIPTION
21 FFplay is a very simple and portable media player using the FFmpeg
22 libraries and the SDL library. It is mostly used as a testbed for the
29 @include fftools-common-opts.texi
35 Force displayed width.
37 Force displayed height.
39 Set frame size (WxH or abbreviation), needed for videos which don't
40 contain a header with the frame size like raw YUV.
46 Seek to a given position in seconds.
47 @item -t @var{duration}
48 play <duration> seconds of audio/video
52 Disable graphical display.
55 @item -window_title @var{title}
56 Set window title (default is the input filename).
57 @item -loop @var{number}
58 Loops movie playback <number> times. 0 means forever.
59 @item -vf @var{filter_graph}
60 @var{filter_graph} is a description of the filter graph to apply to
62 Use the option "-filters" to show all the available filters (including
63 also sources and sinks).
67 @section Advanced options
69 @item -pix_fmt @var{format}
72 Show the stream duration, the codec parameters, the current position in
73 the stream and the audio/video synchronisation drift.
75 Print specific debug info.
79 Visualize motion vectors.
81 Non-spec-compliant optimizations.
85 Force RTP/TCP protocol usage instead of RTP/UDP. It is only meaningful
86 if you are streaming with the RTSP protocol.
87 @item -sync @var{type}
88 Set the master clock to audio (@code{type=audio}), video
89 (@code{type=video}) or external (@code{type=ext}). Default is audio. The
90 master clock is used to control audio-video synchronization. Most media
91 players use audio as master clock, but in some cases (streaming or high
92 quality broadcast) it is necessary to change that. This option is mainly
93 used for debugging purposes.
94 @item -threads @var{count}
96 @item -ast @var{audio_stream_number}
97 Select the desired audio stream number, counting from 0. The number
98 refers to the list of all the input audio streams. If it is greater
99 than the number of audio streams minus one, then the last one is
100 selected, if it is negative the audio playback is disabled.
101 @item -vst @var{video_stream_number}
102 Select the desired video stream number, counting from 0. The number
103 refers to the list of all the input video streams. If it is greater
104 than the number of video streams minus one, then the last one is
105 selected, if it is negative the video playback is disabled.
106 @item -sst @var{subtitle_stream_number}
107 Select the desired subtitle stream number, counting from 0. The number
108 refers to the list of all the input subtitle streams. If it is greater
109 than the number of subtitle streams minus one, then the last one is
110 selected, if it is negative the subtitle rendering is disabled.
112 Exit when video is done playing.
114 Exit if any key is pressed.
115 @item -exitonmousedown
116 Exit if any mouse button is pressed.
119 @section While playing
138 Cycle subtitle channel.
144 Seek backward/forward 10 seconds.
147 Seek backward/forward 1 minute.
150 Seek to percentage in file corresponding to fraction of width.
157 @include demuxers.texi
159 @include outdevs.texi
160 @include protocols.texi
161 @include filters.texi
166 @settitle FFplay media player
169 ffmpeg(1), ffprobe(1), ffserver(1) and the FFmpeg HTML documentation
173 The FFmpeg developers