Sha256: 989a0d3e3ec244916c7290362de58f432af294bab1153534b043ab45a3f31a28

Contents?: true

Size: 628 Bytes

Versions: 3

Compression:

Stored size: 628 Bytes

Contents

module Girdle
  module Podcast
    module Composition

      def qc_composition(options={})
        name = "qc_composition_#{uuid}.mov"
        base_dir = options[:base_dir] || '.'
        arguments = [
          options[:composition],
          File.join(base_dir, name),
          options[:width],
          options[:height],
          options[:duration]
          ] + (options[:parameters] || {}).map {|k,v| ["--#{k}", v] }.flatten
        new(
          name: name,
          command: '/usr/bin/qc2movie',
          arguments: arguments,
          depends_on: options[:depends_on] || []
        )
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
girdle-podcast-0.0.7 lib/girdle/podcast/composition.rb
girdle-podcast-0.0.6 lib/girdle/podcast/composition.rb
girdle-podcast-0.0.5 lib/girdle/podcast/composition.rb