Sha256: 88b3a2ecffbdd21fb018e75455af6e6cbdd008449f50e620f8b66c4e5c443f48

Contents?: true

Size: 1.19 KB

Versions: 1

Compression:

Stored size: 1.19 KB

Contents

module Abrizer
  class All

    def initialize(filename, output_dir, base_url)
      @filename = filename
      @output_directory = output_dir
      FileUtils.mkdir_p @output_directory
      @base_url = base_url
    end

    def run
      Abrizer::FfprobeFile.new(@filename, @output_directory).run
      Abrizer::AdaptationsFile.new(@filename, @output_directory).adaptations
      Abrizer::Processor.process(@filename, @output_directory)
      Abrizer::ProgressiveMp4.new(@filename, @output_directory).create
      # Abrizer::ProgressiveVp9.new(@filename, @output_directory).create
      Abrizer::ProgressiveMp3.new(@filename, @output_directory).create
      Abrizer::PackageDashBento.new(@filename, @output_directory).package
      Abrizer::PackageHlsBento.new(@filename, @output_directory).package
      Abrizer::Captions.new(@filename, @output_directory).copy
      Abrizer::Sprites.new(@filename, @output_directory).create
      Abrizer::TemporaryPoster.new(@output_directory).copy
      Abrizer::Canvas.new(@filename, @output_directory, @base_url).create
      Abrizer::Data.new(@filename, @output_directory, @base_url).create
      Abrizer::Cleaner.new(@filename, @output_directory).clean
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
abrizer-0.4.0 lib/abrizer/all.rb