Change preset to superfast or ultrafast.
Also don't record directly to MP4; if OBS crashes during a recording you'll end up with an unrecoverable file.
Record to FLV or MKV and after finishing use the "remux recordings" item in the File menu to create an MP4 for editing.