I just got a new Sony BRAVIA (55 inch X90F - KD-55X9000F) yesterday and want to use the Emby app on it instead of the old HTPC running WMC and Emby Classic. The TV is running Android TV 7.0 and the Emby Server is currently version 18.104.22.168 on a Windows Server 2012 R2 machine.
The audio system is an old Panasonic one with support for Dolby Digital and DTS and is connected via the optical out from the TV. The HTPC was connected to this system via optical out as well.
Videos open fine from the Emby app on the new TV, but all audio is only being passed to the sound system as stereo instead of 5.1 as expected.
Opening the same videos via the DLNA server from the TV has the audio pass to the audio system correctly as Dolby or DTS. Playing UHD Blu-rays from my Sony UBP-X700 passes the audio as expected as well.
Most of my Blu-ray rips have been encoded as HEVC/H.265 with DTS-HD MA as MKVs, while DVD rips are the same with Dolby Digital or DTS audio. I have also tested using H.264 encoded videos. A log file from playing my rip of Avatar is attached.
Any help with getting the digital audio working would be appreciated.