Closed dethstrobe closed 9 years ago
I just got this working for the most part. I made a fs.writeFile to hold the buffer data, then made a createReadStream and pipe that in to the decoder then pipe the decoder in to the encoder while setting the decoder's output settings like in your examples.
I'd rather not need to use fs to write the data to disk, but I can't figure out how to stream the data from my POSTed data. Something I'll need to look more in to.
I'm making a web app that takes in mp3s and saves them to mongodb. I was wondering if there was an easy way to take an mp3 as input and output an mp3 at a lower bitrate?