[RPi3] Slow channel start (~45s) on first HD Live TV playback in LE 13.0 BETA1 (12.95.1) with Tvheadend

  • Hi everyone,

    After upgrading my Raspberry Pi 3A+ from LibreELEC 12.2.1 to 13.0 BETA1 (12.95.1 / Kodi 22.0-RC2), tuning into the first HD Live TV channel via Tvheadend (pvr.hts) takes around 45 seconds before video playback starts. Subsequent channel starts are much faster (~5–7 seconds).

    On LibreELEC 12.2.1 (Kodi 21), this issue does not occur at all and channels start immediately.

    Hardware & Setup:
    - Device: Raspberry Pi 3 Model A+ (BCM2835 / 512 MB RAM)
    - LibreELEC: 12.95.1 (13.0 BETA1, Linux 6.18.62, Kodi 22.0-RC2)
    - PVR Client: pvr.hts v22.9.8.2 (Tvheadend)
    - Stream: 720p50 H.264 (Das Erste HD / ZDF HD)

    What happens in the log:
    1. When opening the stream at 20:49:44, VideoPlayer initially disables the video stream due to missing extradata:
    `error <general>: virtual bool CVideoPlayerVideo::OpenStream(CDVDStreamInfo): Codec id 27 require extradata.`
    `warning <general>: OpenStream - Unsupported stream 1025. Stream disabled.`
    2. It takes ~28 seconds until extradata is fetched (`fetching extradata, extradata_size(40)`) and `h264_v4l2m2m` is opened.
    3. During startup, the demuxer buffer overflows (`demux packet buffer full, discarding 10640 packets`) and the renderer repeatedly logs `OutputPicture - timeout waiting for buffer` until playback finally begins at 20:50:48.

    Full debug log:
    https://paste.libreelec.tv/neurogrammic-kian.log

    Thanks for looking into this!
    Marcus