Socket programming: A simple cache-server to broadcast video to clients in Python

Поділитися
Вставка
  • Опубліковано 18 січ 2025

КОМЕНТАРІ • 27

  • @pyshine_official
    @pyshine_official  2 роки тому

    Recommended:
    How to control robot car using Python and Web browser in mobile devices including Android and iOS pyshine.com/Video-streaming-and-car-control-with-Python/

  • @AlbertLau-jp6xq
    @AlbertLau-jp6xq 3 місяці тому +1

    I am currently working on a drone live video streaming project. However, I have been spending ten weeks on trying to figure out on how to complete the drone live streaming and I was still struggling on getting a basic result. This video is such a life saver for my project. Thank you.

  • @devendraumbrajkar8417
    @devendraumbrajkar8417 3 роки тому

    Thank you for the receiving block of code, was having problems when sending big arrays. Helped me correct it

  • @comendantcristian3413
    @comendantcristian3413 3 роки тому +2

    can you make a video, where the drone stream live video to the server, while the server makes port forwarding? Thanks in advance!

  • @jacemc9852
    @jacemc9852 2 роки тому +1

    Can the clients receive the drone stream imbedded in a web page?

    • @pyshine_official
      @pyshine_official  2 роки тому +1

      Yes this one is the relevant link pyshine.com/Live-streaming-multiple-videos-on-a-webpage/

  • @ashishkochhar3250
    @ashishkochhar3250 2 роки тому +1

    Hi thanks for tutorial. Can u pls tell how to configure and send live data from 5 webcams and display them on a single output screen. I did it for a single webcam but not able to proceed for multiple webcams

    • @pyshine_official
      @pyshine_official  2 роки тому

      Probably this one pyshine.com/Socket-Programming-with-multiple-clients/ and in PyQt5 is pyshine.com/Pyt5-Gui-for-two-videos-display/

  • @perumalp5346
    @perumalp5346 3 роки тому

    hi sir i single server into multi clients video and audio streaming i am trying your video and audio socket program useing threading but not get correct output pls help me

  • @midnightdishwasher1071
    @midnightdishwasher1071 2 роки тому

    is this can apply as livestream?

  • @gcarlos
    @gcarlos 3 роки тому +1

    thanks for the video. This is valid just for a local network?

    • @pyshine_official
      @pyshine_official  3 роки тому +1

      Yes it is for local but idea is similar for remote using ngrok as available here pyshine.com/Online-Video-Processing-From-Client-Camera/

  • @tomaszjasik639
    @tomaszjasik639 2 роки тому

    Hey if i wanna use port forwarding for connecting to my socket server what ip i sould put in client.py (i use scripts from single server and multiple clients video)?

    • @pyshine_official
      @pyshine_official  2 роки тому

      The forwarding address will be that of server so that clients can access it over internet. Follow this tutorial for details pyshine.com/Online-Video-Processing-From-Client-Camera/

  • @doganguler3629
    @doganguler3629 3 роки тому

    I tried what you did in the video, an error message pop-up when I try to run client.py ==> ConnectionRefused. How Can I Solve It?

    • @pyshine_official
      @pyshine_official  3 роки тому +1

      This happens if your socket address is unavailable due to some reason. A solution to that is either close the existing terminal windows or run the server and clients on a different port other than the one that is refused. For example keep the IP same and only change port e.g., from 9998 to 9999

    • @doganguler3629
      @doganguler3629 3 роки тому +2

      @@pyshine_official I solved the connection refused problem. Sir, I appreciate it. Many many thanks xx

  • @learntocode5464
    @learntocode5464 3 роки тому

    Excellent job, please what protocol. TCP or UDP. Thanks

  • @dhiaulmaruf1818
    @dhiaulmaruf1818 3 роки тому

    is this a good solution for many clients? because if there are many clients, the cache server will create a lot of threads

  • @jigneshtrivedi00700
    @jigneshtrivedi00700 3 роки тому

    sir what about audio?

    • @pyshine_official
      @pyshine_official  3 роки тому +1

      For audio: pyshine.com/How-to-send-audio-video-of-MP4-using-sockets-in-Python/

  • @doganguler3629
    @doganguler3629 3 роки тому

    Sir, thanks for the video. How can I achieve that operations over network? Drone(Laptop has built-in camera, Ubuntu 20.04LTS), Cache-Server(Amazon EC2 Instance, Ubuntu 20.04LTS), Clients(any pc is connected to the internet). Thanks for the reply :)

    • @pyshine_official
      @pyshine_official  3 роки тому +1

      Hi, you can try ngrok which can forward the local host over the internet. For more details pyshine.com/Online-Video-Processing-From-Client-Camera/

    • @doganguler3629
      @doganguler3629 3 роки тому

      @@pyshine_official I appreciate it. Check it out again. Thank you ^^

    • @doganguler3629
      @doganguler3629 3 роки тому

      I studied the link which is you suggested. Still, I have issues. Can you help me, again? I want to use ngrok with yours code to finalize it. Btw, thanks your patience