aequasi/screenshotr


Video Screenshot Utility

License: MIT

Language: PHP


screenshotr

Video Screenshot Utility

Install

Requires the ffmpeg and ffprobe executables in your path: https://www.ffmpeg.org/

$ composer require aequasi/screenshotr "~1.0.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);

Project Statistics

Sourcerank 4
Repository Size 160 KB
Stars 17
Forks 2
Watchers 3
Open issues 0
Dependencies 1
Contributors 1
Tags 4
Created
Last updated
Last pushed

Top Contributors See all

Aaron Scherer

Packages Referencing this Repo

aequasi/screenshotr
Creates screen shots from a video
Latest release 1.1.1 - Updated - 17 stars

Recent Tags See all

1.1.1 September 02, 2015
1.1.0 September 02, 2015
1.0.1 August 14, 2014
1.0.0 August 14, 2014

Something wrong with this page? Make a suggestion

Last synced: 2016-11-14 19:08:03 UTC

Login to resync this repository