<div dir="ltr"><div class="gmail-s-prose gmail-js-post-body">
<p>Hi!<br></p><p>This C example gets two WAV audio files and merges them to generate a
 new WAV file using ffmpeg-4.4 API. Tip: The key of the process is to 
use these filters: abuffer, amix and abuffersink.</p>
<p><a href="https://github.com/xtingray/audio_mixer/" rel="nofollow noreferrer">https://github.com/xtingray/audio_mixer/</a></p>
<p>Although it doesn't support MP3 format as the output, it gives you 
the basics to understand how to implement your own requirements. I hope 
it can be handy for anyone looking for references about this specific 
topic.</p>
    </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Mar 20, 2022 at 9:28 AM Gustav González <<a href="mailto:xtingray@gmail.com">xtingray@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div>In my current implementation, I was able to process several audio files, extract their streams, and added them to a new mp4 file successfully. The outcome of my latest test is an MP4 file with a video stream and three audio streams. <br></div><div>When I reproduce the file, I can watch the video but the player only reproduce the first audio stream, the other two are ignored.</div><div>I am guessing I will have to merge all the audio streams in just one. So, my question is this: is it possible to merge several audio streams into just one? I appreciate any hint. <br></div><div>Thanks.<br></div><div><br>-- <br><div dir="ltr"><div dir="ltr"><div>--<br>  Gustav Gonzalez<br>  <a href="mailto:xtingray@gmail.com" target="_blank">xtingray@gmail.com</a><br><br></div></div></div></div></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>--<br>  Gustav Gonzalez<br>  <a href="mailto:xtingray@gmail.com" target="_blank">xtingray@gmail.com</a><br><br></div></div></div>