[FFmpeg-user] Syntax problem: split (16) audio channels into (8) different stereo streams

Carl Eugen Hoyos cehoyos at ag.or.at
Mon Jan 27 11:46:31 CET 2014


Podium B.V. <mailinglist <at> podiumbv.nl> writes:

> > Please test:
> > $ ffmpeg -i input -map_channel 0.1.0 -map_channel 0.1.1 out1.wav
> > -map_channel 0.1.2 -map_channel 0.1.3 out2.wav

> Your test does work perfect. Even with all 16 channels:
> 
> ffmpeg -i input.mov \
>    -map_channel 0.1.0 -map_channel 0.1.1 out1.wav \
>    -map_channel 0.1.2 -map_channel 0.1.3 out2.wav \
>    -map_channel 0.1.4 -map_channel 0.1.5 out3.wav \
>    -map_channel 0.1.6 -map_channel 0.1.7 out4.wav \
>    -map_channel 0.1.8 -map_channel 0.1.9 out5.wav \
>    -map_channel 0.1.10 -map_channel 0.1.11 out6.wav \
>    -map_channel 0.1.12 -map_channel 0.1.13 out7.wav \
>    -map_channel 0.1.14 -map_channel 0.1.15 out8.wav
> 
> But i did read online that "-map_channel" shouldn't 
> be used anymore.

Then use pan if you prefer it:

$ ffmpeg -i input 
-af "pan=stereo|c0=c0|c1=c1" out1.wav 
-af "pan=stereo|c0=c2|c1=c3" out2.wav
...

Carl Eugen



More information about the ffmpeg-user mailing list