# 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{-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 framesize 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}
  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 December 2007 using texi2html 1.56k.