videoConvertSample

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

sample gst.sample.Sample

a #GstSample

toCaps gst.caps.Caps

the #GstCaps to convert to

timeout gst.types.ClockTime

the maximum amount of time allowed for the processing.

Return Value

Type: gst.sample.Sample

The converted #GstSample, or null if an error happened (in which case err will point to the #GError).