nm/smoovie
Composer 安装命令:
composer require nm/smoovie
包简介
Video tools using FFMPEG
README 文档
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.
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-07-03