Coder Social home page Coder Social logo

rchavik / ffmpeg-php Goto Github PK

View Code? Open in Web Editor NEW

This project forked from char0n/ffmpeg-php

0.0 3.0 0.0 1.57 MB

FFmpegPHP is a pure OO PHP port of ffmpeg-php writter 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's 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...)

Home Page: http://freshmeat.net/projects/ffmpegphp

License: Other

ffmpeg-php's Introduction

FFmpegPHP 2.7.0

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...)

Requirements

  • PHP 5.3 and higher
  • ffmpeg or ffprobe

Tests

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 (http://www.phpunit.de/) and run: :

$ phpunit --bootstrap test/bootstrap.php test/

Installation

You can easily install FFmpegPHP via PEAR framework: :

$ sudo pear channel-discover pear.codescale.net
$ sudo pear install codescale/FFmpegPHP2

or download package from github.com: :

$ wget http://github.com/char0n/ffmpeg-php/tarball/master

or to install via composer (http://getcomposer.org/) place the following in your composer.json file: :

{
   "require": {
       "codescale/ffmpeg-php": "dev-master"
   }
}

Using FFmpegPHP

Package installed via PEAR channel: :

require_once 'FFmpegPHP2/FFmpegAutoloader.php';

Package downloaded from github.com and unpacked into certain directory: :

require_once 'PATH_TO_YOUR_DIRECTORY/FFmpegAutoloader.php';

Author

char0n (Vladimír Gorej, CodeScale s.r.o.)
email: [email protected]
web: http://www.codescale.net

Documentation

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

$ phpdoc -o HTML:Smarty:HandS -d . -t docs

Generating package.xml

First temporarily remove .git/ directory from project root. It causes pfm not to work correctly. :

$ pear install PEAR_PackageFileManager2
$ pear install PEAR_PackageFileManager_Cli
$ pfm
$ pear package package.xml
$ pear install/upgrade ./{PACKAGE_NAME} # Verify is package is installable

Create test.php with contents and verify installation was successful::

<?php
require_once 'FFmpegPHP2/FFmpegAutoloader.php';

And run the file with::

$ php test.php

References

ffmpeg-php's People

Contributors

robwalch avatar nabeelio avatar danielholmes avatar glensc avatar nburka avatar

Watchers

Rachman Chavik avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.