Turning a python video stream URL into a ZM Monitor?
Posted: Tue Mar 16, 2021 10:59 pm
Hi folks, I am new to ZM; I have been trying to figure this out but haven’t gotten very far. I’m having trouble seeing how all the pieces are supposed to fit together.
Using Jeffrey Walter’s python Arlo interface (https://github.com/jeffreydwalter/arlo), and the example streaming script (https://github.com/jeffreydwalter/arlo/ ... ngvideo.py), I am able to successfully log in to each of my Arlo 3rd-gen cameras (including the AVD1001 wired doorbell cam), open the camera stream, and either save a single image or a (15-second) .mp4 file by passing that (rtsps://) URL string as an arg to call(['ffmpeg’, …
But I’m stuck on how to proceed from here; How to “hook this camera into ZM” , or “make it into a ZM Monitor”.
Does this script essentially become a “monitor script” that gets kicked off by the zminit script?
And how does the video find its way into ZM?
- Would my script do the Arlo login and get the URL string, then (somehow) pass that string back to ZM?
- I’ve tried using “mkfifo” then write the camera output to the ‘named pipe’ so ZM can read from it, but I’m not having luck with that.
I’ve seen the example python scripts in the pyzm wrapper documentation, and the main (unwrapped) API’s section on “Streaming Interface” (https://zoneminder.readthedocs.io/en/st ... -interface), but I’m still not understanding how it all hooks together, and what calls what. I need a nudge in the right direction..
Thanks in advance for your help!
Using Jeffrey Walter’s python Arlo interface (https://github.com/jeffreydwalter/arlo), and the example streaming script (https://github.com/jeffreydwalter/arlo/ ... ngvideo.py), I am able to successfully log in to each of my Arlo 3rd-gen cameras (including the AVD1001 wired doorbell cam), open the camera stream, and either save a single image or a (15-second) .mp4 file by passing that (rtsps://) URL string as an arg to call(['ffmpeg’, …
But I’m stuck on how to proceed from here; How to “hook this camera into ZM” , or “make it into a ZM Monitor”.
Does this script essentially become a “monitor script” that gets kicked off by the zminit script?
And how does the video find its way into ZM?
- Would my script do the Arlo login and get the URL string, then (somehow) pass that string back to ZM?
- I’ve tried using “mkfifo” then write the camera output to the ‘named pipe’ so ZM can read from it, but I’m not having luck with that.
I’ve seen the example python scripts in the pyzm wrapper documentation, and the main (unwrapped) API’s section on “Streaming Interface” (https://zoneminder.readthedocs.io/en/st ... -interface), but I’m still not understanding how it all hooks together, and what calls what. I need a nudge in the right direction..
Thanks in advance for your help!