Function

GstPbutils-1.0GstPbutilscodec_utils_h264_get_profile

  • Converts the profile indication (profile_idc) in the stream's sequence parameter set into a string. The SPS is expected to have the following format, as defined in the H.264 specification. The SPS is viewed as a bitstream here, with bit 0 being the most significant bit of the first byte.

    • Bit 0:7 - Profile indication
    • Bit 8 - constraint_set0_flag
    • Bit 9 - constraint_set1_flag
    • Bit 10 - constraint_set2_flag
    • Bit 11 - constraint_set3_flag
    • Bit 12 - constraint_set3_flag
    • Bit 13:15 - Reserved
    • Bit 16:24 - Level indication

    Parameters

    • sps: string | Uint8Array<ArrayBufferLike>

      Pointer to the sequence parameter set for the stream.

    Returns string

    The profile as a const string, or null if there is an error.