How to convert video to bitstream with matlab function?

2 ビュー (過去 30 日間)
tiburce sotohou
tiburce sotohou 2015 年 10 月 30 日
コメント済み: Walter Roberson 2017 年 10 月 31 日
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