Hey,
Just starting using Home Assistant a few days ago and one of the first things I wanted to do was cast my generic IP camera feeds into my TVs, so I put something simple together. I’ve seen this feature advertised on a high end camera manufacturer (arlo or nest) but not on generic cameras.
I spent some time today to build a docker image that combines Nginx, FFMPEG and a bit of bash scripting in order to grab a live stream (e.g.: RTSP from an generic IP security camera), convert it into an HLS stream that chromecast devices accept and host it in nginx with the proper configuration.
Repo is here: https://github.com/gihad/streamer - Just sharing in case someone else wants to use this as well.
There were a few “gotchas” for getting everything done to the point where I can cast the security cameras live feed into chromecast but it’s working with my Amcrest cameras now.