关于MPEG-4标头

时间:2011-10-06 13:00:27

标签: mpeg-4

我检查了一些MPEG-4视频标题,并在开头看到了如下所示的一些字节数组:

00 00 01 B0 01 00 00 01 B5 89 13

我知道00 00 01部分,但究竟B0 B1B5 89 13部分是什么意思?实际上,如果我把这个字节数组放在MPEG-4流的前面,它可以正常工作。

但我不知道这些值是否适用于不同的mpeg-4流源?

1 个答案:

答案 0 :(得分:6)

0x000001B0 -> Visual Object Sequence Start (VOSS) Code
0x000001B5 -> Visual Object Start (VOS) Code

您可以在“ISO / IEC 14496-2”文档中找到完整的MPEG-4基本视频标头详细信息。以下是您要求的详细信息。

视觉对象序列启动(VOSS)代码

-> 4 bytes visual object sequence start code = long hex value of 0x000001B0
-> 8 bits profile/level indicator = 1 byte unsigned number

Visual Object Start(VOS)代码

-> 4 bytes visual object start code = long hex value of 0x000001B5
-> 1 bit has id marker flag = 1/4 nibble flag

_ID_Marker_Section_
-> 4 bits version id = 1 nibble unsigned value - only if marker is true
  - version id types are ISO 14496-2 = 1
-> 3 bits visual object priority = 3/4 nibble unsigned value - only if marker is true
  - priorities are 1 through to 7

-> 4 bits visual object type = 1 nibble unsigned value
  - types are video = 1 ; still texture = 2 ; mesh = 3 ; face = 4
-> 1 bit video signal type = 1/4 nibble flag
  - NOTE: if this is false Y has a sample range of 16 through to 235