Closed vinnitu closed 4 years ago
It works, but seems audio has not time stampes inside. vlc player for example plays it wrong. ffplay plays normal. browser plays normal but doest show full time info.
var fileStream = fs.createWriteStream('file.ogg');
var oggEncoder = new ogg.Encoder();
oggEncoder.pipe(fileStream);
var opusEncoderStream = new opus.Encoder(rate, channels, frameSize);
opusEncoderStream.pipe(oggEncoder.stream())
while (encodedBuffer) { // read encoded opus data
opusEncodeStream._pushEncodedBuffer(encodedBuffer);
}
How to fix time problem?
Thanks.
I'm archiving the repository for lack of interest in maintaining it. Sorry I never got to deal with this issue. Please see @discordjs/opus for an alternative implementation that is based this project but uses more stable Node.js module technology that should break less between Node.js versions.
Hello!
I have stream of encoded opus packets. I know rate, channels number and frameSize. I need write ogg file. I wrote something like this
But I get nothing in file.ogg Tell me what else I need to do?
Thanks.