Gst_caps_new_simple fails

Luca Bacci luca.bacci982 at gmail.com
Tue Jan 22 11:50:54 UTC 2019


For reference, I solved it using:

GstCaps *caps = gst_caps_from_string(
                "video/x-raw"
                ",format=(string)xRGB"
                ",width=(int)[1,2147483647]"
                ",height=(int)[1,2147483647]");

Luca

Il giorno dom 20 gen 2019 alle ore 16:20 Luca Bacci <luca.bacci982 at gmail.com>
ha scritto:

> Hi, I'm using GStreamer to decode video files and get a sequence of RGB
> frames that I paint in a widget of my application. This is the pipeline:
>
> filesrc ! decodebin ! videoconvert ! appsink
>
> I want RGB frames and for that I use the "caps" property of appsink but
>
> GstCaps *caps = gst_caps_new_simple("video/x-raw",
>                     "format", G_TYPE_STRING, "xRGB",
>                     NULL);
>
> fails and returns NULL caps, why?
>
> Thanks in advance,
> Luca
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190122/af34694f/attachment.html>


More information about the gstreamer-devel mailing list