Skip to content

Make BoxType, BoxHeader, BMFFBox, BoxIter, and read_moov pub #427

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

torokati44
Copy link

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.

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.

1 participant