Change record stream on motion started

Hello,

I have a camera with 2 streams configured. stream 1 on 1080p 25 FPS. Stream 2 on 720p 6 FPS. I want to achieve the following:

  • On motion record stream 1
  • on motion stopped record stream 2 to save disk space

I can, for example, set stream 2 as record stream and create a rule that changes the framerate and resolution on motion. The problem here is that the recorder seems to stop the stream, change it, and starts it again to record, meaning I can clearly see a gap of aprox. 1 sec in recordings.

I expect from a high-end VMS that it is able to do this very quickly or it is able to keep both streams open in parallel and change the one it should record on the fly.

Can I try another way to achieve this? Maybe from code?

XProtect supports multiple live stream but doesn’t support multiple recording stream. So if you will use multiple recording stream with using SDK, unfortunately it will not work.

Also as this is not related to software development with the MIP SDK, which is the focus of this forum, please ask again in the support community, you should get better help from the partners using the support community.

https://supportcommunity.milestonesys.com

I think OP is looking to change the recorded stream on event since changing the fps/resolution settings of the recorded stream can result in an interrupted stream depending on the camera.

Since changing which stream is being recorded cannot currently be done through the rules, they are looking for a way to do it programatically. It can be done by changing the properties of the StreamUsage items associated with the camera. I’m on mobile so if I don’t see an update here tomorrow I’ll try to point you to a sample or post a quick example.

Hi Joshua,

I tried to do what you explained by adapting the bat file example which is aan event server plug-in.

The result of this is the same, several seconds of recording is lost during change of recording stream.

Is there something I can do​ wrong?

Can you give me an example?

Kind regards,

Kenny​