gpac / mp4box.js

JavaScript version of GPAC's MP4Box tool
https://gpac.github.io/mp4box.js/
BSD 3-Clause "New" or "Revised" License
1.95k stars 330 forks source link

No control over moof size while segmenting #389

Open collin opened 7 months ago

collin commented 7 months ago

Currently, when segmenting a file, a large number of moof boxes are created.

For the files I've been looking at, this results in ~1MB overhead per track per minute (more or less depending on frame/samplerate).

That's probably not much of an issue when doing on-the-fly segmentation for playback, but isn't ideal when remuxing files for long term storage.

For the cases I'm thinking of there's a big advantage in being able to fragment/separate tracks on clients before uploading to servers. In particular, it would be useful to create moofs that contain an entire group of pictures.

If I were to create a patch that either:

Would that be likely to be accepted as a merge?