<div dir="ltr"><div>I just need the first option (redirect to the file)</div><div><br></div><div>I did understand the goal of the pipe, but not how the "<font color="#000000"><span style="font-size:12.8px">autoaudiosink  filesrc location=CLIP1.wav</span></font>" are used together as I am used to see pipes with the sink at the end of the pipe. That's why i put it there. </div><div><br></div><div>That said, the following pipe should do the same but the result stream redireted to the wav file. But playing the file results in an "Stream is no RIFF stream: 0x2" error in the wavparse element (gst-launch-1.0 filesrc location=output1.wav ! wavparse ! autoaudiosink)</div><div><br></div><div>gst-launch-1.0 --gst-debug=*:3 audiomixer name=mix mix. ! filesink location=output1.wav  filesrc location=CLIP1.wav ! wavparse ! mix. filesrc location=CLIP1.wav ! wavparse ! mix.</div><div><br></div><div>Thank you all</div><div><span style="white-space:pre">  </span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 15, 2017 at 7:21 AM, Antonio Ospite <span dir="ltr"><<a href="mailto:ao2@ao2.it" target="_blank">ao2@ao2.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, 14 Sep 2017 20:33:20 +0100<br>
joao machado <<a href="mailto:00jmsmachado@gmail.com">00jmsmachado@gmail.com</a>> wrote:<br>
<br>
> Great, thank you so much.<br>
><br>
> The big next step is redirect the result to a WAV file, but neither do no<br>
> work my attempts :)<br>
><br>
> gst-launch-1.0 --gst-debug=*:3 audiomixer name=mix mix. !  autoaudiosink<br>
> filesrc location=CLIP1.wav ! wavparse ! mix. filesrc location=CLIP1.wav !<br>
> wavparse ! mix. wavenc ! filesink location=output.wav<br>
><br>
> Looking forward to have the final pipeline.<br>
><br>
<br>
</span>Look at _how_ Nicolas wrote his pipeline:<br>
<span class=""><br>
> On Thu, Sep 14, 2017 at 7:04 PM, Nicolas Dufresne <<a href="mailto:nicolas@ndufresne.ca">nicolas@ndufresne.ca</a>><br>
> wrote:<br>
</span>...<br>
> > gst-launch-1.0 --gst-debug=*:3 audiomixer name=mix ! autoaudiosink \<br>
<span class="">> >                                filesrc location=CLIP1.wav ! wavparse ! mix. \<br>
> >                                filesrc location=CLIP1.wav ! wavparse ! mix.<br>
> ><br>
<br>
</span>By using separate lines you can see that audiomixer is the src of the<br>
main pipeline:<br>
  audiomixer name=mix -> autoaudiosink<br>
<br>
And that audiomixer is fed as a sink in secondary branches:<br>
 filesrc -> ... -> mix.<br>
 filesrc -> ... -> mix.<br>
<br>
Once you got this it's easier to understand that you have to change the<br>
main pipeline _sink_ if you want to redirect the mixed result somewhere<br>
else.<br>
<br>
Either replace autoaudiosink with your new destination, or use tee as a<br>
sink there to have multiple destinations. If you do that I suggest to<br>
put the branches where the tee is a src on separate lines as well.<br>
<br>
Ciao,<br>
   Antonio<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Antonio Ospite<br>
<a href="https://ao2.it" rel="noreferrer" target="_blank">https://ao2.it</a><br>
<a href="https://twitter.com/ao2it" rel="noreferrer" target="_blank">https://twitter.com/ao2it</a><br>
<br>
A: Because it messes up the order in which people normally read text.<br>
   See <a href="http://en.wikipedia.org/wiki/Posting_style" rel="noreferrer" target="_blank">http://en.wikipedia.org/wiki/<wbr>Posting_style</a><br>
Q: Why is top-posting such a bad thing?<br>
</font></span></blockquote></div><br></div>