nm / smoovie
Video tools using FFMPEG
dev-master
2015-07-03 07:17 UTC
Requires
- videlalvaro/php-amqplib: v2.1.0
Requires (Dev)
- phpunit/phpunit: 4.0.*
This package is not auto-updated.
Last update: 2024-11-23 19:00:21 UTC
README
#Smoovie: Simple FFMPEG/FFProbe Tools for PHP
A mini library of tools to manipulate video files with FFMPEG. Use at your own risk. This is a master alpha build.
Installation
The recommended way to install Smoovie is through Composer.
{ "require": { "nm/smoovie": "dev-master" } }
Basic Usage
Include composer's autoload file
require_once '/path/to/vendor/autoload.php';
Import class in your scripts
use NM\Smoovie\Smoovie;
Have fun :)
$file = '/path/to/video.mp4' $s = new Smoovie; $s->make($file); $duration = $s->duration(); $frames = $s->frames(); $fps = $s->fps(); $generate_thumbnail = $s->thumb(); $vid_trailer = $s->preview($output = null, $start = null, $seconds = null);
License
This project is licensed under the MIT license.