Sha256: 32202fd394d4ddf29e0dffe73329613d3b278b9c29db30b18b2d0aec9af7ae18

Contents?: true

Size: 1.33 KB

Versions: 3

Compression:

Stored size: 1.33 KB

Contents

# frozen_string_literal: true

require_relative 'ffprober/version'

autoload :JSON, 'json'

module Ffprober
  class EmptyInput < StandardError; end
  class InvalidInputFileError < StandardError; end
  class NoFfprobeFound < StandardError; end
  class UnsupportedVersion < StandardError; end
  class FfprobeError < StandardError
    def initialize(ff_err)
      super("Ffprobe responded with: #{ff_err[:string]} (#{ff_err[:code]})")
    end
  end

  autoload :AudioStream, 'ffprober/audio_stream'
  autoload :Chapter, 'ffprober/chapter'
  autoload :DataStream, 'ffprober/data_stream'
  autoload :DynamicInitializer, 'ffprober/dynamic_initializer'
  autoload :FfprobeVersion, 'ffprober/ffprobe_version'
  autoload :Format, 'ffprober/format'
  autoload :Parser, 'ffprober/parser'
  autoload :Stream, 'ffprober/stream'
  autoload :SubtitleStream, 'ffprober/subtitle_stream'
  autoload :VideoStream, 'ffprober/video_stream'
  autoload :Wrapper, 'ffprober/wrapper'

  module Ffmpeg
    autoload :Exec, 'ffprober/ffmpeg/exec'
    autoload :Finder, 'ffprober/ffmpeg/finder'
    autoload :Version, 'ffprober/ffmpeg/version'
    autoload :VersionValidator, 'ffprober/ffmpeg/version_validator'
  end

  module Parsers
    autoload :FileParser, 'ffprober/parsers/file'
    autoload :UrlParser, 'ffprober/parsers/url'
    autoload :JsonParser, 'ffprober/parsers/json'
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ffprober-0.5.5 lib/ffprober.rb
ffprober-0.5.3 lib/ffprober.rb
ffprober-0.5.2 lib/ffprober.rb