Extension to php-ffmpeg to provide greater control over mapped output https://packagist.org/packages/danjones000/ffmpeg-mappable-media
Find a file
Romain Neutron ad3a5af623 Version 0.3
2013-06-25 10:03:20 +02:00
docs Fix typo 2013-04-21 18:08:29 +02:00
src/FFMpeg Version 0.3 2013-06-25 10:03:20 +02:00
tests Version 0.3 2013-06-25 10:03:20 +02: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 Bump symfony dependency to 2.1 2013-05-30 16:58:14 +02:00
composer.json Version 0.3 2013-06-25 10:03:20 +02:00
composer.lock Version 0.3 2013-06-25 10:03:20 +02:00
LICENSE Add License 2012-04-13 14:34:53 +02:00
phpunit-functional.xml.dist Version 0.3 2013-06-25 10:03:20 +02:00
phpunit.xml.dist Version 0.3 2013-06-25 10:03:20 +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.