Nx Witness allows users to export video using an HTTP-GET method.
In the API Documentation, refer to the Video API section and find HTTP Streaming which you can use to download video archives from a camera.
Since Nx Witness 4.2, the updated method for retrieving video archives uses
/media/ instead of
/hls/ method is deprecated and may or may not still work, but it is no longer supported or recommended for use.
Note: The archive with your selected timestamps must exist before you can retrieve it. If it doesn't exist, the archive will not be downloaded.
The camera archive portion that you wish to download is identified by its camera id, start time position and duration. The archive can be downloaded in the following formats: webm, mpegts, mpjpeg (multipart jpeg), mp4, and mkv.
Note: MKV and MP4 videos can be exported without transcoding. Webm videos will require transcoding.
The format of the URL is the following:
Refer to this article to learn how to find your camera id.
By default, the
stream parameter is determined automatically by the server based on the destination resolution. To select the stream quality, add
&stream=0 to the URL request for high quality, and
&stream=1 for low quality.
Example URL request:
Note: The date and time in pos should be specified according to Media Server Local Time. The
pos parameter can also take a string containing time in milliseconds since epoch (Unix time).
To get a list of all existing archive pieces for certain cameras with a request (identified by duration and start position), use the following format:
Article is closed for comments.