# FFplay Documentation

# Table of Contents

- 1. Introduction
- 2. Invocation
  - 2.1 Syntax
  - 2.2 Main options
  - 2.3 Advanced options
  - 2.4 While playing

FFplay Documentation

# 1. Introduction

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

# 2. Invocation

## 2.1 Syntax

    ffplay [options] `input_file'

## 2.2 Main options

@option{-h}
  Show help.
@option{-version}
  Show version.
@option{-L}
  Show license.
@option{-formats}
  Show available formats, codecs, protocols, ...
@option{-x width}
  Force displayed width.
@option{-y height}
  Force displayed height.
@option{-s size}
  Set frame size (WxH or abbreviation), needed for videos which don't contain a header with the frame size like raw YUV.
@option{-an}
  Disable audio.
@option{-vn}
  Disable video.
@option{-ss pos}
  Seek to a given position in seconds.
@option{-bytes}
  Seek by bytes.
@option{-nodisp}
  Disable graphical display.
@option{-f fmt}
  Force format.

## 2.3 Advanced options

@option{-pix_fmt format}
  Set pixel format.
@option{-stats}
  Show the stream duration, the codec parameters, the current position in the stream and the audio/video synchronisation drift.
@option{-debug}
  Print specific debug info.
@option{-bug}
  Work around bugs.
@option{-vismv}
  Visualize motion vectors.
@option{-fast}
  Non-spec-compliant optimizations.
@option{-genpts}
  Generate pts.
@option{-rtp_tcp}
  Force RTP/TCP protocol usage instead of RTP/UDP. It is only meaningful if you are streaming with the RTSP protocol.
@option{-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.
@option{-threads count}
  Set the thread count.

## 2.4 While playing

`q, ESC`
  Quit.
`f`
  Toggle full screen.
`p, SPC`
  Pause.
`a`
  Cycle audio channel.
`v`
  Cycle video channel.
`w`
  Show audio waves.
`left/right`
  Seek backward/forward 10 seconds.
`down/up`
  Seek backward/forward 1 minute.
`mouse click`
  Seek to percentage in file corresponding to fraction of width.

This document was generated on 13 November 2008 using texi2html 1.56k.