Module: FfmpegWrapper

Defined in:
lib/ffmpeg_wrapper.rb,
lib/ffmpeg_wrapper/ffmpeg.rb,
lib/ffmpeg_wrapper/stream.rb,
lib/ffmpeg_wrapper/format.rb,
lib/ffmpeg_wrapper/version.rb,
lib/ffmpeg_wrapper/ffprobe.rb,
lib/ffmpeg_wrapper/filters/concat.rb,
lib/ffmpeg_wrapper/filters/blackdetect.rb

Defined Under Namespace

Classes: FFmpeg, FFprobe, Format, Stream

Constant Summary collapse

VERSION =
"0.0.2"

Class Method Summary collapse

Class Method Details

.method_missing(meth, *_args, &_blk) ⇒ Object

Check if ffmpeg is present in the system


5
6
7
8
9
# File 'lib/ffmpeg_wrapper.rb', line 5

def self.method_missing(meth, *_args, &_blk)
  case meth.to_s
  when /has_(?<cmd>.*)\?/ then system "which #{$1} &>/dev/null"
  end
end