Is there a way in ffmpeg to extract all audio channels giving each a separate name?
The problem is that I don't know in advance how many channels the input file is going to have.
This does splitting into two wav files:
ffmpeg -y -i input.wav -filter_complex
"[0:a]channelsplit=channel_layout=stereo[left][right]" -map "[left]"
left.wav -map "[right]" right.wav
What can be done if the input file contains 3, or 8 channels?
Ideally, I would like to have a way to convert Nchannels.mp4 into Nchannels_1.wav, Nchannels_2.wav, ..., Nchannels_N.wav.