Thanks.<br><br><br><div class="gmail_quote">On Fri, Aug 27, 2010 at 10:52 AM, Sandeep Prakash <span dir="ltr"><<a href="mailto:123sandy@gmail.com">123sandy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Hi,<br>
<div class="im"><br>
<br>
Bert Douglas wrote:<br>
><br>
> How do i hook the two apps together so the camera can act as a video<br>
> source?<br>
><br>
</div>Not sure how to do this in separate applications. But in the same<br>
application these are the steps:<br>
1. First of all you have to get the appsrc GstElement object.<br>
2. Then hook your function to the "need-data" callback of the appsrc. Do a<br>
gst-inspect of appsrc<br>
to get the function prototype.<br>
3. When the pipeline goes to PAUSED/PLAYING the callback is called. Here you<br>
can feed your camera data thru "gst_app_src_push_buffer". The buffer size in<br>
the call back is the blocksize. Set blocksize of appsrc to<br>
the framesize of the raw buffer from camera.<br>
4. You have set the appropriate caps on the src pad of the appsrc. Use<br>
capsfilter for this.<br>
<div class="im"><br>
<br>
<br>
Bert Douglas wrote:<br>
><br>
> Is "appsrc" suited for this job?<br>
><br>
</div>Yes<br>
<div class="im"><br>
<br>
Bert Douglas wrote:<br>
><br>
> Is it possible to send frames to appsrc? Examples do not show this.<br>
><br>
</div>You can push any data thru appsrc as long as the downstream elements<br>
recognizes that data.<br>
<div class="im"><br>
<br>
Bert Douglas wrote:<br>
><br>
> Another big issue is how to attach the appsrc element to a pipeline<br>
> created in another program?<br>
><br>
</div>Not sure on this.<br>
<br>
Regards,<br>
Sandeep<br>
<a href="http://sandeepprakash.homeip.net" target="_blank">http://sandeepprakash.homeip.net</a><br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/appsrc-example-tp2340623p2341303.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/appsrc-example-tp2340623p2341303.html</a><br>
Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
<br>
------------------------------------------------------------------------------<br>
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program<br>
Be part of this innovative community and reach millions of netbook users<br>
worldwide. Take advantage of special opportunities to increase revenue and<br>
speed time-to-market. Join now, and jumpstart your future.<br>
<a href="http://p.sf.net/sfu/intel-atom-d2d" target="_blank">http://p.sf.net/sfu/intel-atom-d2d</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</blockquote></div><br>