Log in

View Full Version : File splitting in Yamb is wrong.


Error
19th June 2006, 18:57
I have a 1.36 GB (1400.07158 MB) .mp4 file I am trying to split into 2 parts. What actually happens though is I will end up with 3 .mp4 files. 693, 695, 11.*MB in size to be exact. Now What I am not understanding is why I am not only getting 2.mp4 files instead of 3.

What can I do to split this properly into 2 .mp4 files at ~700MB?

Kurtnoise
19th June 2006, 19:46
Did you use "Split by Size" ?

Also, keep in mind that MP4Box cuts video streams at the nearest key frames. So, this is completely normal.

Error
19th June 2006, 20:03
Yes i tried by size. Used 700, 701, and 702MB all to similar results. What can I do to make sure I only get 2 ~700MB files?

Kurtnoise
20th June 2006, 08:58
With this tool, we can't be sure to have equally this size as I said previously...

There is an alternative solution but I don't know if this will be ok for you.

Error
20th June 2006, 11:25
Well they don't have to be exactly equal. But atleast into 2 parts that will fit on a CD. If one is 701 and the other is 699 that is fine as long as it burns. Let me know your method and we can go from there.

Edit: I do have the raw .m4a and .264 file if that will help me any.

unskinnyboy
20th June 2006, 12:06
Also, keep in mind that MP4Box cuts video streams at the nearest key frames. So, this is completely normal.
I am not totally sure of that. Here (http://forum.doom9.org/showthread.php?t=112600) is a user for whom MP4Box didn't work, but mkvmerge split the .mp4 like he wanted.

Kurtnoise
20th June 2006, 12:27
@Error : check out the link proposed by unskinnyboy. ;)

@unskinnyboy : I'm sure about one thing : MP4Box cuts video streams on key-frames dunno for mkvmerge but this is the easiest/safiest way imo. In addition, mkvmerge doesn't split mp4 files but mkv/mka. ;)

Error
20th June 2006, 12:44
I tried that link out and was able to split. But now I cannot get the files back to .mp4. I used mkvextract to demux the .mkv file back to .264 and the audio as .m4a. The problem is it outputs the audio to .aac instead. And ive tried renaming the audio to .m4a. The problem is for some reason the muxing fails when i used the extracted files from the mkv.

emmel
20th June 2006, 13:25
Yes i tried by size. Used 700, 701, and 702MB all to similar results. What can I do to make sure I only get 2 ~700MB files?

Still increase the value a bit? Maybe 710?

Error
20th June 2006, 13:40
I worked it out. The solution to my initial problem is a rather dirty technique and I hope there is another way.

Steps to achieve 2 proper sized .mp4 files:

1. Take my initial 1.36GB .mp4 file and open in mkvmerge (http://www.bunkus.org/videotools/mkvtoolnix/downloads.html).

2. Goto the Global tab (mkvmerge) and enable splitting. Tick "After this size and put 700M". Also I put 2 in the "max. number of files" box.

3. Make sure that your settings are correct and that both tracks are selected. Then click "Start Muxing" or "Add To Job Queue", your choice really.

4. Ok so now we have 2 .mkv files of 700MB and 699MB. Open one of the 2 files now in mkvextract GUI (http://corecodec.org/projects/mkvextractgui/).

5. Choose both the audio and video tracks. It may ask you what extension to save the video as. I picked .264. Hit extract.

6. You should now have a .264 and a .aac file in what ever folder you choose to extract to. Now I just muxed these like I normally would with mp4box. Do the same for the other mkv file.

7. That's alot of extra work but it got the job done.

Thanks everyone for helping out. Hope this thread helps other people who have the same problem I did.

unskinnyboy
20th June 2006, 14:25
I'm sure about one thing : MP4Box cuts video streams on key-frames dunno for mkvmerge but this is the easiest/safiest way imo. In addition, mkvmerge doesn't split mp4 files but mkv/mka. ;)
Couple of things..1) mkvmerge also cuts through only on keyframes 2) mkvmerge *does* split mp4 files, but writes only mkv, which we need to remux back into mp4 after that (which Error did, albeit in a circuitous way).

Makes me think MP4Box is buggy when it comes to splitting mp4 files considering this is not the first time people are complaining about it.

bond
21st June 2006, 23:19
people should make sure that they are setting the correct values in mp4box (1000 vs. 1024 conversion problem)