Crop decoded data intensively

Nicolas Dufresne nicolas at ndufresne.ca
Fri Apr 7 17:41:49 UTC 2017


Le vendredi 07 avril 2017 à 09:16 -0700, LC a écrit :
> After a while of googling i found out that i will have to block
> videocrop
> pads close to this way : 
> 
> gst_pad_set_blocked (pad, TRUE);
>  g_object_set (videocrop, "left", hcrop, "top", vcrop, NULL);
> gst_pad_set_blocked (pad, FALSE);

This is GStreamer 0.10 API, which is not supported anymore. In 1.0+ you
should use a probe. In this case, a data probe is sufficient, you can
safely change the properties in the probe callback as long as you don't
have a queue (or anything with a thread) between the pad you probe and
the videocrop element. Make sure to maintain the same output size if
you care about performance.

Changing the crop region has no impact on the timestamp.

Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170407/99ab26c8/attachment-0001.sig>


More information about the gstreamer-devel mailing list