Sending video files with Adalm Pluto

20 views (last 30 days)
Samet
Samet on 7 Apr 2025
Answered: Aravind on 9 Apr 2025
I am trying to send a video image from Adalm Pluto to Adalm Pluto , does anyone have a sample work on this subject?

Accepted Answer

Aravind
Aravind on 9 Apr 2025
Hi @Samet,
There is no direct example for sending video files using the ADALM-PLUTO SDR radio. However, there is a MATLAB documentation example on how to perform image transmission using the ADALM-PLUTO SDR radio, which can be found here: https://www.mathworks.com/help/wlan/ug/image-transmission-reception-using-802-11-waveform-sdr.html.
Since this example addresses image transmission, you can use it as a foundation for implementing video transmission. One approach would be to encapsulate the image transmission process into a function and call this function repeatedly for each frame of the video. This method would sequentially transmit the frames, and on the receiver end, the received frames (images) can be assembled into a video, effectively transmitting the video from source to destination.
Here is a basic outline of how the code might look:
For the Sender:
videoFile = 'example.mp4'; % Replace with your video file
videoReader = VideoReader(videoFile);
% Read video frames
videoFrames = {};
while hasFrame(videoReader)
frame = readFrame(videoReader);
% Send the frame using the image transmission example function
end
For the Receiver:
% Create a VideoWriter object
outputVideo = VideoWriter('output_video.avi');
outputVideo.FrameRate = 30; % Set desired frame rate
open(outputVideo);
% Assuming frames are coming in a loop
while true % Or your specific condition
% Get your frame here from the image transmission example
% Write the frame to video
writeVideo(outputVideo, frame);
end
% Close the video file
close(outputVideo);
I hope this answers your question.

More Answers (0)

Products


Release

R2024a

Community Treasure Hunt

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

Start Hunting!