If you want to capture video when a sensor goes off, setup a NVR that has physical or IP triggered alarm inputs and tie Domoticz events to fire them off. Domoticz is not a NVR.ĭomoticz only cares about snapshots so it can associate images with events, ie capturing an image every time a sensor goes off. Its your Network Video Recorders job to stream video to network devices. there are tools for that, if you want em. and thats well beyond the scope of Domoticz. Unfortunately RSTP is not a browser friendly format, so you would have to run a transcoding daemon on hardware powerful enough to convert it to a standard compliant web format in real time, such as VLC, Flash Media Encoder, etc. When I connect directly to those cameras with a browser the streams requires a OS specific browser plugin from Dahua to display. for example VLC will stream RSTP from my Dahua cameras but it will not play files saved by those same cameras. typically that plugin is specific to the camera make or model since the industry loves to use proprietary video formats.
No the format IP cameras stream in cannot be embedded into browsers without requiring a 3rd party browser plugin. Still we need something to trigger the image capturing.
#OPENSPRINKLER PI GET FIRMWARE CODE#
It would be a small change to code and I will try it when have some spare time. After first image( ) is shown the UI/browser adds &count=X( ) parameter to uri and the domoticz web server cannot provide the file since it wont strip the uri parameters when comparing if the file exists. Only problem is the domoticz webserver part. With patching the code it would be possible to show a image captured by script but capturing from rtsp is quite cpu intensive and slow operation so you wouldnt get anywhere realtime "video". On second line(not shown on post) I use telegram to send the captured image to my phone. That avconv line captures a snapshot from rtsp stream and saves it to file. I'm using it to send snapshot image when something happens. Domoticz dont support rtsp camera so you cannot use rtsp with camera options found in setup.