Synopsis
********

     avplay [options] input_file

Description
***********

AVplay is a very simple and portable media player using the Libav libraries and the SDL library. It is mostly used as a testbed for the various Libav APIs.

Options
*******

     [file avtools-common-opts.texi not included]

Main options
============

-x WIDTH
     Force displayed width.

-y HEIGHT
     Force displayed height.

-s SIZE
     This option has been removed. Use private format options for specifying the input video size.  For example with the rawvideo demuxer you need to specify the option VIDEO_SIZE.

-an
     Disable audio.

-vn
     Disable video.

-ss POS
     Seek to a given position in seconds.

-t DURATION
     play <duration> seconds of audio/video

-bytes
     Seek by bytes.

-nodisp
     Disable graphical display.

-f FMT
     Force format.

-window_title TITLE
     Set window title (default is the input filename).

-loop NUMBER
     Loops movie playback <number> times. 0 means forever.

-vf FILTER_GRAPH
     FILTER_GRAPH is a description of the filter graph to apply to the input video. Use the option "-filters" to show all the available filters (including also sources and sinks).

Advanced options
================

-pix_fmt FORMAT
     This option has been removed. Use private options for specifying the input pixel format. For example with the rawvideo demuxer you need to specify the option PIXEL_FORMAT.

-stats
     Show the stream duration, the codec parameters, the current position in the stream and the audio/video synchronisation drift.

-bug
     Work around bugs.

-fast
     Non-spec-compliant optimizations.

-genpts
     Generate pts.

-rtp_tcp
     Force RTP/TCP protocol usage instead of RTP/UDP. It is only meaningful if you are streaming with the RTSP protocol.

-sync TYPE
     Set the master clock to audio (type=audio), video (type=video) or external (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.

-threads COUNT
     Set the thread count.

-ast AUDIO_STREAM_NUMBER
     Select the desired audio stream number, counting from 0. The number refers to the list of all the input audio streams. If it is greater than the number of audio streams minus one, then the last one is selected, if it is negative the audio playback is disabled.

-vst VIDEO_STREAM_NUMBER
     Select the desired video stream number, counting from 0. The number refers to the list of all the input video streams. If it is greater than the number of video streams minus one, then the last one is selected, if it is negative the video playback is disabled.

-sst SUBTITLE_STREAM_NUMBER
     Select the desired subtitle stream number, counting from 0. The number refers to the list of all the input subtitle streams. If it is greater than the number of subtitle streams minus one, then the last one is selected, if it is negative the subtitle rendering is disabled.

-noautoexit
     Do not exit after playback is finished.

-exitonkeydown
     Exit if any key is pressed.

-exitonmousedown
     Exit if any mouse button is pressed.

-noautorotate
     Disable automatically rotating video based on file metadata.

While playing
=============

q, ESC
     Quit.

f
     Toggle full screen.

p, SPC
     Pause.

a
     Cycle audio channel.

v
     Cycle video channel.

t
     Cycle subtitle channel.

w
     Show audio waves.

left/right
     Seek backward/forward 10 seconds.

down/up
     Seek backward/forward 1 minute.

PGDOWN/PGUP
     Seek to the previous/next chapter.

mouse click
     Seek to percentage in file corresponding to fraction of width.

     [file eval.texi not included]
     [file decoders.texi not included]
     [file demuxers.texi not included]
     [file muxers.texi not included]
     [file indevs.texi not included]
     [file outdevs.texi not included]
     [file protocols.texi not included]
     [file filters.texi not included]