Take the 2-minute tour ×
Video Production Stack Exchange is a question and answer site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation. It's 100% free, no registration required.

I have two files, one is MP4 file with video only and another is M4A audio file. What is the best and simpliest method of merging these two tracks in a single MP4 container? Is it possible to do this without transcoding (loosing quality)? Thanks!

Open source and free software is my preference.

share|improve this question
1  
Do they actually line up correctly or do you also need to synchronize them? If it is synced, this is effectively a duplicate of video.stackexchange.com/questions/10730/…. Different source for the streams, but same solution should work. –  AJ Henderson Jun 9 at 13:28
    
I wouldn't say its a 100% duplicate. While the answer works, there are also other tools specifically for MP4. The question might help people that search specifically for MP4 merging. –  Professor Sparkles Jun 9 at 13:48
    
Scratch that, tsMuxer only allows MP4 as input not as output. –  Professor Sparkles Jun 9 at 14:25

1 Answer 1

MP4muxer will do the job, it even takes raw h264 streams.

This process is usually called "muxing" and can be done with virtually any container format. Of course audio and video has to have the exact same length to have synchronized audio and video.

share|improve this answer
    
Thanks! I will give it a try! –  Slava Fomin II Jun 10 at 6:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.