Skip to main content

NVR Integration with video source SDK

Answered

Comments

7 comments

  • Ben Kimski

    Hi, 

    That would be great to hear your feedback on this. 

    Ben,

    0
  • Andrey Terentyev
    • Network Optix team

    Hello Ben Kimski ,

    Sorry for the late response.

     

    Is NX team is having any plans to add getMediaUrl kind of function to nxcip::DtsArchiveReader? 

    no, there are not such plans, just because there is no actual necessity.

    All the camera drivers use the same interfaces you've describes.

    And unfortunately it's not compatible with programming interface suggested by Nx. Because the semantics of StreamReader interface, -- it provides the method getNextData which is called by data consumer, means that -- it's the consumer who wants to determine the pace at which the data is being read.

    One cannot assume that this method will be called by NxWitness core in exactly the same speed as the data is being produced by the NVR at the other end of the system. If the speed at which data is being produced from NVR mismatch the speed at which data is consumed by Nx, -- and this is definitely going to happen, -- the end user would see either stalling video, or data loss.

    If the speed at which data is being produced from NVR mismatch the speed at which data is consumed by Nx, 

    This mismatch occurs all the time. The pace the Server invokes getNextData in never less than the pace the camera is capable of streaming at. The approach would be

    1. To fork a thread pulling video data over RSTP from a camera, extracting and storing in a queue of MediaDataPacket.

    2. When the getNextData is invoked, it returns a ready MediaDataPacket (if any) from the queue.

    0
  • Ben Kimski

    Hi Andrev,

    Well noted.

    Would it be possible for you to share sample code of current Hanwha plug-in? That would give us a better understanding and a boost start to develop the plug-in we need. 

    Sincerely

    Ben

    0
  • Andrey Terentyev
    • Network Optix team

    Hi Ben,

    Hanwha plugin uses nothing special, but standard RSTP for pulling video steams. In other words, it's an analytics plugin, not a video source plugin.

    0
  • Ben Kimski

    Hi Andrey,

    We heard that NX could playback from Hanwha NVRs. I thought there is a plug-in managing that activity. If that so, could you please share the code for playback and export functions from Hanwha NVRs? That would help us a lot.

    Ben

    0
  • Andrey Terentyev
    • Network Optix team

    Ben,

    I'm sorry, but sharing this part of code is not possible.

    0
  • Tagir Gadelshin
    • Network Optix team

    Ben Kimski
    we don't handle the code by those types of requests. That being said, we do plan to open source big part of our software (Desktop Client). But that won't have any code you are asking for.

    Maybe in some future we will also publish all integrations that we do in-house, but I doubt that will happen any time soon.

    If you have any contacts with Nx besides this forum -- you can try requesting the code samples through those channels, but there is no solid process for that.

    thanks

    0

Please sign in to leave a comment.