Vero network speed - choppy playback

I have just setup my very with the Mediaportal PVR plugin.

When I playback live TV or recorded tv the playback is choppy and it seems that the Vero network speed is to slow (I have gigabit network).

I have tried to play the recorded tv via both SMB and NFS.

Maybe I am missing something?

Now I have tried different files, and all files with a size of more than 2 GB plays choppy (needs buffering every few seconds). Tried playback from both SMB and NFS shares (with wires ethernet).

My laptop plays everything perfect so no problem with the ethernet connection or router.

Working fine for me even with 30 GB Blu-ray rips from SMB share over powerlan.

Am having similar issues with Wi-Fi. I wonder if it’s related to the codec, resolution and bit rate, too. Does not appear to happen with music files, only video. Am hoping to revert to wired connection soon.

Hi guys

There should be a new update shortly with some improvements. Ping me if things don’t improve then

S

Have now reconnected Vero to my LAN using a cable and it works much, much better now. I think the Wi-Fi implementation is interfering with overall system performance and stability. I do not intend to go back to Wi-Fi voluntarily! :slight_smile:

I have tried the new RC2 and it partially solves the problem.

If I set the network to 100 mbit speed and play from an NFS share it plays fine. But if I set the network speed to 1 gbit I get the same buffering issue.

Most likely the switch that you have the Vero connected to does not support Ethernet Flow Control or does not have it turned on:

The internal buses that the Ethernet controller is connected to can only support up to 480Mbps so it’s possible for buffer overruns (and packet loss) to occur on a 1Gbit connection if the sending device is very fast. This can even happen with much lower average bitrates (say a 30Mbps movie) if the sending server sends very short fast bursts that momentarily exceed 480Mbps.

You can tell if your switch has flow control enabled by using ethtool. Install it from apt:

sudo apt-get update && sudo apt-get install ethtool

Then run it:

sudo ethtool eth0

You are looking for pause frame use:

osmc@vero:~$ sudo ethtool eth0
Settings for eth0:
        Supported ports: [ TP MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supported pause frame use: Symmetric
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised pause frame use: Symmetric
        Advertised auto-negotiation: Yes
        Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                             100baseT/Half 100baseT/Full
                                             1000baseT/Half 1000baseT/Full
        Link partner advertised pause frame use: Symmetric Receive-only
        Link partner advertised auto-negotiation: Yes
        Speed: 1000Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 0
        Transceiver: external
        Auto-negotiation: on
        Link detected: yes

If it says that pause frame and/or flow control is not being advertised by the link partner, that is your problem. In that case dropping the port speed to 100Mbit is a workaround. Enabling flow control on the switch (or swapping to one that has flow control if the switch doesn’t have it at all) is the best solution.

With a switch that supports flow control I see approx 350Mbps throughput with an iperf speed test and can stream test videos as high as 120Mbps (the highest bitrate video file I have) without any buffering, even over SMB.

I tried the command but I get the below Error. I have an Fritzbox if this help (vant find any flow settings).

I still experience the bufferen issue on 100 Mbit but only on lager HD material. It is rally annoying.

Error Clip from putty below in next message

Connecting to 192.168.100.54 port 22, please wait...
login as: 
osmc@192.168.100.54's password: 

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Apr 16 20:46:44 2015 from 192.168.100.45

sudo ethtool eth0
sudo: ethtool: command not found
sudo apt-get update && sudo apt-get install ethtool


0% [Working]
            
Hit http://security.debian.org jessie/updates InRelease

            
0% [Waiting for headers] [Waiting for headers]
                                              
Hit http://ftp.debian.org jessie InRelease

                                              
Hit http://ftp.debian.org jessie-updates InRelease

                                              
0% [Working]
            
0% [InRelease gpgv 84.1 kB]
                           
Ign http://apt.osmc.tv jessie InRelease

                           
17% [InRelease gpgv 84.1 kB]
                            
17% [Waiting for headers]
                         
17% [Working]
             
17% [InRelease gpgv 206 kB] [Waiting for headers]
                                                 
17% [Connecting to 46.37.189.135 (46.37.189.135)] [InRelease gpgv 206 kB]
                                                                         
Ign http://apt.osmc.tv jessie Release.gpg

                                                                         
23% [InRelease gpgv 206 kB] [Waiting for headers]
                                                 
Hit http://security.debian.org jessie/updates/contrib armhf Packages

                                                 
23% [InRelease gpgv 206 kB] [Waiting for headers] [Waiting for headers]
                                                                       
Hit http://security.debian.org jessie/updates/non-free armhf Packages

                                                                       
Hit http://security.debian.org jessie/updates/contrib Translation-en

                                                                       
Hit http://security.debian.org jessie/updates/non-free Translation-en

                                                                       
21% [Working]
             
26% [Waiting for headers]
                         
26% [Connecting to 46.37.189.135 (46.37.189.135)] [InRelease gpgv 117 kB] [Wait
32% [Connecting to 46.37.189.135 (46.37.189.135)] [InRelease gpgv 117 kB] [Wait
37% [Connecting to 46.37.189.135 (46.37.189.135)] [InRelease gpgv 117 kB] [Wait
42% [Connecting to 46.37.189.135 (46.37.189.135)] [InRelease gpgv 117 kB] [Wait
                                                                               
Hit http://security.debian.org jessie/updates/main armhf Packages

42% [Connecting to 46.37.189.135 (46.37.189.135)] [InRelease gpgv 117 kB] [Wait
42% [Connecting to 46.37.189.135 (46.37.189.135)] [InRelease gpgv 117 kB] [Wait
                                                                               
Get:1 http://ftp.debian.org jessie/main armhf Packages/DiffIndex [7876 B]

52% [Connecting to 46.37.189.135 (46.37.189.135)] [InRelease gpgv 117 kB] [1 Pa
                                                                               
100% [Waiting for headers] [InRelease gpgv 117 kB] [Waiting for headers]
                                                                        
Ign http://apt.osmc.tv jessie Release

                                                                        
Hit http://security.debian.org jessie/updates/main Translation-en

                                                                        
100% [Working]
              
100% [Waiting for headers] [Waiting for headers]
                                                
Get:2 http://ftp.debian.org jessie/contrib armhf Packages/DiffIndex [7819 B]

                                                
85% [2 Packages 5528 B/7819 B 71%] [Waiting for headers]
                                                        
100% [Waiting for headers]
                          
Get:3 http://ftp.debian.org jessie/non-free armhf Packages/DiffIndex [7819 B]

                          
78% [Connecting to 46.37.189.135 (46.37.189.135)] [3 Packages 2632 B/7819 B 34%
100% [Connecting to 46.37.189.135 (46.37.189.135)] [Waiting for headers] [Waiti
                                                                               
100% [Waiting for headers] [Waiting for headers]
                                                
Err http://apt.osmc.tv jessie/main armhf Packages
  

                                                
100% [Waiting for headers]
                          
Get:4 http://ftp.debian.org jessie/contrib Translation-en/DiffIndex [7819 B]

                          
88% [Connecting to 46.37.189.135 (46.37.189.135)] [4 Translation-en 4080 B/7819
100% [Connecting to 46.37.189.135 (46.37.189.135)] [Waiting for headers] [Waiti
                                                                               
100% [Waiting for headers] [Waiting for headers]
                                                
Get:5 http://ftp.debian.org jessie/main Translation-en/DiffIndex [7876 B]

                                                
98% [Connecting to 46.37.189.135 (46.37.189.135)] [5 Translation-en 6976 B/7876
100% [Connecting to 46.37.189.135 (46.37.189.135)] [Waiting for headers] [Waiti
                                                                               
Get:6 http://ftp.debian.org jessie/non-free Translation-en/DiffIndex [7819 B]

                                                                               
Get:7 http://ftp.debian.org jessie/main armhf 2015-04-16-1447.29.pdiff [229 B]

                                                                               
100% [Working]
              
Get:8 http://ftp.debian.org jessie/main armhf 2015-04-16-1447.29.pdiff [229 B]

              
100% [8 Packages rred 0 B] [Connecting to 46.37.189.135 (46.37.189.135)] [Waiti
                                                                               
Hit http://ftp.debian.org jessie-updates/main armhf Packages

100% [8 Packages rred 102 kB] [Connecting to 46.37.189.135 (46.37.189.135)] [Wa
                                                                               
100% [8 Packages rred 115 kB] [Waiting for headers] [Waiting for headers]
                                                                         
Hit http://ftp.debian.org jessie-updates/contrib armhf Packages

                                                                         
100% [8 Packages rred 287 kB] [Connecting to 46.37.189.135 (46.37.189.135)] [Wa
100% [8 Packages rred 291 kB] [Connecting to 46.37.189.135 (46.37.189.135)] [Wa
                                                                               
100% [8 Packages rred 360 kB] [Waiting for headers] [Waiting for headers]
                                                                         
Err http://apt.osmc.tv jessie/main armhf Packages
  

                                                                         
100% [8 Packages rred 410 kB] [Waiting for headers]
                                                   
Hit http://ftp.debian.org jessie-updates/non-free armhf Packages

                                                   
100% [8 Packages rred 467 kB] [Connecting to 46.37.189.135 (46.37.189.135)] [Wa
100% [8 Packages rred 471 kB] [Connecting to 46.37.189.135 (46.37.189.135)] [Wa
                                                                               
100% [8 Packages rred 627 kB] [Waiting for headers] [Waiting for headers]
                                                                         
Hit http://ftp.debian.org jessie-updates/contrib Translation-en

100% [8 Packages rred 647 kB] [Waiting for headers] [Waiting for headers]
100% [8 Packages rred 651 kB] [Waiting for headers] [Waiting for headers]
100% [8 Packages rred 881 kB] [Waiting for headers] [Waiting for headers]
                                                                         
Err http://apt.osmc.tv jessie/main armhf Packages
  

                                                                         
100% [8 Packages rred 913 kB] [Waiting for headers]
                                                   
100% [8 Packages rred 1130 kB] [Waiting for headers] [Waiting for headers]
                                                                          
Hit http://ftp.debian.org jessie-updates/main Translation-en

                                                                          
100% [8 Packages rred 1176 kB] [Waiting for headers]
                                                    
100% [8 Packages rred 1188 kB] [Connecting to 46.37.189.135 (46.37.189.135)] [W
                                                                               
Hit http://ftp.debian.org jessie-updates/non-free Translation-en

100% [8 Packages rred 1360 kB] [Connecting to 46.37.189.135 (46.37.189.135)] [W
100% [8 Packages rred 1364 kB] [Connecting to 46.37.189.135 (46.37.189.135)] [W
                                                                               
100% [8 Packages rred 1389 kB] [Waiting for headers]
                                                    
Err http://apt.osmc.tv jessie/main armhf Packages
  404  Not Found

                                                    
100% [8 Packages rred 1421 kB]
                              
Ign http://apt.osmc.tv jessie/main Translation-en

100% [8 Packages rred 1655 kB]
100% [8 Packages rred 4096 kB]
                              
100% [8 Packages rred 6525 kB]                                      7584 B/s 0s
100% [8 Packages rred 8970 kB]                                      7584 B/s 0s
100% [8 Packages rred 11.4 MB]                                      7584 B/s 0s
100% [8 Packages rred 13.9 MB]                                      7584 B/s 0s
100% [8 Packages rred 16.3 MB]                                      7584 B/s 0s
100% [8 Packages rred 18.7 MB]                                      7584 B/s 0s
100% [8 Packages rred 21.6 MB]                                      7584 B/s 0s
100% [8 Packages rred 24.8 MB]                                      7584 B/s 0s
100% [8 Packages rred 27.8 MB]                                      7584 B/s 0s
100% [8 Packages rred 30.5 MB]                                      7584 B/s 0s
                                                                               
100% [Working]
              
Fetched 47.3 kB in 12s (3802 B/s)
W: Failed to fetch http://security.debian.org/dists/jessie/updates/main/binary-armhf/Packages  Hash Sum mismatch

W: Failed to fetch http://security.debian.org/dists/jessie/updates/main/i18n/Translation-en  Hash Sum mismatch

W: Failed to fetch http://apt.osmc.tv/dists/jessie/main/binary-armhf/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.

sudo ethtool eth0
sudo: ethtool: command not found
ff
-bash: ff: command not found

I really dont think that it has to do with flow control - I just tried with my laptop, and it works perfectly on bodt wifi and 100/1000 mbit ethernet (same connection as the Vero)???

There’s something wrong with your internet connection. Are you behind some sort of firewall or transparent proxy ?

This is saying that the package list from the Debian archives is corrupt, which is extremely unlikely. More likely some firewall is intercepting the download and altering it.

This is saying that the OSMC APT archive page doesn’t exist (404) - which isn’t the case at all - if I paste this into my browser I can see the page.

You need to find why your internet connection is not working properly before you can install ethtool.

As I explained, the internal buses of the Vero can’t handle bursts of more than 480Mbps on the Ethernet which means if you are connected in 1Gb mode the switch has to support flow control. The fact that your laptop works fine on the same switch is not relevant because it has a completely different Ethernet adaptor on a much faster bus.

The Vero can go over 480Mbit, however as you’ve discovered, some switches either do not implement flow control correctly or they advertise that they do when they in fact don’t.

I’m going to do some work with the kernel so that if we start getting drops we fall back to 100Mbit. It would be fantastic if you could get me a log.

S

DBMandrake:

I had the exact same problem when I tried to update the Vero - it said that the files where not found or hash sum mismatch. I had to install the update via the installer.

However, I have no problem downloading the same files via other computers on the same router/firewall or on my phone via WIFI.

Could this issue also have something to do with 480Mbit limit/flow control???

I will post a log sometime to night.

DBMandrake/Sam: Thank you very much for trying to help!

I have uploaded the logs. I tried playing a recording from recorded tv (Fredagsfilm_ Men så kom Polly - DR1 - 2015-03-27.ts). I have set the network to 100 mbit but I still have buffering issues with this and other files.

Logs: http://paste.osmc.io/naqecamoqe

By the way: extremely nice way to share the logs with the link when Vero has uploaded the logs!

Any news on this topic?

Had the same problem with frequent buffering on some high-bitrate movies. Lowering manually to 100Mbit solved it. Then logged in to my switch and enabled flow-control. Then it worked with 1Gbit as well.

By default, I’ll be using 100Mbit as the default speed in future and users will be able to manually enable Gigabit via /boot/uEnv.txt

I will post more details when that goes live

Sam

I have choppy playback too and am looking forward to smooth playback!