Method: FFMPEG.ffmpeg_binary=

Defined in:
lib/streamio-ffmpeg.rb

.ffmpeg_binary=(bin) ⇒ String

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

Parameters:

  • path (String)

    to the ffmpeg binary

Returns:

  • (String)

    the path you set

Raises:

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



39
40
41
42
43
44
# File 'lib/streamio-ffmpeg.rb', line 39

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