List Info

Thread: multiple source to one sink




multiple source to one sink
user name
2007-04-17 16:29:11
i'm trying to create an application that reads from 3
different files
and outputs to stdout.

i create 3 filesrc elements.  they each read from a
different file.  i
created a fakesink element and changed dump to true; so
output should
display to stdout.  i'm not sure how to "connect"
all these to work
properly.

i read in section 8.1.2 of the gstreamer application
development manual
about aggregators.  aggregators are elements that merge the
content of
several input streams together into one output stream.

how do i link all 3 filesrc elements to the 1 sink element? 
then change
state to play.  then i should see the file data output to
stdout,
interspersed.

thanks,
mike

------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
gstreamer-devel mailing list
gstreamer-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstream
er-devel

Re: multiple source to one sink
user name
2007-04-17 16:49:46
 

> -----Original Message-----
> From: Michael Horbovetz (horb) 
> Sent: Tuesday, April 17, 2007 4:40 PM
> To: 'Jerome Alet'
> Cc: gst-devellists.sourceforge.net
> Subject: RE: [gst-devel] multiple source to one sink
> 
> 
> they are just text files.  one file contains numerous
A's.  
> the next B's.  the next C's.  this is just a test
application 
> that i'm writing to see if this concept works.
> 
> i just want to read the files and display them to
stdout.
> 
> thanks,
> mike
>  
> 
> > -----Original Message-----
> > From: Jerome Alet [mailto:aletlibrelogiciel.com]
> > Sent: Tuesday, April 17, 2007 4:38 PM
> > To: Michael Horbovetz (horb)
> > Cc: gst-devellists.sourceforge.net
> > Subject: Re: [gst-devel] multiple source to one
sink
> > 
> > On Tue, Apr 17, 2007 at 02:29:11PM -0700, Michael
Horbovetz
> > (horb) wrote:
> > > 
> > > i'm trying to create an application that
reads from 3
> > different files
> > > and outputs to stdout.
> > > 
> > > i create 3 filesrc elements.  they each read
from a
> > different file.  i
> > > created a fakesink element and changed dump
to true; so
> > output should
> > > display to stdout.  i'm not sure how to
"connect" all 
> these to work 
> > > properly.
> > > 
> > > i read in section 8.1.2 of the gstreamer
application development 
> > > manual about aggregators.  aggregators are
elements that 
> merge the 
> > > content of several input streams together
into one output stream.
> > > 
> > > how do i link all 3 filesrc elements to the 1
sink element?  then 
> > > change state to play.  then i should see the
file data output to 
> > > stdout, interspersed.
> > 
> > The answer probably depends on what you want to do
exactly 
> with these 
> > input files and the format each of them is in.
> > 
> > For example if your files were all video streams,
you could 
> link them 
> > together using a 'videomixer' element.
> > 
> > hth
> > 
> > Jerome Alet
> > 

------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
gstreamer-devel mailing list
gstreamer-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstream
er-devel

Re: multiple source to one sink
user name
2007-04-18 02:17:22
Hi Michael

> how do i link all 3 filesrc elements to the 1 sink
element?  then change
> state to play.  then i should see the file data output
to stdout,
> interspersed.
I think you're looking for the 'adder' element, with which
you can merge
multiple streams to one...

Regards,
Mathis

-- 
DreamLab Technologies AG
Monbijoustrasse 36
3011 Bern
Switzerland

Tel: +41 31 398 66 66
Fax: +41 31 398 66 69

PGP Key ID: 2462240B


------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
gstreamer-devel mailing list
gstreamer-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstream
er-devel

Re: multiple source to one sink
user name
2007-04-18 03:57:43
Hi,

  Do you wish to:
  * mix together the contents of the 3 files ? (result would
be :
ABCABCABCABC...)
  * concatenate the contents of the 3 files ? (result would
be :
AAA...BBB...CCC...)

  For the first case, mixing is format-dependant, so you
need to give
us more info about the format you're using.
  For the second case, if it's audio/video you can use the
GNonLin
plugins which can help you create compositions of files. It
should
also work with any type of media, but hasn't been tested.

   Edward

On 4/17/07, Michael Horbovetz (horb) <horbcisco.com> wrote:
>
> i'm trying to create an application that reads from 3
different files
> and outputs to stdout.
>
> i create 3 filesrc elements.  they each read from a
different file.  i
> created a fakesink element and changed dump to true; so
output should
> display to stdout.  i'm not sure how to
"connect" all these to work
> properly.
>
> i read in section 8.1.2 of the gstreamer application
development manual
> about aggregators.  aggregators are elements that merge
the content of
> several input streams together into one output stream.
>
> how do i link all 3 filesrc elements to the 1 sink
element?  then change
> state to play.  then i should see the file data output
to stdout,
> interspersed.
>
> thanks,
> mike
>
>
------------------------------------------------------------
-------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2
express and take
> control of your XML. No limits. Just data. Click to get
it now.
> http://sourcefor
ge.net/powerbar/db2/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devellists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstream
er-devel
>


-- 
Edward Hervey
Multimedia editing developer / Fluendo S.A.
http://www.pitivi.org/

------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
gstreamer-devel mailing list
gstreamer-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstream
er-devel

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )