I probably am getting corrupted data at the end of stream, and just not
noticing because ffmpeg does a good enough job at handling bad inputs. :( I'll
take a closer look (and not close `bodyStream` unnecessarily).
That's good information to know about issue 8994. I'll take a look at issue
7126
I can't really think of a better way to do this, the way your doing it looks
good.
I'm not sure why you're closing the `bodyStream` though, I'm surprised that
doesn't cause issues. The HTTP client is only supposed to close it.
Btw, beware of 0.19.0, you might run into a regression if you use
I'm streaming audio (Internet radio) from an HTTP(S) endpoint, and wanting to
capture 30 seconds of it (it's streaming in real time, and will continue
sending data for as long as the connection is open).
import httpclient
import asyncdispatch
from portaudio as p import nil