How can I concatenate or merge 2 or more MP4 files, in a final output MP4 file also?
I have tried in the DOS window to use the COPY command (I have read it somewhere) but it doesn't function well.
|
|
MP4Box can do this, though you might want to use a GUI for it like YAMB or My MP4Box GUI. (N.B.: It's not my program personally, that's just the name.) MP4Box binaries for Windows are available from this site. Example:
|
||||
|
|
|
I'd reccomend usind ffmpeg, which is available for Mac OS X, Linux and Windows. Here's a good examaple on how to concatenate two movies: http://www.ffmpeg.org/faq.html#SEC27 In the last step, you just need to make sure you make an MP4 container, for the resulting file. |
|||||||||||
|
|
Update: Just checked avidemux as I had it installed, after reading that other answer. It’s what you are looking for (didn’t think it can do MP4 because of its name…). I think VirtualDubMod is mp4-capable, I didn’t use it though so I dunno for sure. You may want to check out MeGUI. It’s a rather complex and feature-rich app and tools. The tool for embedding in a container (mp4 in your case) is called muxer, that one can probably not concatenate them though. You can use it in combination with VirtualDub. Virtualdub to concatenate the video streams, and the muxer to make it an mp4 again (without having to reencode). |
|||
|
|
|
ffmpeg -i concat:"video1.ts|video2.ts" |
|||||
|
|
I'm doing it with mencoder, after having converted them to avi with ffmpeg here's a simple script, assuming you have 15 files, named 01.mp4 ... 15.mp4
cheers |
||||
|
|
|
You would need to use some kind of video editor or comparable program. I've had good luck with avidemux for simple tasks like this. |
|||
|
|
|
You can try doing this with ffmpeg:
This doesn't re-encode anything, it places them in a new transport stream container, which makes them more easy to concatenate, and then concatenates them back into an MP4. If output.mp4 already exists, the command will fail. The version above uses named pipes, it you're on a system that doesn't support those you'd have to use intermediate files:
|
|||
|
|