Module: Hydra::Derivatives::Ffmpeg::ClassMethods
- Defined in:
- lib/hydra/derivatives/ffmpeg.rb
Instance Method Summary collapse
Instance Method Details
#encode(path, options, output_file) ⇒ Object
21 22 23 24 25 |
# File 'lib/hydra/derivatives/ffmpeg.rb', line 21 def encode(path, , output_file) inopts = [INPUT_OPTIONS] ||= "-y" outopts = [OUTPUT_OPTIONS] ||= "" execute "#{Hydra::Derivatives.ffmpeg_path} #{inopts} -i \"#{path}\" #{outopts} #{output_file}" end |