typeFindHelperForBufferWithCaps

fngst.caps.Caps typeFindHelperForBufferWithCaps(gst.object.ObjectWrap obj, gst.buffer.Buffer buf, gst.caps.Caps caps, out gst.types.TypeFindProbability prob)

Tries to find if type of media contained in the given #GstBuffer, matches caps specified, assumption being that the buffer represents the beginning of the stream or file.

Tries to find what type of data is contained in the given data, the assumption being that the data represents the beginning of the stream or file.

Only the typefinder matching the given caps will be called, if found. The caps with the highest probability will be returned, or null if the content of the data could not be identified.

Free-function: gst_caps_unref

Parameters

objobject doing the typefinding, or null (used for logging)
bufa #GstBuffer with data to typefind
capscaps of the media
problocation to store the probability of the found caps, or null

Returns

the #GstCaps corresponding to the data,

or null if no type could be found. The caller should free the caps returned with gst_caps_unref().