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

Hi,

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"?>
<advancedsettings>
	<network>
		<buffermode>1</buffermode>
		<readbufferfactor>4</readbufferfactor>
		<readfactor>4</readfactor>
		<cachemembuffersize>104857600</cachemembuffersize>
		<memorysize>104857600</memorysize>
	</network>
<cache>
        <buffermode>1</buffermode>
        <memorysize>104857600</memorysize>
        <readfactor>2</readfactor>
    </cache>
    <imageres>540</imageres>
    <fanartres>720</fanartres>
    <splash>false</splash>
    <handlemounting>0</handlemounting>
    <samba>
       <clienttimeout>30</clienttimeout>
    </samba>
</advancedsettings>

==============================================================
Following is the log collected during problem condition:

18:41:51.686 T:1959145472 NOTICE: VideoPlayer: Opening: http://95.154.237.115:8080/edge/14547/index.m3u8?token=25.1.16858.953e8ba8dd525b7214081c84cc4350a9.1.1.3.818.0.0.b8275faea9a42698216774d5c0bb317f
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?

Hi,

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.

<memorysize>157286400</memorysize>

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.

Hi,

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:

https://osmc.tv/store/product/802-11ac-wifi-dongle/

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.

Thanks
Chandra