Page 1 of 1
VLC does not play Multichannel OPUS Audio
Posted: 31 Jan 2021 16:52
by Felixkruemel
So I've encoded an raw DTS 5.1 stream with ffmpeg to OPUS
Code: Select all
ffmpeg -i test.mkv -map 0:1 -acodec libopus -b:a 384k -mapping_family 255 testout.mkv
Now MPV will playback the Audio just fine, but VLC as of 3.0.12 won't. I'm on Windows 10 if that matters, although it should not.
It shows opus correctly in the Codec information:
And here's the ffprobe output:
Code: Select all
Stream #0:1(ger): Audio: opus, 48000 Hz, 5.1, fltp (default)
Metadata:
BPS-eng : 1509000
DURATION-eng : 00:45:05.120000000
NUMBER_OF_FRAMES-eng: 253605
NUMBER_OF_BYTES-eng: 510253260
_STATISTICS_WRITING_APP-eng: mkvmerge v52.0.0 ('Secret For The Mad') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2021-01-27 16:32:48
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
ENCODER : Lavc58.119.100 libopus
DURATION : 00:45:05.127000000
Is that an actual issue or am I too dumb to fix that
VLC Log says:
Code: Select all
opus error: Unsupported Channel Mapping
Re: VLC does not play Multichannel OPUS Audio
Posted: 01 Feb 2021 08:15
by Lotesdelere
Please open Tools -> Messages (set Verbosity to 2)
before you start the playback, and then paste the
full resulting log here or on Pastebin.com or Justpaste.it if it's too long.
Also upload a short sample of your
original problematic file to Zippyshare.com or to WeTransfer.com and then post the link to the file here.
https://www.zippyshare.com
https://wetransfer.com
If needed cut it with DGsplit and read here about how to do it:
https://forum.videolan.org/viewtopic.ph ... 35#p193335
100 MB max should be enough.
Re: VLC does not play Multichannel OPUS Audio
Posted: 13 Oct 2022 02:38
by ramonpc
I had the same issue and solved by Avoiding the metadata network access:
Tools > Preferences(simple) > Uncheck: Allow metadata network access
or:
Tools > Preferences(advanced) > (Show Settings) All > PlayList > Uncheck: Allow metadata network access
I hope this helps.
Best regards.
RamonPC
Re: VLC does not play Multichannel OPUS Audio
Posted: 16 Feb 2023 23:11
by boeroboy
I can confirm this too. Normal libopus works fine but the bug occurs when specifying ffmpeg arg "-ac 6" for 5.1 streams, etc. Media plays fine in other media players. Initially I figured this was a PipeWire issue but it seems to fail in both PipeWire and PulseAudio when the streams are not reading as just "Channels: Stereo" VLC falls on its face where other players work fine. There is a constant flow of corrupted stream errors in stderr as the media plays. In this case, "Channels: 3F2R/LFE"
[00007f91d8c1a780] opus decoder error: Error: corrupted stream?
Will investigate further because honestly VLC is still the best player for me and the other players have other codec issues. The metadata access workaround did not help me.
Re: VLC does not play Multichannel OPUS Audio
Posted: 17 Feb 2023 09:40
by Lotesdelere
I can't reproduce the issue with the OPUS files I have.
Please post a message log and a sample file as requested in my previous post.
Re: VLC does not play Multichannel OPUS Audio
Posted: 17 Feb 2023 13:57
by boeroboy
I can't reproduce the issue with the OPUS files I have.
Please post a message log and a sample file as requested in my previous post.
Right, try this one but I will remove it as soon as you've got a copy.
https://drive.google.com/file/d/1Xl6Xhp ... share_link
This on Fedora 37 using standard rpmfusion packaging:
Code: Select all
> vlc shares.av1.mp4
VLC media player 3.0.18 Vetinari (revision )
[000055672400b520] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Warning: fallback to QtQuick software backend.
[00007fbf58c16490] opus decoder error: Error: corrupted stream?
[00007fbf58c16490] opus decoder error: Error: corrupted stream?
[00007fbf58c16490] opus decoder error: Error: corrupted stream?
[00007fbf58c16490] opus decoder error: Error: corrupted stream?
[00007fbf58c16490] opus decoder error: Error: corrupted stream?
[00007fbf58c16490] opus decoder error: Error: corrupted stream?
[00007fbf58c16490] opus decoder error: Error: corrupted stream?
[00007fbf58c16490] opus decoder error: Error: corrupted stream?
[00007fbf58c16490] opus decoder error: Error: corrupted stream?
[00007fbf58c16490] opus decoder error: Error: corrupted stream?
[00007fbf58c16490] opus decoder error: Error: corrupted stream?
etc thousands of times repeated
etc
etc
Mediainfo:
Code: Select all
> mediainfo shares.av1.mp4
General
Complete name : shares.av1.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/av01/iso2/mp41)
File size : 204 KiB
Duration : 9 s 93 ms
Overall bit rate mode : Variable
Overall bit rate : 184 kb/s
Writing application : Lavf59.27.100
Video
ID : 1
Format : AV1
Format/Info : AOMedia Video 1
Format profile : Main@L2.1
Codec ID : av01
Duration : 9 s 93 ms
Bit rate : 149 kb/s
Width : 512 pixels
Height : 384 pixels
Display aspect ratio : 4:3
Frame rate mode : Constant
Frame rate : 23.976 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.032
Stream size : 166 KiB (81%)
Color range : Limited
Codec configuration box : av1C
Audio
ID : 2
Format : Opus
Codec ID : Opus
Duration : 9 s 0 ms
Source duration : 9 s 6 ms
Source_Duration_LastFrame : -14 ms
Bit rate mode : Variable
Bit rate : 28.9 kb/s
Maximum bit rate : 48.0 kb/s
Sampling rate : 48.0 kHz
Compression mode : Lossy
Stream size : 31.8 KiB (16%)
Source stream size : 31.9 KiB (16%)
Default : Yes
Alternate group : 1
Sometimes media causes this over and over instead:
Code: Select all
[00007fc714c047b0] opus decoder error: cannot read Opus header
[00007fc714c047b0] opus decoder error: initial Opus header is corrupted
Re: VLC does not play Multichannel OPUS Audio
Posted: 17 Feb 2023 14:00
by boeroboy
Related:
https://code.videolan.org/videolan/vlc/-/issues/27808
It looks like this fix was merged 2 weeks ago. Now just need to figure how to successfully build from source or wait for packaging to catch up.
Re: VLC does not play Multichannel OPUS Audio
Posted: 18 Feb 2023 10:43
by Lotesdelere
You could try a nightly build:
https://nightlies.videolan.org