nm/smoovie

Video tools using FFMPEG

dev-master 2015-07-03 07:17 UTC

This package is not auto-updated.

Last update: 2024-04-27 15:31:36 UTC


README

#Smoovie: Simple FFMPEG/FFProbe Tools for PHP

Build Status

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.