James Sinton
James Sinton
I'm also interested in feeding audioread an MP3 read from memory instead of a filename. I have a darkice audio stream that I would like to follow, open the stream...
Okay, I forked audioread and made my own branch: https://github.com/jksinton/audioread/tree/compressed-audio It's not pretty but ffdec now accepts compressed audio as an argument. One of the challenges is that Popen.communicate returns...
Adrian, Sure, I'll submit a pull request once we create a branch for this feature. I don't think I have the privileges to create a branch on the central repository....
I've pushed a new version to the compressed-audio branch on my fork. It replaces `Popen.communicate` with a `WriterThread` function and works with the `QueueReaderThread` function that you already had implemented....
The branch under development for this is: https://github.com/beetbox/audioread/tree/compressed-audio I'm using this branch in another project to decode mp3 data. See e.g., https://github.com/jksinton/littlesleeper2/blob/master/littlesleeper.py#L453
I was going to suggest working on other backends, just so that there's parity in backend support for decoding a file and compressed audio. I only have Linux and Mac...
Does this stem from decode.py calling audioread.decode(sys.stdin)?
Adding this to decode.py, accounts for the correct sys.stdin input: ``` if filename: f = audioread.audio_open(filename) elif sys.version_info >= (3, 0): f = audioread.decode(sys.stdin.buffer) else: f = audioread.decode(sys.stdin) ``` I...