lib/ffmpeg/screenrecorder.rb
def start_ffmpeg
      raise RecorderErrors::DependencyNotFound, 'ffmpeg binary not found.' unless ffmpeg_exists?

      FFMPEG.logger.debug "Command: #{command}"
      process = IO.popen(command, 'r+')
      sleep(1.5) # Takes ~1.5s on average to initialize
      process
    end
#
# Launches the ffmpeg binary using a generated command based on
# the given options.
#
Launches the ffmpeg binary using a generated command based on
the given options.
Launches the ffmpeg binary using a generated command based on the given options .
def start_ffmpeg
      raise RecorderErrors::DependencyNotFound, 'ffmpeg binary not found.' unless ffmpeg_exists?
      FFMPEG.logger.debug "Command: #{command}"
      process = IO.popen(command, 'r+')
      sleep(1.5) 
      process
    end
def start_ffmpeg raise RecorderErrors :: DependencyNotFound , 'ffmpeg binary not found.' unless ffmpeg_exists? FFMPEG . logger . debug "Command: #{command}" process = IO . popen ( command , 'r+' ) sleep ( 1.5 ) process end
Launches the ffmpeg binary using a generated command based on
the given options.
Launches the ffmpeg binary using a generated command based on the given options .
# Takes ~1.5s on average to initialize