Posts by Intropy

    Is there any way to query kodi via the web API or from ssh to see if it thinks it's connected and outputting through HDMI?


    However re-reading your description it sounds more like the receiver loses the connection to the RPi when the source changes..

    I think you're on to something. The receiver has a feature I'm not terribly familiar with called "scenes" that lets you change a bunch of settings with one command. One of the settings it can change is input. So I created two scenes, one with kodi input and two with a video game console as input. If I tell the receiver to change to scene 1 instead of telling it to change to input 1, then it works. Still doesn't show up on cold start, though. Switching scenes back and forth after everything is fully up does work.

    You see in the display the "Advanced Setup" menu. Use "PROGRAM" keys to navigate all menu items, find "4K MODE" , press "STAIGHT" to select item. The setting should be "1". Change that to "2"

    When I switched "4K MODE" to "2" I was not able to get any picture to display at all. Switching back fixed it. I also noticed in the "Advanced Setup" menu you pointed me at there was a "DTS MODE". I tried changing that to 2 and didn't see any effect there either.


    Copy a 'problem' test file to the local SD card. If it plays fine (which it probably will) the finger points at the nework being unable to sustain the required data rate.

    I did this, and it plays fine. Good intuition. Now to figure out how the heck to get cat 6 all the way over here...

    Some settings that may be relevant.

    Audio output device: ALSA vc4-hdmi-0

    Number of channels: 7.1

    Output configuration: Best match (I've also tried optimized)

    Passthrough enabled with the same output device.

    AC3, E-AC3, DTS, TrueHD, and DTS-HD all set to on.


    Where is the stream played from (internet, local drive, nas in network)? and if internet/network; how is the Pi connected (wifi or ethernet)?

    The videos are all played from a NAS on the local network. The NAS is connected by wired ethernet (1000BASE-T), and the raspberry pi is connected via wireless networking (both the Pi 5 and the AP support 803.11ac, but it shows in the AP software as connected on 2.4GHz, so the connection might be using 802.11n). Are you thinking about possible problems with streaming the bytes down quickly enough? It's plausible. I've been concerned by my inability to get cat 6 through the attic to this part of the house, but I have tested with video with a lower total (video + audio) bitrate and had them fail and then had higher bit rates play fine.

    I'm running 11.0.4 on a Raspberry Pi 5. It is connected to a Yamaha rx-a1070 receiver.

    When playing video I see hundreds of lines in the logs saying:

    Code
    warning <general>: ActiveAE - large audio sync error

    This coincides with major stuttering of video and audio. This happens with some videos but not all. The only commonality I've found is that all the errors seem to be with either DTS, Dolby Digital +, or Dolby TrueHD. Another thing I've noticed is that if I'm playing a DTS stream my receiver's front display says "DTS". But when the stuttering happens it reads "Decoder off", sometimes switching rapidly back and forth between the two as the playback moves haltingly forward.

    I've created a partial workaround but it doesn't always work, and it's pretty janky. I'm using a harmony remote to control everything, so I mapped keyboard 'r' to reboot, and I added 'r' to the startup sequence for watching Kodi. This works when switching inputs, though it adds a lot of delay to wait for the reboot and loses position. For cold start the other devices don't turn on fast enough so they aren't "visible" to Kodi on boot and output is still blank.

    I'm running a Raspberry Pi 5 on 11.0.4.

    If I set my receiver to LibreElec's input and then turn on the Raspberry Pi I get a signal and everything works fine. If I switch my receiver to another input (for example to play a game console) and then back to the LibreElec's input I get no signal showing up on my screen, and I don't hear any UI sounds if I start pushing buttons on the remote either. If I turn the Raspberry Pi off then back on using the power button I get a signal again and all works normally. If I unplug the HDMI cable from the Raspberry Pi and plug it back in again I also get a signal and everything works normally. I also tried systemctl restarting kodi via ssh, and that did not cause it to show a signal. I have tried disabling CEC in the system menu (I don't intend on using it anyway) as well as changing a bunch of CEC options to ignore (so it doesn't try and turn anything off or go into standby).