h.264的SDP包含以下几个关键:
1、profile-level-id:
包含3个byte:1)profile_idc,2)constraint flag,3)level_idc。
数据按照Base16进行编码。
以上均为16进制。
此信息可以从编码码流中得到。
2、packetization-mode:
有3个值:0:single NAL mode,in section 6.2 of RFC 3984;
1:noninterleaved mode,in section 6.3 of RFC 3984;
2:interleaved mode,in section 6.4 of RFC 3984;
对于一帧只有一个NAL packet的码流,此值为1。
对于一帧有多个NAL packet的码流,此值为2。
3、sprop-parameter-sets:
可以用来传递SPS和PPS参数集。
按照解码顺序来传递,不同参数集之间使用“,”区分。
每个参数集通常小于10个字节,但有时PPS会有上百个字节。
数据按照Base64进行编码。
Base16和Base64编码参考RFC4648-The Base16, Base32, and Base64 Data Encodings。