Skip to content

Video: fragmented MP4 (moof/traf) support #71

Description

@justin13888

rawshift-video-isobmff rejects fragmented MP4 with a clear error when moov.mvex is present, rather than presenting a track with no samples:

fragmented MP4 (mvex present) is not supported yet

Fragmented files carry their sample tables in moof/traf boxes rather than in stbl, so the sample index built from stbl alone is empty.

Camera-origin files — rawshift's subject — are not fragmented, which is why this was scoped out. It matters for streaming-shaped input (DASH/CMAF) and for recordings from devices that write fMP4 for crash resilience.

mp4-atom already models Moof, Traf, Trun, Tfhd and Tfdt, so the work is extending SampleIndex to walk the fragment run tables and concatenate them onto the (possibly empty) stbl index, plus honouring trex defaults.

Follow-up to #39.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions