HIKVISION DS-2CD202WF-I(W) RTSP STREAM LAG

nofriday

n3wb
Jan 27, 2020
1
0
India
I have a HIKVISION DS-2CD202WF-I(W) camera. The stream through the HIKVISION webpage - accessed using the camera IP address - in Internet Explorer and the ONVIF Device Manager(ODM) in Windows 10 works fine without any lags.

But, when I try to stream using VLC, ffplay(ffmpeg), OpenCV C++ VideoCapture class in Ubuntu 16.04 & 18.04, there is a lag of approximately 2 seconds.
The URLs I have tried are:

rtsp:/<address>:<port>/Streaming/Channels/101?transportmode=unicast&profile=Profile_1
(from ONVIF Device Manager)

rtsp:/<address>:<port>/Streaming/Channels/<id>/
rtsp:/<username>:<password>@<address>:<port>/Streaming/Channels/<id>/
(from Hikvision RTSP Stream URLs)

How do i remove the lag and get live video stream on using VLC, ffplay(ffmpeg), OpenCV ?

Any help would be appreciated.

Cheers.:)
 
Last edited:
ffmpeg -y -report -hide_banner -rtsp_transport tcp -i rtsp:/admin:admin@192.168.1.108:554/ISAPI/Streaming/Channels/101 -c:v copy -c:a copy out.avi