Sha256: 5eb39f29926f28ed7c2363abeaca84edc71b8eda65b66a7c2dfe972c923bd0b8

Contents?: true

Size: 604 Bytes

Versions: 8

Compression:

Stored size: 604 Bytes

Contents

require "ffprober/version"
require "ffprober/parser"
require "ffprober/format"
require "ffprober/stream"
require "ffprober/audio_stream"
require "ffprober/video_stream"
require "ffprober/ffprobe_version"
require "json"

module Ffprober
  def self.path
    name = 'ffprobe'
    name << '.exe' if self.windows?

    path = ENV['PATH'].split(File::PATH_SEPARATOR).find do |path|
      File.executable?(File.join(path, name))
    end

    path && File.expand_path(name, path)
  end

  def self.windows?
    !!(RUBY_PLATFORM =~ /(mingw|mswin)/)
  end

  class InvalidInputFileError < ::StandardError; end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ffprober-0.3.7 lib/ffprober.rb
ffprober-0.3.6 lib/ffprober.rb
ffprober-0.3.5 lib/ffprober.rb
ffprober-0.3.4 lib/ffprober.rb
ffprober-0.3.3 lib/ffprober.rb
ffprober-0.3.2 lib/ffprober.rb
ffprober-0.3.1 lib/ffprober.rb
ffprober-0.3.0 lib/ffprober.rb