lib/screen-recorder/common.rb
#
# 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
      process = execute_command(ffmpeg_command, options.log)
      sleep(1.5) 
      raise FFMPEG::Error, "Failed to start ffmpeg. Reason: #{lines_from_log(:last, 2)}" if process.exited?
      process
    end
def start_ffmpeg process = execute_command ( ffmpeg_command , options . log ) sleep ( 1.5 ) raise FFMPEG :: Error , "Failed to start ffmpeg. Reason: #{lines_from_log(:last, 2)}" if process . exited? 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 to initialize ffmpeg # Check if it exited unexpectedly