Class: Jani::StripMaker::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/jani/strip_maker/cli.rb

Instance Method Summary collapse

Instance Method Details

#from_movie_to_stripsObject



12
13
14
15
16
17
18
19
# File 'lib/jani/strip_maker/cli.rb', line 12

def from_movie_to_strips
  transcode_options = Jani::StripMaker::TranscodeOptions.new
  transcode_options.fps = options[:fps]
  transcode_options.width = options[:width]
  transcode_options.height = options[:height]
  movie = Jani::StripMaker::Movie.new(movie_filepath: options[:input_file], transcode_options: transcode_options)
  movie.to_strips.map(&:write)
end