module Abrizer::InformationHelpers
Public Instance Methods
duration()
click to toggle source
TODO: Could this be more flexible to potentially use a file other than the mp4_filepath?
# File lib/abrizer/information_helpers.rb, line 6 def duration informer = Abrizer::FfprobeInformer.new(filepath: mp4_filepath, output_directory: @output_directory) informer.duration.to_f end
max_height()
click to toggle source
# File lib/abrizer/information_helpers.rb, line 19 def max_height @adaptations.last.height end
max_width()
click to toggle source
# File lib/abrizer/information_helpers.rb, line 11 def max_width @adaptations.last.width end
min_height()
click to toggle source
# File lib/abrizer/information_helpers.rb, line 23 def min_height @adaptations.first.height end
min_width()
click to toggle source
# File lib/abrizer/information_helpers.rb, line 15 def min_width @adaptations.first.width end
mp4_height()
click to toggle source
# File lib/abrizer/information_helpers.rb, line 31 def mp4_height @adaptations[-2].height end
mp4_width()
click to toggle source
# File lib/abrizer/information_helpers.rb, line 27 def mp4_width @adaptations[-2].width end