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

Publicado em: 22 Fevereiro 2021
no canal de: PyShine
23,353
311

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.

UDP sockets:    • How to send video using UDP socket in Pyth...  
TCP sockets:    • Socket programming and OpenCv in Python | ...  
FFMPEG: https://www.wikihow.com/Install-FFmpe...
Source Code: https://pyshine.com/How-to-send-audio...



#wifistudy
#sockets
#videostreaming





IMPORTANT TUTORIAL LINKS

Transfer video over sockets from multiple clients: https://pyshine.com/Socket-Programmin...
How to track Mario in Python: https://pyshine.com/tracking-mario/
What are yield and return statements in Python: https://pyshine.com/Difference-betwee...
How to automatically arrange the desktop icons: https://pyshine.com/How-to-clean-wind...
How to plot realtime frame rate of a web camera: https://pyshine.com/How-to-plot-real-...
How to make screen recorder in PyQt5: https://pyshine.com/How-to-make-a-scr...
How to make a real time voice plot: https://pyshine.com/How-to-make-a-rea...
How to make a piano in Python: https://pyshine.com/How-to-make-a-Piano/
Making Python GUI for sine and cosine: https://pyshine.com/How-to-make-a-GUI...
Pandas dataframe with hexadecimal and ascii values: https://pyshine.com/Pandas-CSV-data-i...
Socket programming to send and receive webcam video: https://pyshine.com/Socket-programmin...
Faster and accurate object tracking in Python: https://pyshine.com/Object-tracking-i...
OpenCV and Real time streaming protocol (RTSP): https://pyshine.com/Real-time-streami...
How to deploy Python video processing application on the server: https://pyshine.com/How-to-quickly-de...
How to publish-subscribe video using socket programming in Python: https://pyshine.com/Faster-video-tran...
How to send audio from a client computer to a server over the wifi: https://pyshine.com/Sending-Live-Audi...
How to visualize Earthquakes in Python: https://pyshine.com/How-to-visualize-...
How to stream video and bidirectional text in socket programming: https://pyshine.com/Video-and-bidirec...
How to send audio data using socket programming in Python: https://pyshine.com/How-to-send-audio...
How to send audio and video using socket programming in Python: https://pyshine.com/How-to-send-audio...
How to send video using UDP socket in Python: https://pyshine.com/Send-video-over-U...
How to easily stream picamera video over wifi with Raspberry Pi: https://pyshine.com/Easy-video-stream...
How to configure Raspberry Pi in Ad hoc wifi mode: https://pyshine.com/How-to-configure-...
How to easily stream webcam video over wifi with Raspberry Pi: https://pyshine.com/Easy-video-stream...
How to easily install OpenCv in Raspberry Pi boards: https://pyshine.com/How-to-install-Op...
How to stream multiple videos on an HTML webpage:https://pyshine.com/Live-streaming-mu...


Nesta página do site você pode assistir ao vídeo on-line How to send audio and video using socket programming in Python: Socket Programming tutorial duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário PyShine 22 Fevereiro 2021, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 23,353 vezes e gostou 311 espectadores. Boa visualização!