title: Manage Camera video stream with MatLab
body: <p>I can receive from the camera a packet that contains information about the frame. So, I know its size. The rest of the packet is an array of bytes (uint8).</p>
  
  <p>I would like to know how to manage this packet of bytes and how to decode it in order to get a frame. I know from the header that the frame can be I-frame or P-frame and that its size is 640x360. The encoding can be set to H264 or MP4. I'm working with MatLab script, which is an M-file. If MatLab cannot manage this array of bytes directly, I would like to know how a byte stream works, to be able to re-assamble the frame myself.  </p>