PHP Classes

File: README.rst

Recommend this page to a friend!
  Classes of Vladimir Gorej  >  FFmpeg PHP  >  README.rst  >  Download  
File: README.rst
Role: Documentation
Content type: text/markdown
Description: README file
Class: FFmpeg PHP
Manipulate video files using the ffmpeg program
Author: By
Last change: docs( add API docs url
ci: add circleci badge to README.rst
ci(circleci): add test runner
ci(circleci): ignore building docs for tests
ci(circleci): ignore building docs for tests
docs( remove version
chore(composer): update composer info

+ remove pear support
Date: 11 months ago
Size: 2,170 bytes


Class file image Download

.. image::



FFmpegPHP is a pure OO PHP port of ffmpeg-php (written in C). It adds an easy to use, object-oriented API for accessing and retrieving information from video and audio files. It has methods for returning frames from movie files as images that can be manipulated using PHP image functions. This works well for automatically creating thumbnail images from movies. FFmpegPHP is also useful for reporting the duration and bitrate of audio files (mp3, wma...). FFmpegPHP can access many of the video formats supported by ffmpeg (mov, avi, mpg, wmv...)


  • PHP 5.3 and higher
  • ffmpeg or ffprobe


Tested environment

  • Xubuntu Linux 12.04.2 LTS precise 64-bit
  • ffmpeg version N-37798-gcd1c12b
  • PHPUnit 3.7.18
  • PHP 5.3.10

Running tests

To run the test install phpunit ( and run: ::

$ phpunit --configuration="test/phpunit.xml"


or download package from ::

$ wget

or to install via composer ( place the following in your composer.json file: ::


"require": {
    "char0n/ffmpeg-php": "dev-master"


Using FFmpegPHP

Package downloaded from and unpacked into certain directory: ::

require_once 'PATH_TO_YOUR_DIRECTORY/FFmpegAutoloader.php';


| char0n (VladimĂ­r Gorej.) | email: | web:


FFmpegPHP API documentation:

FFmpegPHP documentation can be build from source code using PhpDocumentor with following commnad: ::

$ phpdoc -d . -t docs --ignore="test/*"