On Mon, Jan 21, 2019, at 3:12 PM, Mark Scott wrote: > Hello, > I'm having trouble understanding audio mapping. I have a master .mov > file with 6 Mono tracks plus a stereo track. Per my customer > requirements, the output file needs to be ProRes HQ .mov with the > audio configuration to be: 1-Left, 2-Right, 3-Center, 4-LFE, 5-Left > Surround, 6-Right Surround, plus Ch.7&8 Stereo.
You can use the amerge filter to choose which stream goes where in the layout, then use -map to choose the video, the output from amerge, and the stereo stream: ffmpeg -i input -filter_complex "[0:a:0][0:a:1][0:a:2][0:a:3][0:a:4][0:a:5]amerge=inputs=6[a]" -map 0:v -map "[a]" -map 0:a:6 -c:v prores -profile:v 3 -c:a pcm_s24le ProResHQ.mov See "ffmpeg -layouts" for a list of standard channel layouts. If your video is already ProRes HQ then change "-c:v prores" to "-c:v copy". https://ffmpeg.org/ffmpeg-filters.html#amerge https://trac.ffmpeg.org/wiki/AudioChannelManipulation#a6mono5.1 https://ffmpeg.org/ffmpeg.html#Advanced-options _______________________________________________ ffmpeg-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
