How can I get recorded movie through API?

Answered

Comments

5 comments

  • Official comment
    Avatar
    Sergey Yuldashev

    Hello Keisuke Sawada,

    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.

    Comment actions Permalink
  • Avatar
    Keisuke Sawada

    Hi Sergey,

    Thank you very much for prompt reply!

    Now I can get the recorded movie with your recommended API.

    Best Regards,

    Kei

    0
    Comment actions Permalink
  • Avatar
    Keisuke Sawada

    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
    Comment actions Permalink
  • Avatar
    Sergey Yuldashev

    Hello Keisuke Sawada,

    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
    Comment actions Permalink
  • Avatar
    Keisuke Sawada

    Hello Sergey,

    Thanks a lot!

    It must be really helpful information for us. I understood the background of your recommendation.

    Best Regards,

    Kei

     

    0
    Comment actions Permalink

Please sign in to leave a comment.