[Mp4-tech] h264 byte stream format question

Victor lyamtsev vlyamtsev gmail.com
Wed Jan 23 10:29:09 EST 2008


Hello,
I have to parse H264 files to read NAL units. I found that there's always 4
bytes offset
between end marker of one NAL and start of another.  The file can't be
decoded if I try to remove  those offsets - I see "codec not found" error
when I run decoder on the "reduced" file. Aren't NAL's supposed to be self
contained? Do those 4 bytes contain some meaningful information, or just
provided for alignment? If so, how should the NAL's be re- aligned when I
read them from file?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/mp4-tech/attachments/20080123/1c48222e/attachment.html


More information about the Mp4-tech mailing list