aequasi/screenshotr
Composer 安装命令:
composer require aequasi/screenshotr
包简介
Creates screen shots from a video
README 文档
README
Video Screenshot Utility
Install
Requires the ffmpeg and ffprobe executables in your path: https://www.ffmpeg.org/
$ composer require aequasi/screenshotr "^1.0"
Usage
// Second argument is the tmp dir the images are created in. Defaults to /tmp $screenShotr = new \ScreenShotr\Core('/path/to/movie/file'); // Generate a single screenshot at the 300 second mark, returns a \SplFileInfo to a file in /tmp $screenshot = $screenShotr->generateScreenshot(300); // Generate screenshots for a file, every 5 seconds, starting at the 300 second mark // Returns an array of \SpFileInfo objects like above $screenshots = $screenShotr->generateScreenshotsEveryFrame(300, 5);
统计信息
- 总下载量: 315
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 22
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-08-14