OBS Studio is free, open source, and records or streams anything on your screen once you have set up scenes and sources.