Like everyone else, I'd recommend OBS and will repeat @vladstoj's warning that it won't always do what you want it to do on the first take. Make sure you do a dry run first of whatever it is that you're recording and, if it doesn't work as you'd want , go to Youtube tutorials such as this one :)