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.
