@alexsisk said:
After that post, I actually tried one of the few H.264 / TrueHD movies I have - and Plex was 100% DirectPlay. And my receiver said PCM. That means the TrueHD file must have been decoded by FFmpeg on the Pi.
Correct, the rPi will transcode to PCM.
That being said, why couldn’t it transcode an H.265 video and Direct Stream the uncompressed audio?
FFmpeg is part of OpenPHT, and you can see on FFmpeg’s website that it has decoders for DTS-HD MA and TrueHD.
There may be an issue here. I’ve seen it but I don’t have that much 7.1 sound to test with.
Also, I’ve always wondered why it says “Support 8-channel DTS-HD Decoding” in the audio settings (which would indicate that RasPlex can decode client side) but doesn’t mention TrueHD, when they’re both part of FFmpeg.
Quite confused. RasPlex certainly wouldn’t use the extra processing power needed to encode to AAC client-side if it can decode to PCM client-side.
Kodi Raspberry Pi documentation
1.8 How about multichannel audio support?
By default audio is downmixed to stereo.
If your receiver/TV supports DTS or AC3 passthrough then enable these in audio settings and you will get 6 channel audio.
Multichannel PCM audio is supported over HDMI. Note: not all receivers support this and toslink/optical will not.
Enable by setting the speaker configuration to suitable value (e.g. 5.1 or 7.1).
If your recevier does not support multichannel PCM, then leave this at 2.0. You can still get multichannel audio through passthrough.
Dom, Raspberry Pi Engineer
The HD audio passthrough issue is only related to HDMI output.
It depends where the content comes from. Blu-Ray mandates that non-HD audio is present. DTS-HD contains a 5.1 channel DTS core which can be passed through by the Pi (through HDMI).
Alternatively if the HD audio is TrueHD, then there must be a 5.1 channel AC3 track with the same content, which the Pi can pass through.
If passthrough is not available, then DTS or AC3 can be decoded by the Pi, and either output as 6 channel PCM (through HDMI), or downmixed to stereo (for analogue audio or HDMI if TV doesn’t support multichannel PCM).
With the new libdcadec library, we can now decode 8 channel DTS-HD. TrueHD was already supported, and can produce 8 channel audio. These 8 channel formats can be output as 8 channel PCM, or downmixed.
If you are planning to use a USB audio device for HD audio output, I’d suggest doing some research. Linux driver support for USB audio cards is not guaranteed. Passthough support is an obstacle. HD passthrough is a further obstacle.
The data rates required by HD audio may be problematic. Honestly, I can’t recall a case of anyone even trying this (succeeding or failing).