Play 2 mp3 file at same time.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


2010/4/20 giorgio <giorgio at ketron.it>:
> So I think the only way to play two differetne mp3 at same time for my
> hardware is to realize a pipe line with an aggregator ( or audio
> Mixer) .
>
> Src -> Decode ->\
> ? ? ? ? ? ? ? ? ----> AGGREGATOR -> AUDIO SINK
> Src -> Decode ->/
>
> Someone could explain me, how to realize a similar pipe line?
> How can I create an Aggregator ( or Audio mixer) element?
> Is Agregator a factory standard element provided with gstream
> framework?.

The "adder" element does exactly what you want. A little example:

gst-launch filesrc location=file1.mp3 ! mp3parse ! mad name=stream1 \
filesrc location=file2.mp3 ! mp3parse ! mad name=stream2 ! adder
name=adder ! alsasink \
stream1. ! adder.

Cheers,
Paul




[Index of Archives]     [Linux Embedded]     [Linux ARM Kernel]     [Linux for ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux Media]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux