Sha256: 82dd7b423f363a0ef7bb269741e8a509fea8a74319d89d45521c5f9b2ce23f37
Contents?: true
Size: 507 Bytes
Versions: 1
Compression:
Stored size: 507 Bytes
Contents
require "mini_mediainfo/version" require "mini_mediainfo/media" require 'open3' module MiniMediainfo def self.platform_supported? %w{darwin linux unix}.any?{|os_string| RUBY_PLATFORM.include?(os_string) } end def self.mediainfo_version cmd = "mediainfo --version" out = Open3.popen3(cmd) { |stdin, stdout, stderr| stdout.read } out.gsub("\n","") end def self.mediainfo_binary cmd = "which mediainfo" Open3.popen3(cmd) { |stdin, stdout, stderr| stdout.read } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mini_mediainfo-0.0.5 | lib/mini_mediainfo.rb |