ISOMedia.Defragment (ISOMedia v0.1.0)

Copy Markdown View Source

Repack a fragmented MP4 (moof/traf/trun) into a standard progressive [ftyp, moov, mdat] — a pure metadata edit, no transcoding. Samples come from FragmentIndex; the output is assembled by ISOMedia.ProgressiveBuild, so the mdat is a recursive segment list referencing each fragment's bytes (memory-safe).

Summary

Functions

Defragment one parsed fragmented tree into a progressive tree.

Functions

defragment(boxes)

Defragment one parsed fragmented tree into a progressive tree.