Video + audio occasionally freezes

  • Hi there,

    I use LibreElec on Rpi4b; I also use plexkodiconnect add-on and an rclone mounted drive to stream files directly from google instead of through my very slow upload speed server. Over the past few months, I've been having an issue where when watching a video, randomly the video will freeze but audio continues to play for several seconds; after about 3-5 seconds, the audio freezes as well, then Kodi appears to "buffer" and then playback resumes as normal. I have had the same LibreElec setup for the past year and this has only been happening for about 2 months. The location in the video that this happens is NOT reproducible; when I watch the same file at the time marker that the problem occurred, it plays normally. It also happens on many different formats/codecs (h264, h265, mkv, mp4, etc). I have already tried to increase video cache; current setting is:

    Code
    <memorysize>139460608</memorysize>

    I have attached a log where I finally recorded it. The freeze happened at 21:42:02.

    Assistance as to the cause of this would be immensely appreciated!

    External Content pastebin.com
    Content embedded from external sources will not be displayed without your consent.
    Through the activation of external content, you agree that personal data may be transferred to third party platforms. We have provided more information on this in our privacy policy.

    MrMD

  • Probably the the Google server is occasionally too slow:

    Code
    2021-09-02 21:47:30.195 T:2585756528   DEBUG: PLEX.subscribers: Sent server notification with parameters: {u'key': u'/library/metadata/74134', u'X-Plex-Token': u'REDACTED', u'X-Plex-Platform': u'Generic', u'X-Plex-Model': '4.19.127', u'X-Plex-Platform-Version': u'1.0.0', u'X-Plex-Client-Identifier': u'a997e10d-9004-4b09-a5ef-7f60825e31a0', u'ratingKey': 74134, u'playQueueItemID': 5706, u'X-Plex-Device': u'Linux', u'state': u'paused', u'X-Plex-Product': u'PlexKodiConnect', u'time': 719168, u'duration': 3271072, u'X-Plex-Device-Name': u'Kodi LibreELEC', u'X-Plex-Version': '2.14.0'} to https://REDACTED.a37ab5a2bb8e4499b9ec6ee03662dda2.plex.direct:32400/:/timeline
    2021-09-02 21:47:30.605 T:2126115696 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
    2021-09-02 21:47:32.270 T:2585756528 WARNING: Previous line repeats 3 times.
  • I have the same setup, except on an nvidia shield and this issue never occurs, even when watching simultaneously with libreelec. Why would the audio continue while the video freezes if the server was too slow? Anytime this has been true for me in the past, they both stop together. My rclone mount is also set to buffer 64MB.

    Any other thoughts? I’m having a hard time seeing it as a server speed issue when I have another system that works appropriately.