[FFmpeg-user] Need to Make ProRes HQ video file with 5.1 audio using ffmpeg
lou at lrcd.com
Tue Jan 22 03:11:45 EET 2019
On Mon, Jan 21, 2019, at 3:12 PM, Mark Scott wrote:
> 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".
More information about the ffmpeg-user