How to send audio and video using socket programming in Python: Socket Programming tutorial

preview_player
Показать описание
Hello friends! Today's tutorial is about sending audio and video streams from a server to a client. These streams will be extracted from an MP4 file. We will use a UDP socket for the transfer of the video stream and a TCP socket for the audio stream. Each MP4 file consists of these streams, with a different frame rate and audio sampling rate. Normally, the audio sampling rate is set to 44100 Hz. However, the video frame rates can vary e.g. 15 frames per second (fps), 20 fps, 24 fps, 30 fps, or even more. If we simply use OpenCV to extract the frames of MP4 and send it (with a delay of 1 ms showing each) then it may possible that your video won't be playing at its inherent frame rate.

#wifistudy
#sockets
#videostreaming

IMPORTANT TUTORIAL LINKS

Рекомендации по теме
Комментарии
Автор

amazing!!! thank you very much!! very helpful!

eitangreenberg
Автор

Audio is not playing only the video is running

advenakash
Автор

Hello how can I check if the audio stream is done so I can close the sockets and then reuse them?

joshuaflores
Автор

Thanks for the video :)
Just want to ask that it is known to use UDP when requiring fast-speed transmitting. What if I use TCP when sending the video? what will happen?

peiiii
Автор

Thank you very much.. Are some Real Time Protocol (RTP) features added to the UDP?

roaaeb
Автор

Hi, I'm a new subscriber of your channel and I'm really glad I found this particular video. I just want to ask you what happen when the client is listening and the video stops while the audio continues to play.
Salute and much thanks

giuseppe
Автор

Please, how can I download the video from client side streaming???

roaaeb
Автор

how to use picamera in this code....can you please tell me that lines of code.since i am new to python...

viswanathanr
Автор

How to send audio with pyaudio? Thank you

mr.shiroyasya
Автор

why you use tcp for audio streaming instaed of UP?

mmss
Автор

How can I transmit a captured screen and audio from the server to the client?

Jon-ss