skorotkov / ossbuild

GStreamer 0.10 windows build environment. Automatically exported from code.google.com/p/ossbuild
Other
0 stars 0 forks source link

glshader plugin not included #70

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

There's no 'glshader' plugin included with the Win32 GStreamer plugins.

Original issue reported on code.google.com by ajlen...@gmail.com on 31 Aug 2010 at 7:43

GoogleCodeExporter commented 8 years ago
Working on it :)

Original comment by ylatuya on 31 Aug 2010 at 8:32

GoogleCodeExporter commented 8 years ago
I'm not very familiar with this set of plugins, but I can't even find the 
sources for this plugin. I have update everything to git master, but still 
can't find it.

Original comment by ylatuya on 31 Aug 2010 at 8:48

GoogleCodeExporter commented 8 years ago
Oooh, I found it :)

Original comment by ylatuya on 31 Aug 2010 at 8:51

GoogleCodeExporter commented 8 years ago

Thanks for taking a look at this. GStreamer is new to me so I'm not sure of the 
answer.

I've been looking at some information here:

http://blogs.elphel.com/2009/11/interfacing-elphel-cameras-with-gstreamer-opencv
-opengl-and-python-get-profit-of-dsp-or-gpu-based-optimisation-control-camera-se
ttings-from-python-application-or-human-interface-device-hid/

This chap makes reference to the "emergine" glshader plugin, which seems a 
really useful thing to me!

"Luc Deschenaux for introducing me to GStreamer; for the rtspsrc, rtpjpegdepay 
and gst-plugins-gl patches; the emerging glshader plugin and GLSL scripts.. And 
all the good rum (which is to blame if I forgot to mention something…)"

I'll have a look for the source...

Original comment by ajlen...@gmail.com on 31 Aug 2010 at 8:53

GoogleCodeExporter commented 8 years ago
Great :)

Original comment by ajlen...@gmail.com on 31 Aug 2010 at 8:53

GoogleCodeExporter commented 8 years ago
It looks like this plugin doesn't exists anymore. I can find a shader element 
in the libgstgl library, but not like a plugin, it's now part of the gl core. 
It has probably been replaced... You should ask on #gstreamer channel.

Original comment by ylatuya on 31 Aug 2010 at 9:02

GoogleCodeExporter commented 8 years ago
Anyway I have update the gl module r821.
I'm closing this bug because most likely the shader plugin has been replace 
with new plugins 
(http://www.gstreamer.net/data/doc/gstreamer/head/gst-plugins-gl-libs/html/GstGL
Shader.html).

Original comment by ylatuya on 31 Aug 2010 at 9:06

GoogleCodeExporter commented 8 years ago

Mmm - I see what you mean. There's source here:

http://gst-plugins-gl0.10.sourcearchive.com/documentation/0.10.1/gstglshader_8c-
source.html

But I guess you'd expect it in the master Git branch:

http://cgit.freedesktop.org/gstreamer/gst-plugins-gl/tree/gst/gl?h=master

Odd it isn't there as that would seem to be the appropriate place?

I'll have to ask them

Original comment by ajlen...@gmail.com on 31 Aug 2010 at 9:07

GoogleCodeExporter commented 8 years ago
It's in git master 
(http://cgit.freedesktop.org/gstreamer/gst-plugins-gl/tree/gst-libs/gst/gl), 
but not in the plugins folder. That's mean it now part of the gl library and 
probaly gl plugins are now built on top of it.

Original comment by ylatuya on 31 Aug 2010 at 9:10

GoogleCodeExporter commented 8 years ago
You should poke 'fargiolas' on irc. He is the man for the gl stuff in gstreamer 
:)

Original comment by ylatuya on 31 Aug 2010 at 9:11

GoogleCodeExporter commented 8 years ago

I shall do that then thanks :)

Just trying to get to grips with this though... If I understand you and 
gstglshader.c has been migrated into the core, then it should still be present 
in the Win32 build of GStreamer shouldn't it?

I'm working through the manual here, but it looks as though there's a registry 
for these individual plugins and gst-inspect should tell me gstglshader is 
present?

Original comment by ajlen...@gmail.com on 31 Aug 2010 at 9:16

GoogleCodeExporter commented 8 years ago
No, what I mean is that the shader code is now part of the libgstgl and is not 
a plugin anymore. In gstreamer you have the plugins (located in $source/gst) 
and the gstreamer libraries (located in $source/gst-libs, where the shader code 
is). That means that this element is part of the gstreamer's opengl library, 
which means opengl plugins are using it in some way.
What probaly happened is that gstshader started as a basic plugin and then it 
was moved to the gstreamer's opengl library to be reused by the opengl plugins 
using it like a base class.

Original comment by ylatuya on 31 Aug 2010 at 9:42

GoogleCodeExporter commented 8 years ago

My apologies! I think I've misunderstood what's going on here...

I had thought that this "glshader" plugin would be a part of the main GStreamer 
tree as it seems incredibly useful to me to be able to load and compile an 
OpenGL GLSL script from a file and then apply that on the fly without having to 
recompile plugins.

I think the misunderstanding is that the source code we're talking about 
perhaps doesn't do this at all. From what you've shown me perhaps this is just 
the underlying core code but is not actually exposed for use by the end user.

Looking back at the original article I see it says:

"While I was drafting this article, Luc Deschenaux wrote a new GST-GL plug-in 
allowing to load and apply a GLSL script. And here are few simple examples of 
the power of GLSL."

So maybe I need to contact Luc and ask if he will provide me with his plugin...

Original comment by ajlen...@gmail.com on 31 Aug 2010 at 10:04

GoogleCodeExporter commented 8 years ago
Hi again,

Thanks for your time on this. I've located the patch now and will use that here.

fyi - https://bugzilla.gnome.org/show_bug.cgi?id=600195

Presumably you wouldn't want to incorporate that into the Win32 tree unless 
it's included upstream. I would hope the GStreamer team would do that as it 
strikes me as a very useful plugin.

Thanks again...

Original comment by ajlen...@gmail.com on 1 Sep 2010 at 10:03

GoogleCodeExporter commented 8 years ago
I did setup a git repository for backup, and so that people I dont know can
also use my work before years..

-----------------------------------------------------------------
You can easily include my plugin in your local repository with:
    git remote add glfiltershader git://git.miprosoft.com/gst-plugins-gl
    git pull glfiltershader master

I will not use this branch for the development version.

-----------------------------------------------------------------
You can also browse my repository at http://git.miprosoft.com

Or download it with
    git clone git://git.miprosoft.com/gst-plugins-gl

In the case my repository is outdated, it can be updated with the official one:
    git remote add upstream
git://anongit.freedesktop.org/gstreamer/gst-plugins-gl.git
    git pull upstream master

You can inspect or revert changes with gitk

Original comment by androigo@gmail.com on 30 Jun 2011 at 1:05

GoogleCodeExporter commented 8 years ago
damn dummy gmail address was overriding the one i used for registration :-) I 
had to delete my google account to get rid of it :-D

Original comment by luc.desc...@freesurf.ch on 30 Jun 2011 at 1:16