<p>You can use the channelmap filter for this,</p>

<pre><code>ffmpeg -i in.wav -af "channelmap=13|14|15|0|1|2|3|4|5|6|7|8|9|10|11|12" out.wav
</code></pre>

<p>Channel index starts from 0.</p>

CC BY-SA 4.0
2019-07-19T08:23:11.373Z
2019-07-19T08:23:11.373Z
Gyan
<p>I need to change the order of channels in .wav file. for example if .wav file contains 16 channel like</p>

<blockquote>
  <p>"1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16"</p>
</blockquote>

<p>then need to change this order to</p>

<blockquote>
  <p>"14 15 16 1 2 3 4 5 6 7 8 9 10 11 12 13"</p>
</blockquote>

<ffmpeg><audio>
How to re-order the .wav file channels
Varada
# How to re-order the .wav file channels

(Asked by: username_0 on 2019-07-19)

I need to change the order of channels in .wav file. for example if .wav file contains 16 channel like

> "1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16"

then need to change this order to

> "14 15 16 1 2 3 4 5 6 7 8 9 10 11 12 13"

**Tags:** ffmpeg, audio


---

## 1 answers

### Answer by username_1 on 2019-07-19. Score: 3 | Accepted answer

You can use the channelmap filter for this,
ffmpeg -i in.wav -af "channelmap=13|14|15|0|1|2|3|4|5|6|7|8|9|10|11|12" out.wav

Channel index starts from 0.


---

