Class: VideoScreenshoter::Video

Inherits:
Abstract
  • Object
show all
Defined in:
lib/video_screenshoter/video.rb

Instance Attribute Summary

Attributes inherited from Abstract

#duration, #exact, #ffmpeg, #imagemagick, #input, #offset_end, #offset_start, #output_dir, #output_file, #presets, #size, #times, #verbose

Instance Method Summary collapse

Methods inherited from Abstract

#ffmpeg_command, #ffmpeg_run, #imagemagick_command, #imagemagick_run, #output_fullpath, #output_with_preset

Constructor Details

#initialize(params) ⇒ Video

Returns a new instance of Video.



6
7
8
# File 'lib/video_screenshoter/video.rb', line 6

def initialize params
  super
end

Instance Method Details

#runObject Also known as: make_screenshots, make_thumbnails



10
11
12
# File 'lib/video_screenshoter/video.rb', line 10

def run
  times.each { |time| ffmpeg_run(time) and imagemagick_run(output_fullpath(time)) }
end