Concatenating videos (mp4) in Mac

4

1

I got a bunch of mp4 videos (different parts of a same film) downloaded from YouTube. Is there a way to join them to make a single video? I have a Macbook.

Sridhar Ratnakumar

Posted 2009-10-05T06:53:40.630

Reputation: 4 041

Use mp4box: http://superuser.com/questions/133413/joining-h264-without-re-encoding

– Dan Pritts – 2012-12-25T05:12:34.273

Answers

3

Since those youtube videos probably come in a codec Apple software understands, you could open iMovie (comes with every mac), drag the mp4 files to the program and then concatenate them, with the addition of being able to edit the clips, adjust their sounds, etc.

  1. Start with an empty project in iMovie.
  2. Drag one file into iMovie.
  3. Drag another one into iMovie.
  4. Now that both are imported, you can arrange them in the timeline of your project.

Check the iMovie manual for more information on how to do this.

The problem with iMovie is that during importation the files are recompressed into Apple's intermediate codec, exploding the required file size for the project (tends to go into the GB range).

Similar software to what has already been suggested is MPEG Streamclip, which allows you to open a video, select all, copy it to the clipboard, then open another one and paste it. It also allows minimal edition features withour requiring intermediate recompression of the source files, but the interface is not polished and easy to use as iMovie.

Grzegorz Adam Hankiewicz

Posted 2009-10-05T06:53:40.630

Reputation: 1 029

I could not find a way to concatanate files in iMovie – Sridhar Ratnakumar – 2009-10-13T03:24:53.217

3>

  • Start with an empty project in iMovie.
  • Drag one file into iMovie.
  • Drag another one into iMovie.
  • Now that both are imported, you can arrange them in the timeline of your project. Check the iMovie manual for more information on how to do this.
  • < – Grzegorz Adam Hankiewicz – 2009-10-14T11:44:06.190

    4

    Quicktime 7 Pro is able to concatenate videos.

    Alternatively, you can write a SMIL file describing a movie composed of a sequence of your videos:

    <smil>
    <head>
    
    <layout>
        <root-layout width="640" height="480" background-color="gray" />
        <region id="main" width="100%" height="100%" fit="fill" />
    </layout>
    
    </head>
    <body>
    
    <seq>
    <video region="main" src="myVideo001.mov" />
    <video region="main" src="myVideo002.mov" />
    <video region="main" src="myVideo003.mov" />
    <video region="main" src="myVideo004.mov" />
    </seq>
    
    </body>
    </smil>
    

    SMIL is a format readable by Quicktime.

    mouviciel

    Posted 2009-10-05T06:53:40.630

    Reputation: 2 858

    In Quicktime, I get this error when opening SMIL files: The document “video.smil” could not be opened. QuickTime Player cannot open files in the “synchronized multimedia integration language” format. – Sridhar Ratnakumar – 2009-10-13T06:21:46.370

    Is it latest version of Quicktime player (shipped with Snow Leopard)? In this case, you can download Quicktime Player 7.6.4 from Apple. – mouviciel – 2009-10-13T08:49:42.577

    3

    I wanted to add how to do it with recent Quicktime Versions (i. e. the one shipped with Lion), so users who find this thread looking for a solution (like I was) find a current answer.

    Just open the first clip and select from the menu: "EDIT" -> "Add clip at the end..." (or so, my menu is German). Select the movie you wanna add. Repeat for the other parts.

    Then select "FILE" -> "Export". This might take a while and can change the encoding of your videos, but it works without installing anything and is pretty easy.

    Michael W.

    Posted 2009-10-05T06:53:40.630

    Reputation: 131

    1

    You can try ffmpeg. There is a Mac GUI named ffmpegX that includes ffmpeg among other things.

    T. Kaltnekar

    Posted 2009-10-05T06:53:40.630

    Reputation: 7 636

    1

    I use VisualHub, which is no longer produced, sold or maintained, but there are various methods of still getting hold of it.

    Xetius

    Posted 2009-10-05T06:53:40.630

    Reputation: 1 151

    1

    with Mplayer: http://www.mplayerhq.hu

    you could do:

    mencoder -oac copy -ovc copy -idx -o output.mp4 video1.mp4 video2.mp4 video3.mp4

    "-oac copy" copies the audio codec "-ovc copy" copies the video codec "-idx" build the index for the resulting video

    on linux is ok, i think also on mac!

    user13222

    Posted 2009-10-05T06:53:40.630

    Reputation:

    I tested this using MEncoder 1.3.0-4.2.1 on Mac OS, and while it appeared to work in the terminal, the resulting MP4 file wouldn't play in Quicktime Player, and actually crashed VLC when it hit what should have been the join point between the two input videos. Both videos were produced on the same equipment (dashcam) and used the exact same codec, resolution, bitrate, etc. I am at a loss to explain why it doesn't work, but it doesn't. – James – 2019-06-20T19:15:33.387

    This is also my favorite approach. But for copy to work it is important they were encoded with completely same settings. Very often you got to reencode them. Though it's not much harder. – bdecaf – 2012-01-14T20:44:24.257

    0

    VisualHub would be my #1 recommendation. VisualHub can still be found on several Mac software sites. Due to it's discontinued nature, it would be advisable to visit several mac "shares" sites in search of a usable serial number. Alternatively you could try to contact the developer, but I do not believe he is accepting payment for any new serials at this time.

    Josh K

    Posted 2009-10-05T06:53:40.630

    Reputation: 11 754