[gst-devel] Play audio from a memory buffer?
Rohit Atri
rohitratri at gmail.com
Wed Jan 5 07:29:20 CET 2011
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.
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.
Rohit
On Wed, Jan 5, 2011 at 11:34 AM, Brad Goldsmith <bradley.goldsmith at gmail.com
> wrote:
> Can appsrc be put in that pipeline, in place of filesrc, without any
> additional elements?
>
> Cheers,
> Brad
>
> On Wed, Jan 5, 2011 at 1:55 AM, Tim-Philipp Müller <t.i.m at zen.co.uk>
> wrote:
> > On Tue, 2011-01-04 at 04:35 -0800, bcg wrote:
> >
> > Hi,
> >
> >> This should almost be an FAQ but it's not in there so here goes:
> >>
> >> I have a pipeline thus:
> >>
> >> file-source -> decodebin -> audioresample -> converter -> audio_output
> >>
> >> Using location (or fd if I change file_source to a fdsrc) I can happily
> play
> >> most audio I throw at it (including mp3s) providing its in a file. What
> I
> >> would like to do is play from a memory location with the mp3 data
> already in
> >> it.
> >>
> >> I am assuming I would need to use a fakesrc with a callback to get my
> data
> >> into the pipeline - I've tried lots of variations on this and gotten
> >> nowhere.
> >>
> >> Can I just replace the file-source with the fakesrc, load the data and
> go
> >> (if this is possible couple someone provide an example)? Or do I have to
> >> worry about queues and caps? If so, can someone provide an example? Will
> >> decodebin suffice or will I have to be more specific?
> >
> > Use appsrc.
> >
> > Cheers
> > -Tim
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Learn how Oracle Real Application Clusters (RAC) One Node allows
> customers
> > to consolidate database storage, standardize their database environment,
> and,
> > should the need arise, upgrade to a full multi-node Oracle RAC database
> > without downtime or disruption
> > http://p.sf.net/sfu/oracle-sfdevnl
> > _______________________________________________
> > gstreamer-devel mailing list
> > gstreamer-devel at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> >
>
>
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment,
> and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> 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/20110105/8710d419/attachment.htm>
More information about the gstreamer-devel
mailing list