H.264的十进制到base64转换

时间:2012-03-22 17:48:20

标签: base64 h.264

H264中的sps / pps如何转换为base64?我在规格上找不到这个。

感谢

1 个答案:

答案 0 :(得分:4)

RFC 6184在8.1. Media Type Registration中提到了这一点:

  sprop-parameter-sets:
     This parameter MAY be used to convey any sequence and picture
     parameter set NAL units (herein referred to as the initial
     parameter set NAL units) that can be placed in the NAL unit
     stream to precede any other NAL units in decoding order.  The
     parameter MUST NOT be used to indicate codec capability in any
     capability exchange procedure.  The value of the parameter is a
     comma-separated (',') list of base64 [7] representations of
     parameter set NAL units as specified in Sections 7.3.2.1 and
     7.3.2.2 of [1].  Note that the number of bytes in a parameter
     set NAL unit is typically less than 10, but a picture parameter
     set NAL unit can contain several hundred bytes.

Base64以直接的方式使用:它在输入(原始SPS / PPS字节数组)上输入二进制数据,并输出文本,例如,SDP的一部分。