class ActiveStorage::Analyzer::VideoAnalyzer

def display_aspect_ratio

def display_aspect_ratio
  if descriptor = video_stream["display_aspect_ratio"]
    if terms = descriptor.split(":", 2)
      numerator   = Integer(terms[0])
      denominator = Integer(terms[1])
      [numerator, denominator] unless numerator == 0
    end
  end
end