1. The only solution that comes to mind is "Motion" that can detect changes in a video feed (like rtsp) and take action.
https://motion-project.github.io/
2. I have no solution here and I think it would depend on what OS you have on the receiving end.