<div dir="auto">Hello all,<div dir="auto"><br></div><div dir="auto">I'm trying to create an audio filter graph (in C/C++) that takes a number of inputs and mixes/splits/merges as necessary to produce a single stream with multiple channels.</div><div dir="auto"><br></div><div dir="auto">I would like to be able to control which amerge input is mapped to which channel in the output stream. For example, if I'm merging two inputs, I want to control which is the left and which is the right channel. Similarly, for cases with more than two inputs, I'd like to know/control which output layout is being created and how each input is mapped.</div><div dir="auto"><br></div><div dir="auto">Currently, I have an implementation that generates a stream with the correct individual channels, but mapped incorrectly. When I call av_filter_graph_config(), I get a message stating "Input channel layouts overlap; output layout will be determined by the number of distinct input channels," which seems like a clue.</div><div dir="auto"><br></div><div dir="auto">When I checked the source in af_amerge.c, I see that there is a route[] array which I presume controls this mapping. Is this correct?</div><div dir="auto"><br></div><div dir="auto">If so, then how should I access this array? Through context->priv directly?</div><div dir="auto"><br></div><div dir="auto">Is there a way to define the output layout for the output of the amerge filter?</div><div dir="auto"><br></div><div dir="auto">Thanks in advance,</div><div dir="auto"><br></div><div dir="auto">Kerry</div></div>