RPi4 testbuild with HD audio passtrhough (Atmos etc)

  • It seems we finally figured out all the missing bits and pieces to get HD audio passtrough working on the RPi4. Huge thanks go to popcornmix for taking care of the broadcom vc4 stuff!


    If you are in the mood for highly experimental, bleeding edge pre-alpha testing here's a build you can try:

    LibreELEC-RPi4.arm-9.80-devel-20200706110658-308adca.img.gz


    Please use a spare SD card and do a fresh install with the image. This build is based on LibreELEC master with Kodi 19, config.txt has changed and there's no easy way to go back to the stable LE 9.2 series except restoring a full backup.


    Also note that there are a couple of known limitations and issues with current RPi4 LE master builds:

    • No support for 4k output, this isn't implemented yet in the new driver. Neither is HDR output. Playing 4k HEVC files with HD output should work fine, though.
    • H264 hardware decoding is currently disabled as it can crash kodi when seeking or when playback ends.
    • Kodi 19 switched to Python 3 so be prepared that your favourite addons may not be available or work correctly.

    To get HD audio passtrough you have to enable it in Settings->System->Audio. Change the settings level to advanced or expert and then enable passthrough in general and the separate AC3, DTS, TrueHD and DTS-HD options (depending on what your AVR/TV supports).


    Also make sure you've setup your whitelist correctly and set "Adjust display refresh rate" to "on start/stop" or always in player->video settings to get smooth playback.


    As RPi4 HD audio is in a very early stage we'd be glad about any feedback - both working and non-working reports.


    so long,


    Hias

  • "No support for 4k output, this isn't implemented yet in the new driver. Neither is HDR output. Playing 4k HEVC files with HD output should work fine, though." - As you said this isn't working.

    Atmos works might fine. Actually sounds better on the Pi4 than it does on my Nuc. So I guess better audio driver?

    Only bug I had was with the scraper but that aint your fault. Probably set it up wrong.

    Everything I tried worked as expected.

    Even H265, 2160p (noticed it aint 4K since as you guys said :P)


    So I would say a success from me. I would love HDR to test as well in 4K, with this Atmos to see if they all play nice together.

    EDIT: Not sure if it's you guys or Kodi. But it mislable some Atmos as just "Dolby" but it's Atmos in the files.
    The LG SJ9 also start playing Atmos when you start it. So I guess it's a minor bug.

    Edited once, last by linuxares: Added info ().

  • Thanks a lot to all who tested (also LE staff and kodi forum users)!


    The RPi4 HD audio passthrough code has now been merged into the LibreELEC master branch so our latest (and future) nightly testbuilds on Index of / have this feature built in.


    I can't really comment on scraper / kodi label things (that's not my area of expertise), I mainly tested with various sample files in "Files" mode (not library) and that flagged both Dolby TrueHD and Atmos samples as "DOLBY-HD" (same for the DTS HD variants, that were flagged "DTS-HD").


    so long,


    Hias

  • I've been downloading the nightly versions through the week to see if I can at last get Passthrough on the HDMI2. Yesterday's brought success!! I've just installed it and now everything plays perfectly! Thank you so much for all the hard work gone into this! :)

    Edited once, last by armyofme ().

  • Hi,

    I have just installed the nighly build 20200816 and tested HDMI audio passthrough on RPi4 with my Audio decoder (Onkyo TX-NR636) and it works perfectly !

    I only tested Dolby Digital for the moment but will try other content in DTS HD and Dolby Atmos and give feedback here.


    I look forward the day when 2160p will be added to Kodi 19 alpha to have perfect sound and image at the same time ;)


    A big thank to the developpers for this long awaited come back of audio Passthrough :thumbup:

  • Hi, what is the exact version of the raspberry pi you're using? I wanna give it a try, but wanna make sure I buy the right one. Thanks in advance.

  • Thanks for the response, even an 2GB one can play 4K HEVC 30GB RIPS? I know that at this moment it won't output 4k, I just want to play it.

  • I've attempted to get audio passthrough working (with the latest nightly build) on the second hdmi port (HDMI 2) without success, the avr (Denon AVR-4308) is detected in libreelec however no audio is sent to the receiver (video is sent to HMDI 1 which is working), have I misunderstood the passthrough feature? Thank you

    Edited 4 times, last by philbio ().

  • Hias,


    I have a soundbar of: bose soundbar 700

    Just see only dolby digital and dts.


    Could not see dts hd and dolby true hd.
    is it about the soundbar or is the connection not fine?


    many thanks

  • I've attempted to get audio passthrough working (with the latest nightly build) on the second hdmi port (HDMI 2) without success, the avr (Denon AVR-4308) is detected in libreelec however no audio is sent to the receiver (video is sent to HMDI 1 which is working), have I misunderstood the passthrough feature? Thank you

    I don't think there is any suggestion that you can take video from HDMI1 and audio from HDMI2 ?


    The HD Audio passthrough option adds the option for 1080p modes (but not 2160p?) to bitstream passthrough HD Audio codecs like Dolby True HD and DTS HD Master Audio and High Resolution Audio (sending the compressed bitstream to your AVR for your AVR to decode to PCM), whereas previously on the Pi they had been decoded in software within Kodi and output as PCM 5.1/7.1 (which apart from Atmos should be lossless - other than losing metadata that some downstream AVR processing may use for loudness control etc.)