Extension to php-ffmpeg to provide greater control over mapped output https://packagist.org/packages/danjones000/ffmpeg-mappable-media
Find a file
2013-04-16 11:24:29 -07:00
docs Rename Audio to AudioInterface and Video to VideoInterface 2012-12-06 11:32:32 +01:00
src/FFMpeg Added ability to choose between resolution modulus 2013-04-16 11:24:29 -07:00
tests Fix uni tests 2013-02-07 13:39:22 +01:00
.gitignore added support for retrieving progress information via helpers 2012-12-04 17:19:58 +01:00
.travis.yml Temporary disable PHP 5.5 build as it triggers a segfault 2013-02-07 13:53:44 +01:00
buildAPI.sh Add API tool and configuration 2012-05-31 12:19:23 +02:00
CHANGELOG.md Prepare version 0.2.2 2013-02-11 12:24:37 +01:00
composer.json Update dependencies 2013-02-11 12:23:42 +01:00
composer.lock Update dependencies 2013-02-11 12:23:42 +01:00
LICENSE Add License 2012-04-13 14:34:53 +02:00
phpunit.xml.dist Add API builder 2012-05-30 12:09:30 +02:00
README.md added support for retrieving progress information via helpers 2012-12-04 17:19:58 +01:00
sami_configuration.php Update API name 2012-05-31 12:29:33 +02:00
vendors.win.php Add vendors script for window CI 2012-04-17 20:32:30 +02:00

#PHP FFmpeg

Build Status

An Object Oriented library to convert video/audio files with AVConv / FFmpeg.

Check another amazing repo : PHP FFMpeg extras, you will find lots of Audio/Video formats there.

##Documentation

Read The Documentation at Read The Docs !

##API Browser

Browse the API

##Usage Example

$x264 = new X264();
$x264->setDimensions(320, 240);

$ffmpeg->open('Video.mpeg')
    ->encode($new WebM(), 'file.webm')
    ->encode($x264, 'file.mp4')
    ->encode($new Ogg(), 'file.ogv')
    ->close();

##Getting progress information

$progressHelper = new FFMpeg\Helper\AudioProgressHelper(function($percent, $remaining, $rate) {
	echo "Current progress: " . $percent "%\n";
	echo "Remaining time: " . $remaining " seconds\n";
});

$ffmpeg->open('Audio.wav')
	->attachHelper($progressHelper)
    ->encode(new Mp3(), 'file.mp3')
    ->close();

##Using with Silex Microframework

use FFMpeg\SilexServiceProvider;
use Silex\Application;

$app = new Application();
$app->register(new FFMpegServiceProvider());

##License

This project is licensed under the MIT license.