how to convert a video to OFDM frames ?

4 views (last 30 days)
Is it possible to convert directly a short video to OFDM frames ?

Accepted Answer

Walter Roberson
Walter Roberson on 24 Feb 2021
Edited: Walter Roberson on 24 Feb 2021
No, it is not possible to convert directly.
You have two choices:
  1. You can read a frame of the video at a time, and convert the digital array representing each video frame to a series of OFDM frames; or
  2. You can read a video file as a plain array of binary data (such as uint8) and convert the stream to a series of OFDM frames. This would not need to have any knowledge of what was in the file -- you would do exactly the same thing for video files or audio files or spreadsheets or seismometer readings. Any file can be read as a stream of bytes.
The approach you would take would depend on what you intend to do with the OFDM frames. If the point is to transmit a video stream over OFDM, for viewing purposes (such as Video On Demand) then you would want to convert frame by frame. If, though, the purpose is to copy data from one place to another, then treat it as a plain stream of bytes.
Either way, once the video (or file) is read into the computer, the process of forming OFDM packets does not care where the data came from -- though if you are doing video streaming you would want to add in some kind of protocol announcing start of frame, frame size, timestamp, and so on.
  4 Comments
Baghdadi Aya
Baghdadi Aya on 22 Mar 2021
I decompose the video under images then I want to convert them into a binary sequence .
have you any idea how can i solve it? by the way i want the output sequence will saved in a text file ?
Walter Roberson
Walter Roberson on 24 Mar 2021
Assuming ImageArray is uint8:
bitstream = reshape((dec2bin(ImageArray, 8)-'0').', 1, []);
If you want to save that in a text file of '1' and '0' then
bit_text = reshape((dec2bin(ImageArray, 8)).', 1, []);

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!