<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
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.<br>
<br>
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.<br>
<br>
-Matt<br>
<br>
<div class="moz-cite-prefix">On 14/08/15 12:07, Hamdi Rakkez wrote:<br>
</div>
<blockquote
cite="mid:%3CCAFXmeVtSOu+GbFE95=FpeZ9tgzoKJzAdiVuxy=dVH8R672nPwQ@mail.gmail.com%3E"
type="cite">
<div dir="ltr">
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763">Hi all,</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763"><br>
</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763">I'm using <b>gstreamer1.5.1</b>
on ubuntu 14.04 LTS</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763"><br>
</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763">My question is
why can't I use any <b>shader</b> file with <b>glshader</b>
element.</div>
<div class="gmail_default" style="font-family:'trebuchet
ms',sans-serif;font-size:large"><span
style="color:rgb(7,55,99)">In most of the time I get this
error message from <b>gstglfilter.c</b> "</span><font
color="#ff0000">Subclass failed to initialize</font><font
color="#073763">"</font></div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763"><br>
</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763">I have a simple <b>shader</b>
file which works actually but a lot of other files simply
don't and <b>gstreamer</b> always come out with the same
error mentioned above.</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763"><br>
</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763">Best,</div>
<div class="gmail_default" style="font-family:trebuchet
ms,sans-serif;font-size:large;color:#073763">Hamdi</div>
</div>
</blockquote>
<br>
</body>
</html>