PDA

View Full Version : 5.1 track AAC surround sound audio with Freeview receivers



Mickkie
01-01-18, 15:27
Hi to All and a Happy New Year to you,

I used some downtime over the holiday to look at the sound performance of my Mut@nt HD51 4k, because I couldn't get 5.1 surround sound coming out of it. I still can't. :(

This is my connection setup with my Mut@nt HD51 fitted with two Freeview receivers and currently running OpenVix-5.1.007.

Mut@ant ==> HDMI ==> Sony TV <==> HDMI ARC <==> Yamaha AVR ==> 5.1-Speakers

The Mut@ant is connected to Sony TV XE9005 using a HDMI cable and Sony in turn is connected over HDMI ARC to a Yamaha AVR. The Yamaha, which is capable of processing mpeg4-AAC, receives the PVR audio over HDMI ARC, while the TV displays the picture.

Without the Mut@ant running, when the Sony TV is receiving a Freeview HD channel itself which shows up as 'Audio AAC 3/2.1' on its info panel, the Yamaha is able to output 5.1 surround sound.

When the Mut@ant is switched on and is also receiving the same Freeview transmission, only a stereo sound comes out of the Yamaha. :confused:

I've also tried plugging in the HDMI from the Mut@ant directly into the Yamaha, but it made no difference. The sound transmitted from the Mut@ant over HDMI is always stereo.

Settings on Mut@ant:

I tried playing with the Audio settings available in Mut@ant's GUI. Under Automatic Language settings, I set it up to prefer AC3 and AC3+, but I expect these will only have an effect with satellite receivers. When I press the Audio button on the remote I see that the first of the two 'AAC-HE' English audio is selected - the second being the Audio Description [AD] for visually impaired. The 'Audio Channel' in the same menu is set to 'Stereo'. Switching the 'Audio Channel' between stereo/left/right makes no difference, nor does switching On the AC3 and DTS settings below.

AC3 Downmix Off
DTS Downmix Off
Audio Channel Stereo

I've also checked the streams captured in a Mut@ant .ts recording, which the TV was able to play with 5.1 surround sound. The recording contains two audio streams, the first of which is a 5.1 track surround sound stream and the second a stereo stream for [AD].

Stream #0:1[0x66](eng): Audio: aac_latm (LC) ([17][0][0][0] / 0x0011), 48000 Hz, 5.1, fltp
Stream #0:2[0x6a](eng): Audio: aac_latm (HE-AACv2) ([17][0][0][0] / 0x0011), 48000 Hz, stereo, fltp (visual impaired)

So the sound is captured with 5.1 audio tracks when available in the transmission, but will not be played out as such. Somehow it seems to be downmixed to stereo and I haven't found a way to disable this. I've looked at alsamixer, but I can't find a setting to enable 5.1 audio tracks there. This is alsa's stored settings:

state.bcm {
control.1 {
iface MIXER
name 'Master Playback Volume'
value.0 31
value.1 31
comment {
access 'read write'
type INTEGER
count 2
range '0 - 63'
}
}

control.2 {
iface MIXER
name 'PCM Playback Volume'
value.0 8388608
value.1 8388608
comment {
access 'read write'
type INTEGER
count 2
range '0 - 16777215'
}
}
control.3 {
iface MIXER
name 'Decoder Audio'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
}

How can I enable live and recorded 5.1 surround sound to be played out of the Mut@ant?

twol
02-01-18, 18:26
You might want to look at this and talk to Birdman/Fat-Tony for more Info.....
http://www.world-of-satellite.com/showthread.php?54766-LG-home-theatre-LHB725-HDMI-ARC-help

Mickkie
02-01-18, 20:28
Thanks twol!

I will post in that thread, but TBH I don't think this is either an HDMI cable or port problem. All my HDMI cables are of high speed 18Gbps 4K capable spec. Something else must be amiss here. The OpenVIX interface does not offer anything other than stereo in the audio channels, where I assume it should also show 5.1/6ch audio output.

twol
02-01-18, 21:04
Thanks twol!

I will post in that thread, but TBH I don't think this is either an HDMI cable or port problem. All my HDMI cables are of high speed 18Gbps 4K capable spec. Something else must be amiss here. The OpenVIX interface does not offer anything other than stereo in the audio channels, where I assume it should also show 5.1/6ch audio output.
Not sure you read it all ..... „
What ARC can not do is pass HD audio such as PCM 5.1/7.1, TrueHD, DTS-HD MA, this is a limitation of HDCP and bandwidth, in such a case you need to connect directly to an AVR via HDMI (or you can use multi channel analogue for PCM only).„

My HD51 (& Giga4K) quite happily pass 5.1 thru my Onkyo receivers to the loudspeakers..... so not a HD51 issue

Mickkie
02-01-18, 22:21
Thank you for your help twol,


My HD51 (& Giga4K) quite happily pass 5.1 thru my Onkyo receivers to the loudspeakers..... so not a HD51 issue

I'm sorry for being dense ... I have connected the Mut@ant HD51 with a HDMI cable directly to one of the AVR input ports again. The audio is played out of the AVR, but it does not come out as 5.1, only stereo. The TV is connected to the AVR via HDMI ARC - just to transfer the video signal. Am I supposed to do away with ARC ports completely and use a normal HDMI port between the TV and the Yamaha?

What "Audio Channel" do you see displayed when you click on the Audio button on the remote? What other audio settings are you using?

Mickkie
02-01-18, 23:34
Hmm ... further investigation revealed:

1. The Sony TV is pushing DD 3/2/0.1 channels through the HDMI ARC port to the Yamaha AVR. So it appears the Sony TV is transcoding AAC 5.1 audio to Dolby and sends this down the HDMI ARC cable.

2. No matter what I settings I tried on the Mut@nt, the Yamaha AVR shows it receives PCM 2/0/--- from it, when the Mut@nt is plugged directly into the Yamaha with an HDMI cable.

Is there some setting on the Mut@ant I can try to alter to make it push out 5.1 audio?

Joe_90
03-01-18, 00:45
I think the mutant can either pass the AAC audio direct or transcode it. Are you sure the Yamaha receiver can handle AAC audio? Most AV amps cannot handle AAC. You are using 5.1, AAC and AC3 interchangeably in your initial post. Dolby digital and AAC are different codecs. Freesat uses Dolby digital AC3 to carry 5.1 audio information. Most audio systems can handle this. Freeview uses AAC which most audio systems cannot handle. You either have to transcode to AC3 or to stereo (2.0) unless you have a device capable of handling AAC.

Mickkie
03-01-18, 01:31
I think the mutant can either pass the AAC audio direct or transcode it. Ah! Where can I select what it is transcoded to?


Are you sure the Yamaha receiver can handle AAC audio? Most AV amps cannot handle AAC. Well, the Yamaha RX-V583 says among other audio formats it can decode MPEG-4 AAC. However, digging deeper in its manual it does not mention AAC over HDMI. It states HDMI is HDCP compliant. For file audio formats over USB/PC/NAS I can I see it mentions MPEG-4 AAC, but only with 2 channel support. So perhaps it won't decode AAC 5.1 over HDMI too? :(


You are using 5.1, AAC and AC3 interchangeably in your initial post. Not really, I only mentioned the two Dolby related audio settings available in OpenVIX and said these had no effect in the output.


You either have to transcode to AC3 or to stereo (2.0) unless you have a device capable of handling AAC.OKie dOKie, where in the Mut@ant settings can I select the audio to be transcoded from AAC to AC3 (the Yamaha can play all flavours of Dolby)?

Mickkie
03-01-18, 09:35
I found the definitive and detailed spec for the AVR. Alas, it will *not* play AAC at all it seems, at least not over HDMI:


HDMI Features:
• 4K UltraHD Video (include 4K/60, 50Hz 10/12bit), 3D Video, ARC (Audio Return Channel), HDMI Control (CEC),
Auto Lip Sync, Deep Color, “x.v.Color”, HD audio playback, Selectable HDMI input in HDMI standby mode,
21:9 Aspect Ratio, BT.2020 Colorimetry, HDR Compatible

Video Format
[snip ...]

Audio Format
• Dolby Atmos
• Dolby TrueHD
• Dolby Digital Plus
• Dolby Digital
• DTS:X
• DTS-HD Master Audio
• DTS-HD High Resolution Audio
• DTS Express
• DTS
• DSD 2-ch to 6-ch
• PCM 2-ch to 8-ch (Max. 192 kHz/24-bit)

Content Protection: HDCP 2.2 compatible A real Who-is-Who of proprietary codecs in there. :)

Nevertheless, if I read the above correctly, the Yamaha AVR should be able to play multichannel PCM, or Dolby audio over HDMI. Therefore with a better understanding of what the AVR can do, please let me reformulate my question:

How can I configure the Mut@ant to output over HDMI either decoded multichannel PCM (not just stereo), or multichannel Dolby?

twol
03-01-18, 10:42
If its a channel (like BBC1 HD) that outputs AC3, providing you don‘t down grade it to stereo in setup/audio, it outputs AC3 on hdmi. PCM, I am not so sure about it might just be 2 channel stereo.

Mickkie
03-01-18, 11:38
Thanks again twol,

If its a channel (like BBC1 HD) that outputs AC3,Are you sure it does? Please note I don't have satellite receivers, only Freeview. The Freeview transmission is AAC 5.1, so the Mut@ant will need to transcode it to AC3 (or decode it to multichannel PCM). I have not found a setting to implement either.


... providing you don‘t down grade it to stereo in setup/audio, it outputs AC3 on hdmi.I have selected to NOT downmix AC3/DTS to stereo, under Setup=>Audio & Video=>Settings, but still the AVR receives a PCM stereo signal. :confused:

Are there any other settings/plugins/configuration files I could try to tweak for this purpose?

ccs
03-01-18, 11:58
Long discussion a while ago.....

http://www.world-of-satellite.com/showthread.php?40895-Dolby-5-1

twol
03-01-18, 12:04
Thanks again twol,
Are you sure it does? Please note I don't have satellite receivers, only Freeview. The Freeview transmission is AAC 5.1, so the Mut@ant will need to transcode it to AC3 (or decode it to multichannel PCM). I have not found a setting to implement either.

I have selected to NOT downmix AC3/DTS to stereo, under Setup=>Audio & Video=>Settings, but still the AVR receives a PCM stereo signal. :confused:

Are there any other settings/plugins/configuration files I could try to tweak for this purpose?

Yes, I wasn‘t thinking when I responded as I have Sat tuners.... sorry:)
I wonder what comes out of the optical? I have tried googling but didn‘t find anything useful.... but if you can somehow hook it into the setup, it might do the job

Joe_90
03-01-18, 14:07
@Mickkie - I think that perhaps the mutant HD51 does not have the ability to transcode the AAC 5.1 audio to AC3 for your AV amp and that is why you are getting 2.0. My GB Quad Plus has a setting to transcode AAC to Dolby AC3 (which is wasted on me as I can't receive UK Freeview transmissions), but I don't see a similar setting on the mutant. Very few AV amps actually support native AAC - most are Dolby or DTS with the ability to support the HD audio streams on the higher-spec boxes.

Mickkie
03-01-18, 20:33
@Mickkie - I think that perhaps the mutant HD51 does not have the ability to transcode the AAC 5.1 audio to AC3 for your AV amp and that is why you are getting 2.0. Thank you fat-tony, I suspect you are right. :( I don't know if this is a hardware limitation of the Mut@ant, or just that no dev found it interesting to write some code to do this yet. Even if the hardware will struggle to transcode the audio in real time and keep video and audio in sync., it can be done on recordings. On my laptop I converted the AAC audio of an hour long recording to AC3, in less than a minute and a half. I haven't yet tried to do it on the Mut@ant, but this is the stanza I used:
ffmpeg -i 20171210\ 1959\ -\ BBC\ ONE\ HD\ -\ Blue\ Planet\ II.ts -codec:v copy -codec:a ac3 -b:a 384k -ac 6 /data/20171210\ 1959\ -\ BBC\ ONE\ HD\ -\ Blue\ Planet\ II.tsThe mapping of the surround sound channels appeared to be correct between the two codecs; I'll run some more tests when I get the time to check it more thoroughly.

Meanwhile, I also ran a test with a Kodi box connected to the Yamaha AVR over HDMI. Although the .ts file sent to the AVR contained audio in AAC 5.1, the AVR once more reported receiving only a PCM stereo signal over the HDMI port and played it over 2 channels. I suspect that the AVR downmixes the 6 channel audio stream and plays it as a 2 channel stereo. Perhaps Yamaha have decided in their wisdom AAC is only useful to their customers as a stereo output, which is the typical use case of iPhone/Android users.

I may write a cron-job to scan for recordings with surround sound and then convert them to AC3 overnight, when the box is not in use, unless anyone can advise of a plugin which already does the same?

PS. Thank you twol, fat-tony and css! :) Following your pointers and links has proven educational for me and saved me a lot of head scratching.

Joe_90
05-01-18, 22:12
@Mickkie - it's not an issue specific to Yamaha. Most AV amps do not process AAC. It's not that they are downmixing a 6 channel audio stream to two channels - they won't handle AAC in any format! It's the player that is downmixing the AAC 5.1 audio to PCM 2.0 because it knows that the amplifier won't process AAC. You will either have to get a player that transcodes AAC 5.1 to AC3 5.1 "on the fly" or convert the audio off-line. Or else purchase an AVR which will handle AAC natively!

cactikid
06-01-18, 02:29
using an optical out of tv to input of amp any use of that as that is what i use ,neither of setup above i have.

Mickkie
06-01-18, 19:36
After some more experimentation with various devices connected to the AVR over HDMI, I have observed the following:

1. Mut@ant

Playing live transmissions or recordings always shows up as PCM 2ch stereo on the AVR's 'Input Signal'.

The only time I managed to get 5.1 surround sound out of the AVR is when I transcoded the AAC audio stream of a .ts recording on my laptop into AC3 and copied this back onto the Mut@nt. In this case the 'Input Signal' reported by the AVR was DD, 3/2/0.1

2. PC running Kodi

I enabled the setting in Kodi for its 5.1 audio to 'pass-through' to the AVR. This is a Kodi function intended to pass-through during playback, without decoding, compressed surround sound streams (AC3, DTS, etc.). I assume it does the same with the AAC audio stream, but I am not sure. In any case, the AVR reported an 'Input Signal' of PCM 2ch stereo. Only the front left and front right speakers produced any sound of the front L/R audio tracks respectively, not a downmixed audio from 5.1 to stereo. All the remaining channels remained silent, so part of the audio stream was not reproduced by the AVR.

3. Laptop with Radeon HDMI output

The Radeon card decoded the AAC to 5.1 surround sound PCM and pushed this via HDMI to the AVR. The AVR produced a 5.1 surround sound and reported an 'Input Signal' of PCM 3/2/0.1.

From the above I drew the following conclusions, but please chime in if you can spot some flaw in my logic:


The Mut@ant is downmixing its output to 2ch stereo, as fat-tony advised. Can someone please post the necessary configuration in OpenVix/Enigma2 to stop this downmixing from taking place?

If Kodi is not decoding the AAC recording and is just passing it through to the AVR unadulterated, then the AVR is decoding it, but ONLY processes the front L/R channels of a stereo AAC input. A stereo input is after all what iPhones and Android devices produce. This is why I only get the front L/R speakers producing any sound. The AVR reporting an 'Input Signal' of PCM 2ch stereo instead of AAC could be a limitation of its firmware - but I'm speculating here.

The laptop's sound card is able to decode AAC 5.1 into PCM 5.1 and transmit this via HDMI uncompressed to the AVR. The AVR had no problem playing this 5.1 surround sound audio.



Based on fat-tony's suggestions I have come up with 3 viable options to address my issue:

a) Live with the downmixed stereo audio the Mut@nt produces in its current configuration. I'd rather not, because some films and documentaries pretty much come alive with surround sound.

b) Find a setting/configuration edit to get the Mut@nt to send 5.1 AAC to the AVR ... AND ... get the AVR to decode this into multichannel PCM. I've contacted Yamaha with a request for this functionality and wait to see if they will ever update their firmware to this effect.

c) Find a setting/configuration edit to get the Mut@nt to transcode its 5.1 audio streams to AC3, assuming its hardware has the capability to perform this task without other adverse effects.

d) Download/transcode/upload 5.1 recordings (only) from AAC to AC3 using a PC. If (a), (b) and (c) above can't/won't happen, then this option will provide a workaround for now.

There are other options, involving changing hardware, installing a satellite dish and what have you, but having just bought the Mut@ant and being overall very happy with its performance I'd rather pursue (c), (b) or if nothing else is forthcoming use (d) for now.


@fat-tony - what AVRs being capable of playing AAC do you know of? This is a moot point at present, because if I cannot stop my Mut@nt from downmixing its audio output into stereo PCM, having an AVR which can play multichannel AAC will not be of any use.

@cactikid - optical cables (Toslink) do not have the bandwidth to transmit multichannel PCM. Only multichannel AC3 (Dolby Digital) will work with them.

twol
06-01-18, 20:46
Unfortunately I think the issue lies with your Sony equipment.
There are other ways of making this work e.g all my equipment (receivers, media players, Apple TV, DVD player, Sonos etc)goes through a receiver that can handle the various audio outouts and this is fed through to my loudspeaker systems ... TV speakers are completely isolated and not used.
Its not the answer you probably want to hear, but I never start with the TV.. its just an output device that may be used by anothe piece of equipment for video output.

Mickkie
07-01-18, 01:10
Unfortunately I think the issue lies with your Sony equipment.
There are other ways of making this work e.g all my equipment (receivers, media players, Apple TV, DVD player, Sonos etc)goes through a receiver that can handle the various audio outouts and this is fed through to my loudspeaker systems ... TV speakers are completely isolated and not used.
Thanks twol, but my Sony TV's speakers are similarly isolated and not used. I now have connected the Mut@nt directly to the Yamaha AVR, as I have the ATV running Kodi, a DVD and for the purpose of my tests the laptop. The Sony TV remains connected to the AVR using HDMI ARC. From what I can figure the main difference between our PVR equipment is that yours has satellite receivers, which produce an AC3 audio stream that all AVRs can decode without problem.

My difficulty arises from the Freeview HD streams which contain AAC surround sound that most AVRs will not decode *unless* it is stereo.

Mickkie
20-01-18, 18:07
Unfortunately I think the issue lies with your Sony equipment.
I can confirm there is nothing wrong with the Sony TV, (which outputs AC3), or the Yamaha AVR. The Yamaha A/V department kindly responded to my enquiry and pointed me to standardised audio streams for testing AAC-LC (Fraunhofer Research) (https://www2.iis.fraunhofer.de/AAC/multichannel.html). I uploaded these streams to the Mut@ant and also to a PC, both of which I connected to the AVR via HDMI. I confirmed the AVR is capable of processing decoded PCM 5.1 surround sound as provided to it by the PC. The Mut@ant however will only provide a (partially) downmixed PCM stereo stream. The Surround Left and Surround Right channels are fed to (mixed in with) the Front Left and Front Right speakers respectively. The Front Centre channel is fed out of both FR/FL speakers. From what I can detect however, the LFE channel remains silent - I couldn't hear a low base sound coming out of the subwoofer.

Would anyone know why the Mut@nt won't decode 5.1 ch AAC-LC into a multichannel PCM and feed this to the AVR? Is this an OpenVix, Enigma2, or Mut@nt's hardware capability issue?

Joe_90
21-01-18, 15:11
@Mickkie - I'm not sure why the Mutant will not pass 5.1 AAC as 5.1 PCM but the downmixing seems correct to me. The rear channels are fed to the corresponding front ones. The centre channel is fed to the two front ones. The .1 channel is LFE and has no part to play in a 2.0 system. You may need to try to borrow a MIPS player (like a Gigablue Quad Plus) which can convert AAC 5.1 to AC3.

dntaylor
29-07-18, 07:42
I Have just bought a Gigablue UHD Quad 4k with an optional Freeview tuner from WOS (love this receiver) but I can't get the AAC transcoder to work in Openvix after selecting it.

I have it connected optically to my amplifier but when I select transcode AAC to AC3 no sound comes out of the amplifier but it does from the television.
My LG OLED TV is also connected optically and this does transcode AAC to AC3 as my amplifier is displaying Dolby Digital 5.1 when watching a Freeview HD broadcast from the TV tuner.

Even though sound comes from the TV watching it through the receiver and not from the amplifier it is not transcodeing, because the TV dose pass-through Dolby Digital and my amplifier would be showing this. I was thinking it was just going through the HDMI and not through the optical but this is not the case. Can anybody shine any light on this and has anybody manage to get it to work?

Many thanks