It's been a long time since you've asked it, but maybe it can help to others.
The way I found to solve the same problem was opening the file twice and save each channel separated.
const splitChannels = (file, leftChannelName, rightChannelName) =>{
ffmpeg(file)
.outputOption('-map_channel 0.0.0')
.save(leftChannelName)
.on('error', (err) => {
console.log(`An error occurred: ${err.message}`);
})
.on('end', () => {
console.log('Left channel splitted!');
})
ffmpeg(pathToAudio)
.outputOption('-map_channel 0.0.1')
.save(rightChannelName)
.on('error', (err) => {
console.log(`An error occurred: ${err.message}`);
})
.on('end', () => {
console.log('Right channel splitted!');
})
}
splitChannels('./files/test.wav', 'left.wav', 'right.wav');
More info: https://trac.ffmpeg.org/wiki/AudioChannelManipulation
Of course you can use .wav or .mp3 too.
Hope it helps!