lib/ffmpeg/screenrecorder.rb
def ffmpeg_exists?
      return !`which ffmpeg`.empty? if OS.linux? # "" if not found

      return !`where ffmpeg`.empty? if OS.windows?

      # If the user does not use FFMPEG#ffmpeg_binary=() to set the binary path,
      # FFMPEG#ffmpeg_binary returns 'ffmpeg' assuming it must be in ENV. However,
      # if the above two checks fail, it is not in the ENV either.
      return false if FFMPEG.ffmpeg_binary == 'ffmpeg'

      true
    end
#
# Returns true if ffmpeg binary is found.
#
Returns true if ffmpeg binary is found.
Returns true if ffmpeg binary is found .
def ffmpeg_exists?
      return !`which ffmpeg`.empty? if OS.linux? 
      return !`where ffmpeg`.empty? if OS.windows?
      return false if FFMPEG.ffmpeg_binary == 'ffmpeg'
      true
    end
def ffmpeg_exists? return ! ` which ffmpeg ` . empty? if OS . linux? return ! ` where ffmpeg ` . empty? if OS . windows? return false if FFMPEG . ffmpeg_binary == 'ffmpeg' true end
Returns true if ffmpeg binary is found.
Returns true if ffmpeg binary is found .
# "" if not found # If the user does not use FFMPEG#ffmpeg_binary=() to set the binary path, # FFMPEG#ffmpeg_binary returns 'ffmpeg' assuming it must be in ENV. However, # if the above two checks fail, it is not in the ENV either.