library screenshotr
Creates screen shots from a video
aequasi/screenshotr
Creates screen shots from a video
- Thursday, October 12, 2017
- by aequasi
- Repository
- 4 Watchers
- 19 Stars
- 167 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 2 Forks
- 0 Open issues
- 6 Versions
- 1 % Grown
screenshotr
Video Screenshot Utility, (*1)
Install
Requires the ffmpeg and ffprobe executables in your path:
https://www.ffmpeg.org/, (*2)
$ 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);
dev-master
9999999-dev
Creates screen shots from a video
Sources
Download
MIT
The Requires
dev-aequasi-patch-1
dev-aequasi-patch-1
Creates screen shots from a video
Sources
Download
MIT
The Requires
1.1.1
1.1.1.0
Creates screen shots from a video
Sources
Download
MIT
The Requires
1.1.0
1.1.0.0
Creates screen shots from a video
Sources
Download
MIT
The Requires
1.0.1
1.0.1.0
Creates screen shots from a video
Sources
Download
MIT
The Requires
1.0.0
1.0.0.0
Creates screen shots from a video
Sources
Download
MIT
The Requires