Module: Ffprober
- Defined in:
- lib/ffprober.rb,
lib/ffprober/format.rb,
lib/ffprober/parser.rb,
lib/ffprober/stream.rb,
lib/ffprober/version.rb,
lib/ffprober/audio_stream.rb,
lib/ffprober/video_stream.rb,
lib/ffprober/ffprobe_version.rb
Defined Under Namespace
Classes: AudioStream, FfprobeVersion, Format, InvalidInputFileError, Parser, Stream, VideoStream
Constant Summary
collapse
- VERSION =
"0.3.7"
Class Method Summary
collapse
Class Method Details
.path ⇒ Object
11
12
13
14
15
16
17
18
19
20
|
# File 'lib/ffprober.rb', line 11
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
|
.windows? ⇒ Boolean
22
23
24
|
# File 'lib/ffprober.rb', line 22
def self.windows?
!!(RUBY_PLATFORM =~ /(mingw|mswin)/)
end
|