VLC reports audio errors with WEBM VP8/Opus

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
TheVeryFlatCat
New Cone
New Cone
Posts: 2
Joined: 19 Jul 2017 14:59

VLC reports audio errors with WEBM VP8/Opus

Postby TheVeryFlatCat » 19 Jul 2017 15:10

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.

TheVeryFlatCat
New Cone
New Cone
Posts: 2
Joined: 19 Jul 2017 14:59

Re: VLC reports audio errors with WEBM VP8/Opus

Postby TheVeryFlatCat » 21 Jul 2017 09:14

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.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 52 guests