jellyfin / jellyfin-androidtv

Android TV Client for Jellyfin
https://jellyfin.org
GNU General Public License v2.0
2.49k stars 423 forks source link

Add a fallback to AC3/EAC3 option #2867

Open BJET67 opened 1 year ago

BJET67 commented 1 year ago

Describe the feature you'd like

Some audio codecs such as TrueHD and DTS dont always play correctly so I think the easiest way to get bitstream surround sound is to request a AC3 or EAC3 transcode from the server instead of an AAC or any other codec.

From what I believe bitstreaming AC3 or EAC3 is the only way to get surround over optical so this would be a great addition

mparley commented 1 year ago

Would also get around the problem of my TV automatically downmixing AAC surround to stereo instead of passing it through

t0mas commented 9 months ago

@mparley Same issue on mine, the only surround sound that makes it through a HDMI ARC connection on my Android TV is either AC3 or EAC3. It supports AAC but it will play as PCM 2.0 instead of 5.1. The pull request above adds preferences to change this, basically disable all but AC3 and EAC3 in the settings and select EAC3 as the preferred transcode codec. That will change any AAC or TrueHD or other audio into EAC3 from the server side.

jakub77 commented 8 months ago

This would be great for me. I recently changed to a Sony TV running Google TV and am running into the issue of AAC surround sound not working (playing only as stereo). AC3 surround sound works just fine. I could re-encode every AAC file I have, but I'd like to avoid that.

Interestingly, AAC 5.1 worked on my prior Roku TV (but 7.1 would entirely have no sound).

nextlooper42 commented 8 months ago

Can confirm this is a problem on Sony Bravia Google/Android TV's. All aac multichannel tracks are downconverted to PCM 2.0.

zkhcohen commented 7 months ago

In my setup it's being decoded to multi-channel PCM, not stereo. More info: https://github.com/jellyfin/jellyfin-androidtv/issues/1753#issuecomment-1853148550

Interstellar0verdrive commented 5 months ago

Same issue here with a nVidia Shield Pro (2019) > HDMI > Samsung The Frame 2022 (model QE50LS03BGUXZT) > HDMI (eARC) > Sonos Beam Soundbar. All my cables are HDMI 2.1. Having such a feature would likely solve my problem.