Method: FFMPEG.ffprobe_binary=

Defined in:
lib/streamio-ffmpeg.rb

.ffprobe_binary=(bin) ⇒ String

Set the path of the ffprobe binary. Can be useful if you need to specify a path such as /usr/local/bin/ffprobe

Parameters:

  • path (String)

    to the ffprobe binary

Returns:

  • (String)

    the path you set

Raises:

  • Errno::ENOENT if the ffprobe binary cannot be found



68
69
70
71
72
73
# File 'lib/streamio-ffmpeg.rb', line 68

def self.ffprobe_binary=(bin)
  if bin.is_a?(String) && !File.executable?(bin)
    raise Errno::ENOENT, "the ffprobe binary, \'#{bin}\', is not executable"
  end
  @ffprobe_binary = bin
end