[Solved] Plex Media Player - Issue with HDMI audio on my receiver (Passthrough and Plex decoded)

Hi,

I’ve just installed Father Mande’s QNAP port of PMP on my TS-451 HD Station and it works well.
My QNAP is connected via HDMI on an Denon Digital Receiver.
Problem is every movie I play with PMP is sent to my receiver in a 2 channel PCM signal. So I lose all DTS, AC3, even AAC 5.1 streams, they are downmixed to stereo :frowning:

I tried different devices on the audio configuration : only Build-In Audio works, every other either give no sound (like my Intel PCH, or recording PulseAudio setting or default).
When I use the info, using those, it tells me driver is null. When I consult the logs, it tries to use the defined driver, and then falls back on “null”.

When I use Built-In, on the info GUI, there seems no issue, audio output is 5.1, great. But, when I look at my receiver it receives a 2-channel PCM :frowning:

The behaviour is identical whether I use passthrough for DTS, AC3 and so on, or not.

I use 4.2.2 build 20161214 version of QTS, HD Station 3.1.6, QNAP Plex Media Server 1.3.3.3148 and 1.2.2.1 of PMP.

For comparison, Plex Home Theater and Open PHT are working OK using passthrough with Intel PCH driver.

Can someone help me ?

Nico

Have you tried the QNAP forum?

I did. But no solution as of now. I open one here as well to be able to locate the issue if possible.

While investigating, we find out an odd thing : the lav decoder uses spdif.passthrough to go for passthrough. But the sound goes through HDMI not SPDIF.
Is it a generic name or a true bug ? :slight_smile:

Hi !

Still no idea ?

i have same problem with my qnap ts 453mini and my pioneer avr :frowning: no idea ??

No clue neither from Qnap nor Plex :frowning: PMP is not supported on Qnap : basics works but advanced settings don’t.
OpenPHT works best for now. Will wait for next release.

From the PMP perspective, it’s a configuration issue with PulseAudio running on the system and nothing we can (or could) do about.

Basically, you need to configure PulseAudio to output multichannel audio. Passthrough also needs to be explicitly configured.

I don’t know why OpenPHT works for you - maybe they actually revert to ALSA or such. Playback logs from both will always help.

Hi,

I can’t test … I don’t have AVR … but if OpenPHT on QNAP works … (and if it’s my own package and if you don’t change the launch script) … I force a parameters (in fact linked to kodi 16 inside OpenPHT) to select in pulseaudio the ALSA sink

… so perhaps a difference between PMP and OpenPHT on the same system …

I think you can do the same using MPV audio parameters (library of MPV is sued to build PMP )
… you have detail about all the parameters possible and how to add it in your configuration in the Audio settings documentation in plex site …
https://support.plex.tv/hc/en-us/articles/207338798-Advanced-Configuration
https://mpv.io/manual/master/#options

Perhaps you must also adapt the pulseaudio configuration (done by QNAP not by me) in HD_Station (a search in QNAP forum can help you … some people have done the job for some AVR )

Sorry to can’t help you more … I am a little more expert (very small) with QNAP and Linux … than with media tools like PMP or OpenPHT … and I own only one QNAP without AVR … so with a simple ordinary TV … so this limit the help I can done …

BUT I agree with vlang … without the log and eventually some specific settings … it’s VERY difficult up to impossible … to have any advice … just speak in the wind …

Philippe.
NB don’t forget to read carefully : https://support.plex.tv/hc/en-us/articles/212072167-Audio-Configuration-Guide-Plex-Media-Player

Hi,

You asked for the logs, you got 'em :slight_smile:
Here is the plexhometheater.log from OpenPHT and the plexmediaplayer.log from PMP. Same film with DTS sound, no passthrough and 2-channel PCM for PMP, passthrough for OpenPHT.
To father_mande, I tried to use mpv.conf to change things, but I ain’t sure I’m using it correctly. So install on my Qnap are very straight forward with no customization of startup scripts or things like that. I guess I’m using your OpenPHT package.

@Qppapaye that looks like a 3rd party build linking to a weirdly outdated libmpv. Try updating libmpv to at least 0.23.0.

Hi vlang,

I will check … I have rebuild libmpv each time just before generating 1.2.2 (in fact for any version)
BUT as usual … i was able to do an error and to keep an oldest … so I will check A.S.A.P.

Thanks.
Philippe.

Hi vlang,

After verification I use :

ll libmpv*

lrwxrwxrwx 1 root root 16 Dec 26 15:01 libmpv.so -> libmpv.so.1.23.0*
lrwxrwxrwx 1 root root 16 Dec 26 15:01 libmpv.so.1 -> libmpv.so.1.23.0*
-rwxr-xr-x 1 root root 26665835 Sep 29 10:21 libmpv.so.1.23.0*

BUT a 1.24.0 exist … I can update them if need … the problem is you speak about 0.23.0 … can you, please point me in the corresponding log ?

I will also in parallel check with the user … in case the linmpv was not updated with new version …

Philippe.

Hi,

In plexmediaplayer.log …
the git version is the corresponding value for 1.23 : mpv git-6487ba4

So please, vlang, you have a better knowledge than me (I just integrate it) … can you write here some more explain …
certainly I do an error … but I can’t identify it …

Thanks for your help,
Philippe.

Hi,

LAST news
I have generated the same 1.2.2 version … but with libmpv 1.24
I have also provide mpv client for test (ex. getting the audio device seeing by MPV … so by PMP in settings

Don’t know if this solve somthing … but to be sure to be “up to date”

please download it on QNAP community forum as usual
Philippe.

Sorry, I’m talking about the mpv release version, not the library version. Unfortunately they are rather similar currently, so they’re easy to confuse. The library version isn’t always increased on each mpv release.

The mpv 0.23.0 release was made in Dec 25 in 2016.

the git version is the corresponding value for 1.23 : mpv git-6487ba4

Definitely too old.

Hi vlang,

Thanks, so seem I forgot to recreate the libmpv … certainly because I had do a fault by imagine that same version 1.23 can be different (for me it’s always strange …)

Now I think that I am correct with the last 1.24 (just generated before 1.2.2 build)

I will change my procedure to be sure to don’t reuse a previous build. (sorry for annoying you), but after building and running correctly on Ubuntu … I have to move to QNAP (or Asustor) that are NOT Ubuntu … so … some more constraints for me …
Thanks for your help.

NB this new version seem to don’t solve the AVR problem here before … but if people with this problem don’t provide more information … I can’t, and you no more, do something …

Thanks again, so impress by your job.
Philippe.

If it still doesn’t work, please post a new playback log.

Hi all,

I finally found the answer to this passthrough issue. On QNAP, you have to deactivate the option “sound return”. As Alsa uses passthrough exclusively, it can’t do it if you use it already to beep on each item :unamused:
So unactivating sound return and relaunching pmp does the trick : full passthrough :smiley:

Hope it helps, been looking for this answer for months…

@Qppapaye said:
Hi all,

I finally found the answer to this passthrough issue. On QNAP, you have to deactivate the option “sound return”. As Alsa uses passthrough exclusively, it can’t do it if you use it already to beep on each item :unamused:
So unactivating sound return and relaunching pmp does the trick : full passthrough :smiley:

Hope it helps, been looking for this answer for months…

Hi there

Can you let me know specifically where this “Sound return” is? I am having exactly the above issues but cannot find the sound return button.

I am using a qnap 453b. Playing videos through passthrough hdmi but no sound. Info says in using spdif passthrough =(