Go to documentation repository
Page History
By default, the archive is exported in mp4 format. Change the format using the ExportContainerFormat registry key (see Registry keys reference guide). The export of the archive in H.264 or MPEG4 formats is supported.
General request format:
POST http://IP-address:port/createarchivetask
Code Block | ||
---|---|---|
| ||
Content Type: application/json Content: { "CameraId": "{CameraId}", "From": "{From}", "To": "{To}" } |
Request parameters:
Parameter | Is required | Description |
---|---|---|
CameraId | Yes | Camera ID |
From | Yes | The start time of the archive fragment in the format YYYY-MM-DDTHH:MM:SS |
To | No | The end time of the archive fragment in the format YYYY-MM-DDTHH:MM:SS (if not specified, the entire archive will be given up to the last record) |
Example request:
POST http://127.0.0.1:80/createarchivetask
Code Block | ||
---|---|---|
| ||
Content Type: application/json Content: { "CameraId": "1", "From": "2016-06-27T15:10:00.00Z", "To": "2016-06-27T15:20:00.00Z" } |
Example response:
The folder with the corresponding name (084b56a5-bd49-4327-82db-9bc911f7ff96) and mp4 file inside it is created in the export folder (by default C:\Users\User\Documents\Intellect\export).
Code Block | ||
---|---|---|
| ||
{ "CameraId" : "1", "From" : "2016-06-27T15:10:00.00Z", "To" : "2016-06-27T15:20:00.00Z", "ArchiveTaskId" : "084b56a5-bd49-4327-82db-9bc911f7ff96", "ErrorMessage" : null, "State" : "Created" } |
Response parameters:
Parameter | Description |
---|---|
CameraId | Camera ID |
From | The start time of the archive fragment in the format YYYY-MM-DDTHH:MM:SS |
To | The end time of the archive fragment in the format YYYY-MM-DDTHH:MM:SS |
ArchiveTaskId | Task ID |
ErrorMessage | Error messages |
State | Task creation result |
Overview
Content Tools