Go to documentation repository
...
| Parameter | Is required | Description |
|---|---|---|
| cam_id | Yes | Camera ID |
| from_time | Yes | The start time of the archive fragment in the format YYYY-MM-DDTHH:MM:SS |
| to_time | Yes | The end time of the archive fragment in the format YYYY-MM-DDTHH:MM:SS |
| format | No | The format in which the archive will be exported. Format options: mp4, avi, flv, mov, asf. If the format is not specified in the request body, then the value of the ExportContainerFormat registry key is used (see Registry keys reference guide). If the key is not specified, then the archive is exported in mp4 format |
GET http://127.0.0.1:80/downloadarchivefile?cameraid=1&fromdatetime=20142024-10-01T00:00:00&todatetime=20142024-10-01T01:20:05
| Code Block |
|---|
HTTP/l.1 200 OK Content-Type: application/octet-stream |
The command will result in a file containing an archive fragment. The camera name and time range will be indicated in the file name.
Example file name: Camera[4](
...
2024-08-13T11_00_00 -
...
2024-08-13T12_10_00).
...
Example command to convert H.264-coded file:
ffmpeg -i "C:\path to the .264 file\Camera[5].es" -c:v copy -bsf:v h264_mp4toannexb -c:a copy -f avi output.avi
Example command to convert H.265-coded file:
ffmpeg -i "C:\path to the .265 file\Camera[5].es" -c:v copy -bsf:v hevc_mp4toannexb -c:a copy -f avi output.avi
...
mp4.