[00007f8cb0c04c60] opus decoder error: Error: corrupted stream?
[00007f8cb0c04c60] main decoder error: buffer deadlock prevented
The same file can be played with Chrome, Firefox and ffplay.
This file was created with following command:
ffmpeg -ss 00:00:00 -i ff-16b-2c-44100hz.opus.ogx -t 00:00:10 -codec libopus -vbr off -frame_duration 10 -strict -2 opus_cbr_10.mp4
Link to source file (but any other audio can be used for that):
https://dl.espressif.com/dl/audio/ff-16b-2c-44100hz.opus
Link to result file:
http://redbaron.atwebpages.com/media/opus_cbr_10.mp4
When mp4 file is created with vbr, then there is no such issue and VLC plays it well.
If VLC is rebuilt with following patch, then VLC plays opus_cbr_10.mp4 well.
Code: Select all
--- modules/demux/mp4/mp4.c 2019-12-12 12:58:53.775303509 +0300
+++ modules/demux/mp4/mp4_new.c 2019-12-12 12:59:04.292969877 +0300
@@ -3743,6 +3743,7 @@
case VLC_CODEC_DTS:
case VLC_CODEC_MP4A:
case VLC_CODEC_A52:
+ case VLC_CODEC_OPUS:
i_max_v0_samples = 1;
break;
/* fixme, reverse using a list of uncompressed codecs */