lib/screen-recorder/common.rb
#
# Sends 'q' to the ffmpeg binary to gracefully stop the process.
# Forcefully terminates it if it takes more than 5s.
#
Sends 'q' to the ffmpeg binary to gracefully stop the process.
Forcefully terminates it if it takes more than 5s.
Sends ' q ' to the ffmpeg binary to gracefully stop the process . Forcefully terminates it if it takes more than 5s .
def stop_ffmpeg
      @process.io.stdin.puts 'q' 
      @process.io.stdin.close
      @log_file.close
      wait_for_process_exit(@process)
    end
def stop_ffmpeg @process . io . stdin . puts 'q' @process . io . stdin . close @log_file . close wait_for_process_exit ( @process ) 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