-
Notifications
You must be signed in to change notification settings - Fork 55
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
parse: add support for non-seekable streams #132
Comments
Hi @JeromeMartinez, could you please help me implement this? |
Oops, I missed the first ping last year.
Our usage is to stop the parsing (so exiting the loop then Ignoring I would recommend to stop the parsing after a seek request if |
Currently, the
parse()
method supports file-like objects but they have to be seekable:pymediainfo/pymediainfo/__init__.py
Lines 480 to 483 in 5ccb770
The
mediainfo
binary is able to parse piped input so I assume the library supports non-seekable streams.@JeromeMartinez, how would I go about implementing this? Do I naively ignore
MediaInfo_Open_Buffer_Continue_GoTo_Get
and pass an arbitrary size toMediaInfo_Open_Buffer_Continue
like this? It works with a test stream but I'm not sure it's the right way :DThe text was updated successfully, but these errors were encountered: