Hello,
I'm trying to create a simple chain element that takes two inputs (a raw video and a data structure), makes some calculations, and sends it to a single output. I have created a simple chain function with a single input and output. How do I add another sink pad? Does every pad need to have a separate chain function, or could both go to the same one? What would be the best (and preferably simplest) example for this? Thanks,
All your bases are belong to us.
|
Hi there,
One of the things I needed answering too :D .. I used a VideoMixer and linked a live and test picture to the same VideoMixer link_many(Videomixer, outputSink,NULL); link_many(videosource1,Videomixer,NULL); link_many(videosource2,Videomixer,NULL); Videosource1 and 2 get mixed and output is the mixed video images. Richard On 4 May 2012 18:53, iron_guitarist1987 <[hidden email]> wrote: > Hello, > > I'm trying to create a simple chain element that takes two inputs (a raw > video and a data structure), makes some calculations, and sends it to a > single output. > > I have created a simple chain function with a single input and output. How > do I add another sink pad? Does every pad need to have a separate chain > function, or could both go to the same one? > > What would be the best (and preferably simplest) example for this? > > Thanks, > > -- > View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Combining-two-sinks-into-one-source-tp4609281.html > Sent from the GStreamer-devel mailing list archive at Nabble.com. > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Thanks Richard,
I opened the Videomixer code from plugins-good, but the code is very long (Almost 2000 lines just on videomixer.c) and complex. Is there any simpler example (I'm fairly new to Gstreamer)? Both sink pads can be always pads. Do you know if there's a template or a tutorial out there? Thanks, Jason
All your bases are belong to us.
|
Not that I know if... I am fairly new to Gstreamer too and am battling
to take my own advice! (I get Internal errors when combining DVB-Mpeg and a VideotestSrc) I am busy writing my memoirs on Gstreamer hoping that others don't have to make the same mistakes I make :D but so far I seem to be making more mistakes :P Richard On 7 May 2012 16:14, iron_guitarist1987 <[hidden email]> wrote: > Thanks Richard, > > I opened the Videomixer code from plugins-good, but the code is very long > (Almost 2000 lines just on videomixer.c) and complex. > > Is there any simpler example (I'm fairly new to Gstreamer)? Both sink pads > can be always pads. Do you know if there's a template or a tutorial out > there? > > Thanks, > > Jason > > -- > View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Combining-two-sinks-into-one-source-tp4609281p4615080.html > Sent from the GStreamer-devel mailing list archive at Nabble.com. > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
I see. Well, I'll try to take on this task too. I will use the avimux element and try to create a comprehensive guide and a generic plugin to save any future headaches.
I'll keep you posted if I find any major breakthroughs or questions.
All your bases are belong to us.
|
In reply to this post by iron_guitarist1987
On 05/07/2012 05:14 PM, iron_guitarist1987 wrote:
> Thanks Richard, > > I opened the Videomixer code from plugins-good, but the code is very long > (Almost 2000 lines just on videomixer.c) and complex. > > Is there any simpler example (I'm fairly new to Gstreamer)? Both sink pads > can be always pads. Do you know if there's a template or a tutorial out > there? Take a look at the inderleave/deinterleave elements from gst-plugins-good. they are for audio, but shorter :) Stefan > > Thanks, > > Jason > > -- > View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Combining-two-sinks-into-one-source-tp4609281p4615080.html > Sent from the GStreamer-devel mailing list archive at Nabble.com. > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |