MissiaL / hikvision-client

Client for Hikvision devices
MIT License
209 stars 43 forks source link

how to access the frames from livestream using rtsp? #7

Closed learnermaxRL closed 5 years ago

MissiaL commented 5 years ago

@krom9ra Could you help him? I think you know answer :-)

krom9ra commented 5 years ago

@learnermaxRL You need to use some kind of RTSP client for this. The potocol described in RFC2326 and its generic impl is hard. Also RTSP negotiation requeres a lot of overhead data processing, so it suits only for continuos video & audio recieving because of big "click-to-live" delay (for negotiation processes)

The best way is to use ready-for-use RTSP lib. Also can be useful for some tasks cli-based video players like ffplay, vlc or others. Anyway, you could implement you own version of simple (TCP-only or UDP-only) client using Twisted framework.

But if you need to recieve only one video frame, i recommend to use JPEG snapshot feautures (Hikvision ISAPI provides this feauture)

MissiaL commented 5 years ago

@learnermaxRL Please close issue if your problem is resolved

learnermaxRL commented 5 years ago

Havent tested out the feature,I used cv2.Videocapture, and kepp creatinng new connections everytime error occurs,working for me at the moment,I really appreciate your comment and would get back to you in case i need help