how to convert a video to OFDM frames ?

4 次查看(过去 30 天)
Is it possible to convert directly a short video to OFDM frames ?

采纳的回答

Walter Roberson
Walter Roberson 2021-2-24
编辑:Walter Roberson 2021-2-24
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 个评论
Baghdadi Aya
Baghdadi Aya 2021-3-22
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 2021-3-24
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, []);

请先登录,再进行评论。

更多回答(0 个)

标签

Community Treasure Hunt

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

Start Hunting!

Translated by