Ask Your Question
1

What is the process of combining 2 multitrack mono files into a .mov file using FFmpeg?

asked 2023-07-17 21:47:52 +0000

plato gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-07-17 21:53:01 +0000

ladyg gravatar image

Assuming the two mono files are named "track1.wav" and "track2.wav", and the desired output name for the .mov file is "combined.mov", the following FFmpeg command can be used:

ffmpeg -i track1.wav -i track2.wav -filter_complex "[0:a][1:a]amerge=inputs=2[a]" -map "[a]" combined.mov

Explanation:

  • "-i track1.wav -i track2.wav": specifies the input files to be combined
  • "-filter_complex": applies a filtergraph for audio combining/filtering
  • "[0:a][1:a]": specifies the audio streams from the two input files to be combined
  • "amerge=inputs=2": merges the two audio streams into a single output stream
  • "[a]": names the output audio stream as "a"
  • "-map "[a]"": specifies that "a" is the audio stream to be included in the output file
  • "combined.mov": specifies the output file name and format.
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-07-17 21:47:52 +0000

Seen: 10 times

Last updated: Jul 17 '23