Function

GstPbutils-1.0GstPbutilscodec_utils_h264_caps_set_level_and_profile

  • Sets the level and profile in caps if it can be determined from sps. See gst_codec_utils_h264_get_level() and gst_codec_utils_h264_get_profile() for more details on the parameters.

    Parameters

    • caps: Gst.Caps

      the Gst.Caps to which the level and profile are to be added

    • sps: string | Uint8Array<ArrayBufferLike>

      Pointer to the sequence parameter set for the stream.

    Returns boolean

    true if the level and profile could be set, false otherwise.