[gst-devel] Creating 1 or N src pads

Stefan Kost ensonic at hora-obscura.de
Sun Sep 16 13:36:59 CEST 2007


gael neuez wrote:
> Hi,
> I have been working on my soccer video tracking application lately (see my 
> previous posts), but I know have some concerns about 1 (among many) thing:
> I have my plugin receiving football video frames, and analysing them to find 
> players. So my sink pad is a video type. But as output, I want to send the 
> name and position of all players found in the frames. This information shall 
> be used later in the pipeline to load the player image and name, and display 
> that over the video (using filesrc, jpegdec, textoverlay and videomixer 
> elements for ex).
> My worry is how to send these information out of my plugin:
> -either I create one src pad, and I create and push to it the data I need 
> for each frame.
> -either I create a new src pad for each player I find, and push the data for 
> that player

You can also send own messages (gst_message_new_custom) or having pads with e.g.
"application/x-soccer-player-position" data type. Be prepared to use queue after
1:N elements to not stall the dataflow.


> I would rather take the first solution, and would be greatfull if someone 
> would have done something similar to advice me.
> Thanks
> Gael
> _________________________________________________________________
> Découvrez le Blog heroic Fantaisy d'Eragon! 
> http://eragon-heroic-fantasy.spaces.live.com/
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

More information about the gstreamer-devel mailing list