lib/ffmpeg/screenrecorder.rb
#
# Sends 'q' to the ffmpeg binary to gracefully stop the process.
#
Sends 'q' to the ffmpeg binary to gracefully stop the process.
Sends ' q ' to the ffmpeg binary to gracefully stop the process .
def kill_ffmpeg
      @process.puts 'q' 
      elapsed = wait_for_io_eof(5)
      @process.close_write 
      elapsed
    rescue Errno::EPIPE
      err_line = get_lines_from_log(:last, 2)
      raise FFMPEG::Error, err_line
    end
def kill_ffmpeg @process . puts 'q' elapsed = wait_for_io_eof ( 5 ) @process . close_write elapsed rescue Errno :: EPIPE err_line = get_lines_from_log ( :last , 2 ) raise FFMPEG :: Error , err_line end
Sends 'q' to the ffmpeg binary to gracefully stop the process.
Sends ' q ' to the ffmpeg binary to gracefully stop the process .
# Gracefully exit ffmpeg # Close IO # Gets last line from log file