2003-08-24 14:16:29 +03:00
|
|
|
\input texinfo @c -*- texinfo -*-
|
2015-02-09 17:17:44 +02:00
|
|
|
@documentencoding UTF-8
|
2003-08-24 14:16:29 +03:00
|
|
|
|
2011-04-23 16:19:17 +03:00
|
|
|
@settitle ffplay Documentation
|
2003-08-24 14:16:29 +03:00
|
|
|
@titlepage
|
2011-04-23 16:19:17 +03:00
|
|
|
@center @titlefont{ffplay Documentation}
|
2003-08-24 14:16:29 +03:00
|
|
|
@end titlepage
|
|
|
|
|
2011-01-29 14:24:13 +02:00
|
|
|
@top
|
|
|
|
|
|
|
|
@contents
|
|
|
|
|
2010-06-09 01:32:29 +03:00
|
|
|
@chapter Synopsis
|
|
|
|
|
2016-12-05 13:54:21 +02:00
|
|
|
ffplay [@var{options}] [@file{input_url}]
|
2003-08-24 14:16:29 +03:00
|
|
|
|
2010-06-04 00:23:07 +03:00
|
|
|
@chapter Description
|
2003-08-24 14:16:29 +03:00
|
|
|
@c man begin DESCRIPTION
|
2010-06-04 00:23:07 +03:00
|
|
|
|
2011-03-17 17:55:58 +02:00
|
|
|
FFplay is a very simple and portable media player using the FFmpeg
|
2005-06-09 21:12:07 +03:00
|
|
|
libraries and the SDL library. It is mostly used as a testbed for the
|
2011-03-17 17:55:58 +02:00
|
|
|
various FFmpeg APIs.
|
2003-08-24 14:16:29 +03:00
|
|
|
@c man end
|
|
|
|
|
2010-06-09 01:32:29 +03:00
|
|
|
@chapter Options
|
2003-08-24 14:16:29 +03:00
|
|
|
@c man begin OPTIONS
|
2010-02-21 12:56:38 +02:00
|
|
|
|
2013-09-09 01:36:55 +03:00
|
|
|
@include fftools-common-opts.texi
|
2010-02-21 12:56:38 +02:00
|
|
|
|
2003-08-24 14:16:29 +03:00
|
|
|
@section Main options
|
|
|
|
|
|
|
|
@table @option
|
2008-04-08 19:39:30 +03:00
|
|
|
@item -x @var{width}
|
2008-05-27 02:01:22 +03:00
|
|
|
Force displayed width.
|
2008-04-08 19:39:30 +03:00
|
|
|
@item -y @var{height}
|
2008-05-27 02:01:22 +03:00
|
|
|
Force displayed height.
|
2008-04-08 19:39:30 +03:00
|
|
|
@item -s @var{size}
|
2011-08-01 01:40:28 +03:00
|
|
|
Set frame size (WxH or abbreviation), needed for videos which do
|
|
|
|
not contain a header with the frame size like raw YUV. This option
|
|
|
|
has been deprecated in favor of private options, try -video_size.
|
2014-10-11 14:54:42 +03:00
|
|
|
@item -fs
|
|
|
|
Start in fullscreen mode.
|
2003-08-24 14:16:29 +03:00
|
|
|
@item -an
|
2008-05-27 02:01:22 +03:00
|
|
|
Disable audio.
|
2003-08-24 14:16:29 +03:00
|
|
|
@item -vn
|
2008-05-27 02:01:22 +03:00
|
|
|
Disable video.
|
2014-10-11 14:54:42 +03:00
|
|
|
@item -sn
|
|
|
|
Disable subtitles.
|
2008-04-08 19:39:30 +03:00
|
|
|
@item -ss @var{pos}
|
2015-08-11 19:00:46 +02:00
|
|
|
Seek to @var{pos}. Note that in most formats it is not possible to seek
|
|
|
|
exactly, so @command{ffplay} will seek to the nearest seek point to
|
|
|
|
@var{pos}.
|
|
|
|
|
|
|
|
@var{pos} must be a time duration specification,
|
|
|
|
see @ref{time duration syntax,,the Time duration section in the ffmpeg-utils(1) manual,ffmpeg-utils}.
|
2010-04-01 23:56:23 +03:00
|
|
|
@item -t @var{duration}
|
2015-08-11 19:00:46 +02:00
|
|
|
Play @var{duration} seconds of audio/video.
|
|
|
|
|
|
|
|
@var{duration} must be a time duration specification,
|
|
|
|
see @ref{time duration syntax,,the Time duration section in the ffmpeg-utils(1) manual,ffmpeg-utils}.
|
2007-03-12 19:16:12 +02:00
|
|
|
@item -bytes
|
2008-05-27 02:01:22 +03:00
|
|
|
Seek by bytes.
|
2018-09-01 08:03:17 +02:00
|
|
|
@item -seek_interval
|
|
|
|
Set custom interval, in seconds, for seeking using left/right keys. Default is 10 seconds.
|
2003-08-24 14:16:29 +03:00
|
|
|
@item -nodisp
|
2008-05-27 02:01:22 +03:00
|
|
|
Disable graphical display.
|
2017-02-01 04:41:29 +02:00
|
|
|
@item -noborder
|
|
|
|
Borderless window.
|
2019-05-13 13:42:37 +02:00
|
|
|
@item -alwaysontop
|
|
|
|
Window always on top. Available on: X11 with SDL >= 2.0.5, Windows SDL >= 2.0.6.
|
2016-12-22 19:51:31 +02:00
|
|
|
@item -volume
|
|
|
|
Set the startup volume. 0 means silence, 100 means no volume reduction or
|
|
|
|
amplification. Negative values are treated as 0, values above 100 are treated
|
|
|
|
as 100.
|
2008-04-08 19:39:30 +03:00
|
|
|
@item -f @var{fmt}
|
2008-05-27 02:01:22 +03:00
|
|
|
Force format.
|
2010-03-18 01:39:18 +02:00
|
|
|
@item -window_title @var{title}
|
|
|
|
Set window title (default is the input filename).
|
2018-10-01 23:07:44 +02:00
|
|
|
@item -left @var{title}
|
|
|
|
Set the x position for the left of the window (default is a centered window).
|
|
|
|
@item -top @var{title}
|
|
|
|
Set the y position for the top of the window (default is a centered window).
|
2010-03-23 19:39:51 +02:00
|
|
|
@item -loop @var{number}
|
|
|
|
Loops movie playback <number> times. 0 means forever.
|
2011-04-12 14:10:33 +03:00
|
|
|
@item -showmode @var{mode}
|
|
|
|
Set the show mode to use.
|
|
|
|
Available values for @var{mode} are:
|
|
|
|
@table @samp
|
|
|
|
@item 0, video
|
|
|
|
show video
|
|
|
|
@item 1, waves
|
|
|
|
show audio waves
|
|
|
|
@item 2, rdft
|
|
|
|
show audio frequency band using RDFT ((Inverse) Real Discrete Fourier Transform)
|
|
|
|
@end table
|
|
|
|
|
|
|
|
Default value is "video", if video is not present or cannot be played
|
|
|
|
"rdft" is automatically selected.
|
|
|
|
|
|
|
|
You can interactively cycle through the available show modes by
|
|
|
|
pressing the key @key{w}.
|
|
|
|
|
2013-03-30 22:13:08 +03:00
|
|
|
@item -vf @var{filtergraph}
|
|
|
|
Create the filtergraph specified by @var{filtergraph} and use it to
|
2013-01-13 17:23:15 +03:00
|
|
|
filter the video stream.
|
|
|
|
|
2013-03-30 22:13:08 +03:00
|
|
|
@var{filtergraph} is a description of the filtergraph to apply to
|
2013-01-13 17:23:15 +03:00
|
|
|
the stream, and must have a single video input and a single video
|
2013-03-30 22:13:08 +03:00
|
|
|
output. In the filtergraph, the input is associated to the label
|
2013-01-13 17:23:15 +03:00
|
|
|
@code{in}, and the output to the label @code{out}. See the
|
|
|
|
ffmpeg-filters manual for more information about the filtergraph
|
|
|
|
syntax.
|
2010-06-22 01:09:07 +03:00
|
|
|
|
2014-01-06 23:14:23 +03:00
|
|
|
You can specify this parameter multiple times and cycle through the specified
|
|
|
|
filtergraphs along with the show modes by pressing the key @key{w}.
|
|
|
|
|
2013-03-30 22:13:08 +03:00
|
|
|
@item -af @var{filtergraph}
|
|
|
|
@var{filtergraph} is a description of the filtergraph to apply to
|
2013-02-26 00:00:30 +03:00
|
|
|
the input audio.
|
|
|
|
Use the option "-filters" to show all the available filters (including
|
|
|
|
sources and sinks).
|
|
|
|
|
2016-12-05 13:54:21 +02:00
|
|
|
@item -i @var{input_url}
|
|
|
|
Read @var{input_url}.
|
2009-12-21 23:50:23 +02:00
|
|
|
@end table
|
2003-08-24 14:16:29 +03:00
|
|
|
|
|
|
|
@section Advanced options
|
|
|
|
@table @option
|
2008-04-08 19:39:30 +03:00
|
|
|
@item -pix_fmt @var{format}
|
2011-08-01 01:40:28 +03:00
|
|
|
Set pixel format.
|
|
|
|
This option has been deprecated in favor of private options, try -pixel_format.
|
2013-03-10 13:51:00 +03:00
|
|
|
|
2003-08-24 14:16:29 +03:00
|
|
|
@item -stats
|
2013-03-10 13:51:00 +03:00
|
|
|
Print several playback statistics, in particular show the stream
|
|
|
|
duration, the codec parameters, the current position in the stream and
|
|
|
|
the audio/video synchronisation drift. It is on by default, to
|
|
|
|
explicitly disable it you need to specify @code{-nostats}.
|
|
|
|
|
2007-03-12 19:16:12 +02:00
|
|
|
@item -fast
|
2008-05-27 02:01:22 +03:00
|
|
|
Non-spec-compliant optimizations.
|
2007-03-12 19:16:12 +02:00
|
|
|
@item -genpts
|
2008-05-27 02:01:22 +03:00
|
|
|
Generate pts.
|
2008-04-08 19:39:30 +03:00
|
|
|
@item -sync @var{type}
|
2005-06-09 21:12:07 +03:00
|
|
|
Set the master clock to audio (@code{type=audio}), video
|
2003-08-24 14:16:29 +03:00
|
|
|
(@code{type=video}) or external (@code{type=ext}). Default is audio. The
|
|
|
|
master clock is used to control audio-video synchronization. Most media
|
|
|
|
players use audio as master clock, but in some cases (streaming or high
|
|
|
|
quality broadcast) it is necessary to change that. This option is mainly
|
|
|
|
used for debugging purposes.
|
2014-12-20 19:18:48 +02:00
|
|
|
@item -ast @var{audio_stream_specifier}
|
|
|
|
Select the desired audio stream using the given stream specifier. The stream
|
|
|
|
specifiers are described in the @ref{Stream specifiers} chapter. If this option
|
|
|
|
is not specified, the "best" audio stream is selected in the program of the
|
|
|
|
already selected video stream.
|
|
|
|
@item -vst @var{video_stream_specifier}
|
|
|
|
Select the desired video stream using the given stream specifier. The stream
|
|
|
|
specifiers are described in the @ref{Stream specifiers} chapter. If this option
|
|
|
|
is not specified, the "best" video stream is selected.
|
|
|
|
@item -sst @var{subtitle_stream_specifier}
|
|
|
|
Select the desired subtitle stream using the given stream specifier. The stream
|
|
|
|
specifiers are described in the @ref{Stream specifiers} chapter. If this option
|
|
|
|
is not specified, the "best" subtitle stream is selected in the program of the
|
|
|
|
already selected video or audio stream.
|
2014-09-08 18:45:57 +03:00
|
|
|
@item -autoexit
|
|
|
|
Exit when video is done playing.
|
2010-07-04 15:43:12 +03:00
|
|
|
@item -exitonkeydown
|
|
|
|
Exit if any key is pressed.
|
|
|
|
@item -exitonmousedown
|
|
|
|
Exit if any mouse button is pressed.
|
2012-12-16 00:40:26 +03:00
|
|
|
|
|
|
|
@item -codec:@var{media_specifier} @var{codec_name}
|
|
|
|
Force a specific decoder implementation for the stream identified by
|
|
|
|
@var{media_specifier}, which can assume the values @code{a} (audio),
|
|
|
|
@code{v} (video), and @code{s} subtitle.
|
|
|
|
|
|
|
|
@item -acodec @var{codec_name}
|
|
|
|
Force a specific audio decoder.
|
|
|
|
|
|
|
|
@item -vcodec @var{codec_name}
|
|
|
|
Force a specific video decoder.
|
|
|
|
|
|
|
|
@item -scodec @var{codec_name}
|
|
|
|
Force a specific subtitle decoder.
|
2014-04-19 00:15:54 +03:00
|
|
|
|
|
|
|
@item -autorotate
|
2015-05-02 22:21:28 +02:00
|
|
|
Automatically rotate the video according to file metadata. Enabled by
|
2014-10-11 14:54:42 +03:00
|
|
|
default, use @option{-noautorotate} to disable it.
|
|
|
|
|
|
|
|
@item -framedrop
|
|
|
|
Drop video frames if video is out of sync. Enabled by default if the master
|
|
|
|
clock is not set to video. Use this option to enable frame dropping for all
|
|
|
|
master clock sources, use @option{-noframedrop} to disable it.
|
|
|
|
|
|
|
|
@item -infbuf
|
|
|
|
Do not limit the input buffer size, read as much data as possible from the
|
|
|
|
input as soon as possible. Enabled by default for realtime streams, where data
|
|
|
|
may be dropped if not read in time. Use this option to enable infinite buffers
|
|
|
|
for all inputs, use @option{-noinfbuf} to disable it.
|
|
|
|
|
2019-02-02 21:30:16 +02:00
|
|
|
@item -filter_threads @var{nb_threads}
|
|
|
|
Defines how many threads are used to process a filter pipeline. Each pipeline
|
|
|
|
will produce a thread pool with this many threads available for parallel
|
|
|
|
processing. The default is 0 which means that the thread count will be
|
|
|
|
determined by the number of available CPUs.
|
|
|
|
|
2003-08-24 14:16:29 +03:00
|
|
|
@end table
|
|
|
|
|
|
|
|
@section While playing
|
|
|
|
|
|
|
|
@table @key
|
|
|
|
@item q, ESC
|
2008-05-27 02:01:22 +03:00
|
|
|
Quit.
|
2003-08-24 14:16:29 +03:00
|
|
|
|
|
|
|
@item f
|
2008-05-27 02:01:22 +03:00
|
|
|
Toggle full screen.
|
2003-08-24 14:16:29 +03:00
|
|
|
|
|
|
|
@item p, SPC
|
2008-05-27 02:01:22 +03:00
|
|
|
Pause.
|
2003-08-24 14:16:29 +03:00
|
|
|
|
2015-09-27 18:38:34 +02:00
|
|
|
@item m
|
|
|
|
Toggle mute.
|
|
|
|
|
|
|
|
@item 9, 0
|
|
|
|
Decrease and increase volume respectively.
|
|
|
|
|
|
|
|
@item /, *
|
|
|
|
Decrease and increase volume respectively.
|
|
|
|
|
2003-08-24 14:16:29 +03:00
|
|
|
@item a
|
2014-05-10 15:59:28 +03:00
|
|
|
Cycle audio channel in the current program.
|
2003-08-24 14:16:29 +03:00
|
|
|
|
|
|
|
@item v
|
2008-05-27 02:01:22 +03:00
|
|
|
Cycle video channel.
|
2003-08-24 14:16:29 +03:00
|
|
|
|
2009-02-09 00:22:26 +02:00
|
|
|
@item t
|
2013-10-13 23:15:39 +03:00
|
|
|
Cycle subtitle channel in the current program.
|
|
|
|
|
|
|
|
@item c
|
|
|
|
Cycle program.
|
2009-02-09 00:22:26 +02:00
|
|
|
|
2003-08-24 14:16:29 +03:00
|
|
|
@item w
|
2014-01-06 23:14:23 +03:00
|
|
|
Cycle video filters or show modes.
|
2007-03-12 19:16:12 +02:00
|
|
|
|
2013-12-29 20:42:56 +03:00
|
|
|
@item s
|
|
|
|
Step to the next frame.
|
|
|
|
|
|
|
|
Pause if the stream is not already paused, step to the next video
|
|
|
|
frame, and pause.
|
|
|
|
|
2007-03-12 19:16:12 +02:00
|
|
|
@item left/right
|
2008-05-27 02:01:22 +03:00
|
|
|
Seek backward/forward 10 seconds.
|
2007-03-12 19:16:12 +02:00
|
|
|
|
|
|
|
@item down/up
|
2008-05-27 02:01:22 +03:00
|
|
|
Seek backward/forward 1 minute.
|
2007-03-12 19:16:12 +02:00
|
|
|
|
2011-11-28 15:48:13 +03:00
|
|
|
@item page down/page up
|
2014-02-10 15:09:13 +03:00
|
|
|
Seek to the previous/next chapter.
|
|
|
|
or if there are no chapters
|
2011-11-28 15:48:13 +03:00
|
|
|
Seek backward/forward 10 minutes.
|
|
|
|
|
2016-01-20 01:17:11 +02:00
|
|
|
@item right mouse click
|
2008-05-27 02:01:22 +03:00
|
|
|
Seek to percentage in file corresponding to fraction of width.
|
2007-03-12 19:16:12 +02:00
|
|
|
|
2016-01-20 01:17:11 +02:00
|
|
|
@item left mouse double-click
|
|
|
|
Toggle full screen.
|
|
|
|
|
2003-08-24 14:16:29 +03:00
|
|
|
@end table
|
|
|
|
|
|
|
|
@c man end
|
|
|
|
|
2013-04-24 19:39:49 +03:00
|
|
|
@include config.texi
|
2013-03-19 22:54:26 +03:00
|
|
|
@ifset config-all
|
2014-01-09 08:19:52 +03:00
|
|
|
@set config-readonly
|
2013-04-24 19:39:49 +03:00
|
|
|
@ifset config-avutil
|
|
|
|
@include utils.texi
|
|
|
|
@end ifset
|
|
|
|
@ifset config-avcodec
|
|
|
|
@include codecs.texi
|
|
|
|
@include bitstream_filters.texi
|
|
|
|
@end ifset
|
|
|
|
@ifset config-avformat
|
|
|
|
@include formats.texi
|
|
|
|
@include protocols.texi
|
|
|
|
@end ifset
|
|
|
|
@ifset config-avdevice
|
|
|
|
@include devices.texi
|
|
|
|
@end ifset
|
|
|
|
@ifset config-swresample
|
|
|
|
@include resampler.texi
|
|
|
|
@end ifset
|
|
|
|
@ifset config-swscale
|
|
|
|
@include scaler.texi
|
|
|
|
@end ifset
|
|
|
|
@ifset config-avfilter
|
|
|
|
@include filters.texi
|
|
|
|
@end ifset
|
2013-03-19 22:54:26 +03:00
|
|
|
@end ifset
|
|
|
|
|
2012-12-16 22:53:16 +03:00
|
|
|
@chapter See Also
|
|
|
|
|
|
|
|
@ifhtml
|
2013-03-19 22:54:26 +03:00
|
|
|
@ifset config-all
|
|
|
|
@url{ffplay.html,ffplay},
|
|
|
|
@end ifset
|
|
|
|
@ifset config-not-all
|
|
|
|
@url{ffplay-all.html,ffmpeg-all},
|
|
|
|
@end ifset
|
2017-10-21 20:31:44 +02:00
|
|
|
@url{ffmpeg.html,ffmpeg}, @url{ffprobe.html,ffprobe},
|
2012-12-16 22:53:16 +03:00
|
|
|
@url{ffmpeg-utils.html,ffmpeg-utils},
|
|
|
|
@url{ffmpeg-scaler.html,ffmpeg-scaler},
|
|
|
|
@url{ffmpeg-resampler.html,ffmpeg-resampler},
|
|
|
|
@url{ffmpeg-codecs.html,ffmpeg-codecs},
|
2013-02-15 15:31:09 +03:00
|
|
|
@url{ffmpeg-bitstream-filters.html,ffmpeg-bitstream-filters},
|
2012-12-16 22:53:16 +03:00
|
|
|
@url{ffmpeg-formats.html,ffmpeg-formats},
|
|
|
|
@url{ffmpeg-devices.html,ffmpeg-devices},
|
|
|
|
@url{ffmpeg-protocols.html,ffmpeg-protocols},
|
|
|
|
@url{ffmpeg-filters.html,ffmpeg-filters}
|
|
|
|
@end ifhtml
|
|
|
|
|
|
|
|
@ifnothtml
|
2013-03-19 22:54:26 +03:00
|
|
|
@ifset config-all
|
|
|
|
ffplay(1),
|
|
|
|
@end ifset
|
|
|
|
@ifset config-not-all
|
|
|
|
ffplay-all(1),
|
|
|
|
@end ifset
|
2017-10-21 20:31:44 +02:00
|
|
|
ffmpeg(1), ffprobe(1),
|
2012-12-16 22:53:16 +03:00
|
|
|
ffmpeg-utils(1), ffmpeg-scaler(1), ffmpeg-resampler(1),
|
|
|
|
ffmpeg-codecs(1), ffmpeg-bitstream-filters(1), ffmpeg-formats(1),
|
|
|
|
ffmpeg-devices(1), ffmpeg-protocols(1), ffmpeg-filters(1)
|
|
|
|
@end ifnothtml
|
|
|
|
|
2012-12-16 20:04:37 +03:00
|
|
|
@include authors.texi
|
|
|
|
|
2003-08-24 14:16:29 +03:00
|
|
|
@ignore
|
|
|
|
|
|
|
|
@setfilename ffplay
|
|
|
|
@settitle FFplay media player
|
|
|
|
|
|
|
|
@end ignore
|
|
|
|
|
|
|
|
@bye
|