Module: BPL::Derivatives::Processors::Ffmpeg::ClassMethods
- Defined in:
- lib/bpl/derivatives/processors/ffmpeg.rb
Instance Method Summary collapse
Instance Method Details
#encode(path, options, output_file) ⇒ Object
14 15 16 17 18 |
# File 'lib/bpl/derivatives/processors/ffmpeg.rb', line 14 def encode(path, , output_file) inopts = [INPUT_OPTIONS] ||= "-y" outopts = [OUTPUT_OPTIONS] ||= "" execute "#{BPL::Derivatives.config.ffmpeg_path} #{inopts} -i #{Shellwords.escape(path)} #{outopts} #{output_file}" end |