Vaapidecode Format and OpenGL

Víctor M. Jáquez L. vjaquez at igalia.com
Wed Jun 14 11:07:44 UTC 2017


On 06/12/17 at 04:32am, Zelnes wrote:
> Arjen Veenhuizen wrote
> > Your code was probably scrubbed from the mailinglist. 
> 
> Yes, it's also what I think. Could I post it here ?
> 
> 
> Arjen Veenhuizen wrote
> > You can run 
> 
> > to get an idea of the caps in use. In code, you could use the notify::caps
> > signal on a GstPad to figure out which caps are in use.
> 
> Thanks, I now have an idea about the format used whith autovideosink. Do you
> know how I can set the caps ? Whenever I try to create a caps :
> GstCaps * caps = gst_caps_new_simple("video/x-raw", "format, G_TYPE_STRING,
> "RGBA", "width", G_TYPE_INT, 1920, "height", G_TYPE_INT, 1080, NULL);
> I get a Segfault. I wanted to set this either by linking vaapidecode to
> appsink using this filter, or by setting the caps on the vaapidecode src
> pad.

If you are getting a segmentation fault when creating a GstCaps instances,
that means that you have severe problems in you development
environment. Probably you're mixing libraries in run time.

> 
> 
> Arjen Veenhuizen wrote
> > W.r.t. 
> > GstSample
> > <https://developer.gnome.org/gstreamer/stable/gstreamer-GstSample.html>  
> >  vs 
> > GstBuffer
> > <https://developer.gnome.org/gstreamer/stable/gstreamer-GstBuffer.html>  
> > , you should find everything you need in the linked docs.
> 
> I'm still confused. Let me explain.
> I understand that when appsink has a new frame, it sends "new-sample"
> signal. In the callback used for this signal, I'm able to retrieve this
> sample, but then I don't know what to do with it. As i said, some uses the
> sample as the data to paint, but I'm not sure this is the right to do. I
> know that I can get the buffer from this sample, but I can't find where I
> can then get the pointer to the data, as GstBuffer is a container for
> GStreamer.
> 
> 
> 
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Vaapidecode-Format-and-OpenGL-tp4683302p4683305.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


More information about the gstreamer-devel mailing list