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

Support streaming? #8

Open
jrmuizel opened this issue Sep 5, 2022 · 1 comment
Open

Support streaming? #8

jrmuizel opened this issue Sep 5, 2022 · 1 comment

Comments

@jrmuizel
Copy link

jrmuizel commented Sep 5, 2022

It seems like matroska-demuxer doesn't have a way of starting and resuming demuxing once more data arrives like https://github.com/webmproject/libwebm/tree/main/webm_parser does. Having this support would make the demuxer usable when streaming media.

@hasenbanck
Copy link
Owner

The currently MatroskaFile needs Read + Seek, so if you could provide a stream implementation, that fullfills those traits, you should be good to go.

But most likely you want to inverse the control here and only want to feed "packets" of data and see, if those packets are enough to continue parsing the file.

This would make the API and implementation much more complicated. I have a feeling that this should be a new struct with it's own API, maybe called MatroskaStream.

But the API should be properly designed. What are the error modes? What functionality should be exposed (for example, how to handle seeking with such a stream API)?

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

2 participants