How to get GstVideoInfo from GstBuffer

Nicolas Dufresne nicolas.dufresne at gmail.com
Wed Nov 16 15:24:47 UTC 2016


Le mercredi 16 novembre 2016 à 04:23 -0800, Baby Octopus a écrit :
> I'm getting GstBuffer *buffer in the callback. How can I extract
> GstVideoInfo fro GstBuffer?

You can't. You need to track the GST_CAPS_EVENT. This is of type
GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM. Then you can use
gst_event_parse_caps() and gst_video_info_from_caps().

Nicolas


More information about the gstreamer-devel mailing list