преобразование десятичного числа в base64 для H.264 - PullRequest
2 голосов
/ 22 марта 2012

Как sps / pps в H264 конвертируется в base64?Я не смог найти это в спецификации.

спасибо

1 Ответ

4 голосов
/ 23 марта 2012

RFC 6184 упоминает это в 8.1. Регистрация типа носителя :

  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.

...