Skip to content
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

MP4 ISOM Demuxer for unevenly distributed tracks #776

Open
varsill opened this issue Mar 11, 2024 · 0 comments
Open

MP4 ISOM Demuxer for unevenly distributed tracks #776

varsill opened this issue Mar 11, 2024 · 0 comments

Comments

@varsill
Copy link
Contributor

varsill commented Mar 11, 2024

The Membrane.MP4.ISOM.Demuxer suffers from the problems when samples from different tracks are packed unevenly in the .mp4 file.
For instance it happens when after reading 3MB of the .mdat box, the user can resolve video samples corresponding to 30s of video, but only to 1s of audio.
If the user would like to have the audio and video tracks synchronized, it becomes necessary to buffer the samples from the video track, which might lead to extensive usage of memory.
Possible solutions:

  • bind the Demuxer more tightly to reading file from the system so that it can freely seek in the file
  • use the SeekEvent API to seek in the File.Source
  • allow user to specify the desired type track that the demuxer should resolve - with that approach, the user could easily spawn two demuxers, one for video and one for audio track
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

No branches or pull requests

1 participant