class MediaInfoParser

Attributes

mediainfo_path_verified[RW]

Public Class Methods

new(filename, mediainfo_object, mediainfo_path=nil) click to toggle source
# File lib/mediainfo-simple/parser.rb, line 7
def initialize filename, mediainfo_object, mediainfo_path=nil
  # we check that MediaInfo CLI is installed
  if not mediainfo_installed? mediainfo_path
    raise RuntimeError, "mediainfo command-line interface not installed"
  end

  # we launch the MediaInfo scan
  # it will fill the MediaInfo object with the data
  mediainfo_run! filename, mediainfo_object
end