-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Ogg Vorbis random noises in decoded audio #82
Comments
Thanks for posting this. I'll take a look. Which encoder are you using to write the Ogg Vorbis files? |
I didn't make the ogg files so I don't know the encoder for them. For saving the wave files in the sample code it was node-wav. |
I found the issue for this. There is a bug in the https://github.com/eshaz/codec-parser/blob/master/src/containers/ogg/OggParser.js#L129-L145 This could happen to any codec using Ogg, but it doesn't seem very common to have a bunch of continued packets in a row like in the example you provided. It's still valid Ogg Vorbis, just unusual. Thanks for reporting this and providing a good example. |
I just published a new release of |
In my use case I have a bunch of ogg files, some of them decode to have random noises throughout the audio, while also having the decoded audio shorter than expected.
Upper: audio decoded with the ogg vorbis decoder
Lower: ogg file imported into Audacity directly
Here is the offending source audio file used for the example screenshot.
Code to produce the decoded audio:
All ogg files in my collection should have been generated by the same encoder, because the collection was a pack of samples making up one entire song. However, only some of the files have this issue. The whole pack is available here (google drive).
The text was updated successfully, but these errors were encountered: