GET http://IP-Address:port/prefix/archive/media/VIDEOSOURCEID/STARTTIME?parameters,
where
Set the timezone to UTC+0 |
Parameters:
speed – playback speed, values can be negative.
format - parameter values are 'mjpeg', 'rtsp or '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.
If neither of parameters is specified, the speed is equal to 0, JPEG format is selected and the request is handled as a request to review video footage by frames.
id – unique identifier of archive stream (optional). It is used to get stream info or control the stream.
w – frame width.
h – frame height.
Sample request:
GET http://IP-Address:port/prefix/archive/media/HOSTNAME/DeviceIpint.23/SourceEndpoint.video:0:0/20110608T060141.375?format=rtsp&speed=1&w=640&h=480
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).
HLS archive video becomes available in 30 seconds after getting the response |
Sample response:
{"http": {"description":"RTP/RTSP/HTTP/TCP","path":"archive/hosts/HOSTNAME/DeviceIpint.1/SourceEndpoint.video:0:0/20161206T060141.375000?speed=1&id=729955cd-7787-4d6c-87eb-cd6dd6d4a940","port":"8554"} ,"rtsp": {"description":"RTP/UDP or RTP/RTSP/TCP","path":"archive/hosts/HOSTNAME/DeviceIpint.1/SourceEndpoint.video:0:0/20161206T060141.375000?speed=1&id=729955cd-7787-4d6c-87eb-cd6dd6d4a940","port":"554"} } |
GET http://IP-Address:port/prefix/archive/media/VIDEOSOURCEID/STARTTIME?parameters&arhive=hosts/SERVER1/MultimediaStorage.Archive_Name/MultimediaStorage
GET rtsp://login:password@IP-Address:554/archive/hosts/SERVER1/DeviceIpint.0/SourceEndpoint.video:0:0/20160907T050548.723000?speed=1
Speed parametr is mandatory
GET ffplay.exe -v debug "http://login:password@IP-Address:8001/asip-api/archive/media/SERVER1/DeviceIpint.4/SourceEndpoint.video:0:0/20170112T113526?w=1600&h=0&speed=1"
see Configure tunneling RTSP over HTTP in VLC.
GET 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@IP-Address: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:8001/rtspproxy/archive/hosts/SERVER1/DeviceIpint.4/SourceEndpoint.video:0:0/20170115T113526