Hi everyone,
I'm completely stuck with a playback issue using the official YouTube Addon and InputStream Adaptive. Every time I start a video, it plays perfectly fine for about 20 to 30 seconds. Then, the video freezes and the audio gets stuck in an infinite, stuttering loop (like a broken record). It never recovers.
My setup:
- Hardware: Raspberry Pi 5 (16GB RAM)
- OS: RetroPie (Debian 13 Trixie, Linux kernel 6.1)
- Kodi Version: 21.3 Omega
- Addons: YouTube v7.4.0, InputStream Adaptive v21.5.9
What I tried so far (and nothing fixed the issue)
- Disabling MPEG-DASH: The video runs past the 30s mark without freezing, but is capped at 720p and has no audio.
- Increasing Cache: Created an
advancedsettings.xml with <memorysize>524288000</memorysize> and <readfactor>20</readfactor>.
- Forcing ALSA over PIPEWIRE: Started Kodi with
KODI_AE_SINK=ALSA kodi to rule out PipeWire sync issues.
- Kodi Audio/Video Settings: Disabled "Sync playback to display" and disabled audio passthrough.
- Codec limits: Forced the YouTube addon to use AVC/H.264 instead of AV1/VP9 to ease the CPU load.
The log error: The debug log is flooded with DRM/Windowing messages, but right before the freeze, ActiveAE shows a massive audio sync error that goes out of bounds within 2 seconds:
warning <general>: ActiveAE - large audio sync error: -1004.162977 warning <general>: ActiveAE - large audio sync error: -1656.981056 warning <general>: ActiveAE - large audio sync error: -2207.997334 info <general>: CVideoPlayer::CloseFile()
Does anyone have an idea what causes InputStream Adaptive and ActiveAE to crash exactly at the 30-second mark on a Pi 5? Any help is greatly appreciated!