I want to send a video from python (server) to Matlab (client) simulink,so that i can retrieve the video again in simulink!

My python server program has already the video which is in packet form ready to send over the udp to matlab simulink, but udp recieve block in simulink didn't show the video again.
Any has done it before, how to get back original video in simulink.

Risposte (1)

Hi Talal,
  1. Firstly configure your UDP receiver block by specifying the remote IP address and port number.
  2. Convert the received packets from byte stream format to original video format by decoding the packets. The decoding process depends on the video format you are using. If you are using a common video format such as MPEG or H.264, you can use the corresponding decoder block provided by Simulink or MATLAB.
  3. After decoding the packets, you can display the video using the Video Display block in Simulink. The Video Display block takes the decoded video signal as input and displays the video on the screen.
Note that the exact configuration of the UDP Receive block and decoding process depends on the specific video format and encoding used.
Hope it helps!

3 Commenti

I would like to know how to connect if I use uav toolbox Video Send in UAV toolbox to send to python.
and my video format is RGB video size is [480, 752].
Thanks.
Kind Regards,
Dennis
@Dennis, @Muhammad Qaisar Ali If you got anything regarding this , can you please share or explain?

Accedi per commentare.

Richiesto:

il 1 Dic 2022

Commentato:

il 21 Nov 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by