<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le sam. 24 avr. 2021 12 h 45, amindfv--- via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I frequently find myself confused and not knowing where to look when I'm able to build a pipeline from A->B, and a pipeline from B->C, but not from A->B->C.<br>
<br>
For example, I can go from v4l2src->glupload:<br>
<br>
    $ gst-launch-1.0 v4l2src ! glupload ! glimagesink</blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
And I can go from glupload->glshader:<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">glimagesink is a bin, the key missing element is glcolorconvert which transforms yuv pixel into rgba in GL space.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
    $ gst-launch-1.0 videotestsrc ! glupload ! glshader fragment="\"`cat myshader.frag`\"" ! glimagesink<br>
<br>
But when I try and combine the two, I get an error:<br>
<br>
    $ gst-launch-1.0 v4l2src ! glupload ! glshader fragment="\"`cat myshader.frag`\"" ! glimagesink</blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
    WARNING: erroneous pipeline: could not link gluploadelement0 to</blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote></div></div><div dir="auto"><br></div><div dir="auto">So add glcolorconvert after glupload.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> glfiltershader0</blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
Where should I look when I hit issues like this? Is it always the case, for example, that A and B have negotiated a format that's incompatible with C? Or does it mean I need to provide more specific properties to A (or B, or C)? I don't see anything in gst-inspect that indicates they wouldn't all work together.<br>
<br>
Thanks,<br>
Tom<br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div></div></div>