How can I get recorded movie through API?
AnsweredCould you tell me how to partially retrieve recorded movies from the server through APIs?
It looks I can get all recorded time frame for specific camera by "/ec2/recordedTimePeriods".
However, I cannot fine any proper APIs to download it to local PC...
Could you support it?
-
Official comment
Hello @...,
Please refer to the Nx Server API documentation.
I would recommend the following section:
HTTP Streaming
GET/media/<cameraId>.<format>If you use mp4 as a format without setting up the resolution parameter, you will be able to download the original stream.
If resolution is different from the original, transcoding will be applied which will lead to some extra CPU load on server side and the codec of the result file will be different from the original. -
Hi Sergey,
Thank you very much for prompt reply!
Now I can get the recorded movie with your recommended API.
Best Regards,
Kei
0 -
Hello Sergey,
Continuously let me ask additional question.
"Direct download" also enables us to download recorded movie to local. May I know what is different btw "Direct download" and "HTTP Streaming"?
In my understanding, major difference is supported formats (direct download: ts, mkv, HTTP streaming; mp4, etc.). Do you have any other criterial to decide which API should be used?
Best Regards,
Kei
0 -
Hello @...,
Direct Download utilizes hls technology to achieve data export.
Right now it causes export time to have comparable to the downloaded archive part length. I.e. if you download hour of the archive, the export time will also be close to that value.
Also this approach will soon be marked as deprecated and will no longer be improved.
This is why I specifically recommended "HTTP Streaming" option in the previous message.
0 -
Hello Sergey,
Thanks a lot!
It must be really helpful information for us. I understood the background of your recommendation.
Best Regards,
Kei
0
Please sign in to leave a comment.
Comments
5 comments