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 'source' 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"><<a href="mailto:bradley.goldsmith@gmail.com">bradley.goldsmith@gmail.com</a>></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 <<a href="mailto:t.i.m@zen.co.uk">t.i.m@zen.co.uk</a>> wrote:<br>
> On Tue, 2011-01-04 at 04:35 -0800, bcg wrote:<br>
><br>
> Hi,<br>
><br>
>> This should almost be an FAQ but it's not in there so here goes:<br>
>><br>
>> I have a pipeline thus:<br>
>><br>
>> file-source -> decodebin -> audioresample -> converter -> audio_output<br>
>><br>
>> Using location (or fd if I change file_source to a fdsrc) I can happily play<br>
>> most audio I throw at it (including mp3s) providing its in a file. What I<br>
>> would like to do is play from a memory location with the mp3 data already in<br>
>> it.<br>
>><br>
>> I am assuming I would need to use a fakesrc with a callback to get my data<br>
>> into the pipeline - I've tried lots of variations on this and gotten<br>
>> nowhere.<br>
>><br>
>> Can I just replace the file-source with the fakesrc, load the data and go<br>
>> (if this is possible couple someone provide an example)? Or do I have to<br>
>> worry about queues and caps? If so, can someone provide an example? Will<br>
>> decodebin suffice or will I have to be more specific?<br>
><br>
> Use appsrc.<br>
><br>
> Cheers<br>
> -Tim<br>
><br>
><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>
><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>