Posts by Da Flex

    I need to try the LE 12 nightly and see if it resolves the issue.

    If not, share a log from the nightly...

    Please provide a full debug log.

    How to post a log (wiki)

    1. Enable debugging in Settings>System Settings>Logging
    2. Restart Kodi
    3. Replicate the problem
    4. Generate a log URL (do not post/upload logs to the forum)

    use "Settings > LibreELEC > System > Paste system logs" or run "pastekodi" over SSH, then post the URL link

    In both cases used format is AE_FMT_S16NE, present on both platforms. What about frames, which is diffrent? Is there a way to change them?

    If connection breaks on a higher frame rate (only audio in your case), then it's sometimes bad HDMI cabling.

    I would check whether your HDMI cable(s) is/are conform to HDMI 2.0 or 2.1. Those cables have better shielding, so they can handle higher data rates (4K video, HD audio etc.).

    Thanks. LE and OSMC receive different capabilities from the AVR.

    OSMC on RPi (working):

    Code
    2023-08-19 14:49:22.757 T:669      info <general>:     Device 4
    2023-08-19 14:49:22.757 T:669      info <general>:         m_deviceName      : hdmi:CARD=vc4hdmi,DEV=0
    2023-08-19 14:49:22.757 T:669      info <general>:         m_displayName     : vc4-hdmi (vc4hdmi)
    2023-08-19 14:49:22.757 T:669      info <general>:         m_displayNameExtra: GSM LG TV on HDMI
    2023-08-19 14:49:22.757 T:669      info <general>:         m_deviceType      : AE_DEVTYPE_HDMI
    2023-08-19 14:49:22.757 T:669      info <general>:         m_channels        : FL, FR
    2023-08-19 14:49:22.757 T:669      info <general>:         m_sampleRates     : 32000,44100,48000,96000,192000
    2023-08-19 14:49:22.757 T:669      info <general>:         m_dataFormats     : AE_FMT_RAW,AE_FMT_S24NE3,AE_FMT_S24NE4,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_S16BE,AE_FMT_U8,AE_FMT_RAW
    2023-08-19 14:49:22.757 T:669      info <general>:         m_streamTypes     : STREAM_TYPE_AC3,STREAM_TYPE_DTSHD,STREAM_TYPE_DTSHD_MA,STREAM_TYPE_DTSHD_CORE,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTS_512,STREAM_TYPE_EAC3,STREAM_TYPE_TRUEHD

    LE on Odroid C2 (not working):

    Code
    2023-08-16 17:39:00.077 T:807      info <general>:     Device 3
    2023-08-16 17:39:00.077 T:807      info <general>:         m_deviceName      : hdmi:CARD=ODROIDC2,DEV=0
    2023-08-16 17:39:00.077 T:807      info <general>:         m_displayName     : ODROID-C2
    2023-08-16 17:39:00.077 T:807      info <general>:         m_displayNameExtra: HDMI
    2023-08-16 17:39:00.077 T:807      info <general>:         m_deviceType      : AE_DEVTYPE_HDMI
    2023-08-16 17:39:00.077 T:807      info <general>:         m_channels        : FL, FR
    2023-08-16 17:39:00.077 T:807      info <general>:         m_sampleRates     : 8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000
    2023-08-16 17:39:00.077 T:807      info <general>:         m_dataFormats     : AE_FMT_S24NE4,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_RAW
    2023-08-16 17:39:00.077 T:807      info <general>:         m_streamTypes     : STREAM_TYPE_AC3,STREAM_TYPE_DTSHD,STREAM_TYPE_DTSHD_MA,STREAM_TYPE_DTSHD_CORE,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTS_512,STREAM_TYPE_EAC3,STREAM_TYPE_TRUEHD

    Differences are at "dataFormats" section. Missing data formats on LE:

    • AE_FMT_S24NE3
    • AE_FMT_S32NE
    • AE_FMT_S16BE
    • AE_FMT_U8

    I guess you found an LE bug. Wait for chewitt now.

    Multiple audio channels can be encoded into two channels, so don't care about it.

    Looks like LE doesn't support audio passthrough on your device:

    Code
    2023-08-16 17:39:00.072 T:807     debug <general>: PulseAudio: Context authorizing
    2023-08-16 17:39:00.073 T:807     debug <general>: PulseAudio: Context setting name
    2023-08-16 17:39:00.074 T:807     debug <general>: PulseAudio: Context ready
    2023-08-16 17:39:00.074 T:807   warning <general>: Pulseaudio module module-allow-passthrough not loaded - opening PT devices might fail

    Worked fine on OSMC installed in Raspberry Pi with same files. So AVR should not be a problem (it supports up to 96 kHz and 24-bit).

    Thanks for the info! Your AVR is a good one. :thumbup:

    I guess we have to dig deeper now...

    Please provide a full debug log.

    How to post a log (wiki)

    1. Enable debugging in Settings>System Settings>Logging
    2. Restart Kodi
    3. Replicate the problem
    4. Generate a log URL (do not post/upload logs to the forum)

    use "Settings > LibreELEC > System > Paste system logs" or run "pastekodi" over SSH, then post the URL link

    Hi! I'm new here, and I've just installed LibreELEC on my old Odroid C2.

    Everything works fine except for sound passthrough. While this feautre is disabled, sound works, but only in stereo. If I enable it, at the beginning of every video I hear "crack", and then, if sound is in format accepted by my sound system (selected in Kodi options) there is silence and sound system indicates no digital data, else - if sound has to be converted to other format - sound comes in stereo.

    Sound system configuration is fine, because it worked well with Raspberry Pi + OSMC (well, there were another things that not worked).

    Any ideas?

    I recently had a similar issue with passthrough on RPi3B+. So if your AVR is old, then the issue could be a high sampling rate.

    OK, I've tested testfile2.TS on my RPi3B+. I can replicate the issue with my AVR.

    The test file has AC3 audio. If your AVR can't play all AC3 streams, you have to edit LE's passthrough setting:

    1. go to Settings -> System
    2. on the bottom-left, set GUI mode to Advanced or Expert
    3. go to Audio
    4. enable Allow passthrough
    5. disable Dolby Digital (AC3) capable receiver

    My AVR has Dolby Digital and DTS, but I guess it can't handle higher sampling rates on Dolby Digital.