Not sure I understand you, but NAL doesn't have length field. If the bytestream is wrapped in some container, then the container may contain some information about NALs, possibly even their length. Answer to second question is yes, you'll just have to search through the stream. You may take a look at , it has code for h.264 stream parsing.