videoConvertSample

fngst.sample.Sample videoConvertSample(gst.sample.Sample sample, gst.caps.Caps toCaps, gst.types.ClockTime timeout)

Converts a raw video buffer into the specified output caps.

The output caps can be any raw video formats or any image formats (jpeg, png, ...).

The width, height and pixel-aspect-ratio can also be specified in the output caps.

Parameters

samplea #GstSample
toCapsthe #GstCaps to convert to
timeoutthe maximum amount of time allowed for the processing.

Returns

The converted #GstSample, or null if an error happened (in which case err

will point to the #GError).

Throws

[ErrorWrap]