Sending video files with Adalm Pluto
20 views (last 30 days)
Show older comments
I am trying to send a video image from Adalm Pluto to Adalm Pluto , does anyone have a sample work on this subject?
0 Comments
Accepted Answer
Aravind
on 9 Apr 2025
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.
0 Comments
More Answers (0)
See Also
Categories
Find more on Analog Devices ADALM1000 Support from Data Acquisition Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!