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
2015-10-30
vidcontent = fileread('YourVideoFile.avi');
bitstream = reshape(dec2bin(vidcontent,8).', [], 1) - '0';
2 个评论
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
2017-10-31
reconstructed_vid = dec2bin(reshape(char(bitstream + '0'), 8, []).');
类别
在 帮助中心 和 File Exchange 中查找有关 Video Formats and Interfaces 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!