Create video file with multiple audio tracks?

1

I have an animated movie in three different languages. The picture is exactly the same for each langauge, only the audio is different.

I want to merge all these files into one, so that I have a single video file where I can switch easily between the audio tracks in VLC.

How can I merge the audio tracks into a single file?

I can use any OS for the job, but my preferred order is:

  1. OS X
  2. Linux (Debian/Ubuntu/Mint)
  3. Android
  4. iOS
  5. Windows desktop

It's not really important, though, I'll take suggestions for any platform happily.

The only function I really need is the merging itself. Lightweight solutions are a a plus.

I prefer GUI solutions.

Revetahw says Reinstate Monica

Posted 2016-05-26T11:48:22.057

Reputation: 502

I'm thinking this may be a better fit for Video Production since it has more to do with how to edit/combine video and audio more than any specific issue with computer or software.

– CharlieRB – 2016-05-26T11:56:10.543

@CharlieRB Yes, you are right. I didn't know about that SE. – Revetahw says Reinstate Monica – 2016-05-26T11:56:51.290

Answers

1

You can use ffmpeg, a free command-line tool, to do this.

ffmpeg -i video1.mp4 -i video2.mp4 -i video3.mp4 -c copy -map 0:v -map 0:a -map 1:a -map 2:a combined.mp4

For all audio tracks to be in sync, the video streams must be identical.

Gyan

Posted 2016-05-26T11:48:22.057

Reputation: 21 016

Is there any GUI for this? – Revetahw says Reinstate Monica – 2016-05-26T11:55:00.843

Many. I don't use one, so can't recommend any. For Macs, look into iffmpeg or ffmpegx. Or Hybrid.

– Gyan – 2016-05-26T12:04:25.330

Cool, I'll check those out. – Revetahw says Reinstate Monica – 2016-05-26T12:12:14.340

1

As alternative to FFmpeg you can use GPAC for this. Its available on OSX, Linux, Windows, Android and iOS. Just install the latest available binary from GPAC Nightly Builds, open the terminal and run:

MP4Box video1.mp4 -add video2.mp4#audio -add video3.mp4#audio

this will add the first audio track from video2.mp4 and video3.mp4 to video1.mp4.

Dimitri Podborski

Posted 2016-05-26T11:48:22.057

Reputation: 237

if you install GPAC on OSX MP4Box binary will be inside Osmo4.app e.g.: /Applications/Osmo4.app/Contents/MacOS/MP4Box – Dimitri Podborski – 2016-05-26T15:26:50.613