For streaming games, doing a unlisted YouTube live is everything I needed. AV1 or HEVC on OBS is the way to go.
For anything else that won't play nice with copyright, I set up a Owncast on a VM. It's very simple, just ran their script, configured caddy for the SSL certificate (optional) and it's ready to go