Previous page Next page
Important!
You can get audio from x64 Server only.
You can't get audio in MJPEG format.
GET http://IP-Address:port/prefix/archive/media/{VIDEOSOURCEID}/{STARTTIME}
{VIDEOSOURCEID} − three-component source endpoint ID (see Get list of video cameras and information about them). For instance, "SERVER1/DeviceIpint.3/SourceEndpoint.video:0:0".
{STARTTIME} − time in ISO format. Set the timezone to UTC+0.
Parameter | Required | Description |
---|---|---|
speed | No | Playback speed, values can be negative. |
format | No | Parameter values are 'mjpeg', 'rtsp', 'mp4', 'hls'. If the format is not specified, 'rtsp' is selected or it is not recognized, then the native format is selected by server to prevent additional encoding. If the native format is not supported by client, server selects WebM. |
id | No | Unique identifier of archive stream (optional). It is used to get stream info or control the stream. |
w h | No | w – frame width, h – frame height. |
fr | No | fps. Important! This parameter is relevant only for MJPEG video. |
enable_token_auth | No | enable_token_auth − enable authorization by token = 1. valid_token_hours − signature validation time (in hours). The maximum value is a week. The default value is 12 hours. |
valid_token_hours | No |
Sample request:
GET http://127.0.0.1:80/archive/media/Server1/DeviceIpint.1/SourceEndpoint.video:0:0/20110608T060141.375?format=rtsp&speed=1&w=640&h=480&enable_token_auth=1&valid_token_hours=1
Important!
HLS archive video becomes available in 30 seconds after getting the response.
Sample response:
{ "http": { "description": "RTP/RTSP/HTTP/TCP", "path": "archive/hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0/20110608T060141.375000?speed=1&id=a865fcea-cfe6-44a1-bf7b-9e6a94c44a53&exp=20200525T171234&nonce=1&hmac=wVlyHvZkB2TnqftTfYugtwmZ7g8=", "port": "8554" }, "httpproxy": { "description": "RTP/RTSP/HTTP/TCP Current Http Port", "path": "rtspproxy/archive/hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0/20110608T060141.375000?speed=1&id=a865fcea-cfe6-44a1-bf7b-9e6a94c44a53&exp=20200525T171234&nonce=2&hmac=BVICx8NVV4yijwqc0Q6Xzji41Rg=" }, "rtsp": { "description": "RTP/UDP or RTP/RTSP/TCP", "path": "archive/hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0/20110608T060141.375000?speed=1&id=a865fcea-cfe6-44a1-bf7b-9e6a94c44a53&exp=20200525T171234&nonce=1&hmac=wVlyHvZkB2TnqftTfYugtwmZ7g8=", "port": "554" } }
Assign ID to the stream
Assign ID to the stream to receive information about this stream.
http://IP-Address:port/prefix/archive/media/VIDEOSOURCEID/STARTTIME/20140723T120000.000?format=rtsp&speed=1&w=640&h=480&id=f03c6ccf-b181-4844-b09c-9a19e6920fd3
It is possible to use other values consisting of latin letters and digits. It is recommended to use the UUID function (see Get unique identifier).
GET rtsp://login:password@IP-Address:554/archive/hosts/SERVER1/DeviceIpint.0/SourceEndpoint.video:0:0/20160907T050548.723000Z?speed=1
Speed parametr is mandatory: playback speed.
Examples:
ffplay.exe -v debug "http://login:password@IP-Address:80/archive/media/SERVER1/DeviceIpint.4/SourceEndpoint.video:0:0/20170112T113526?w=1600&h=0&speed=1".
ffplay -rtsp_transport http "rtsp://login:password@IP-Address:8554/rtspproxy/archive/hosts/SERVER1/DeviceIpint.4/SourceEndpoint.video:0:0/20170115T113526".
For VLC: GET rtsp://login:password@Iaddress:8554/rtspproxy/archive/hosts/SERVER1/DeviceIpint.4/SourceEndpoint.video:0:0/20170115T113526
To get H.264 archive video use RTSP protocol:
GET rtsp://login:password@IP-Address:554/archive/hosts/SERVER1/DeviceIpint.4/SourceEndpoint.video:0:0/20170112T113526
or tunneling RTSP over HTTP:
GET rtsp://login:password@IP-Address:80/rtspproxy/archive/hosts/SERVER1/DeviceIpint.4/SourceEndpoint.video:0:0/20170115T113526