kiririn/webm
Composer 安装命令:
composer require kiririn/webm
包简介
Create thumbnail for .webm video
关键字:
README 文档
README
Debian/Ubuntu as root:
apt install ffmpegthumbnailer mediainfo
Usage
use Kiririn\Webm\Webm;
//You can skip dependency checking: new Webm('path/to/video.webm', true);
$webm = new Webm('path/to/video.webm');
$webm->thumbnail(200, 200);
//Second argument - thumb name with or without extension
$webm->save('path/to', 'thumb.jpeg');
Get additional info
//Video
$webm->getWidth();
$webm->getHeight();
//Thumb
$webm->getThumbWidth();
$webm->getThumbHeight();
//Duration
$webm->getDuration();
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-01-08