[FFmpeg-user] Syntax problem: split (16) audio channels into (8) different stereo streams
Podium B.V.
mailinglist at podiumbv.nl
Mon Jan 27 12:42:22 CET 2014
On 27-01-14 11:46, Carl Eugen Hoyos wrote:
> Podium B.V. <mailinglist <at> podiumbv.nl> writes:
>
>> 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
>
Thanks Carl!
It's much easier then the way I was experimenting...
To make this thread complete, this is my working solution:
(and of course I will enable video later on...)
ffmpeg -i Capture0000.mov \
-vn \
-codec:a aac -strict -2 -b:a 192k \
-map 0:1 -filter:a:0 "pan=stereo|c0=c0|c1=c1" \
-map 0:1 -filter:a:1 "pan=stereo|c0=c2|c1=c3" \
-map 0:1 -filter:a:2 "pan=stereo|c0=c4|c1=c5" \
-map 0:1 -filter:a:3 "pan=stereo|c0=c6|c1=c7" \
-map 0:1 -filter:a:4 "pan=stereo|c0=c8|c1=c9" \
-map 0:1 -filter:a:5 "pan=stereo|c0=c10|c1=c11" \
-map 0:1 -filter:a:6 "pan=stereo|c0=c12|c1=c13" \
-map 0:1 -filter:a:7 "pan=stereo|c0=c14|c1=c15" \
AudioSamples-Test.mp4
More information about the ffmpeg-user
mailing list