video into binary stream

3 views (last 30 days)
PARTHIBAN RAMKUMAR
PARTHIBAN RAMKUMAR on 17 Mar 2012
how to covert video file to binary format?
  2 Comments
Image Analyst
Image Analyst on 17 Mar 2012
By binary, do you mean pure black and pure white like it had been thresholded, or do you mean binary as opposed to text, like an executable program is binary (not text) and if you open it in wordpad it looks like gibberish?
Walter Roberson
Walter Roberson on 17 Mar 2012
Oh, good question!

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 17 Mar 2012
mmreader() or VideoReader()
This will not give you a stream, though: it will give you an array of frames. You will have to figure out the order you want to stream the data in, and figure out whether you want to include any header information in the stream that indicates what the ordering is and what the height and width and number of planes are, and what the color encoding is. Oh yes and you have to figure out whether you are going to interleave or not. These are decisions you have to make in conjunction with the program that will receive the stream.

Community Treasure Hunt

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

Start Hunting!