Page 1 of 1

VLC reports audio errors with WEBM VP8/Opus

Posted: 19 Jul 2017 15:10
by TheVeryFlatCat
I have webm containers with VP8 coded video and Opus audio. During playback, VLC reports "opus error: initial Opus header is corrupted" and "opus error: cannot read Opus header". A few minutes with the source code reveals that VLC is looking for an ogg header instead of raw opus packets. Webm/Matroska files should not have an audio stream in some other container like ogg. If I convert the file to webm VP9/Opus, it plays back perfectly. I have examined both byte streams and they are both valid raw Opus packets so it looks like a bug specific to VP8/Opus.

Is this a bug or some other behaviour that is expected? I have example video and can debug source code if needed.

Re: VLC reports audio errors with WEBM VP8/Opus

Posted: 21 Jul 2017 09:14
by TheVeryFlatCat
Seems as if VLC requires an Opus Ogg header as extra data in the MKV stream header. While this is strictly not necessary, I understand that it is a little easier on the code to do it this way. Case closed.