IP camera stream using RTSP and openCV python

Поделиться
HTML-код
  • Опубликовано: 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.
  • НаукаНаука

Комментарии • 75

  • @sysadmin9396
    @sysadmin9396 3 года назад +7

    I've been searching for this for so long.. THANK YOU!

  • @grigoryyashin6939
    @grigoryyashin6939 Год назад +1

    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.

  • @fauzy65
    @fauzy65 3 года назад

    Awesome.. simple but easy to understand..
    Thanks for your video

  • @AIFusion
    @AIFusion 3 года назад +2

    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

  • @jasonamosco318
    @jasonamosco318 2 года назад +2

    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

  • @beyondhelloworld8024
    @beyondhelloworld8024 3 года назад +1

    Great work man....

  • @qzorn4440
    @qzorn4440 3 года назад

    this looks like a fun raspberry-pi, opencv, rtsp camera robot project ? thanks a lot...) oh, any camera kits?

  • @ssgoh4968
    @ssgoh4968 3 года назад +1

    Thanks. Salute

  • @dennisasamoah2213
    @dennisasamoah2213 2 года назад +1

    Thank you

  • @jvraviteja18
    @jvraviteja18 2 года назад

    excellent bro!
    Really thanks a lot bro!

  • @asadakhtar6541
    @asadakhtar6541 11 месяцев назад

    What about the cctv camera system if it's not connected to internet?

  • @jeevankota3992
    @jeevankota3992 8 месяцев назад

    If I want to run my Python code in the cloud, is it run in the cloud?

  • @joseantoniotorreslima3068
    @joseantoniotorreslima3068 2 года назад

    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 ?

  • @mhamidjamil
    @mhamidjamil 2 года назад

    nice work ❤🔥

  • @bhramantiaanibarechkahi173
    @bhramantiaanibarechkahi173 2 года назад

    hello Sir,
    I am using WiFi CCtv camera I have given Static ip also but its not responding to rtsp

  • @avidangc2008
    @avidangc2008 8 дней назад

    Great, where can I get the API documentation?

  • @echtertill
    @echtertill 2 года назад +1

    How can I display two cams in the window?

  • @mujahidmirji8336
    @mujahidmirji8336 4 года назад +2

    Ek number

  • @jeremyuzan1169
    @jeremyuzan1169 Год назад +1

    great thank you

  • @doganguler3629
    @doganguler3629 2 года назад

    Can I do that with built-in laptop camera?

  • @adipurnama_workshop
    @adipurnama_workshop 6 месяцев назад +1

    this video is awesome

  • @user-vw3ti8ln8v
    @user-vw3ti8ln8v Год назад

    Thx sir

  • @fazilhabeeth
    @fazilhabeeth 9 месяцев назад

    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

  • @ankitrawat2824
    @ankitrawat2824 Год назад

    I have dahua cctv but able to find out the stream name for rtsp url. Can anyone help me with this??

  • @seyedmohsen2306
    @seyedmohsen2306 Год назад

    Hi
    How about audio
    How read video and audio together

  • @ManirajanKalidas
    @ManirajanKalidas Год назад

    super bro ,

  • @Zaid-lk2sy
    @Zaid-lk2sy Год назад +5

    Good job, the music is super distracting though, please consider removing it in future videos.

  • @RushikeshGirase
    @RushikeshGirase Год назад

    what is my public ip for rtsp

  • @iszzulgan
    @iszzulgan 3 года назад

    In order to access the RSTP do i need a decoder or CCTV only is enough?

    • @YahiyaMulla
      @YahiyaMulla  3 года назад

      If you have a DVR set up you enable/disable the RTSP Stream. There is no need of a decoder.

  • @derlemelife5126
    @derlemelife5126 3 года назад

    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?

    • @YahiyaMulla
      @YahiyaMulla  3 года назад

      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.

    • @dennisasamoah2213
      @dennisasamoah2213 2 года назад

      Configure port forwarding on your router

  • @ganeshsharma24894
    @ganeshsharma24894 3 года назад +2

    Sir, can we use an analog camera instead of a IP webcam to work with Open CV?
    BTW nice project...

    • @YahiyaMulla
      @YahiyaMulla  3 года назад

      If your DVR supports online streaming then I believe you can. I'm not sure about that, but I'll let you know...

    • @leontiimaksimov2812
      @leontiimaksimov2812 3 года назад

      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.

  • @abcdoliveira
    @abcdoliveira 2 года назад +1

    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?

    • @electrocat9
      @electrocat9 Год назад

      The same here but not 554 in url for public access and needs port forwarding. You?

  • @jodikurniawan3732
    @jodikurniawan3732 5 месяцев назад

    Nice tutorial how to pass video to web page?

  • @Manishsingh-dl6ho
    @Manishsingh-dl6ho 3 года назад

    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?

  • @cattnation6257
    @cattnation6257 5 месяцев назад

    MY IP DONST WORK HOW TO GET MY CAMERA IP AND API POITS

  • @KingsleyOkeze
    @KingsleyOkeze 10 месяцев назад

    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?

    • @user-pd3sj6jn3d
      @user-pd3sj6jn3d 8 месяцев назад

      Did you know the answer?

    • @KingsleyOkeze
      @KingsleyOkeze 8 месяцев назад

      @@user-pd3sj6jn3d I've done alot of research about this and haven't seen a better answer to it.

  • @sheikhabdulmunammateen779
    @sheikhabdulmunammateen779 2 месяца назад

    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

  • @TejuChai
    @TejuChai Год назад

    This will not work well with mtcnn and opencv for face recognition

  • @picslotechnologiesprivatel3653
    @picslotechnologiesprivatel3653 3 года назад

    hey I am trying to access the same but getting grey screen while calling rtsp even in vlc. Can you please help?

    • @YahiyaMulla
      @YahiyaMulla  3 года назад

      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.

    • @hamzabodla546
      @hamzabodla546 2 месяца назад

      Hi, were you able to fix grey screen? i am getting the same issue

  • @praveenmg9285
    @praveenmg9285 2 года назад

    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

    • @hamzabodla546
      @hamzabodla546 2 месяца назад

      were you able to fix this? how?

  • @Yonglee7015
    @Yonglee7015 6 месяцев назад

    opencv read RSTP is very latency, if you have any ways to improve it.

    • @YahiyaMulla
      @YahiyaMulla  6 месяцев назад +1

      Have a look at gstreammer. It will help you to play around with latency. It’s based on C++.

  • @superpanter4902
    @superpanter4902 Год назад +1

    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?

    • @thepub2644
      @thepub2644 Год назад

      Me the same, did you solve that issue?

    • @superpanter4902
      @superpanter4902 Год назад

      @@thepub2644 yep i just learned how to resize the frame

  • @DiyintheGhetto
    @DiyintheGhetto 3 года назад

    Hello is it possible to have multiple cameras and how can i add hem?

    • @YahiyaMulla
      @YahiyaMulla  3 года назад

      Yes, you can. At the end of your RTSP link provide the valid channel number. for example 101 for channel1 201 for channel2 etc...

    • @DiyintheGhetto
      @DiyintheGhetto 3 года назад

      Yahiya Mulla hello yes but they are on different up addresses. What should I do there?

  • @sujoykumardas3489
    @sujoykumardas3489 3 года назад

    Can I have some name of such IP Camera available at market?

    • @YahiyaMulla
      @YahiyaMulla  3 года назад

      Camera used in the video is Hike-vision. You can purchase the ip camera’s from Amazon or Flipcart.

  • @sibujacob977
    @sibujacob977 2 года назад

    It doesn't work for a Dlink IP camera

    • @YahiyaMulla
      @YahiyaMulla  2 года назад

      Different company have their own Rtsp link. For dlink it will be different.

    • @sibujacob977
      @sibujacob977 2 года назад

      @@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

  • @zianart1664
    @zianart1664 Год назад

    don't hide your board

  • @DKs_youniverse
    @DKs_youniverse Год назад

    this is not working