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 processing InputStream in KlvParser #442

Open
ruckc opened this issue Dec 16, 2022 · 0 comments
Open

Support processing InputStream in KlvParser #442

ruckc opened this issue Dec 16, 2022 · 0 comments

Comments

@ruckc
Copy link

ruckc commented Dec 16, 2022

What is the use case for your proposed feature? Please describe.
I am attempting to parse (in near real time) a KLV bytestream coming out of an external ffmpeg process. I'd like to parse the InputStream directly with KlvParser without needing to figure out the message lengths myself.

Describe the solution you'd like
Add a KlvParser.parseStream(InputStream is) method.

Describe alternatives you've considered
Given the unknown aspect of message lengths, and that KlvParser.parseBytes doesn't tell me how many bytes have been read, I'd have to implement my own stream processing logic, and feed the byte[] into parseBytes().

ruckc pushed a commit to ruckc/jmisb-streaming-klv that referenced this issue Dec 16, 2022
ruckc pushed a commit to ruckc/jmisb-streaming-klv that referenced this issue Dec 16, 2022
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