[gst-devel] appsrc example

Bert Douglas bertd at tplogic.com
Fri Aug 27 18:05:23 CEST 2010


Thanks.


On Fri, Aug 27, 2010 at 10:52 AM, Sandeep Prakash <123sandy at gmail.com>wrote:

>
> Hi,
>
>
> Bert Douglas wrote:
> >
> > How do i hook the two apps together so the camera can act as a video
> > source?
> >
> Not sure how to do this in separate applications. But in the same
> application these are the steps:
> 1. First of all you have to get the appsrc GstElement object.
> 2. Then hook your function to the "need-data" callback of the appsrc. Do a
> gst-inspect of appsrc
> to get the function prototype.
> 3. When the pipeline goes to PAUSED/PLAYING the callback is called. Here
> you
> can feed your camera data thru "gst_app_src_push_buffer". The buffer size
> in
> the call back is the blocksize. Set blocksize of appsrc to
> the framesize of the raw buffer from camera.
> 4. You have set the appropriate caps on the src pad of the appsrc. Use
> capsfilter for this.
>
>
>
> Bert Douglas wrote:
> >
> > Is "appsrc" suited for this job?
> >
> Yes
>
>
> Bert Douglas wrote:
> >
> > Is it possible to send frames to appsrc?  Examples do not show this.
> >
> You can push any data thru appsrc as long as the downstream elements
> recognizes that data.
>
>
> Bert Douglas wrote:
> >
> > Another big issue is how to attach the appsrc element to a pipeline
> > created in another program?
> >
> Not sure on this.
>
> Regards,
> Sandeep
> http://sandeepprakash.homeip.net
> --
> View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/appsrc-example-tp2340623p2341303.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
> Be part of this innovative community and reach millions of netbook users
> worldwide. Take advantage of special opportunities to increase revenue and
> speed time-to-market. Join now, and jumpstart your future.
> http://p.sf.net/sfu/intel-atom-d2d
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20100827/51200f41/attachment.htm>


More information about the gstreamer-devel mailing list