Sha256: a7f22acddfcad971107a404b71b47f92760aea731aea450a9be1f7cfa837bac8

Contents?: true

Size: 479 Bytes

Versions: 5

Compression:

Stored size: 479 Bytes

Contents

# An abstract class for asyncronous jobs that transcode files using FFMpeg

require 'tmpdir'
require 'open3'

module Hydra
  module Derivatives
    module Ffmpeg
      extend ActiveSupport::Concern

      included do
        include ShellBasedProcessor
      end


      module ClassMethods

        def encode(path, options, output_file)
          execute "#{Hydra::Derivatives.ffmpeg_path} -y -i \"#{path}\" #{options} #{output_file}"
        end
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hydra-derivatives-0.0.7 lib/hydra/derivatives/ffmpeg.rb
hydra-derivatives-0.0.6 lib/hydra/derivatives/ffmpeg.rb
hydra-derivatives-0.0.5 lib/hydra/derivatives/ffmpeg.rb
hydra-derivatives-0.0.4 lib/hydra/derivatives/ffmpeg.rb
hydra-derivatives-0.0.3 lib/hydra/derivatives/ffmpeg.rb