View Full Version : How to split mp4 file created by MeGui?


mars0001
20th June 2006, 01:38
First of all, I'd like to appreciate distributing such a nice encoding tool.

The other day I made a backup of a DVD by encoding it with MeGui in 2 CD capacity. What I first intended and expected was to get 2 700mb mp4 files because there was "split size" option/checkbox in the Automatic Encoding configuration. However the result was one 1400mb file.

So here is the question.

Are there any tool that may this one big file into 2 target-sized files?

And I'm looking for a tool that may split vobsub subfile into 2 or 3 pieces. Are there any?

If anyone knows, please give me the answer.

Thanks in advance.

unskinnyboy
20th June 2006, 01:48
Are there any tool that may this one big file into 2 target-sized files?
Click! (http://forum.doom9.org/showthread.php?t=93240)
And I'm looking for a tool that may split vobsub subfile into 2 or 3 pieces. Are there any?
If you have VobSub installed, there is a small utility bundled with it called VobSub Cutter and I think the name should give you an idea as to what it can be used for. It should be in your start menu group under VobSub.

And next time, :search:

mars0001
20th June 2006, 01:59
Click! (http://forum.doom9.org/showthread.php?t=93240)

Many thanks. I read the linked thread and I already tried mp4box.
I tried to split one 380mb mp4 file into 2*190mb files by splitting it by size. However The result was 2*186mb files and one 6.25mb file. I don't want to give a trial and error on splitting. That's why I'm looking for a tool which I can rely on.


If you have VobSub installed, there is a small utility bundled with it called VobSub Cutter and I think the name should give you an idea as to what it can be used for. It should be in your start menu group under VobSub.

I'll give it a try.

desta
20th June 2006, 02:25
YAMB will split mp4's - http://forum.doom9.org/showthread.php?s=&threadid=93927

... it's basically mp4box with a GUI.

unskinnyboy
20th June 2006, 02:28
@mars0001, hmm, what are the characteristics of this .mp4 file? What do the video and audio streams consist of? If it is nothing funky (no b-frames, no GMC, no QPEL etc), I believe it can be done using Quicktime Pro. Another way is to remux it into .mkv, split using mkvmerge and then remux it back into .mp4. Yet another way which I have heard bond mention from time to time is to split the .mp4 inside GraphEdit using Nero DirectShow muxer filter, but I haven't tried it myself.

The sad fact is that there are not a lot of user-friendly tools available at the moment for editing .mp4.

P.S: Are you sure you are using the latest build of MP4Box? If not, get that and try with that. The latest build is from 2006-05-15.

mars0001
20th June 2006, 04:42
@mars0001, hmm, what are the characteristics of this .mp4 file? What do the video and audio streams consist of? If it is nothing funky (no b-frames, no GMC, no QPEL etc), I believe it can be done using Quicktime Pro. Another way is to remux it into .mkv, split using mkvmerge and then remux it back into .mp4. Yet another way which I have heard bond mention from time to time is to split the .mp4 inside GraphEdit using Nero DirectShow muxer filter, but I haven't tried it myself.

The sad fact is that there are not a lot of user-friendly tools available at the moment for editing .mp4.

P.S: Are you sure you are using the latest build of MP4Box? If not, get that and try with that. The latest build is from 2006-05-15.

About the video/audio streams I'm not quite sure whether the video stream has GMC or QPEL but I may say I encoded through MeGui using HQ-Slow profile. So I think it may have one of those you mentioned.

While I'm awaiting more replies to this thread I tried mkvmerge :) . I don't think I have to remux it into .mkv because mkvmerge accept .mp4 as an input file. So I tried to split one 700mb file into 2 .mkv file (I do not insist the container format). Guess what? 2 result files. One 350mb .mkv and one 346mb .mkv file. More satisfied than using mp4box.

I don't think I can deal with graphedit myself.

I'm not sure of the version of MP4box that I tested earlier because I did with Yamb 1.6. I downloaded latest build of mp4box (not Yamb) and tried but the same result.

I think I would stick to mkvmerge until I find more reliable tool.

Many thanks, @unskinnyboy. You were so helpful.:thanks: :p

foxyshadis
21st June 2006, 06:00
Many thanks. I read the linked thread and I already tried mp4box.
I tried to split one 380mb mp4 file into 2*190mb files by splitting it by size. However The result was 2*186mb files and one 6.25mb file. I don't want to give a trial and error on splitting. That's why I'm looking for a tool which I can rely on.
Maybe you're using powers of ten (190000 kbytes) instead of two (194560 kbytes)? The former comes out to 186. (note, the obvious assumption, 190M=190000000B is not the case! That would give 181mb.) If you specified 190M and mp4box translated it, yes, but mp4box bug and I bet it's the exact same issue as the other guy had.

bond
21st June 2006, 23:11
you can also try to split mp4 files with avidemux

mars0001
22nd June 2006, 15:31
you can also try to split mp4 files with avidemux

I already tried AviDemux and almost same result with mp4box.
AviDemux does not give exact-size splitting.

Thanks.

unskinnyboy
22nd June 2006, 15:35
What is the exact commandline you gave for splitting in MP4Box?

bond
22nd June 2006, 18:57
I tried to split one 380mb mp4 file into 2*190mb files by splitting it by size. However The result was 2*186mb files and one 6.25mb file. I don't want to give a trial and error on splitting. That's why I'm looking for a tool which I can rely on.propably the next keyframe you could use is at a point where the file gets bigger than 190mb and therefore mp4box outputs the one with 186mb, giving you what you specified

foxyshadis
23rd June 2006, 00:54
A 4mb GOP is pretty big though. Typically even with extra long max gops I get 500kb-2mb, with a rare 4+ mb. Of course that's with 1200 kbps, not 1600-2000.

I still think it's a SI/binary error somewhere.

mars0001
28th June 2006, 00:21
What is the exact commandline you gave for splitting in MP4Box?

I'd like to get 2*175mb files from a 350mb .mp4 file. Here is my mp4box commandline.
MP4Box -splits 179200 input.mp4
And the result files are 2*173mb .mp4 files and one 2.48mb file.
I guess , as @bond mentioned above, mp4box finds and splits key frame near target split size and this is the reason why I cannot get the exact-size split files.

galinette69
6th January 2008, 11:22
Hi all,

I am trying to split a MP4 with embedded chapters (ogm txt chapter format created by DVDDecrypter, then muxed with MeGUI)
I want to split every chapter of the MP4, and the only tool I've found that claims to do that is Yamb. But Yamb seems to read the chapter timecodes wrong, because for a chapter between 00:03:21.200 and 00:07:06.800 Yamb uses the following command line
MP4Box.exe -splitx 20120.000:42680.000 a-muxed.mp4:
Which results in a MP4Box error since 20120.000 is longer than the actual video duration (around 3 hours).

So it seems that Yamb is misinterpreting the timecodes, as it should do:

MP4Box.exe -splitx 201.200:426.800 a-muxed.mp4

For info, here is the beginning of my DVDDecrypter chapter file I used to create the MP4 with MeGUI:

CHAPTER01=00:00:00.000
CHAPTER01NAME=Chapter 01
CHAPTER02=00:03:21.200
CHAPTER02NAME=Chapter 02
CHAPTER03=00:07:06.800
CHAPTER03NAME=Chapter 03

I use Yamb 2.0.0.8 and MP4Box

Kurtnoise
6th January 2008, 11:29
you should use this last build (http://kurtnoise.free.fr/index.php?dir=Yamb/&file=Yamb-2.0.0.8_20071210.zip)...