Rasberry P3/OSMC/Kodi live TV streams freeze after 2-3 minutes


I am using “My Indian TV” video add-on, after about 2-3 minutes, video starts buffering and eventually freezes. But the same video stream works fine on my laptop. I do not see any issues when I play youtube videos on Rasberry Pi. I guess Youtube add-on handles buffers/cache itself more efficiently. I have added advancedsettings.xml file as below, but no improvement:

<?xml version="1.0" encoding="utf-8"?>

Following is the log collected during problem condition:

18:41:51.686 T:1959145472 NOTICE: VideoPlayer: Opening:
18:41:51.708 T:1512043504 NOTICE: Creating InputStream
18:41:51.768 T:1512043504 NOTICE: Creating Demuxer
18:41:53.034 T:1512043504 NOTICE: Opening stream: 0 source: 256
18:41:53.034 T:1512043504 NOTICE: Creating video codec with codec id: 28
18:41:53.042 T:1512043504 NOTICE: Creating video thread
18:41:53.042 T:1445983216 NOTICE: running thread: video_thread
18:41:53.042 T:1512043504 NOTICE: Opening stream: 1 source: 256
18:41:53.042 T:1512043504 NOTICE: Finding audio codec for: 86018
18:41:53.045 T:1512043504 NOTICE: Creating audio thread
18:41:53.045 T:1520432112 NOTICE: running thread: CVideoPlayerAudio::Process()
18:41:53.056 T:1520432112 NOTICE: Creating audio stream (codec id: 86018, channels: 2, sample rate: 44100, no pass-through)
18:41:53.819 T:1445983216 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
18:42:32.560 T:1520432112 WARNING: Previous line repeats 1 times.
18:42:32.561 T:1520432112 NOTICE: CVideoPlayerAudio::Process - stream stalled
18:42:35.370 T:1520432112 NOTICE: CActiveAEStream::AddData - messy timestamps, increasing interval for measuring average error to 6000 ms


Any suggestions please?


Remove the no longer required. I would increase the this is below the try between 4 - 6. (i’m using 4)

Also you could consider increasing , I’m using this on my pi3.


If this doesn’t help, please provide full logs.

Thanks Tom.

Thanks Tom for your reply, After further troubleshooting, I found that the WiFi speed that I get on Rasberry Pi3 is very slow (compared to what I see on my laptops). I then tried Ethernet over powerline adaptors, even then the speed is not good. Looks like my issue is to do with the network speed I get on Rasberry Pi3 (both via ethernet over powerline adaptor or WiFI). Somehow, I need to fix this issue. BTW, is the WiFi on Rasberry PI3 that bad - I thought it would be as good as my laptop, but obviously not.


I’m using the inbuilt wifi on my pi3, with no issues. But the are number of aspects which can affect this:

Distance from access point/router
Congested wifi channel - Could try a different wifi channel on your router.
pi could be a wifi deadspot.
noise interference from other devices or cables near the pi.

If you can connect your wifi directly by cable temporarily, it will confirm its a wifi that is causing the issue.

You may have better luck with an external adapter:


Thanks Tom.

Thanks Tom,

Sometime during this week, I am going to work on changing the WiFi channel, AP location etc. Hopefully that should provide some improvements in speeds, will update once this is done.