jmisb icon indicating copy to clipboard operation
jmisb copied to clipboard

Support processing InputStream in KlvParser

Open ruckc opened this issue 3 years ago • 0 comments

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 avatar Dec 16 '22 21:12 ruckc