OBS was going to be my answer as well. There’s tons of videos on YouTube or a quick Google search that’ll explain the best settings to use depending on what output you’re looking for.
I’ve used OBS for years and can say I’ve very rarely had any issues with it.
Edit: changing to nay after reading The Dude’s comment.