Don't necessarily tear down RTSP stream #355
Replies: 5 comments 8 replies
-
I've thought in the past about the idea of having a "continuous" stream for both the live and event stream, but this is much more complex. The current model is super simple since it's based on the built-in capability in rtsp-simple-server to run a script to start a stream only when a client is connected. If the stream was always publishing there'd be no method to know when to trigger the actual stream to start, because the stream would already have a publisher. It might be possible to poll the API to see if there are clients, but this is pretty ugly and it just adds a lot of complication. Personally, my suggestion is to buy a camera that is designed for continuous streaming that will work well with Zoneminder vs trying to figure out some way to make a cloud based smart camera try do what you want because it will always be a sub-par experience, IMO. However, if you're intent on trying to get the Ring camera to do this I'm pretty sure there's already some good info on doing basically this on the Zoneminder wiki using an mp4 file as a source. Also, I'm pretty sure you can use the file source which I believe uses low frame rate jpeg images, so a simple script to download and playback the file as a low frame rate jpeg overwritting the same file over and over would probably do the trick, but I've admittedly not used Zoneminder in quite a while. Regardless, I believe that is the best and most reliable path, i.e. download the file and then do something with it. |
Beta Was this translation helpful? Give feedback.
-
I always knew it would be sub-optimal, but I'm balancing that with the fact
that I've got a bunch of Ring devices out there already and was trying not
to have my front yard look like something out of 1984. :) Thanks for the
reply and thought on this, and that ZM link - that seems to solve my "I've
got a file, how do I get it into ZM" problem and will keep me busy for a
while.
…On Sun, Apr 17, 2022 at 2:27 PM tsightler ***@***.***> wrote:
Here's an older entry on Zoneminder wiki to use a video file as a source:
https://wiki.zoneminder.com/How_to_use_a_video_file_as_a_Source
—
Reply to this email directly, view it on GitHub
<#355 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADGH2YSGOABQI75RK4KGKT3VFR64DANCNFSM5TULP7FQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Wondering if there has been any progress on the ZoneMinder type continuous stream option here. I also have a number of ring devices, and while I am open to continuous type doorbells like Amcrest, I am not looking forward to fishing all the wires as I currently run my rings on batteries. |
Beta Was this translation helpful? Give feedback.
-
To hijack the thread a little…. I’m currently using Home Assistant to grab videos from Ring to local storage, but I’m struggling with how to wake up ZoneMinder or something similar to ingest the files.
Thinking about it, maybe some kind of outbound web hook would be helpful, and maybe I’ll take another swing at it soon now that I’ve survived the Home Assistant Great Bluetooth Refactoring.
My original approach was very much like what the original poster reported, but I realized that was either wrong or infeasible. Looks like I got that right.
This is also likely well out of scope for ring-mqtt, but thought I’d waste an email in case someone is following the same path in life.
…On Oct 19, 2022, 2:24 PM -0700, sts098 ***@***.***>, wrote:
Thanks anyway! Great Project!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
That doesn’t directly abandon my RTSP thoughts. Hm. If I get it to work, I’ll share the experience if you wish to stuff it in a FAQ or something. On Oct 19, 2022, at 2:36 PM, tsightler ***@***.***> wrote:
Did you try using an automation to enable/disable the monitor in ZoneMinder via the API? While I've never used ZM, the docs make this look pretty straightforward. I feel like you could just set up a ZoneMinder monitor with RTSP pointed at the live or event stream, then use an automation to run a script with curl to toggle the particular monitor from None to Always and then back after some time. Seems pretty simple and straightforward to me. If I had time I'd play with it myself.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I was hoping to do some "offboard" analysis of events by leveraging the RTSP support. Specifically, for a first swag, I'm trying to have Zoneminder watch the RTSP event stream. (This works with the _live stream, but I don't want to do that for many reasons already in the documentation.)
Unfortunately, at the end of the playback of the event, the stream drops, which makes Zoneminder reconnect, which retrieves the last event until it stops, and then...
In a fantasy, I'd love for the option to, rather than drop the RTSP connection, instead substitute some kind of idle feed (a simple black frame, perhaps) and leave the stream up. This would let consumers stay connected without reconnect loops, and the logic to detect "stream gone... ok, stream back" would be very simple for them to deal with as well.
Any alternatives to the problem of "new connect? here's the last event. Ok, go away now.. oh, your're back, here's the last event." would be very welcome as well. I was trying to brainstorm a way to RTSP (or other) stream based on new files appearing in a directory, but I've not seen anything like that around, either.
Beta Was this translation helpful? Give feedback.
All reactions