clsid2 / mpc-hc

Media Player Classic
GNU General Public License v3.0
11.38k stars 499 forks source link

[Solved] Unsupported audio in recent versions #3156

Closed SanderBouwhuis closed 1 week ago

SanderBouwhuis commented 1 week ago

Since a couple of versions, some of my movies no longer play correctly. I am getting quite a lot of audio errors when opening them:

MPC-HC could not render some of the pins in the graph, you may not have the needed codecs or filters installed on the system.

The following pin(s) failed to find a connectable filter:

LAV Splitter Source (internal)::Audio
LAV Audio Decoder (internal)::Output

Media Type 0:
--------------------------
Audio: PCM 192000Hz 8ch 24576kbps

AM_MEDIA_TYPE: 
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_PCM {00000001-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 40

WAVEFORMATEX:
wFormatTag: 0xfffe
nChannels: 8
nSamplesPerSec: 192000
nAvgBytesPerSec: 3072000
nBlockAlign: 16
wBitsPerSample: 16
cbSize: 22 (extra bytes)

WAVEFORMATEXTENSIBLE:
wValidBitsPerSample: 16
dwChannelMask: 0x0000063f
SubFormat: {0000000C-0CEA-0010-8000-00AA00389B71}

pbFormat:
0000: fe ff 08 00 00 ee 02 00 00 e0 2e 00 10 00 10 00 þÿ...î...à......
0010: 16 00 10 00 3f 06 00 00 0c 00 00 00 ea 0c 10 00 ....?.......ê...
0020: 80 00 00 aa 00 38 9b 71                         €..ª.8›q

Did something change in MPC-HC? Or do I have a setting which is incorrect? Or are newer movies now starting to use codecs which are not supported by MPC-HC?

clsid2 commented 1 week ago

The audio decoding is working fine. The problem is that your audio device is not accepting input of 192 kHz.

Solution is to change the audio renderer to SaneAR. That can automatically resample the audio to a (lower) samplerate that is supported by your audio driver.

You are probably also playing video with a different audio format, given that most formats are just 48 kHz. What details does MediaInfo give?

SanderBouwhuis commented 1 week ago

Ok, I found it in the settings. I turned it on, but it still gives me the same error message:

MPC-HC Settings

This is what the mediainfo says:

General
Unique ID                      : 269359021550157510028723766338897165959 (0xCAA4A9191CAF78A2E3630521C909BE87)
Complete name                  : D:\Movies\Animated\~Shaun The Sheep - Farmageddon _HDR_.mkv
Format                         : Matroska
Format version                 : Version 4
File size                      : 12.4 GiB
Duration                       : 1 h 26 min
Overall bit rate mode          : Variable
Overall bit rate               : 20.4 Mb/s
Frame rate                     : 24.000 FPS
Movie name                     : A Shaun The Sheep Movie: Farmageddon
Encoded date                   : 2020-04-18 19:34:34 UTC
Writing application            : mkvmerge v44.0.0 ('Domino') 64-bit
Writing library                : libebml v1.3.10 + libmatroska v1.5.2
Cover                          : Yes
Attachments                    : cover.jpg / cover.jpg / cover.jpg

Video
ID                             : 1
Format                         : HEVC
Format/Info                    : High Efficiency Video Coding
Format profile                 : Main 10@L5.1@High
HDR format                     : SMPTE ST 2086, HDR10 compatible
Codec ID                       : V_MPEGH/ISO/HEVC
Duration                       : 1 h 26 min
Bit rate                       : 15.6 Mb/s
Width                          : 3 840 pixels
Height                         : 1 608 pixels
Display aspect ratio           : 2.39:1
Frame rate mode                : Constant
Frame rate                     : 24.000 FPS
Color space                    : YUV
Chroma subsampling             : 4:2:0
Bit depth                      : 10 bits
Bits/(Pixel*Frame)             : 0.105
Stream size                    : 9.47 GiB (76%)
Language                       : English
Default                        : Yes
Forced                         : No
Color range                    : Limited
Color primaries                : BT.2020
Transfer characteristics       : PQ
Matrix coefficients            : BT.2020 non-constant
Mastering display color primar : Display P3
Mastering display luminance    : min: 0.0001 cd/m2, max: 1000 cd/m2

Audio #1
ID                             : 2
Format                         : MLP FBA 16-ch
Format/Info                    : Meridian Lossless Packing FBA with 16-channel presentation
Commercial name                : Dolby TrueHD with Dolby Atmos
Codec ID                       : A_TRUEHD
Duration                       : 1 h 26 min
Bit rate mode                  : Variable
Bit rate                       : 4 127 kb/s
Maximum bit rate               : 6 426 kb/s
Channel(s)                     : 8 channels
Channel layout                 : L R C LFE Ls Rs Lb Rb
Sampling rate                  : 48.0 kHz
Frame rate                     : 1 200.000 FPS (40 SPF)
Compression mode               : Lossless
Delay relative to video        : 3 s 0 ms
Stream size                    : 2.50 GiB (20%)
Language                       : English
Default                        : Yes
Forced                         : No
Number of dynamic objects      : 11
Bed channel count              : 1 channel
Bed channel configuration      : LFE

Audio #2
ID                             : 3
Format                         : AC-3
Format/Info                    : Audio Coding 3
Commercial name                : Dolby Digital
Format settings                : Dolby Surround EX
Codec ID                       : A_AC3
Duration                       : 1 h 26 min
Bit rate mode                  : Constant
Bit rate                       : 640 kb/s
Channel(s)                     : 6 channels
Channel layout                 : L R C LFE Ls Rs
Sampling rate                  : 48.0 kHz
Frame rate                     : 31.250 FPS (1536 SPF)
Compression mode               : Lossy
Delay relative to video        : 3 s 0 ms
Stream size                    : 397 MiB (3%)
Language                       : English
Service kind                   : Complete Main
Default                        : No
Forced                         : No
Dialog Normalization           : -31 dB
compr                          : 4.86 dB
dynrng                         : 4.22 dB
cmixlev                        : -3.0 dB
surmixlev                      : -3 dB
dmixmod                        : Lt/Rt
ltrtcmixlev                    : -3.0 dB
ltrtsurmixlev                  : -3.0 dB
lorocmixlev                    : -3.0 dB
lorosurmixlev                  : -3.0 dB
dialnorm_Average               : -31 dB
dialnorm_Minimum               : -31 dB
dialnorm_Maximum               : -31 dB

Text
ID                             : 4
Format                         : PGS
Muxing mode                    : zlib
Codec ID                       : S_HDMV/PGS
Codec ID/Info                  : Picture based subtitle format used on BDs/HD-DVDs
Duration                       : 1 h 26 min
Bit rate                       : 24.2 kb/s
Frame rate                     : 0.455 FPS
Count of elements              : 2356
Stream size                    : 14.9 MiB (0%)
Language                       : English
Default                        : No
Forced                         : No

Menu
00:00:00.000                   : en:Chapter 01
00:06:26.208                   : en:Chapter 02
00:10:53.375                   : en:Chapter 03
00:17:35.500                   : en:Chapter 04
00:22:50.125                   : en:Chapter 05
00:32:56.000                   : en:Chapter 06
00:38:22.833                   : en:Chapter 07
00:44:31.666                   : en:Chapter 08
00:54:47.916                   : en:Chapter 09
01:01:03.208                   : en:Chapter 10
01:05:51.750                   : en:Chapter 11
01:12:29.041                   : en:Chapter 12
clsid2 commented 1 week ago

It looks like you enabled bitstreaming in LAV Audio decoder.

If you want to bitstream, then make sure the correct audio device is set as default in Windows settings (or select the device in MPC-HC settings on your screenshot). Driver updates can sometimes mess up the device order in Windows.

In the properties of the audio device in Windows settings, make sure that apps can take exclusive access, which is required for bitstreaming. (The exclusive mode option of SaneAR is irrelevant, as bitstreaming is always done exclusive.)

SanderBouwhuis commented 1 week ago

Where can I turn off this 'bitstreaming'? I couldn't find it in the settings.

These are my Windows settings:

2024-11-06 00-00-55 400x455 Speakers_Properties

clsid2 commented 1 week ago

MPC-HC options > Internal Filters > Audio Decoder

SanderBouwhuis commented 1 week ago

Ok, I got it to work.

For other people encountering the same issue, I had to turn on the checkbox for the 'Fallback to PCM if Bitstreaming is not supported' option:

MPC-HC Autdio Options

clsid2 commented 1 week ago

You also need to uncheck those boxes above it. You are not outputting to a receiver.