elsampsa / valkka-core

Valkka - Create video surveillance, management and analysis programs with PyQt
GNU Lesser General Public License v3.0
181 stars 35 forks source link

Buggy AXIS firmware does not comply with the RTCP protocol #14

Closed DongzhongZheng closed 4 years ago

DongzhongZheng commented 4 years ago

Hello! When I run lesson_2_a, the result is as follow. image How to deal with this promblem? Thank you!

elsampsa commented 4 years ago

Its just a message informing an extra communication with the RTSP camera

No need to worry about it

Do you have any other "problems" apart from the message?

DongzhongZheng commented 4 years ago

Yes, as shown in the picture above, I can not get any frame. My camera is HIKVISION. Is this lesson can only run on AXIS camera?

elsampsa commented 4 years ago

Is this lesson can only run on AXIS camera?

It works with all (rtsp) cameras, including hikvision.

Are you able to connect to your camera with some other program, say, vlc:

vlc -vvv rtsp://username:password@ip

I suppose you have edited lesson_2_a.py to use your correct username, passwd and ip address..?

DongzhongZheng commented 4 years ago

OK. Thank you.

elsampsa commented 4 years ago

You also asked in a private message, how to connect to an ip camera over internet.

When streaming over internet, most of the ports might be closed or udp traffic blocked.

So, you should try tcp (instead of udp) transport for live streaming. It'll transport the stream through port 554 using tcp protocol for the video stream also (instead of some random udp ports).

Modify example 2 of the tutorial like this:

ctx =LiveConnectionContext(LiveConnectionType_rtsp, "rtsp://admin:nordic12345@192.168.1.41", 1, av_in_filter)
ctx.request_tcp = True

Reference for that is here

DongzhongZheng commented 4 years ago

I got it. Thank you.