It can be put in the pipeline. But you need to pump data into it from your application. Your application would be (sort of) the &#39;source&#39; and appsrc is like a cheat code to make the following elements think that there is actually a source element in there at the start of the pipeline feeding them gstbuffers.<div>
Try looking up the output format of filesrc element and package your data similarly and feed it to appsrc. Rest will be taken care by the bin/pipeline.</div><div><br></div><div>Rohit</div><div><br><div class="gmail_quote">
On Wed, Jan 5, 2011 at 11:34 AM, Brad Goldsmith <span dir="ltr">&lt;<a href="mailto:bradley.goldsmith@gmail.com">bradley.goldsmith@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Can appsrc be put in that pipeline, in place of filesrc, without any<br>
additional elements?<br>
<br>
Cheers,<br>
Brad<br>
<div><div></div><div class="h5"><br>
On Wed, Jan 5, 2011 at 1:55 AM, Tim-Philipp Müller &lt;<a href="mailto:t.i.m@zen.co.uk">t.i.m@zen.co.uk</a>&gt; wrote:<br>
&gt; On Tue, 2011-01-04 at 04:35 -0800, bcg wrote:<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt;&gt; This should almost be an FAQ but it&#39;s not in there so here goes:<br>
&gt;&gt;<br>
&gt;&gt; I have a pipeline thus:<br>
&gt;&gt;<br>
&gt;&gt; file-source -&gt;  decodebin -&gt; audioresample -&gt; converter -&gt; audio_output<br>
&gt;&gt;<br>
&gt;&gt; Using location (or fd if I change file_source to a fdsrc) I can happily play<br>
&gt;&gt; most audio I throw at it (including mp3s) providing its in a file. What I<br>
&gt;&gt; would like to do is play from a memory location with the mp3 data already in<br>
&gt;&gt; it.<br>
&gt;&gt;<br>
&gt;&gt; I am assuming I would need to use a fakesrc with a callback to get my data<br>
&gt;&gt; into the pipeline - I&#39;ve tried lots of variations on this and gotten<br>
&gt;&gt; nowhere.<br>
&gt;&gt;<br>
&gt;&gt; Can I just replace the file-source with the fakesrc, load the data and go<br>
&gt;&gt; (if this is possible couple someone provide an example)? Or do I have to<br>
&gt;&gt; worry about queues and caps? If so, can someone provide an example? Will<br>
&gt;&gt; decodebin suffice or will I have to be more specific?<br>
&gt;<br>
&gt; Use appsrc.<br>
&gt;<br>
&gt; Cheers<br>
&gt;  -Tim<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ------------------------------------------------------------------------------<br>
&gt; Learn how Oracle Real Application Clusters (RAC) One Node allows customers<br>
&gt; to consolidate database storage, standardize their database environment, and,<br>
&gt; should the need arise, upgrade to a full multi-node Oracle RAC database<br>
&gt; without downtime or disruption<br>
&gt; <a href="http://p.sf.net/sfu/oracle-sfdevnl" target="_blank">http://p.sf.net/sfu/oracle-sfdevnl</a><br>
&gt; _______________________________________________<br>
&gt; gstreamer-devel mailing list<br>
&gt; <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
&gt; <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
&gt;<br>
<br>
------------------------------------------------------------------------------<br>
Learn how Oracle Real Application Clusters (RAC) One Node allows customers<br>
to consolidate database storage, standardize their database environment, and,<br>
should the need arise, upgrade to a full multi-node Oracle RAC database<br>
without downtime or disruption<br>
<a href="http://p.sf.net/sfu/oracle-sfdevnl" target="_blank">http://p.sf.net/sfu/oracle-sfdevnl</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>
</div></div></blockquote></div><br></div>