Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] MP4Box Splitx fails for files > 2GB [sf#234] #234

Open
rbouqueau opened this issue Sep 24, 2014 · 13 comments

Comments

@rbouqueau
Copy link
Owner

commented Sep 24, 2014

Reported by phredeaux on 2011-06-23 07:45 UTC
MP4Box bug
MP4 files that are > 2GB in size, when SplitX is used, the entire file is copied instead of a split being made. Identical SplitX on files < 2GB have split correcty.

Version used:
MP4Box - GPAC version 0.4.6-DEV-rev2735
Compilation Date: Mar 2 2011 - by Kurtnoise
GPAC Copyright: (c) Jean Le Feuvre 2000-2005
(c) ENST 2005-200X
GPAC Configuration: (static configuration file)
Features: GPAC_HAS_SPIDERMONKEY GPAC_HAS_JPEG GPAC_HAS_PNG

Attempts to use a later, nightly build of MP4Box/GPAC fail completely

@rbouqueau

This comment has been minimized.

Copy link
Owner Author

commented Sep 24, 2014

Commented by rbouqueau on 2011-06-23 12:42 UTC
Hi Derek,

Can you please try the new rev3319 nightly build and tell me if it fixes your problem?

Romain

@rbouqueau rbouqueau changed the title MP4Box Splitx fails for files > 2GB [Bug] MP4Box Splitx fails for files > 2GB [sf#234] Sep 24, 2014
@rbouqueau

This comment has been minimized.

Copy link
Owner Author

commented Sep 24, 2014

Commented by phredeaux on 2011-06-24 05:40 UTC
Romain,

MP4Box no longer crashes on start with build 3320 and a file > 2GB. However, the split failing still remains

Log below

C:\Mp4box>mp4box -add "\users\public\videos\AFL- Championship Season_Prime Canberra_2011_04_26_13_58_00.mp4" -splitx 10:100 \users\public\videos\split2.mp4
IsoMedia import - track ID 1 - Video (size 720 x 576)
IsoMedia import - track ID 2 - Audio (SR 48000 - 2 channels)
Adjusting chunk start time to previous random access at 7.64 sec
Extracting chunk \users\public\videos\split2.mp4 - duration 92.36 seconds
Warning: Edit list doesn't look like a track delay scheme - ignoring
Saving to \users\public\videos\split2.mp4: 0.500 secs Interleaving

It spots the cut correctly and says it's going to do the cut, but then simply makes a complete copy of the original file.

Source MP4 File is 2.7GB
"Split" MP4 file is a copy of the original 3.2 hours at 2.7GB, not a 92 second clip

@rbouqueau

This comment has been minimized.

Copy link
Owner Author

commented Sep 24, 2014

Commented by rbouqueau on 2011-06-24 09:46 UTC
I have reproduced your bug, even with small files. I'll let you know here.

Romain

@rbouqueau

This comment has been minimized.

Copy link
Owner Author

commented Sep 24, 2014

Commented by rbouqueau on 2011-06-24 14:39 UTC
Ok, should be fixed by r3321 :)

The behaviour wasn't congruent with the doc which says :"You can add media to a file and split it in the same pass. In this case, the destination file will not be stored." (http://gpac.wp.institut-telecom.fr/mp4box/mp4box-documentation/\) The split file was immediately overwritten with the result of the "-add" option which was incorrect. Tell me if it solves your issue.

Romain

@rbouqueau

This comment has been minimized.

Copy link
Owner Author

commented Sep 24, 2014

Commented by phredeaux on 2011-06-25 11:59 UTC
Romain,

I've run it against my test files. The cut appears to be made and around the right size, however:

1 . The resulting file name is different to the one specified, having the cut details in the file name
2. The cut file is unplayable

Derek

@rbouqueau

This comment has been minimized.

Copy link
Owner Author

commented Sep 24, 2014

Commented by rbouqueau on 2011-06-27 07:23 UTC
Derek,

  1. with this option you can't specify the output name (although it always looks like inputname_starttime_endtime.ext). Check the doc if you have a doubt. You actually don't need the "-add" in your command-line (it adds a useless step).

  2. mines are ok. Could you please share a file that fails?

Romain

@rbouqueau

This comment has been minimized.

Copy link
Owner Author

commented Sep 24, 2014

Commented by phredeaux on 2011-06-28 07:25 UTC
Thanks, my mistake on the -add option, which I have now corrected. I am now uploading the mp4, but as it's 500MB it's taking a while. Will post url once it's done.

@rbouqueau

This comment has been minimized.

Copy link
Owner Author

commented Sep 24, 2014

Commented by phredeaux on 2011-06-28 08:49 UTC
More information. The split plays under VLC but will not under Windows Media Player. Still uploading the source...

@rbouqueau

This comment has been minimized.

Copy link
Owner Author

commented Sep 24, 2014

Commented by phredeaux on 2011-06-28 23:01 UTC
Source video is here: https://rapidshare.com/files/1783279293/Futurama-NoCuts.mp4

  • SPLITX with latest nightly build it is unplayable by Windows Media Player but is playable using VLC
  • SPLITX using 0.4.6-DEV-rev2735 is playable by both Windows Media Player and VLC, but will fail for files > 2GB
@rbouqueau

This comment has been minimized.

Copy link
Owner Author

commented Sep 24, 2014

Commented by rbouqueau on 2011-06-30 14:37 UTC
Hi Derek,

Thank you for the test file, it was of great help :)

The split file is read by VLC, QuickTime and our own player Osmo4 (included with the installer) from revision 3346. WMP on W7 is the only one to fail but I can't find any log, and without any clue it is nearly impossible to debug. Any help is welcome.

Romain

@rbouqueau

This comment has been minimized.

Copy link
Owner Author

commented Sep 24, 2014

Commented by phredeaux on 2011-07-02 05:21 UTC
OK Romain, I'll see what I can work out. Do your splits work under Windows Media Player using your own test MP4s? If so there may be clues in the x264 options.

@rbouqueau

This comment has been minimized.

Copy link
Owner Author

commented Sep 24, 2014

Commented by rbouqueau on 2011-07-04 07:36 UTC
I made some extra tests. Some files (including the one you provided) seem to work with WMP if you ask GPAC to rewrite them ("MP4Box -add myfile-in myfile_out"). WMP seem to fail when unknown boxes are present but it would need further investigation.

Romain

@rbouqueau

This comment has been minimized.

Copy link
Owner Author

commented Sep 24, 2014

Commented by phredeaux on 2011-07-04 09:30 UTC
I've reproduced the same thing. Rewritten MP4s work fine, split does not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.