module Hydra::Derivatives::Processors::Ffmpeg::ClassMethods

Public Instance Methods

encode(path, options, output_file) click to toggle source
# File lib/hydra/derivatives/processors/ffmpeg.rb, line 14
def encode(path, options, output_file)
  inopts = options[INPUT_OPTIONS] ||= "-y"
  outopts = options[OUTPUT_OPTIONS] ||= ""
  execute "#{Hydra::Derivatives.ffmpeg_path} #{inopts} -i #{Shellwords.escape(path)} #{outopts} #{output_file}"
end