[FFmpeg-user] Audio mapping

robertlazarski robertlazarski at gmail.com
Thu Jun 7 21:49:27 EEST 2018

On Thu, Jun 7, 2018 at 3:18 AM, Kasper Folman <pneu at pneu.dk> wrote:

> But what if I had a file with 4 mono tracks, and I wanted to merge those 4
> tracks into 2 stereo tracks. It does do what I’m asking it to, but again,
> only the first audio track is enabled.
> ffmpeg -t 1 -i "/Volumes/Storage/_MoveToBacku
> p/formatSamples/1x16-chAudioTest.mov" -filter_complex
> "[0:0]copy,fps=25,setfield=prog,setdar=dar=16/9,setsar=sar=1
> /1[vOut];[0:1]pan=1c|c0=c0[a1];[0:2]pan=1c|c0=c0[a2];[0:3]
> pan=1c|c0=c0[a3];[0:4]pan=1c|c0=c0[a4];[a1][a2]amerge=input
> s=2[aOut0];[a3][a4]amerge=inputs=2[aOut1]" -c:a pcm_s24le -map [aOut0]
> -map [aOut1] -map [vOut] -c:v prores_ks -r 25 -pix_fmt yuv422p10le
> -profile:v 1 -field_order progressive -y -strict -2
> "/Users/kf/Desktop/testfile.mov"

I am using separate wav and mov files together however I am on Linux and do
not use quicktime as a player. And I am on 3.3.4.

Anyways using an alternative approach, a BWF works for me as a way to get 8
tracks into Ch1 / Ch2 audio of a mov file. Joining mono WAV files into a
single BWF may or not work for you but thought I'd mention it.

cuts.mov in this example is combined footage from two Zoom Q8 cameras,
f8t.wav is a BWF produced by an 8 track Zoom F8. Only showing first pass of

ffmpeg -v error -i cuts.mov -i f8t.wav -pass 1 -passlogfile export.log -c:a
pcm_s16le -c:v libx264 -profile:v main -level 4.0 -refs 1 -x264-params
"keyint=8:b-pyramid=0:no-scenecut:nal-hrd=cbr:force-cfr=1" -r 30000/1001 -s
1920x1080 -b:v: 24M -bufsize 24M -maxrate 24M -b:a 48k -muxrate 24M
-sample_fmt s16 -ac 2 -ar 48000 -af
-crf 18 -metadata comment="Created with parseLTC.sh" -map 0:0 -map 1:0 -y


More information about the ffmpeg-user mailing list