class Abrizer::CLI
Public Class Methods
input_desc()
click to toggle source
# File lib/abrizer/cli.rb, line 30 def input_desc 'Full or relative path to a mezzanine video file.' end
Public Instance Methods
abr()
click to toggle source
# File lib/abrizer/cli.rb, line 123 def abr filepath = expand_path options[:input] output_dir = expand_path options[:output] Abrizer::Processor.process(filepath, output_dir) Abrizer::PackageDashBento.new(filepath, output_dir).package Abrizer::PackageHlsBento.new(filepath, output_dir).package end
adaptations()
click to toggle source
# File lib/abrizer/cli.rb, line 65 def adaptations input = expand_path options[:input] output = expand_path options[:output] adaptations = Abrizer::AdaptationsFile.new(input, output).adaptations puts adaptations end
all()
click to toggle source
# File lib/abrizer/cli.rb, line 49 def all filepath = expand_path options[:input] output_dir = expand_path options[:output] Abrizer::All.new(filepath, output_dir, options[:url], options[:vp9]).run end
canvas()
click to toggle source
# File lib/abrizer/cli.rb, line 165 def canvas filepath = expand_path options[:input] output_directory = expand_path options[:output] Abrizer::Canvas.new(filepath, output_directory, options[:url]).create end
captions()
click to toggle source
# File lib/abrizer/cli.rb, line 84 def captions filepath = expand_path options[:input] output_dir = expand_path options[:output] Abrizer::Captions.new(filepath, output_dir).copy end
clean()
click to toggle source
# File lib/abrizer/cli.rb, line 181 def clean output_dir = expand_path options[:output] Abrizer::Cleaner.new(output_dir).clean end
data()
click to toggle source
# File lib/abrizer/cli.rb, line 173 def data filepath = expand_path options[:input] output_directory = expand_path options[:output] Abrizer::Data.new(filepath, output_directory, options[:url]).create end
expand_path(path)
click to toggle source
# File lib/abrizer/cli.rb, line 36 def expand_path(path) File.expand_path path if path end
ffprobe()
click to toggle source
# File lib/abrizer/cli.rb, line 57 def ffprobe filepath = expand_path options[:input] output_dir = expand_path options[:output] Abrizer::FfprobeFile.new(filepath, output_dir).run end
inform()
click to toggle source
# File lib/abrizer/cli.rb, line 74 def inform input = expand_path options[:input] informer = FfprobeInformer.new(filepath: input) puts informer.json_result puts informer end
mp3()
click to toggle source
# File lib/abrizer/cli.rb, line 100 def mp3 filepath = expand_path options[:input] output_dir = expand_path options[:output] Abrizer::ProgressiveMp3.new(filepath, output_dir).create end
mp4()
click to toggle source
# File lib/abrizer/cli.rb, line 141 def mp4 output_dir = expand_path options[:output] Abrizer::ProgressiveMp4.new(output_dir).create end
package(dash_or_hls)
click to toggle source
# File lib/abrizer/cli.rb, line 148 def package(dash_or_hls) output_dir = expand_path options[:output] case dash_or_hls when "dash" Abrizer::PackageDashBento.new(output_dir).package when "hls" Abrizer::PackageHlsBento.new(output_dir).package when "all" Abrizer::PackageDashBento.new(output_dir).package Abrizer::PackageHlsBento.new(output_dir).package else puts "Not a valid packaging value. Try dash or hls." end end
poster()
click to toggle source
# File lib/abrizer/cli.rb, line 116 def poster output_dir = expand_path options[:output] Abrizer::TemporaryPoster.new(output_dir).copy end
process()
click to toggle source
# File lib/abrizer/cli.rb, line 133 def process filepath = expand_path options[:input] output_dir = expand_path options[:output] Abrizer::Processor.process(filepath, output_dir) end
sprites()
click to toggle source
# File lib/abrizer/cli.rb, line 108 def sprites filepath = expand_path options[:input] output_dir = expand_path options[:output] Abrizer::Sprites.new(filepath, output_dir).create end
vp9()
click to toggle source
# File lib/abrizer/cli.rb, line 92 def vp9 filepath = expand_path options[:input] output_dir = expand_path options[:output] Abrizer::ProgressiveVp9.new(filepath, output_dir).create end