module BPL::Derivatives::Processors::Ffmpeg::ClassMethods

Public Instance Methods

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