Skip to content

Conversation

@torokati44
Copy link
Contributor

Oftentimes, it would be nice to be able to start playing an MP4 file before it's available in its entirety, e.g. because it's streamed over a network connection.

In these cases, read_mp4 fails, because it always tries to read every box it finds as far as I could tell.

However, since moov is the main info box that contains track info, etc, at the minimum this has to be parsed before attempting to decode samples (frames) in a streaming fashion.

There even is a hint in a comment in the code about this: "found moov {}, could stop pure 'moov' parser now"

Making these items public facilitates such a use case.

Something like this will be necessary for ruffle-rs/ruffle#14655.

Copy link
Collaborator

@kinetiknz kinetiknz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, seems reasonable.

@kinetiknz
Copy link
Collaborator

Landed via 761f8d6

@kinetiknz kinetiknz closed this May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants