-
Notifications
You must be signed in to change notification settings - Fork 35
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
Piping writeable to readable #43
Comments
Hey @asaphaaning what you're describing should be possible. Can you share some code of what you're trying to achieve and explain where it's not working? |
Hey @samcday thanks for answering. I have problems getting ffmpeg to produce any output from events if I specify an output stream, but if I let it create a PassThrough stream by simply calling That aside, here's what I wanted to achieve:
This produces an error:
Now, if I try to grab my PassThrough stream like I mentioned in the beginning and pipe that into a ReadableStreamBuffer I get the error
|
I suppose something like this would work though, is this an anti-pattern?
|
I want to read from my stream in chunks of 1933 bytes. As I understand, a readablestream can be constructed to emit data upon the internal buffer reaching this given size, however, my ffmpeg call is outputting its processed data into a writable stream, not a readable stream.
I tried piping the writeable stream into a readable stream, both instances of the node-stream-buffer implementation, but that didn't work out.
Is this something that is possible?
The text was updated successfully, but these errors were encountered: