glshader opengl element gst1.5.1

Matthew Waters ystreet00 at gmail.com
Fri Aug 14 15:05:26 PDT 2015


Hi,

Currently you cannot just use any shader you grab off the internet in
glshader.  If the shader is ill-formed (syntax errors, etc) then we will
be unable to use it and glshader will error out appropriately (perhaps
with the obscure error).  You can see some debug information by setting
GST_DEBUG=3 or GST_DEBUG=gl*:7 for everything GL related about why it
failed to initialize and what it was trying to do.

The other thing to watch is that the attributes (position/texture
coordinates) must match the gst_gl_shader_set_uniform*() calls in
glshader.c otherwise GL does not know how to match the necessary
information to render the quad.

-Matt

On 14/08/15 12:07, Hamdi Rakkez wrote:
> Hi all,
>
> I'm using *gstreamer1.5.1* on ubuntu 14.04 LTS
>
> My question is why can't I use any *shader* file with *glshader* element.
> In most of the time I get this error message from *gstglfilter.c*
> "Subclass failed to initialize"
>
> I have a simple *shader* file which works actually but a lot of other
> files simply don't and *gstreamer* always come out with the same error
> mentioned above.
>
> Best,
> Hamdi

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150815/dde4a1ff/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150815/dde4a1ff/attachment-0001.sig>


More information about the gstreamer-devel mailing list