Log in

View Full Version : mp4 sample decoding(h264) question


terryleung
12th January 2009, 03:41
Hi all,

I've got a question regarding to the decoding process of h264 in a mp4 file

In a mp4 file, there is a stco table which point to the offset of the sample of a h264 frame.
my problem is , is this in fact a NAL unit as well and I can just decode it just like any other NAL unit (like seq parameter set and picture parameter set)

Also, is it possible to have multiple NAL unit in the same frame(the mp4 mdat area) and how to make it(just place the next NAL unit at the end?)

terryleung
12th January 2009, 04:29
I have seen in the spec that there is a term access unit which can contain a coded picture

my first question is, is this access unit the same as a frame in a mp4 file?

Here is the picture i cut from the spec
http://sites.google.com/site/mydownload123456/Home/h264-1.JPG?attredirects=0

my second question is , for example, I want to add a filler rbsp at the end of the acess unit,
where should i put it? just put it after the end of sequence or end of bitstream or before the end of sequence?