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