How to convert video to bitstream with matlab function?

2 次查看(过去 30 天)
Hello! Somebody knows how to convert a video to bitstream by using function in matlab?
Thanks

回答(1 个)

Walter Roberson
Walter Roberson 2015-10-30
vidcontent = fileread('YourVideoFile.avi');
bitstream = reshape(dec2bin(vidcontent,8).', [], 1) - '0';
  2 个评论
Dibya Rath
Dibya Rath 2017-10-31
How to reverse this process? means how to get the video from the bit stream in receiver end?
Walter Roberson
Walter Roberson 2017-10-31
reconstructed_vid = dec2bin(reshape(char(bitstream + '0'), 8, []).');

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by