Open jcmaslan opened 6 years ago
I tried with the same rtsp url by appending the start time and end time and the stream starts with the passed start time but not stopping at the end time.
Is there any official documentation for this type of links? Like how or from where did we come to know that somthing like "rtsp://admin:admin123@192.168.1.131:10554/Streaming/tracks/101?starttime=20180730T092030z&endtime=20180730T092553z" is suppose to work to view recorded data from HikVision NVR. Many many TIA.
We plan to support ONVIF Profile G https://www.onvif.org/profiles/profile-g/ with commands like: https://www.onvif.org/ver10/search.wsdl https://www.onvif.org/ver10/replay.wsdl
However, the ONVIF Streaming Specification enables start and end times: https://www.onvif.org/specs/stream/ONVIF-Streaming-Spec.pdf
Add playback command in config for hikvision nvr:
maker: Hikvision
command_id: play_channel_stream:
url: rtsp://{{username}}:{{password}}@{{ip_address}}:{{port}}/Streaming/tracks/{{channel}}{{stream}}?starttime={{year}}{{month}}{{day}}T{{hour}}{{minute}}{{second}}z&endtime={{year}}{{month}}{{day}}T{{hour}}{{minute}}{{second}}z
default port: 10554
channels: 1;2;3;4;5;6;7;8
streams: 01;02
example: rtsp://admin:admin123@192.168.1.131:10554/Streaming/tracks/101?starttime=20180730T092030z&endtime=20180730T092553z