@teachpaperless I've been using OBS Studio to do this for years. Free, open source, runs on Mac, Windows, and Linux, and supports multiple inputs (screen capture, specific window capture, multiple cameras, chroma key, etc.
When I first started teaching this stuff I needed a $20k box of proprietary electronics to do what OBS Studio does for free.