PDA

View Full Version : Combining 2 .m4v files ...




eVolcre
Jul 27, 2009, 01:53 PM
I have a movie, Gangs of New York that came on 2 discs. I've gone ahead and handbraked the two parts individually and now have 2 iTunes compatible files. How do I combine both of them into one large movie file?

I have QT (not Pro), VLC and Mpeg Streamclip

eV



geoffreak
Jul 27, 2009, 02:44 PM
Just accept the fact that it cannot be done. To do so requires many things to be true (same constant bitrate, avi container, running Windows) and will completely axe the quality of the encode. There is no easy solution to putting two files together.

You could try something like iMovie and pasting the two videos back to back and exporting. You will lose a significant amount of quality due to the fact that the entire video will be re-encoded in a lower quality format and bitrate though.

eVolcre
Jul 27, 2009, 02:47 PM
The thing is, I actually did this 3 weeks ago but don't remember how. Same situation Once upon a time in America was the movie, I handbraked it, ended up with two files and somehow mgerged both of them into one m4v.

For the life of me I just can't remember how I did it!

spice weasel
Jul 27, 2009, 02:52 PM
You can copy and paste in one movie into the other in QuickTime (might require Pro, I forget). You might be able to do this with MPEG Streamclip too, although I haven't tried.

You can also use DVD2OneX (paid software) to join the video_ts folders of each DVD and then run the whole thing through HandBrake again.

randy98mtu
Jul 27, 2009, 02:52 PM
The thing is, I actually did this 3 weeks ago but don't remember how. Same situation Once upon a time in America was the movie, I handbraked it, ended up with two files and somehow mgerged both of them into one m4v.

For the life of me I just can't remember how I did it!

Let me know if you do. I have 2 or 3 movies like this and I just put them aside for this very reason!

spice weasel
Jul 27, 2009, 02:57 PM
Just accept the fact that it cannot be done. To do so requires many things to be true (same constant bitrate, avi container, running Windows) and will completely axe the quality of the encode. There is no easy solution to putting two files together.

Why would you need the same bitrate? If that were the case, variable bitrate movies wouldn't be playable. Not sure why you think it needs to be in an avi container. And Windows only?

dpmcdonald
Aug 17, 2009, 08:59 PM
Just accept the fact that it cannot be done. To do so requires many things to be true (same constant bitrate, avi container, running Windows) and will completely axe the quality of the encode. There is no easy solution to putting two files together.Why would you need the same bitrate? If that were the case, variable bitrate movies wouldn't be playable. Not sure why you think it needs to be in an avi container. And Windows only?

That was a failed attempt at trolling a topic that has no answer (that I know of) yet.

Combining VIDEO_TS files seems to be the only way to obtain the results desired.

eVolcre
Aug 17, 2009, 09:02 PM
Let me know if you do. I have 2 or 3 movies like this and I just put them aside for this very reason!

I couldn't figure it out. I know I used MPEG StreamClip but couldn't replicate what I did before.

I ended up leaving them as Part 1 and Part 2 with different artwork in iTunes. Not that much of a hassle to switch the DVD through FrontRow and if its a 3+ hour movie, I might want to take a break anyway

eV

krburrell
Aug 18, 2009, 10:34 AM
Its been discussed here a few times. You need QT Pro or DVD2OneX. See link


http://forums.macrumors.com/showthread.php?t=685291&highlight=Combining

Bcos17
Aug 18, 2009, 12:32 PM
With quicktime pro... open up both movies (each half in separate quicktime windows). On the first half of the movie go to edit and click select all. Then go to the 2nd half of the movie, and with the 2nd half q'd to the very beginning go to edit and then paste. This will paste the first half directly in front of the second half on one file. Then click save as, give it a new name, and choose to save it as a full copy. It will take a couple minutes and it will be done.

eatbacon
Aug 18, 2009, 01:01 PM
With quicktime pro... open up both movies (each half in separate quicktime windows). On the first half of the movie go to edit and click select all. Then go to the 2nd half of the movie, and with the 2nd half q'd to the very beginning go to edit and then paste. This will paste the first half directly in front of the second half on one file. Then click save as, give it a new name, and choose to save it as a full copy. It will take a couple minutes and it will be done.

This solution, at least for me, does not work with plex. Plex will play the first half fine, but when it gets to the transition between the two it gets choppy and eventually just freezes.

ThatDude42
Aug 18, 2009, 01:06 PM
Just use Visual Hub and check Stitch Videos Together

TuckBodi
Aug 18, 2009, 01:58 PM
Just accept the fact that it cannot be done. To do so requires many things to be true (same constant bitrate, avi container, running Windows) and will completely axe the quality of the encode. There is no easy solution to putting two files together.

You could try something like iMovie and pasting the two videos back to back and exporting. You will lose a significant amount of quality due to the fact that the entire video will be re-encoded in a lower quality format and bitrate though.

Haha, you're pretty funny. Guess the dozen or so movies I've done was just smoke & mirrors.

Use MPEG Streamclip. File/Open Files and select the two movies you want to stitch together (named xxxxxx1 & xxxxxxx2 so they're in the correct order and select the x1 first). Streamclip will open the two together and you can scroll to view what it'll look like together. Then I just do a Save As... / MP4 and it saves the combined movie as one with no loss of quality. Just make sure you Handbrake at the same settings and you're golden.

Need Windows....good one..

Duty Guy
Jul 9, 2010, 04:53 PM
I downloaded the MPEG Streamclip app and tried to combine the .m4v files and save to a single file but it says that it could not be saved as a (avi, mov, mp4 etc.) file. What gives?:confused:

casinnova
Dec 11, 2011, 07:15 AM
I might be a little late to the party but this thread was near the top on my google search.

1) I handbraked 2 files into .m4v
2) Opened the first segment in Quicktime Player Version 10.1 (501.5)
3) EDIT > ADD CLIP to END....
4) navigate to segment 2, choose
5) close the window and you will be asked where to save it.


my file is still exporting... i assume this technique won't degrade the quality. but, its pretty simple.

DeusInvictus7
Dec 11, 2011, 09:53 PM
I might be a little late to the party but this thread was near the top on my google search.

1) I handbraked 2 files into .m4v
2) Opened the first segment in Quicktime Player Version 10.1 (501.5)
3) EDIT > ADD CLIP to END....
4) navigate to segment 2, choose
5) close the window and you will be asked where to save it.


my file is still exporting... i assume this technique won't degrade the quality. but, its pretty simple.

Try using MKVtools' "MP4 Video" Join feature...I've done that with my handbraked files and it worked perfectly.

PsyOpWarlord
Dec 13, 2011, 12:09 AM
I use Elgato turbo.264 HD to combine movies into one. There is a hardware version and a software only version. Both versions will combine multiple video files into one. and it supports different video formats. I use the one that came with the hardware acceleration dongle.

http://www.elgato.com/elgato/na/mainmenu/products/Turbo264HD/product1.en.html
http://www.elgato.com/elgato/na/mainmenu/products/Turbo264HD-software/product1.en.html

In the program you drag and drop the video files you want to combine into the window. At the bottom sleet "1 Movie" and it will show a chain link connecting the video files. Check to ensure they are in the correct order and if not you can drag and reorder the files. Click start and your done.

Very easy.

http://www.psyopindustries.com/screenshots/combinevideofiles.jpg

sulliweb
Dec 13, 2011, 09:18 AM
On the Windows side of things, there's plenty of software that will do this... Admittedly, it ain't free, but it works. Pinnacle Studio is one that I have. It's worked nicely in combining different clips. Though, it does a full re-encode, so that may not be what you want. Still, it's completely possible.

techchallenger
Dec 15, 2011, 01:49 PM
Haha, you're pretty funny. Guess the dozen or so movies I've done was just smoke & mirrors.

Use MPEG Streamclip. File/Open Files and select the two movies you want to stitch together (named xxxxxx1 & xxxxxxx2 so they're in the correct order and select the x1 first). Streamclip will open the two together and you can scroll to view what it'll look like together. Then I just do a Save As... / MP4 and it saves the combined movie as one with no loss of quality. Just make sure you Handbrake at the same settings and you're golden.

Need Windows....good one..

I remember that I used Streamclip to successfully combine my two Godfather II mp4s, but the resulting file altered the aspect ratio. I played around with it for quite some time and could not figure out how to rectify the problem. I still have the two files sitting on my desktop.

papelboyl1
Dec 19, 2011, 06:23 AM
I have 2 m4v files created using Handbrake. These are the extended version of LOTR.

When I tried mkvtools (dragging and dropping them), it does nothing.

I tried mpeg streamclip but saving produces an error "movie can't be save in this format". I selected mp4 as the output format. mov seems to work fine tho.

ajohansson
Dec 19, 2011, 01:36 PM
I might be a little late to the party but this thread was near the top on my google search.

1) I handbraked 2 files into .m4v
2) Opened the first segment in Quicktime Player Version 10.1 (501.5)
3) EDIT > ADD CLIP to END....
4) navigate to segment 2, choose
5) close the window and you will be asked where to save it.


my file is still exporting... i assume this technique won't degrade the quality. but, its pretty simple.


Just saw this. I just drug both movies into quicktime but this looks cleaner and easier to do. Im still exporting Pearl Harbor.

AJ

ajohansson
Dec 19, 2011, 10:10 PM
I could not get this to work with QT. It made something after 2 hours that was 3 hours long but it was a black screen when I played it with no audio. Tried it a few way. Now trying mpeg stream clip.

ajohansson
Dec 20, 2011, 03:26 AM
well after waisting a lot of time today I will be keeping Pearl Harbor in two rips.

QT won't do it on 10.1 Its apparently broken or something as it has an export feature for iPod/apple tv

MKVtools or MP4tools won't do it. I get errors.

mpeg streamclip does it but won't keep the 5.1 dolby.

So I'm keeping both files separate until something better comes along.

AJ

nutella69
Dec 20, 2011, 04:41 AM
Something like this would be nice:

---
join avi files and fix header

# download mencoder binary
http://prdownloads.sourceforge.net/mplayerosx/ffmpegXbinaries20060307.zip

# open the Terminal

# cat file1.avi file2.avi file3.avi > output.avi
# mencoder -forceidx -oac copy -ovc copy output.avi -o output_final.avi;
---


You can join multiple files with cat (also m4v), but I don't know how to fix the m4v header?! The example above is only for the avi container.

Cheers

ajohansson
Dec 20, 2011, 11:23 AM
Whats really weird is I took the same two movies in QT and trimmed them down to 2 minutes each then joined them and exported and it worked fine. Apperently something with the two whole versions of disc 1 and two from pearl harbor is not working. Also loosing 5.1 audio for some reason, it only shows stereo in iTunes.

ajohansson
Dec 26, 2011, 06:30 PM
well did more research and in QT 7 it works fine. Not even the PRO version just the plain old version. Here is the download page for quicktime 7 and the how to. Whats even crazier is it took about 1 minute to do it and I kept my surround setting. Apple screwed something up big time in QT10

http://www.macyourself.com/2009/03/18/merge-multiple-video-files-using-the-free-version-of-quicktime/
http://support.apple.com/kb/dl923

Supernerd
Jun 19, 2012, 04:00 PM
I might be a little late to the party but this thread was near the top on my google search.

1) I handbraked 2 files into .m4v
2) Opened the first segment in Quicktime Player Version 10.1 (501.5)
3) EDIT > ADD CLIP to END....
4) navigate to segment 2, choose
5) close the window and you will be asked where to save it.


my file is still exporting... i assume this technique won't degrade the quality. but, its pretty simple.

I am in QuickTime not pro, but there is no option for that at all. The 3-hour extended edition of Avatar is split onto two disks, and I would like to merge them, but In the meantime, I wrote on the covers in Pages, "Part 1" and "Part 2" so I can navigate very quickly to the second part. Still, it is one movie, I would like to make it seem that way.:apple::apple::apple::apple::apple:

mic j
Jun 19, 2012, 04:04 PM
I am in QuickTime not pro, but there is no option for that at all. The 3-hour extended edition of Avatar is split onto two disks, and I would like to merge them, but In the meantime, I wrote on the covers in Pages, "Part 1" and "Part 2" so I can navigate very quickly to the second part. Still, it is one movie, I would like to make it seem that way.:apple::apple::apple::apple::apple:

If you are going to use Quicktime for this, it has to be Pro. There are other tools that are better to accomplish this: MP4Tools.

Ccrew
Jun 20, 2012, 03:59 AM
I use this: http://likelysoft.com/splitfuse/

since most of mine are played in XBMC which handles stacked DVD's just fine I haven't beat the daylights out of this program but it's done what I've asked it to do and it's not stupid $

heisenberg123
Jun 20, 2012, 06:55 AM
Xilisoft Video Converter (http://www.xilisoft.com/video-converter.html) does it all for me, merge files, clip them, converts to almost any format well worth the price tag

The DRis
Jun 20, 2012, 10:13 AM
well after waisting a lot of time today I will be keeping Pearl Harbor in two rips.

QT won't do it on 10.1 Its apparently broken or something as it has an export feature for iPod/apple tv

MKVtools or MP4tools won't do it. I get errors.

mpeg streamclip does it but won't keep the 5.1 dolby.

So I'm keeping both files separate until something better comes along.

AJ

I realize this post is many months old, but I figured I'd give some advice for anyone else that stumbles across this necropost.

Using MKVTools worked for me to join two parts of Avatar together. I don't know how to do this with MP4's, just the MKV's.

1) Open MKVTools
2) Add part 1 of whatever video clip you are trying to join
3) Select video clip and click "append"
4) Add part 2
5) Viola

Supernerd
Jun 20, 2012, 08:09 PM
If you are going to use Quicktime for this, it has to be Pro. There are other tools that are better to accomplish this: MP4Tools.


Wait, I am in QuickTime that comes with Snow Leopard, some guy up there is talking about QuickTime 7, I'll check that out.

mic j
Jun 21, 2012, 08:28 AM
Wait, I am in QuickTime that comes with Snow Leopard, some guy up there is talking about QuickTime 7, I'll check that out.

Look in your Utilities folder.

Supernerd
Jun 28, 2012, 04:23 PM
Do these solutions export as .m4v? I don't want mp4...

mic j
Jun 28, 2012, 04:42 PM
Do these solutions export as .m4v? I don't want mp4...
I'm sorry, the OP mentioned using handbrake which generates mp4's. So I though you were trying to do the same. What file type are you starting with and wanting to end up with?

hackthatphone
Jul 21, 2012, 09:17 AM
I might be a little late to the party but this thread was near the top on my google search.

1) I handbraked 2 files into .m4v
2) Opened the first segment in Quicktime Player Version 10.1 (501.5)
3) EDIT > ADD CLIP to END....
4) navigate to segment 2, choose
5) close the window and you will be asked where to save it.


my file is still exporting... i assume this technique won't degrade the quality. but, its pretty simple.

I'm using 10.1 (501.22) and all I receive is a message stating this process doesn't support this media type (m4v). Something changed. Knew it was too good to be true. No biggie, I'll just have two parts to the movie on the apple tv.

98EXL
Jul 27, 2012, 05:50 PM
doing this for Goodfellas.....QT is exporting it to *.mov ...

...

...

3 hours to go, need to see what happens to the quality of the flick, and if I can then convert the *.mov to *.m4v.

...

...

back to teh googles

EDIT: for giggles and stuff, I went back and canceled the 'export.' Re-did it so that QT 10.1 (on SWMBO's old MBP w/Lion) didn't hide the extension type, and the iPhone 'Save As' was *.m4v and the 480p 'Save As' was *.mov. Doing both and will see which is better for me.

I'll report back later

spacepower7
Jul 27, 2012, 09:44 PM
Do these solutions export as .m4v? I don't want mp4...

MP4 and M4V are the same container, you can just change the extension. MP4 is a subset of M4V which can handle additional info.

98EXL
Jul 30, 2012, 12:08 AM
doing this for Goodfellas.....QT is exporting it to *.mov ...

...

...

3 hours to go, need to see what happens to the quality of the flick, and if I can then convert the *.mov to *.m4v.

...

...

back to teh googles

EDIT: for giggles and stuff, I went back and canceled the 'export.' Re-did it so that QT 10.1 (on SWMBO's old MBP w/Lion) didn't hide the extension type, and the iPhone 'Save As' was *.m4v and the 480p 'Save As' was *.mov. Doing both and will see which is better for me.

I'll report back later

Green vertical line on right side of video, and only stereo track, no 6 channel

I'm still investigating

hafr
Jul 30, 2012, 04:18 AM
iVI (pronounced 'ivy'), available in the Mac App Store, can do this. And it adds meta data as well ;)

Just add the first file, open its options (double click on it), Video Joining, add the second (and third, and fourth...) file and hit convert.

98EXL
Jul 31, 2012, 09:06 PM
iVI (pronounced 'ivy'), available in the Mac App Store, can do this. And it adds meta data as well ;)

Just add the first file, open its options (double click on it), Video Joining, add the second (and third, and fourth...) file and hit convert.

I will try that...now actually. The Godfather is a two part movie too.