Module: EnMasse::Dragonfly::FFMPEG::Config
- Defined in:
- lib/dragonfly-ffmpeg/config.rb
Class Method Summary collapse
Class Method Details
.apply_configuration(app, opts = {}) ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/dragonfly-ffmpeg/config.rb', line 24 def self.apply_configuration(app, opts = {}) app.configure do |c| c.analyser.register(Analyser) c.encoder.register(Encoder) do |e| e.output_directory = opts[:output_directory] if opts.has_key?(:output_directory) e.encoder_profiles = opts[:encoder_profiles] if opts.has_key?(:encoder_profiles) end c.job :html5 do |format, | = || {} encode(format, :html5, ) end end end |