fix your crf command to have an actual number instead of X recommended around 20. set preset to superfast.
If you are running windows 10, update your OBS. with this version you can now use game capture properly.
Lastly, make sure you disable the xbox game DVR feature.