Sha256: 3d60a9093e5517379cf9595c8cb8c2231a86e8001b74ac8a59c8334780a96133

Contents?: true

Size: 1.34 KB

Versions: 2

Compression:

Stored size: 1.34 KB

Contents

#
# Author:: Jamie Winsor (<jamie@vialstudios.com>)
# Copyright:: 2011, En Masse Entertainment, Inc
# License:: Apache License, Version 2.0
# 
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# 
#     http://www.apache.org/licenses/LICENSE-2.0
# 
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

module EnMasse
  module Dragonfly
    module FFMPEG
      module Config
        
        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, options|
              options = options || {}
              encode(format, :html5, options)
            end
          end
        end
        
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dragonfly-ffmpeg-0.1.6 lib/dragonfly-ffmpeg/config.rb
dragonfly-ffmpeg-0.1.5 lib/dragonfly-ffmpeg/config.rb