Hello!
I'm planning to write a Gstreamer plugin that uses a C++ written library. I'm wondering if it's possible to mix C and C++ in gstreamer plugin development. Basically, my plugin will have two elements: a pure sink and a pure source. The sink will receive the video in a pad and send it, using the C++ library, through the network to other computer. I know, it can be done using RTP, RTSP and other network protocols with the existing gstreamer plugins, but I need for research purposes.
Thanks a lot for your time!
------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
It's possible. Check gst-plugins-bad/sys for dshowvideosink, dshowdecwrapper. Also gst-plugins-bad/ext/dirac can also be seen as example.
2010/8/17 José Luis Segura Lucas <[hidden email]> Hello! -- André Dieb Martins ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Thanks for your answer. I read something about Python Gstreamer, and see some examples for creating on a few lines Gstreamer Elements on a easy and faster way.
Now I'm only prototyping, but if I implement in the future something for a real use (not only research) I will take a look on that.
2010/8/17 André Dieb <[hidden email]> It's possible. Check gst-plugins-bad/sys for dshowvideosink, dshowdecwrapper. Also gst-plugins-bad/ext/dirac can also be seen as example. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Administrator
|
In reply to this post by José Luis Segura Lucas
That's possible, however, can cause problems while building GStreamer on the other platform, if your library doesn't build on that platform. I've met these problems and currently have very little idea about how to resolve them. The mpeg2enc plugin uses mjpegtools, which is written in C++ with inline asm. Visual C++ doesn't compile it. g++ builds it, and even mingw's g++ builds it, but Visual C++ cannot link to the generated library, as it doesn't understand g++ name mangling scheme. |
Free forum by Nabble | Edit this page |