How to convert video to bitstream with matlab function?

Hello! Somebody knows how to convert a video to bitstream by using function in matlab?
Thanks

回答 (1 件)

Walter Roberson
Walter Roberson 2015 年 10 月 30 日

0 投票

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, []).');

サインインしてコメントする。

質問済み:

2015 年 10 月 30 日

コメント済み:

2017 年 10 月 31 日

Community Treasure Hunt

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

Start Hunting!

Translated by