support for camera footage archiving
AnsweredHi,
I would like to know the following details
1. Does Nx server support archived camera footage? atleast 1 hour back
2. Does Nx server support storage for long term at least 1 month (of course with licensed versions)?
-
Official comment
Hi Sebastian,
Can you elaborate a bit more about what you mean?
- Do you mean adding the archive from another source to the Nx Media Server?
If this is the case, this can be done in two ways. Add it as a Virtual Camera or add the data+metadata from another Nx server and re-index this data. - The size of the storage is the limitation, the Nx server does not have any limitations. You can add as many petabytes as you like to the server.
- Do you mean adding the archive from another source to the Nx Media Server?
-
Hi Norman,
Not archive from another source.For Example when motion is detected and is stored with that metadata, we should be able to get all motion events for a camera within a timeline (example last 1 hour) and it should play from that timelineSo if I want to view the motion events between 1PM - 2PM in camera 1 of my server, how do i query and then how do i play a video of event which happened at 1.15PM?I want to do this through the APIs0 -
Hi Sebastian,
I assume you can do this with the /ec2/recordedTimePeriods API section, but I will transfer this topic to the Developers forum so our team can provide you a better answer.
0 -
Hi Sebastian,
I am not sure if that's still actual, but in case if it is:
There is a periodsType parameter that you can use with /ec2/recordedTimePeriods request which Norman had already mentioned before.
A request with periodsType=1 will provide you with the motion chunks that were recorded within the specified time interval. If you need more details on the /ec2/recordedTimePeriods you can refer to Mediaserver's built-in API help page: http://<server_url>/static/index.html#/developers/api/ec2/recordedTimePeriods.
So, if you you want to see the list of motion chunks that were recorded between 1PM and 2 PM on the 7th of May, you need the following request:
/ec2/recordedTimePeriods?cameraId=<camera_UUID>&startTime=2020-05-07T13%3A00%3A00.000&endTime=2020-05-07T14%3A00%3A00.000&periodsType=1
A resulting JSON will contain an array of corresponding periods with startTimeMs and durationMs shown for every period.
As for playing, one of the options you can use is HTTP streaming:
http://<server_url>/media/<cameraId>.<format>?pos=<startTimeMs>&endPos=<startTimeMs + durationMs>
Refer to built-in documentation for details:
http://<server_url>/static/index.html#/developers/api/media/<cameraId>.<format>
Hope this is helpful.
Regards,
Maxim Podstrechny,
Networkoptix, QA Engineer.
0
Please sign in to leave a comment.
Comments
4 comments