Video freezes after a number of minutes


#1

Hi all,

I have been using KODI on my raspberry pi 3 for last 18 months without any problems, but since two weeks ago, the video freezes after some minutes.

My setup:

  • Lan 100 mpbs
  • Intenet - Cable - 100 mbps
  • Server: CENTOS 7 with two hard drives attached and shared through NFS (also tried SMB, same error). Server got reinstalled yesterday.
  • PC on network, can access all files on SMB, can view videos on kodi without any problems
  • Rapsberry pi 3, connected to network through cable, 100 mbps. Currently using osmc dec’17, but this issue also happens with latest OSMC and librelec

Until mid February, I was able to access my shared video folder on the server, press play and lay back on my sofa to watch any video on my rasp. HD, SD, etc., all videos were being reproduced greatly.

Since mid february, I’m lucky if I can see 10 minutes of any video without kodi freezing and having to restart the rasp to continue seeing were I was. 10 minutes later, again.

I have tried connecting over wifi, same problem still exists.
I have tried erasing the server, configuring from scratch to share the video folder, same problem still exists.
I have tried erasing the raspberry, setting new OS (OSMC & libreelec), same problem still exists.
I have modified the cache settings on the rasp, same problem still exists.

I have captured the logs and I have tried to read them, but I can not find the error on them. Right now, I want to smash the rasp because I’m feeling defeated by this problem. Can anyone please have a look into the two logs I have uploaded and lend me a hand?

https://paste.osmc.tv/xovoqoyebi
https://paste.osmc.tv/odowuhamaf

Kind regards,

Nacho


#2

Hi

Hopefully the issue is now addressed

I’d appreciate it if you could test this and provide feedback before we potentially release this as an update to other users. To test this update:

  1. Login via the command line
  2. Edit the file /etc/apt/sources.list
  3. Add the following line: deb http://apt.osmc.tv stretch-devel main
  4. Run the following commands to update: sudo apt-get update && sudo apt-get dist-upgrade && reboot
  5. Your system should have have received the update.

Please see if the issue is resolved.

I also recommend you edit /etc/apt/sources.list again and remove the line that you added after updating. This will return you to the normal update channel.


#3

Hi Sam,

I will test it first thing this afternoon and I will let you now the outcome.

Thanks for the fast help!

Regards,

Nacho


#5

Hi Sam,

I have tested your solution but it is still freezing. I have installed a new clean OSMC image on the raspberry, executed the update as per your instructions, statrted watching a tv series but to no avail.

If it can help, logs available at https://paste.osmc.tv/asiporawok

Please let me know what other test I can do to get more data or what I do have to read.

Regards,

Nacho


#6

So if I understand you, this problem occurs using OSMC or libreelec? If so then you need to look into your network performance, or your NAS. Try doing some tests with iperf3.


#9

Hi,

It’s happening with the two of them.

About the NAS, I can view videos, films, photos, etc. on any other computer/mobile at home (tested with 2 Win10, one android and one iphone) without any problem, using NFS or Samba.

Anyhow, I will try this iperf3 tool that you suggests.


#10

Are you switching between OSMC and Libreelec on the same Pi? It could be a faulty cable or port on the Pi. However, since you seem to be having the problem using wired and WiFi, that points to the NAS as the problem. iperf3 should help narrow it down.

You could also try copying one of the files that won’t play directly to the Pi to rule out problems with the video.


#11

I changed from libreelec to osmc in order to discard problems with my setup, in case I have any library that was corrupted over any update or any reason.

After iperf3 test, I will test to watch some films on loal sdcard and or usb drive.


#12

Looks like iperf3 test confirms that there isn’t any problem on the network:

osmc@osmc:~$ iperf3 -c 192.168.1.175 -t 20 -R
Connecting to host 192.168.1.175, port 5201
Reverse mode, remote host 192.168.1.175 is sending
[  4] local 192.168.1.150 port 59202 connected to 192.168.1.175 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec  11.3 MBytes  94.4 Mbits/sec
[  4]   1.00-2.00   sec  11.2 MBytes  93.8 Mbits/sec
[  4]   2.00-3.00   sec  11.2 MBytes  93.8 Mbits/sec
[  4]   3.00-4.00   sec  11.2 MBytes  93.8 Mbits/sec
[  4]   4.00-5.00   sec  11.2 MBytes  93.8 Mbits/sec
[  4]   5.00-6.00   sec  11.2 MBytes  93.8 Mbits/sec
[  4]   6.00-7.00   sec  11.2 MBytes  93.8 Mbits/sec
[  4]   7.00-8.00   sec  11.2 MBytes  93.8 Mbits/sec
[  4]   8.00-9.00   sec  11.2 MBytes  93.8 Mbits/sec
[  4]   9.00-10.00  sec  11.2 MBytes  93.8 Mbits/sec
[  4]  10.00-11.00  sec  11.2 MBytes  93.8 Mbits/sec
[  4]  11.00-12.00  sec  11.2 MBytes  93.8 Mbits/sec
[  4]  12.00-13.00  sec  11.2 MBytes  93.8 Mbits/sec
[  4]  13.00-14.00  sec  11.2 MBytes  93.8 Mbits/sec
[  4]  14.00-15.00  sec  11.2 MBytes  93.8 Mbits/sec
[  4]  15.00-16.00  sec  11.2 MBytes  93.8 Mbits/sec
[  4]  16.00-17.00  sec  11.2 MBytes  93.8 Mbits/sec
[  4]  17.00-18.00  sec  11.2 MBytes  93.8 Mbits/sec
[  4]  18.00-19.00  sec  11.2 MBytes  93.8 Mbits/sec
[  4]  19.00-20.00  sec  11.2 MBytes  93.8 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-20.00  sec   224 MBytes  93.9 Mbits/sec    0             sender
[  4]   0.00-20.00  sec   224 MBytes  93.9 Mbits/sec                  receiver

#13

You may try a longer test, as you don’t seem to have the problem right away. But the initial result does look like the network is good.

Be interesting to see how local playing goes.


#14

Hi,

Sorry, I wasn’t able to test again until today. I have tested the local playing and it was perfect, as it was sometime ago with the SMB/NFS share. I also have done a 20 minutes session with iperf3 and this is the result:

[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-1200.00 sec  13.1 GBytes  93.8 Mbits/sec  1796             sender
[  4]   0.00-1200.00 sec  13.1 GBytes  93.8 Mbits/sec                  receiver

Today I had made another test, and it’s still dropping frames. Logs available at https://paste.osmc.tv/woxupahubi

Thanks


#18

1796 retries is extremely high for a wired network, You really need to dig into your network setup.

Also, check your /etc/apt/sources.list You still have stretch-devel in there.


#19

Besides the network issue and stretch devel:

<videoplayer>
    <adjustrefreshrate default="true">0</adjustrefreshrate>

Means GUI Settings->Player->Videos->Adjust Display Refresh Rate is set to off. Better use on start/stop or always


#20

OK, thank guys!

I still had stretch-devel just to test the lastest versions, I will start with a new image tomorrow with the Adjust Display Refrest Rate on Always, meanwhile I study deeper my network setup.

Regards,

Nacho