class MediaInformationGatherer::FFMPEG

Constants

DEFAULT_EXECUTABLE_PATH

Public Class Methods

new(options = { }) click to toggle source

@param [Hash] options @option options [String] :ffmpeg_cmd_path

# File lib/mig/modules/ffmpeg.rb, line 211
def initialize(options = { })
  @ffmpeg_cmd_path = options.fetch(:ffmpeg_cmd_path, 'ffmpeg')
end

Public Instance Methods

run(file_path, options = { }) click to toggle source

@param [String] file_path @param [Hash] options @option options [String] :ffmpeg_cmd_path

# File lib/mig/modules/ffmpeg.rb, line 218
def run(file_path, options = { })
  options = { :ffmpeg_cmd_path => @ffmpeg_cmd_path }.merge(options)
  Movie.new(file_path, options).to_hash
end