Comments

2 comments

  • Avatar
    Norman - Nx Support

    Hi rittikorn Kongbunruang,

    There is no default option in Nx, to create time-based snapshots and compose a time-lapse.

    We do have the option, to create a time-lapse with our rapid review feature as described HERE.

    If you want to collect a snapshot every X time and create a time-lapse from that, you could use curl or wget and FFmpeg as described in THIS article, for example.

    You can grab the snapshot from the camera or from the server. For the server, you could use the following URL:

    rtsp://localhost:7001/<cameraId>

    All parameters for this server API call can be found in the Nx WebAdmin >>> For Developers >>> Server API >>> Video API >>> RTSP Streaming

    0
    Comment actions Permalink
  • Avatar
    Norman - Nx Support

    Hi rittikorn Kongbunruang,

    I just noticed my colleague Ichiro create a Python tool to achieve what you want. Below his description and download :

    Nx Witness Snapshot Tool

    Tool Overview

    This tool is used to capture the snapshot of desired cameras via Nx Mediaserver API.
    It supports to execute the capture on one or multiple cameras. Users are allowed to configure the
    preferred image format (png or jpg) and could define the path to save the snapshots.

    Usage

    Directly execute the python script NxSnapshotTool.py in the terminal (Ubuntu, MAC) or command
    prompt (CMD - Windows).

    You can also use Crontab (Ubuntu, MAC) or Task Scheduler (Windows), then you would be able
    to have the script to be executed periodically.

    Required applications and modules:
    1. This script is made by Python. So you would need to have Python installed.
    2. This script uses requests for issuing the HTTP Request to the server, so you would need to have
    the “requests” module *installed on your PC.
    3. This script uses configParser for parsing the configuration file, so you would need to have the
    “configParser” module *installed on your PC.
    4. Supports IPv4 address ONLY at the moment.
    5. If the server enables secure connection, then you need to prepare your own
    certificates(*.pem). It has not yet supported HTTPS at the moment.

    *This script would firstly check if the requested module are installed, if not, it would automatically request
    to install via pip (Internet required.)

    This tool is free to use, no support included.

    0
    Comment actions Permalink

Please sign in to leave a comment.