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/
It only works when I connect the Pi via HDMI to a desktop. There is an error if I am connected via SSH to VS Code, which says that the transmitting window cannot open. What is the problem?
thank you so much! but when i run the code, i find that the video sent and received is played faster than it should be, the frame rate is higher than normal, too.how can i fix this?
You're welcome! You can either set a constant delay in seconds using time.sleep or use waitKey. For more details visit pyshine.com/How-to-send-audio-video-of-MP4-using-sockets-in-Python/
@@pyshine_official Much appreciated! I refered to the website provided. Get original FPS and use that to set value of the variable TS to solve the audio-video synchronization problem in cv2.Waitkey() also applies here!
Thank you! We will surely make a follow-up on it. Besides, you can use the rawCapture = PiRGBArray(camera, size=(640, 480), and accordingly use the frame from it.
I am trying to communicate the one server and 2 clients using UDP protocol to send an audio file but I need to synchronization of it. I mean I want to synchronize 3 virtual machines (2 clients and 1 server) without a cable connection, I also want to implement this under netem emulator. I want to receive the file as much as possible at the same as a client.
Good question. It depends in encoding and decoding scheme used for the package message as well as on the target application. For example using a YUV420 standard format would lower bps. Or sending gray level image would reduce size to about 1/3. Sending only the motion oriented pixels and their locations in an image will help alot as well. Reducing image resolution, or tiling an image and sending tiles would increase data rates
Thank you for the informative and easy to follow tutorial. But I have this error code and I do not know how to handle it. . [WinError 10040] A message sent on a datagram socket was larger than the internal message buffer or some other network limit, or the buffer used to receive a datagram into was smaller than the datagram itself
Thank you for appreciating! Yes, absolutely possible. All that required is the access to the peer PC. Normally, OS credentials block the connection. So before starting server client communication, make sure that the two PCs can ping each other successfully.
Hello. Thank you so much for this useful tutorial. I have two questions. How can we control the fps? I mean, is there a way to send video at a slower speed? I essentially want to control the sending speed of udp packets. I want to restrict the number of udp packets sent per second. Also, is there a way to restrict the max. data length on each udp packet? For example, I want each udp packet to carry no more than 1400 data bytes. Please let me know how I can do these two things. I would highly appreciate your help. Thanks. Nasir
Follow this tutorial for the control of FPS pyshine.com/How-to-send-audio-video-of-MP4-using-sockets-in-Python/, for the UDP packets you can set the Buffer size accordingly
I also have another question: the shown fps is around 70 (in my program and my video is .mp4) and it is played extremely fast. do i have to change the waitKey value or is there another way?
@@eitangreenberg6255 You're welcome! Yes you can change the frame rate with waitKey( integer miliseconds). UDP is usually use in real-streaming of audio video data, you can experiment the live streaming tutorial over UDP as well.
Honestly I love your content but very elaborate and understandable but each time I try to access the camera it keeps giving me an error 😭😭 pls I need your help🙏🏾🙏🏾
@@trickkymoodstar1288 Hi, to debug please use Python 3.6.5 version. Also make sure the camera index id is 0 or other like 1,2,..., change it accordingly
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/
It only works when I connect the Pi via HDMI to a desktop. There is an error if I am connected via SSH to VS Code, which says that the transmitting window cannot open. What is the problem?
Pls make video on live video call using opencv pls
can you post video streaming using tcp protocal
pyshine.com/Socket-programming-and-openc/
Will it it possible to stream in another system?
Thank you for the vidéo,version helpful
Is this streaming video is based on WebSocket or socket? and what is the difference between them?
This one is using socket. For websocket pyshine.com/Online-Video-Processing-From-Client-Camera/
thank you so much! but when i run the code, i find that the video sent and received is played faster than it should be, the frame rate is higher than normal, too.how can i fix this?
You're welcome! You can either set a constant delay in seconds using time.sleep or use waitKey. For more details visit pyshine.com/How-to-send-audio-video-of-MP4-using-sockets-in-Python/
@@pyshine_official Much appreciated! I refered to the website provided. Get original FPS and use that to set value of the variable TS to solve the audio-video synchronization problem in cv2.Waitkey() also applies here!
appreciated! how can I use the picamera as input?
Thank you! We will surely make a follow-up on it. Besides, you can use the rawCapture = PiRGBArray(camera, size=(640, 480), and accordingly use the frame from it.
@@pyshine_official cool! keep up the good work
pyshine.com/Easy-video-stream-using-picamera-over-wifi-python/
Hey.. Great video. But do you know that How to read a udp message from random server in a network without knowing the sender's IP address.
I am trying to communicate the one server and 2 clients using UDP protocol to send an audio file but I need to synchronization of it. I mean I want to synchronize 3 virtual machines (2 clients and 1 server) without a cable connection, I also want to implement this under netem emulator. I want to receive the file as much as possible at the same as a client.
do i need port forwarding? please answer
@@wakabbo Not required if local network
Thank you very much for the video! But how can you do it with screen share instead of camera? (just screenshots)
You're welcome. Sceen sharing tutorial will be added soon on pyshine.com
@@pyshine_official oh, ok thanks
Hi, great video! Is there a way to lower the data consumption of the websocket? Each second, it consumes 78 MB!
Good question. It depends in encoding and decoding scheme used for the package message as well as on the target application. For example using a YUV420 standard format would lower bps. Or sending gray level image would reduce size to about 1/3. Sending only the motion oriented pixels and their locations in an image will help alot as well. Reducing image resolution, or tiling an image and sending tiles would increase data rates
Does this work across different devices within a network?
Yes it does if the devices share same network
can you make that as a camera?
The code by default is set to camera
please what is the python editor code that was used in this video?
VSCode by Microsoft
Hey thanks so much for the video! how can I make the video run a bit quicker it appears to be running a little slowly for me :)
Thank you for the informative and easy to follow tutorial. But I have this error code and I do not know how to handle it.
.
[WinError 10040] A message sent on a datagram socket was larger than the internal message buffer or some other network limit, or the buffer used to receive a datagram into was smaller than the datagram itself
Probably the buffer size is not larger. First try to run code with some reduced size buffer
how to make this run in gui
Hello! excelant video, congratulation!! Is possible using a UDP source video by ethernet port of PC?
Thank you for appreciating! Yes, absolutely possible. All that required is the access to the peer PC. Normally, OS credentials block the connection. So before starting server client communication, make sure that the two PCs can ping each other successfully.
@@pyshine_official Thank you to response.
@@edsonferraz1 You're welcome! Its works perfectly.
@@pyshine_official Do you can send me a exemplo how made this? My E-mail is: eng.edsonferraz@gmail.com
Hello. Thank you so much for this useful tutorial. I have two questions. How can we control the fps? I mean, is there a way to send video at a slower speed? I essentially want to control the sending speed of udp packets. I want to restrict the number of udp packets sent per second. Also, is there a way to restrict the max. data length on each udp packet? For example, I want each udp packet to carry no more than 1400 data bytes. Please let me know how I can do these two things. I would highly appreciate your help. Thanks.
Nasir
Follow this tutorial for the control of FPS pyshine.com/How-to-send-audio-video-of-MP4-using-sockets-in-Python/, for the UDP packets you can set the Buffer size accordingly
Apakah hanya macos yg bisa kak? apakah bisa jg windows kak?
Works both in windows and MacOS
Hi! Create a video where the server captures the screen and streams it to the client.
Thank you for the video!! Can you also make a video about sending the video's audio and synchronizing them?
I also have another question: the shown fps is around 70 (in my program and my video is .mp4) and it is played extremely fast. do i have to change the waitKey value or is there another way?
@@eitangreenberg6255 You're welcome! Yes you can change the frame rate with waitKey( integer miliseconds). UDP is usually use in real-streaming of audio video data, you can experiment the live streaming tutorial over UDP as well.
@@pyshine_official but it's hard for me to synchronize between them. Will you post a tutorial about it?
@@eitangreenberg6255 Alright, will surely make one. Cheers!
@@pyshine_official omg you are amazing!! Thank you very much!!! Really appreciate it!!
plz send code to save video at client side(server send video) by using UDP server
Will be there on pyshine.com soon!
pyshine.com/Server-sends-UDP-video-and-client-saves/
hi, Thanks for this great video
Can you please tell me how can I serve multiple clients with a UDP server (with this code I can only serve one client)
It will be available soon on pyshine.com
pyshine.com/UDP-Send-Video-Single-Sever-Multiple-Clients/
Hi! Can you please make a tutorial to show video in a HTML page(which transmiter frome Python server
)
Hi, please check tthese: pyshine.com/Live-streaming-multiple-videos-on-a-webpage/
and
pyshine.com/Easy-video-streaming-in-raspberrypi-python/
How can I get port address?
Follow this tutorial pyshine.com/Socket-programming-and-openc/
cool~~~
wrote the a similar program for my 3d printable rc car, i rent a server so everything can be used in mobile network
Honestly I love your content but very elaborate and understandable but each time I try to access the camera it keeps giving me an error 😭😭 pls I need your help🙏🏾🙏🏾
It keeps telling me
encoded = binascii.b2a_base64(s, newline = False )
@@trickkymoodstar1288 Hi, to debug please use Python 3.6.5 version. Also make sure the camera index id is 0 or other like 1,2,..., change it accordingly