videoConvertSampleAsync

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.

callback will be called after conversion, when an error occurred or if conversion didn't finish after timeout. callback will always be called from the thread default glib.main_context.MainContext, see glib.main_context.MainContext.getThreadDefault. If GLib before 2.22 is used, this will always be the global default main context.

destroy_notify will be called after the callback was called and user_data is not needed anymore.

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.

callback gstvideo.types.VideoConvertSampleCallback

gstvideo.types.VideoConvertSampleCallback that will be called after conversion.