- 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
- 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.
how to convert a video to OFDM frames ?
5 次查看(过去 30 天)
显示 更早的评论
Is it possible to convert directly a short video to OFDM frames ?
0 个评论
采纳的回答
Walter Roberson
2021-2-24
编辑:Walter Roberson
2021-2-24
No, it is not possible to convert directly.
You have two choices:
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 个评论
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 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 OFDM 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!