Relay RSTP output from IP Camera (Dahua and Hikvision) and displayed to the website
-
Install the requirement, first :
pip install -r requirements.txt
-
Run the main python script by executing (dont forget to modify the camera url):
python3 ipcamera.py or python ipcamera.py
Debian Linux uses python3 instead python
-
Open the streaming web address i.e
http://domain.ip/live2?source=123 http://domain.ip/live?source=8
<iframe src="http://rstp-relay-server/live?source=1"></iframe>
use the uwsgi web server if you have high traffic/many ip camera, very recommended than using flask's built in web server.