In first place, this is mi first message and my english is a bit out-dated ;-)
Well, here we go: i'm triying to do a SDL_Surface sink plugin (and maybe later a GL texture sink) using the code from the actual sdlvideosink to integrate it in a videogame and be able to play videos without effort. I thought at a first point that sdlvideosink would render it to a SDL_Surface, but it only render it to the screen using a SDL window :-( So i'm taking it's code and adapting it so it renders to a internal SDL_Surface and be able to get it accesing to it's GObject attribute (it's said, access to the SDL_Surface pointer where my sdlsurfacesink is painting and get it). But my problem is more simple (i hope to don't have ploblems with the SDL_Overlay... :-P ): i can't be able to compile my sdlsurfacesink, and i'm not be able to get info how to do it. In fact, i only found info about how to compile ALL GStreamer, but not only one (custom) plugin, and at the GStreamer Plugin Manual there's no info about it :-( So i'm asking about: 1º How i can be able to compile the plugin? GCC command line, makefile, developer tools... anything? 2ª How i can be able to notify GStreamer that i have this little-cool-&-cute plugin and i want to use it? :-P I have been playing a little with gst-launch-0.10, and compiled a pair of examples of how-to overlay an X11 output of GStreamer on a SDL window, and i have develop some SDL videogames before so i think i have all the environment to compile this little thing... I only want to know how a dummy like me can compile this :-P I'm using GCC 4.2 in Ubuntu 8.10 in a Intel Pentium III 1,1GHz, 320MB ram and Intel i810 videocard. The code from the sdlvideosink that i'm using as base for my sdlsurfacesink i found it on internet and seems to be a little outdated (doesn't have the fullscreen option of the actual, or at least i didn't fount it), but it has all that i need to learn how it works, how GObjects works, and more important, how to get the video and how to work with it :-P Thanks in advance and hopping your answer :-) P.D.: any question don't doubt in ask to me ;-) -- "Sonrie, aunque solo sea una sonrisa triste, porque mas triste que una sonrisa triste es la tristeza de no saber sonreir." Emblema de Sonrissa, una empresa con mucho futuro que termino en la quiebra y lo unico que saque en claro de mis vacaciones. Aumenta el indice de lectura del pais, ¡lee mi blog! :-D http://alcor12.alcorconwireless.net/drupal/blog/2 ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
El Piraña wrote:
> So i'm asking about: > > 1º How i can be able to compile the plugin? GCC command line, > makefile, developer tools... anything? > 2ª How i can be able to notify GStreamer that i have this > little-cool-&-cute plugin and i want to use it? :-P > There are two options, i think. 1) read that - http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-data-manager.html This way you can write a gstreamer element as part of your code and hook it up to GStreamer at runtime 2) Just pick gst-plugins-bad source tree, create a new subdirectiry in /ext,copy a makefile.am from /ext/sdl and adjust it accordingly. Although you will not be able to build *just* that plugin, unless you do cd /ext/yourplugindir before calling make. But at least your plugin will be properly integrated in -bad source tree :) ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Haha! Thanks for your answer!!! :-D
The first tip is really interesting, not what i was looking for, but it could be useful to my company (we are using GStreamer in our project and they were who showed me how wonderful is... :-) ). But in fact, the second one is more what i was looking since i would like to share the plugin later, so it's a good idea to have it integrated :-) I'll get the gst-plugins-bad source package and i'll start to experiment with that :-) In any case, it's true that it was my fault to spend 5 days looking for it before ask for it, but i think it could be a good idea to have that tips somewhere in the documentation (In the FAQ? In the next version of the plugin manual?), or have the option to compile and register individual plugins :-) Thanks for all in any case!!!! :-D 2009/4/8 LRN <[hidden email]>: > El Piraña wrote: >> So i'm asking about: >> >> 1º How i can be able to compile the plugin? GCC command line, >> makefile, developer tools... anything? >> 2ª How i can be able to notify GStreamer that i have this >> little-cool-&-cute plugin and i want to use it? :-P >> > There are two options, i think. > > 1) read that - > http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-data-manager.html > This way you can write a gstreamer element as part of your code and hook > it up to GStreamer at runtime > > 2) Just pick gst-plugins-bad source tree, create a new subdirectiry in > /ext,copy a makefile.am from /ext/sdl and adjust it accordingly. > Although you will not be able to build *just* that plugin, unless you do > cd /ext/yourplugindir before calling make. But at least your plugin will > be properly integrated in -bad source tree :) > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel > -- "Sonrie, aunque solo sea una sonrisa triste, porque mas triste que una sonrisa triste es la tristeza de no saber sonreir." Emblema de Sonrissa, una empresa con mucho futuro que termino en la quiebra y lo unico que saque en claro de mis vacaciones. Aumenta el indice de lectura del pais, ¡lee mi blog! :-D http://alcor12.alcorconwireless.net/drupal/blog/2 ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Finally i get to compile this after a problem with liboil :-D
Well, i have desinstalled the gstreamer-sdl package to ensure that i'm using my compiled-ones, and i have tinkered a little the sdl plugin to have a new sub-plugin, that is my own sdlsurfaceplugin. I have searched on the ./configure and other files and compiled all once to have that better integred, but i think is not necesary. Since that, i have only make cd <sources>/ext/sdl/ make install and it automatically compile my (modified) sdl plugin with the sdlsurfacesink (at this moment, a copy of sdlvideosink with renamed identifiers and some printf to know what is doing at each moment until i understand how i must to modify it) and install it in a non-package-version folder at /usr/local/lib/gstreamer-0.10. At make install advice, since that is not the ubuntu gstreamer directory i should use global vars and so, but it's a little messy and i didn't get no results, so i have made a little trick: since i desinstalled the original gstreamer-sdl package, i have make links (ln -s) from the original location (/usr/lib/gstreamer-0.10) to my new (modified) ones at /usr/local/lib/gstreamer-0.10... and it works :-D Now i can be able to tinker with the sdl plugin and experiment to create my new one :-) I hope i can have it soon if i can have some time and no too much problems with the sdl surface video overlay... :-D 2009/4/8 El Piraña <[hidden email]>: > Haha! Thanks for your answer!!! :-D > > The first tip is really interesting, not what i was looking for, but > it could be useful to my company (we are using GStreamer in our > project and they were who showed me how wonderful is... :-) ). > > But in fact, the second one is more what i was looking since i would > like to share the plugin later, so it's a good idea to have it > integrated :-) I'll get the gst-plugins-bad source package and i'll > start to experiment with that :-) > > In any case, it's true that it was my fault to spend 5 days looking > for it before ask for it, but i think it could be a good idea to have > that tips somewhere in the documentation (In the FAQ? In the next > version of the plugin manual?), or have the option to compile and > register individual plugins :-) > > Thanks for all in any case!!!! :-D > > 2009/4/8 LRN <[hidden email]>: >> El Piraña wrote: >>> So i'm asking about: >>> >>> 1º How i can be able to compile the plugin? GCC command line, >>> makefile, developer tools... anything? >>> 2ª How i can be able to notify GStreamer that i have this >>> little-cool-&-cute plugin and i want to use it? :-P >>> >> There are two options, i think. >> >> 1) read that - >> http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-data-manager.html >> This way you can write a gstreamer element as part of your code and hook >> it up to GStreamer at runtime >> >> 2) Just pick gst-plugins-bad source tree, create a new subdirectiry in >> /ext,copy a makefile.am from /ext/sdl and adjust it accordingly. >> Although you will not be able to build *just* that plugin, unless you do >> cd /ext/yourplugindir before calling make. But at least your plugin will >> be properly integrated in -bad source tree :) >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by: >> High Quality Requirements in a Collaborative Environment. >> Download a free trial of Rational Requirements Composer Now! >> http://p.sf.net/sfu/www-ibm-com >> _______________________________________________ >> gstreamer-devel mailing list >> [hidden email] >> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel >> > > > > -- > "Sonrie, aunque solo sea una sonrisa triste, porque mas triste que una > sonrisa triste es la tristeza de no saber sonreir." Emblema de > Sonrissa, una empresa con mucho futuro que termino en la quiebra y lo > unico que saque en claro de mis vacaciones. > > Aumenta el indice de lectura del pais, ¡lee mi blog! :-D > http://alcor12.alcorconwireless.net/drupal/blog/2 > -- "Sonrie, aunque solo sea una sonrisa triste, porque mas triste que una sonrisa triste es la tristeza de no saber sonreir." Emblema de Sonrissa, una empresa con mucho futuro que termino en la quiebra y lo unico que saque en claro de mis vacaciones. Aumenta el indice de lectura del pais, ¡lee mi blog! :-D http://alcor12.alcorconwireless.net/drupal/blog/2 ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |