Mixing Audio Streams

Andrea König andrea.koenig at gmatic.de
Sun Apr 17 23:46:25 PDT 2011


Hi vineeth,
I had to do some other work that's why I answer so late. I found out 
what the right pipeline is for mixing several audio files. The command
gst-launch adder name=mix ! audioconvert ! lamemp3enc ! filesink 
location=out.mp3 filesrc location=input1.wav ! wavparse ! audioconvert ! 
mix. filesrc location=input2.wav ! wavparse ! audioconvert ! mix.
works fine for me.

Thanks all for your help.

-- 
Best regards

Dr. Andrea König
(Development)

G.punkt - medical services
Ihre Wünsche sind unser Konzept
Halberstädter Str. 115 A
39112 Magdeburg

fon: +49 391 280380
fax: +49 391 2803822

mail: andrea.koenig at gmatic.de
inet: www.gmatic.de

Institutskennzeichen: IK331530332, O.I.D.: 1.2.276.0.76.3.1.51; G.punkt ist Trust center zertifiziert für  elektronischen Datenaustausch mit Leistungserbringern, GF: Tino Graßhof, ST-ID: DE210661356; Nr.: 101-225-04463; Großhandelserlaubnis nach § 52a Arzneimittelgesetz, G.punkt ist Mitglied im N.I.R. Netzwerk für innovative Rheumadiagnostik und -therapie




Am 25.03.2011 16:18, schrieb vineeth:
> Hi,
>   Probably some element is missing. Enable the logs, with export 
> GST_DEBUG=3 and check for messages, this should give some clue.
> --vineeth
>
>
> 2011/3/25 Andrea König <andrea.koenig at gmatic.de 
> <mailto:andrea.koenig at gmatic.de>>
>
>     Hi,
>     thanks for reply. I tried the pipeline you posted. Unfortunately I
>     run into problems:
>
>     gst-launch filesrc location=/home/user/audio_tmp/tmp_audio_0.aif !
>     decodebin ! adder name=mix ! alsasink ! filesrc
>     location=/home/user/audio_tmp/tmp_audio_1.aif ! decodebin ! mix.
>
>     Setting pipeline to PAUSED ...
>     Pipeline is PREROLLING ...
>     ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc1:
>     Internal data flow error.
>     Additional debug info:
>     gstbasesrc.c(2574): gst_base_src_loop ():
>     /GstPipeline:pipeline0/GstFileSrc:filesrc1:
>     streaming task paused, reason not-linked (-1)
>     ERROR: pipeline doesn't want to preroll.
>     Setting pipeline to NULL ...
>     Freeing pipeline ...
>
>     What do I wrong with my pipeline?
>
>     Best regards
>     Andrea
>
>
>     Am 24.03.2011 07:27, schrieb vineeth:
>>     2011/3/18 Andrea König <andrea.koenig at gmatic.de
>>     <mailto:andrea.koenig at gmatic.de>>
>>
>>         Hi,
>>         thanks for your reply. Can the adder be used in a java
>>         development project. I googled but didn't found any examples
>>         for usage. Could you give a short example how to use?
>>
>>
>>     Here is a short example :
>>
>>     filesrc location=wav1.wav ! decodebin ! adder name=mix ! alsasink
>>     filesrc location=wav2.wav ! decodebin ! mix.",
>>
>>     HTH.
>>
>>
>>         Thanks in advanced.
>>
>>         Best regards
>>
>>         Dr. Andrea König
>>         (Development)
>>
>>         G.punkt - medical services
>>         Ihre Wünsche sind unser Konzept
>>         Halberstädter Str. 115 A
>>         39112 Magdeburg
>>
>>         fon: +49 391 280380
>>         fax: +49 391 2803822
>>
>>         mail:andrea.koenig at gmatic.de  <mailto:andrea.koenig at gmatic.de>
>>         inet:www.gmatic.de  <http://www.gmatic.de>
>>
>>         Institutskennzeichen: IK331530332, O.I.D.: 1.2.276.0.76.3.1.51; G.punkt ist Trust center zertifiziert für  elektronischen Datenaustausch mit Leistungserbringern, GF: Tino Graßhof, ST-ID: DE210661356; Nr.: 101-225-04463; Großhandelserlaubnis nach § 52a Arzneimittelgesetz, G.punkt ist Mitglied im N.I.R. Netzwerk für innovative Rheumadiagnostik und -therapie
>>
>>
>>         Am 18.03.2011 11:53, schrieb vineeth:
>>>         I think you can use the adder plugin :
>>>         http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-adder.html
>>>
>>>         For complex usecases, I think even Gstreamer Editing
>>>         Services can be used.
>>>         HTH,
>>>         --vineeth
>>>
>>>
>>>         2011/3/18 Andrea König <andrea.koenig at gmatic.de
>>>         <mailto:andrea.koenig at gmatic.de>>
>>>
>>>             Hi all,
>>>             I have got serveral audio streams of different length
>>>             and have to mix them. This means, the audio streams have
>>>             to be played at the same time they haven't to be played
>>>             one after another - no concatenation. Does gstreamer
>>>             provide a workaround to mix these streams?
>>>
>>>             Best Regards
>>>
>>>             Dr. Andrea König
>>>             (Development)
>>>
>>>             G.punkt - medical services
>>>             Ihre Wünsche sind unser Konzept
>>>             Halberstädter Str. 115 A
>>>             39112 Magdeburg
>>>
>>>             fon: +49 391 280380
>>>             fax: +49 391 2803822
>>>
>>>             mail: andrea.koenig at gmatic.de
>>>             <mailto:andrea.koenig at gmatic.de>
>>>             inet: www.gmatic.de <http://www.gmatic.de>
>>>
>>>             Institutskennzeichen: IK331530332, O.I.D.:
>>>             1.2.276.0.76.3.1.51; G.punkt ist Trust center
>>>             zertifiziert für  elektronischen Datenaustausch mit
>>>             Leistungserbringern, GF: Tino Graßhof, ST-ID:
>>>             DE210661356; Nr.: 101-225-04463; Großhandelserlaubnis
>>>             nach § 52a Arzneimittelgesetz, G.punkt ist Mitglied im
>>>             N.I.R. Netzwerk für innovative Rheumadiagnostik und
>>>             -therapie
>>>
>>>
>>>             Am 16.03.2011 10:26, schrieb Andrea König:
>>>
>>>                 Hi all,
>>>                 I have got a Slackware 13.0 linux distribution and
>>>                 try to install gstreamer plugins. As a prerequisite
>>>                 of the plugin installation the plugin base
>>>                 installation is required. I can do configure and
>>>                 make. However, make install ends with the error
>>>                 "cannot stat `.libs/libgstpango.lai'".
>>>                 Could anybody give a hint would be appreciated.
>>>
>>>             _______________________________________________
>>>             gstreamer-devel mailing list
>>>             gstreamer-devel at lists.freedesktop.org
>>>             <mailto:gstreamer-devel at lists.freedesktop.org>
>>>             http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>>
>>>
>>>
>>>         _______________________________________________
>>>         gstreamer-devel mailing list
>>>         gstreamer-devel at lists.freedesktop.org  <mailto:gstreamer-devel at lists.freedesktop.org>
>>>         http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>>            
>>
>>         _______________________________________________
>>         gstreamer-devel mailing list
>>         gstreamer-devel at lists.freedesktop.org
>>         <mailto:gstreamer-devel at lists.freedesktop.org>
>>         http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110418/926d2f92/attachment-0001.htm>


More information about the gstreamer-devel mailing list