Filter löschen
Filter löschen

How to convert video to bitstream with matlab function?

2 Ansichten (letzte 30 Tage)
tiburce sotohou
tiburce sotohou am 30 Okt. 2015
Kommentiert: Walter Roberson am 31 Okt. 2017
Hello! Somebody knows how to convert a video to bitstream by using function in matlab?
Thanks

Antworten (1)

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

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by