gstpbutils.global

Global functions for gstpbutils1 library

fn codecUtilsAacCapsSetLevelAndProfile codecUtilsAacGetChannels codecUtilsAacGetIndexFromSampleRate codecUtilsAacGetLevel codecUtilsAacGetProfile codecUtilsAacGetSampleRate codecUtilsAacGetSampleRateFromIndex codecUtilsCapsFromMimeCodec codecUtilsCapsGetMimeCodec codecUtilsH264CapsSetLevelAndProfile codecUtilsH264GetLevel codecUtilsH264GetLevelIdc codecUtilsH264GetProfile codecUtilsH264GetProfileFlagsLevel codecUtilsH265CapsSetLevelTierAndProfile codecUtilsH265GetLevel codecUtilsH265GetLevelIdc codecUtilsH265GetProfile codecUtilsH265GetTier codecUtilsMpeg4videoCapsSetLevelAndProfile codecUtilsMpeg4videoGetLevel codecUtilsMpeg4videoGetProfile codecUtilsOpusCreateCapsFromHeader codecUtilsOpusParseCaps codecUtilsOpusParseHeader encodingListAllTargets encodingListAvailableCategories installPluginsAsync installPluginsInstallationInProgress installPluginsSupported installPluginsSync isMissingPluginMessage missingDecoderInstallerDetailNew missingDecoderMessageNew missingElementInstallerDetailNew missingElementMessageNew missingEncoderInstallerDetailNew missingEncoderMessageNew missingPluginMessageGetDescription missingPluginMessageGetInstallerDetail missingUriSinkInstallerDetailNew missingUriSinkMessageNew missingUriSourceInstallerDetailNew missingUriSourceMessageNew pbUtilsAddCodecDescriptionToTagList pbUtilsGetCapsDescriptionFlags pbUtilsGetCodecDescription pbUtilsGetDecoderDescription pbUtilsGetElementDescription pbUtilsGetEncoderDescription pbUtilsGetFileExtensionFromCaps pbUtilsGetSinkDescription pbUtilsGetSourceDescription pbUtilsInit pluginsBaseVersion pluginsBaseVersionString

Functions 56

fnbool codecUtilsAacCapsSetLevelAndProfile(gst.caps.Caps caps, ubyte[] audioConfig)Sets the level and profile on caps if it can be determined from audio_config. See [gstpbutils.global.codecUtilsAacGetLevel] and [gstpbutils.global.codecUtilsAacGetProfile] for more details on the p...
fnuint codecUtilsAacGetChannels(ubyte[] audioConfig)Returns the channels of the given AAC stream.
fnint codecUtilsAacGetIndexFromSampleRate(uint rate)Translates the sample rate to the index corresponding to it in AAC spec.
fnstring codecUtilsAacGetLevel(ubyte[] audioConfig)Determines the level of a stream as defined in ISO/IEC 14496-3. For AAC LC streams, the constraints from the AAC audio profile are applied. For AAC Main, LTP, SSR and others, the Main profile is used.
fnstring codecUtilsAacGetProfile(ubyte[] audioConfig)Returns the profile of the given AAC stream as a string. The profile is normally determined using the AudioObjectType field which is in the first 5 bits of audio_config
fnuint codecUtilsAacGetSampleRate(ubyte[] audioConfig)Translates the sample rate index found in AAC headers to the actual sample rate.
fnuint codecUtilsAacGetSampleRateFromIndex(uint srIdx)Translates the sample rate index found in AAC headers to the actual sample rate.
fngst.caps.Caps codecUtilsCapsFromMimeCodec(string codecsField)Converts a RFC 6381 compatible codec string to #GstCaps. More than one codec string can be present (separated by `,`).
fnstring codecUtilsCapsGetMimeCodec(gst.caps.Caps caps)Converts caps to a RFC 6381 compatible codec string if possible.
fnbool codecUtilsH264CapsSetLevelAndProfile(gst.caps.Caps caps, ubyte[] sps)Sets the level and profile in caps if it can be determined from sps. See [gstpbutils.global.codecUtilsH264GetLevel] and [gstpbutils.global.codecUtilsH264GetProfile] for more details on the parameters.
fnstring codecUtilsH264GetLevel(ubyte[] sps)Converts the level indication (level_idc) in the stream's sequence parameter set into a string. The SPS is expected to have the same format as for [gstpbutils.global.codecUtilsH264GetProfile].
fnubyte codecUtilsH264GetLevelIdc(string level)Transform a level string from the caps into the level_idc
fnstring codecUtilsH264GetProfile(ubyte[] sps)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 ...
fnbool codecUtilsH264GetProfileFlagsLevel(ubyte[] codecData, out ubyte profile, out ubyte flags, out ubyte level)Parses profile, flags, and level from a H264 AVCC extradata/sequenceheader. These are most commonly retrieved from a video/x-h264 caps with a codecdata buffer.
fnbool codecUtilsH265CapsSetLevelTierAndProfile(gst.caps.Caps caps, ubyte[] profileTierLevel)Sets the level, tier and profile in caps if it can be determined from profiletierlevel. See [gstpbutils.global.codecUtilsH265GetLevel], [gstpbutils.global.codecUtilsH265GetTier] and [gstpbutils.glo...
fnstring codecUtilsH265GetLevel(ubyte[] profileTierLevel)Converts the level indication (generallevelidc) in the stream's profiletierlevel structure into a string. The profieltierlevel is expected to have the same format as for [gstpbutils.global.codecUti...
fnubyte codecUtilsH265GetLevelIdc(string level)Transform a level string from the caps into the level_idc
fnstring codecUtilsH265GetProfile(ubyte[] profileTierLevel)Converts the profile indication (generalprofileidc) in the stream's profileleveltier structure into a string. The profiletierlevel is expected to have the following format, as defined in the H.265 ...
fnstring codecUtilsH265GetTier(ubyte[] profileTierLevel)Converts the tier indication (generaltierflag) in the stream's profiletierlevel structure into a string. The profiletierlevel is expected to have the same format as for [gstpbutils.global.codecUtil...
fnbool codecUtilsMpeg4videoCapsSetLevelAndProfile(gst.caps.Caps caps, ubyte[] visObjSeq)Sets the level and profile in caps if it can be determined from visobjseq. See [gstpbutils.global.codecUtilsMpeg4videoGetLevel] and [gstpbutils.global.codecUtilsMpeg4videoGetProfile] for more detai...
fnstring codecUtilsMpeg4videoGetLevel(ubyte[] visObjSeq)Converts the level indication in the stream's visual object sequence into a string. visobjseq is expected to be the data following the visual object sequence start code. Only the first byte (profil...
fnstring codecUtilsMpeg4videoGetProfile(ubyte[] visObjSeq)Converts the profile indication in the stream's visual object sequence into a string. visobjseq is expected to be the data following the visual object sequence start code. Only the first byte (prof...
fngst.caps.Caps codecUtilsOpusCreateCapsFromHeader(gst.buffer.Buffer header, gst.buffer.Buffer comments = null)Creates Opus caps from the given OpusHead header and comment header comments.
fnbool codecUtilsOpusParseCaps(gst.caps.Caps caps, out uint rate, out ubyte channels, out ubyte channelMappingFamily, out ubyte streamCount, out ubyte coupledCount, ref ubyte[] channelMapping)Parses Opus caps and fills the different fields with defaults if possible.
fnbool codecUtilsOpusParseHeader(gst.buffer.Buffer header, out uint rate, out ubyte channels, out ubyte channelMappingFamily, out ubyte streamCount, out ubyte coupledCount, ref ubyte[] channelMapping, out ushort preSkip, out short outputGain)Parses the OpusHead header.
fngstpbutils.encoding_target.EncodingTarget[] encodingListAllTargets(string categoryname = null)List all available #GstEncodingTarget for the specified category, or all categories if categoryname is null.
fnstring[] encodingListAvailableCategories()Lists all #GstEncodingTarget categories present on disk. Returns: A list of #GstEncodingTarget categories.
fngstpbutils.types.InstallPluginsReturn installPluginsAsync(string[] details, gstpbutils.install_plugins_context.InstallPluginsContext ctx, gstpbutils.types.InstallPluginsResultFunc func)Requests plugin installation without blocking. Once the plugins have been installed or installation has failed, func will be called with the result of the installation and your provided user_data p...
fnbool installPluginsInstallationInProgress()Checks whether plugin installation (initiated by this application only) is currently in progress. Returns: TRUE if plugin installation is in progress, otherwise FALSE
fnbool installPluginsSupported()Checks whether plugin installation is likely to be supported by the current environment. This currently only checks whether the helper script that is to be provided by the distribution or operating...
fngstpbutils.types.InstallPluginsReturn installPluginsSync(string[] details, gstpbutils.install_plugins_context.InstallPluginsContext ctx = null)Requests plugin installation and block until the plugins have been installed or installation has failed.
fnbool isMissingPluginMessage(gst.message.Message msg)Checks whether msg is a missing plugins message.
fnstring missingDecoderInstallerDetailNew(gst.caps.Caps decodeCaps)Returns an opaque string containing all the details about the missing element to be passed to an external installer called via [gstpbutils.global.installPluginsAsync] or [gstpbutils.global.installP...
fngst.message.Message missingDecoderMessageNew(gst.element.Element element, gst.caps.Caps decodeCaps)Creates a missing-plugin message for element to notify the application that a decoder element for a particular set of (fixed) caps is missing. This function is mainly for use in plugins.
fnstring missingElementInstallerDetailNew(string factoryName)Returns an opaque string containing all the details about the missing element to be passed to an external installer called via [gstpbutils.global.installPluginsAsync] or [gstpbutils.global.installP...
fngst.message.Message missingElementMessageNew(gst.element.Element element, string factoryName)Creates a missing-plugin message for element to notify the application that a certain required element is missing. This function is mainly for use in plugins.
fnstring missingEncoderInstallerDetailNew(gst.caps.Caps encodeCaps)Returns an opaque string containing all the details about the missing element to be passed to an external installer called via [gstpbutils.global.installPluginsAsync] or [gstpbutils.global.installP...
fngst.message.Message missingEncoderMessageNew(gst.element.Element element, gst.caps.Caps encodeCaps)Creates a missing-plugin message for element to notify the application that an encoder element for a particular set of (fixed) caps is missing. This function is mainly for use in plugins.
fnstring missingPluginMessageGetDescription(gst.message.Message msg)Returns a localised string describing the missing feature, for use in error dialogs and the like. Should never return NULL unless msg is not a valid missing-plugin message.
fnstring missingPluginMessageGetInstallerDetail(gst.message.Message msg)Returns an opaque string containing all the details about the missing element to be passed to an external installer called via [gstpbutils.global.installPluginsAsync] or [gstpbutils.global.installP...
fnstring missingUriSinkInstallerDetailNew(string protocol)Returns an opaque string containing all the details about the missing element to be passed to an external installer called via [gstpbutils.global.installPluginsAsync] or [gstpbutils.global.installP...
fngst.message.Message missingUriSinkMessageNew(gst.element.Element element, string protocol)Creates a missing-plugin message for element to notify the application that a sink element for a particular URI protocol is missing. This function is mainly for use in plugins.
fnstring missingUriSourceInstallerDetailNew(string protocol)Returns an opaque string containing all the details about the missing element to be passed to an external installer called via [gstpbutils.global.installPluginsAsync] or [gstpbutils.global.installP...
fngst.message.Message missingUriSourceMessageNew(gst.element.Element element, string protocol)Creates a missing-plugin message for element to notify the application that a source element for a particular URI protocol is missing. This function is mainly for use in plugins.
fnbool pbUtilsAddCodecDescriptionToTagList(gst.tag_list.TagList taglist, string codecTag, gst.caps.Caps caps)Adds a codec tag describing the format specified by caps to taglist.
fngstpbutils.types.PbUtilsCapsDescriptionFlags pbUtilsGetCapsDescriptionFlags(gst.caps.Caps caps)Returns flags that describe the format of the caps if known. No flags are set for unknown caps.
fnstring pbUtilsGetCodecDescription(gst.caps.Caps caps)Returns a localised (as far as this is possible) string describing the media format specified in caps, for use in error dialogs or other messages to be seen by the user. Should never return NULL un...
fnstring pbUtilsGetDecoderDescription(gst.caps.Caps caps)Returns a localised string describing an decoder for the format specified in caps, for use in error dialogs or other messages to be seen by the user.
fnstring pbUtilsGetElementDescription(string factoryName)Returns a localised string describing the given element, for use in error dialogs or other messages to be seen by the user.
fnstring pbUtilsGetEncoderDescription(gst.caps.Caps caps)Returns a localised string describing an encoder for the format specified in caps, for use in error dialogs or other messages to be seen by the user.
fnstring pbUtilsGetFileExtensionFromCaps(gst.caps.Caps caps)Returns a possible file extension for the given caps, if known.
fnstring pbUtilsGetSinkDescription(string protocol)Returns a localised string describing a sink element handling the protocol specified in protocol, for use in error dialogs or other messages to be seen by the user.
fnstring pbUtilsGetSourceDescription(string protocol)Returns a localised string describing a source element handling the protocol specified in protocol, for use in error dialogs or other messages to be seen by the user.
fnvoid pbUtilsInit()Initialises the base utils support library. This function is not thread-safe. Applications should call it after calling [gst.global.init], plugins should call it from their plugininit function.
fnvoid pluginsBaseVersion(out uint major, out uint minor, out uint micro, out uint nano)Gets the version number of the GStreamer Plugins Base libraries.
fnstring pluginsBaseVersionString()This function returns a string that is useful for describing this version of GStreamer's gst-plugins-base libraries to the outside world: user agent strings, logging, about dialogs ... Returns: a n...