Closed DongzhongZheng closed 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?
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?
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..?
OK. Thank you.
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
I got it. Thank you.
Hello! When I run lesson_2_a, the result is as follow.
How to deal with this promblem?
Thank you!