combine mp4 files

I have read masses of items on the web re this but failed to find a satisfactory answer. I want a way to QUICKLY combine two fairly large mp4 files - about 1.8GB each and in identical format straight off a video camera. At present I use mpeg Streamclip which is great and does the job in about a minute or so. However it looks as if it will not be made 64bit and will therefore shortly die. Using 'cat' script technique in terminal works fine with .mts files but with mp4 seems to have the (known) problem of combining the files but Quicktime etc only sees the first file due to some header issue which I (as a non expert) don't fully understand - and the solutions to that are more than a bit over my head. I know I can just add the files to Quicktime (or other software apps) and EXPORT but that is slow - for my purpose speed is important. Any ideas out there??

MacBook Pro 13", macOS 10.14

Posted on May 1, 2019 1:14 PM

Reply

Similar questions

18 replies

May 2, 2019 3:43 AM in response to Limnos

I have downloaded Subler but find it very difficult to understand. Can Limnos or anyone else tell me what to do with it. I have imported my files to Subler (each file shows the two streams for video and audio). I then have 4 lines showing in Subler plus a line titled metadata. Checking all the files (or the 4 excluding metadata) and doing 'save' just creates the one file with only the first video file playing. ie same problem as I mentioned I have with 'cat' joining. With Subler should I somehow be altering the heading in metadata. If so I'm afriad my level of understanding is nil and I need line by line instruction if anyone can help.

May 2, 2019 6:31 AM in response to Limnos

Yes I can use iMovie and several other apps but they all "export" and therefore re-encode. Even if that does not cause serious quality loss it IS slow. Quicktime is quicker than some but creates a larger file. No facility I can see to alter settings.

Mpeg Streamclip just tethers the files together and is quick - two 1.8gb files together in seconds rather than minutes. For my purpose speed is very important. I am putting together two halves of a sports match which then has to be uploaded to a web platform ASAP. I also have similar .mts files which I can put together equally quickly using terminal CAT script but, as I said, that does not work properly with mp4. Limnos - as you do I may have to keep an old platform just for this but that is a pain.

May 2, 2019 8:37 AM in response to David Sloan1

I don't think it should be larger, or at least not much larger. When I last did this (uh, 5 years ago?) it created a .mov file which you could either have just as a pointer to the other files and was pretty small, or you could have as self-contained in which case it was just marginally larger than the source files. However, it was a .mov file which meant it wasn't universally accepted.

May 3, 2019 5:43 AM in response to Kurt Lang

@Kurt @David Sloan1 @Limnos


I recently wanted to join some .mp4 files but had an extra problem. First some points relevant to the original query.


Kurt's suggestion looks a good starting point. As mentioned by Limnos QuickTime Player always very annoyingly saves the result as a .mov instead of the original .mp4 format.


There are a lot of online and free .mov to .mp4 conversion tools/sites. I am sure there are also local native Mac tools to do the same.


In my case I tried MPEGStreamClip and mp4joiner (both command line and GUI) and as it happens QuickTime 7 but all of them choked and rejected the mp4 files I was working with even though QuickTime Player X accepted them. (I could tell they had been produced using Handbrake.)


For the benefit of David mp4joiner is basically working in a similar manner to the cat approach but it should redo the headers unlike the cat approach. So assuming it works the resulting file size should be effectively the total of the individual files and it does not re-encode so it should be very quick.


In my own case I will try Kurt's suggestion and then converting the mov file. Otherwise I am going to have to re-encode my files. :(


With regards to the future of MPEGStreamClip it does not look like it will be updated. Even if it was made 64-bit Apple are killing off all the old QuickTime APIs in macOS 10.15 due out later this year. Your best bet is either to keep an old Mac (or Windows) to run it or create a virtual machine with an older Mac operating system.

May 3, 2019 6:30 AM in response to John Lockwood

Hi John,


I keep forgetting the limited choices in the new QuickTime. Yes, it will only export a .mov file. I'm thinking of QuickTime 7 Pro. There you copy/paste one open file into the other, then do an export. You have all kinds of format choices, including MPEG-4.


Problem is, like the current QT, it's incredibly slow doing the export. It must be re-encoding the entire sequence instead of simply saving it as is. Which it should do since I'm already starting the two .mp4 files. All it needs to do is concatenate the two as a new file. But doing a bit of searching on that just now, QT will always re-encode the joined video.


I tried using the cat command in Terminal, and it went very fast. Started with two video clips about 370 MB each in size, and ended up with a 730 MB output. Except, instead of a roughly 42 minute video, I got a file that was still only the first clip at about 20 minutes. Since an MP4 is a container file, the second video clip is likely in there (accounting for the output size), but the second video is not connected to the first, so is just taking up space.


All kinds of suggestions can be found to use iMove, and lots of other third party apps. But all seem to require doing a re-encode to the final combined video.

May 3, 2019 7:17 AM in response to Kurt Lang

Agree with all above. Personally a .mov file is ok but QT is just too slow because it re-encodes. For me streamclip works perfectly but my problem is it’s imminent demise! Retaining an old operating system is a possibility but a pain. I can’t get mpjoiner to work on my MacBook Pro with latest OS. “Cat” joins but as we all know it hides the second and subsequent file. A way to easily sort that encapsulation quickly and simply is what I need!


thsnks all

May 3, 2019 8:42 AM in response to Kurt Lang

Yeah, that's what I did and saw many links, but didn't click through... they all go on to say there isn't a Mac version, BUT.....


Anyway, if Format Factory does precisely what David wants, and he has to do his process all the time, it may be worth getting a cheap/used Windows box, or run an emulator.


One other idea: there are online services that can join video files like this one. Even if it has to recode the files, it would be using the online service's processor and run as a background service, freeing up David's computer to do other work.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

combine mp4 files

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.