IP camera stream using RTSP and openCV python
ฝัง
- เผยแพร่เมื่อ 30 พ.ค. 2020
- Home security camera's AKA surveillance cameras are most commonly used nowadays. With the help of Internet protocol or IP camera's, we can have access to the video feed from any part of the world.
Amazing, isn't it?
IP cameras provide decent features such as:
--- Night vision
--- Motion detection
--- Remote monitoring etc
but if you are an enthusiast or maybe a developer and would like to add some additional features or modify your system you basically need to have access to the video feed inside a developing tool or platform such as OpenCV python.
How? Lets find out...
This video is sponsored by Ajwasys.com
A name where you will get a complete solution for security cameras and communication systems. They provide Weatherproof, anti-corrosion, and explosion-proof standard materials with international certification for oil and gas industries all over the kingdom of Saudi Arabia. - วิทยาศาสตร์และเทคโนโลยี
I've been searching for this for so long.. THANK YOU!
3 years after, i think the same
Awesome.. simple but easy to understand..
Thanks for your video
Hello! Thanks for nice lesson! Could you kindly tell the version of OpenCV you use in this video? I have some issues with gstreamer on my version, so I want to make environment with your versions of Python and OpenCV.
Hi, Thanks for the tutorial, can you make a video on detection of object on realtime cctv (hikvision) video. Just for improvement of this project
hello ,
I am using cp plus IP camera but not able to access it through python (opencv) is there any restrictions from cp plus or is there any way to access this cp plus IP camera , if there is please let me know
Great work man....
this looks like a fun raspberry-pi, opencv, rtsp camera robot project ? thanks a lot...) oh, any camera kits?
hello Sir,
I am using WiFi CCtv camera I have given Static ip also but its not responding to rtsp
excellent bro!
Really thanks a lot bro!
Good job, the music is super distracting though, please consider removing it in future videos.
What about the cctv camera system if it's not connected to internet?
If I want to run my Python code in the cloud, is it run in the cloud?
How can I display two cams in the window?
Thank you
Thanks. Salute
Thank you for your video, Excuse me When I connect my camera hikvision by python, the image es whit a delay of 5 second , This happens to you ?
Great, where can I get the API documentation?
I have dahua cctv but able to find out the stream name for rtsp url. Can anyone help me with this??
Ek number
Can I do that with built-in laptop camera?
thank you for the video. I have 2 questions:
1- I just access the camera in the same network. Can we do with remote camera over internet?
2- if yes, is there any rtsp camera links on the internet that i can access and do opencv things?
Hey,
You can access the camera over the internet if you have the RTSP LINK. I'm from India and the camera which I have accessed is of Saudi.
I'm not sure about the camera links though.
Configure port forwarding on your router
nice work ❤🔥
Hello brother! suggest a affordable IP camera model with (open URL), where the url can be called using python for openCV purpose. Kindly suggest me brother
this video is awesome
Hi.Thanks for the video. I can see my IP CAM in VLC, but not in Python. In python I can only see my PC CAM. What could be wrong?
The same here but not 554 in url for public access and needs port forwarding. You?
In order to access the RSTP do i need a decoder or CCTV only is enough?
If you have a DVR set up you enable/disable the RTSP Stream. There is no need of a decoder.
great thank you
Sir, can we use an analog camera instead of a IP webcam to work with Open CV?
BTW nice project...
If your DVR supports online streaming then I believe you can. I'm not sure about that, but I'll let you know...
Yes, I'm not sure if it tensorflow or opencv, but I think (99% sure) that with OpenCV you just put the camera port into the videocapture line. Tbh, it is even easier.
Hi
How about audio
How read video and audio together
what is my public ip for rtsp
really good video just what i needed, but the camera is too big for my screen i tried changing the scale and watched many tutuorials on how to but it doesnt work. do someone know how to change the scale of the window?
Me the same, did you solve that issue?
@@thepub2644 yep i just learned how to resize the frame
Thx sir
Hi I m also trying the same but the camera is of my phone I installed an app name rtsp camera server which basically provide an ip to my phone camera I tried that link on vlc and it's working perfectly but when I'm providing this link to opencv it's not capturing anything . Not able to debug, can you help?
its not working for me could you guide pls
super bro ,
hi, i am able to run the live stream video and am facing this error h264 @ 000002f658ff6000] error while decoding MB 45 5, bytestream -9
were you able to fix this? how?
MY IP DONST WORK HOW TO GET MY CAMERA IP AND API POITS
I can access it in vlc but with too much distortion and can access it with opencv also but it gives too many messages and 1 message says no frame. Is there any setting to be configured
Hi, i am getting same issue? were you able to fix it?
@@hamzabodla546 what is it?
hey I am trying to access the same but getting grey screen while calling rtsp even in vlc. Can you please help?
Hi.
It may be due to network issue but I’m not sure about that. If that is not an issue then try to access different camera if you have one. I would highly recommend you to check your RTSP settings once.
Hi, were you able to fix grey screen? i am getting the same issue
This will not work well with mtcnn and opencv for face recognition
My question is, how do we detect when the IP address for the standalone wireless camera changes?
Do we have to always hardcode the IP address in our RTSP everytime or there's an automatic way in Python to detect address change for a device and store the new IP address in an array?
Did you know the answer?
@@user-pd3sj6jn3d I've done alot of research about this and haven't seen a better answer to it.
opencv read RSTP is very latency, if you have any ways to improve it.
Have a look at gstreammer. It will help you to play around with latency. It’s based on C++.
Hello is it possible to have multiple cameras and how can i add hem?
Yes, you can. At the end of your RTSP link provide the valid channel number. for example 101 for channel1 201 for channel2 etc...
Yahiya Mulla hello yes but they are on different up addresses. What should I do there?
Can I have some name of such IP Camera available at market?
Camera used in the video is Hike-vision. You can purchase the ip camera’s from Amazon or Flipcart.
Nice tutorial how to pass video to web page?
It doesn't work for a Dlink IP camera
Different company have their own Rtsp link. For dlink it will be different.
@@YahiyaMulla Hi again ! Can you please provide the syntax for cv2.capture () to access a URL using user name and password for the camera
thank you
this is not working
don't hide your board