No commit activity in last 3 years
No release in over 3 years
A simple wrapper around FFMpeg for extracing screen shots
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5
>= 0
>= 0
 Project Readme

ScreenshotGenerator

It makes pictures of your videos using ffmpg, and ruby.

Installation

gem install screenshot_generator

Usage

# Capture that lovely view from 3 hours into your 6 hour holiday video.
ScreenshotGenerator.extract_frame("holiday.mp4", 60*60*3, "the-car-park.jpg")

# Take 20 frames spread evenly around your holiday video, so you can sample the
# majesty of the same beach, from 20 different angles.
ScreenshotGenerator.extract_multi("holiday.mp4", "pictures-for-firends/", 20)

# Capture the three interesting bits of your holiday video.
vid = ScreenshotGenerator.new("holiday.mp4")
vid.extract_frame(60*60*2+8, "base-jumping.jpg")
vid.extract_frame(vid.length - 30, "end-credits.jpg")

Additional usage

Although not thoroughly tested, it is theoretically possible that this library could be used to take screen shots of videos that are neither holiday related, nor dull.

Licence

WTFBPPL: http://tomlea.co.uk/WTFBPPL.txt