Will a AC Wifi adapter help?

Hey there… I have got an RPi3 running OSMC snuggled behind my TV. Though it has a direct line of sight to my AC router (HUAWEI HG659 provided by the ISP) I always end up with frequent buffering when streaming 1080P and occasional buffering for a 720P stream.

I don’t want to run an ethernet cable to the Pi at this moment, however I have started looking into getting one of those tiny wifi adapters but I am not sure if it would make a significant difference.

Would like to hear from fellow members if an AC dongle would make a considerable difference. I will try to update the iperf results of my Pi tomorrow.

Hi,

Where are you trying to stream these movies from?

Thanks Tom.

I have exactly the same problem, and I’ve ordered a dual-band adapter from the OSMC store so I can connect to my router at 5G. I should have that adapter sometime this week, and I’ll report back my results. (I’m streaming content from my backend, which is in the next room of my house.)

The Pi has a 2.4G band adapter onboard, and, around my house, the 2.4G band is heavily congested to the point where it’s almost unusable.

Frequently from the internet and occasionally from my NAS (which is connected to the router over a gigabit ethernet connection).

When I have had buffering issuing I checked my internet connection and it was pretty solid at 50-60mbps. I did think it could be the cyberlocker server acting up but it has been too often to be a server side issue.

Also while streaming from my NAS even a 720P movie would buffer very often (that is mainly due to the higher bitrate of my NAS movies vs the heavily compressed cyberlock streams).

iperf3 results from Rpi3 (wifi) to a laptop (wifi 2.4G N)

osmc@osmc:~$ iperf3 -c 192.168.1.99

Connecting to host 192.168.1.99, port 5201
[  4] local 192.168.1.3 port 48818 connected to 192.168.1.99 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec  1.61 MBytes  13.5 Mbits/sec    0    101 KBytes
[  4]   1.00-2.00   sec  1.28 MBytes  10.7 Mbits/sec    0    145 KBytes
[  4]   2.00-3.00   sec  1.37 MBytes  11.5 Mbits/sec    0    200 KBytes
[  4]   3.00-4.00   sec  1.25 MBytes  10.5 Mbits/sec    0    210 KBytes
[  4]   4.00-5.00   sec  1.08 MBytes  9.10 Mbits/sec    0    210 KBytes
[  4]   5.00-6.00   sec  1.23 MBytes  10.3 Mbits/sec    0    210 KBytes
[  4]   6.00-7.00   sec  1.39 MBytes  11.6 Mbits/sec    0    210 KBytes
[  4]   7.00-8.00   sec  1.42 MBytes  11.9 Mbits/sec    0    210 KBytes
[  4]   8.00-9.00   sec  1.29 MBytes  10.8 Mbits/sec    0    210 KBytes
[  4]   9.00-10.00  sec  1.18 MBytes  9.94 Mbits/sec    8    127 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec  13.1 MBytes  11.0 Mbits/sec    8             sender
[  4]   0.00-10.00  sec  12.7 MBytes  10.7 Mbits/sec                  receiver

osmc@osmc:~$ iperf3 -c 192.168.1.99 -R

Connecting to host 192.168.1.99, port 5201
Reverse mode, remote host 192.168.1.99 is sending
[  4] local 192.168.1.3 port 48824 connected to 192.168.1.99 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec   814 KBytes  6.67 Mbits/sec
[  4]   1.00-2.00   sec  1.06 MBytes  8.86 Mbits/sec
[  4]   2.00-3.00   sec  1.10 MBytes  9.19 Mbits/sec
[  4]   3.00-4.00   sec  1.23 MBytes  10.3 Mbits/sec
[  4]   4.00-5.00   sec  1.06 MBytes  8.88 Mbits/sec
[  4]   5.00-6.00   sec   930 KBytes  7.62 Mbits/sec
[  4]   6.00-7.00   sec  1.11 MBytes  9.30 Mbits/sec
[  4]   7.00-8.00   sec  1.12 MBytes  9.42 Mbits/sec
[  4]   8.00-9.00   sec   890 KBytes  7.29 Mbits/sec
[  4]   9.00-10.00  sec   670 KBytes  5.49 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-10.00  sec  10.1 MBytes  8.49 Mbits/sec                  sender
[  4]   0.00-10.00  sec  10.0 MBytes  8.41 Mbits/sec                  receiver

Cheers mate.

Where is the logic here? While I can quickly imagine why you are using vague terminology in naming the source, what gave you the impression that “cyberlockers” were so stable and performant?

Hi,

Unless you can ran iperf on your router (some support it) you would be better connecting the laptop wired to the router as it would give a better indication of what throughput you are getting.

Thanks Tom.

ah, maybe I should have elaborated. First, it was more than one provider, faced this with quite a few providers. Second, and probably the one that made me make the above comment, I was able to stream the ‘same’ video from the same source without any buffering on my laptop (the one I used for iperf test).

p.s: It is most definitely not the exact same video and my reasoning might not be right, just flying with what I have :slight_smile:

Nope, out of luck there…

Sure thing. Will update back with results

Since you can’t get a proper iperf3 test, then try a dd test instead.

$ dd if=movie.mkv of=/dev/null bs=1M status=progress

Of course replacing movie.mkv with the name of a file on the NAS to test with.

You did’t mention how you are mounting your files. Are you using fstab, or Kodi mounts?

got the results now…

osmc@osmc:~$ iperf3 -c 192.168.1.5
Connecting to host 192.168.1.5, port 5201
[  4] local 192.168.1.3 port 58566 connected to 192.168.1.5 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec  2.03 MBytes  17.1 Mbits/sec    0   99.8 KBytes
[  4]   1.00-2.00   sec  1.60 MBytes  13.4 Mbits/sec    0    111 KBytes
[  4]   2.00-3.00   sec  1.45 MBytes  12.2 Mbits/sec    0    111 KBytes
[  4]   3.00-4.00   sec  1.12 MBytes  9.36 Mbits/sec    0    111 KBytes
[  4]   4.00-5.00   sec   787 KBytes  6.44 Mbits/sec    0    111 KBytes
[  4]   5.00-6.00   sec  1.43 MBytes  12.0 Mbits/sec    0    111 KBytes
[  4]   6.00-7.00   sec  1.26 MBytes  10.5 Mbits/sec    0    111 KBytes
[  4]   7.00-8.00   sec  1.30 MBytes  10.9 Mbits/sec    0    111 KBytes
[  4]   8.00-9.00   sec  1.53 MBytes  12.9 Mbits/sec    0    174 KBytes
[  4]   9.00-10.00  sec   763 KBytes  6.25 Mbits/sec    0    174 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec  13.2 MBytes  11.1 Mbits/sec    0             sender
[  4]   0.00-10.00  sec  12.9 MBytes  10.9 Mbits/sec                  receiver


osmc@osmc:~$ iperf3 -c 192.168.1.5 -R
Connecting to host 192.168.1.5, port 5201
Reverse mode, remote host 192.168.1.5 is sending
[  4] local 192.168.1.3 port 58626 connected to 192.168.1.5 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec  2.61 MBytes  21.9 Mbits/sec
[  4]   1.00-2.00   sec  2.30 MBytes  19.3 Mbits/sec
[  4]   2.00-3.00   sec  2.24 MBytes  18.8 Mbits/sec
[  4]   3.00-4.00   sec  2.31 MBytes  19.4 Mbits/sec
[  4]   4.00-5.00   sec  2.08 MBytes  17.5 Mbits/sec
[  4]   5.00-6.00   sec  1.53 MBytes  12.8 Mbits/sec
[  4]   6.00-7.00   sec  2.00 MBytes  16.8 Mbits/sec
[  4]   7.00-8.00   sec  1.76 MBytes  14.7 Mbits/sec
[  4]   8.00-9.00   sec  1.73 MBytes  14.5 Mbits/sec
[  4]   9.00-10.00  sec  1.73 MBytes  14.5 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-10.00  sec  20.5 MBytes  17.2 Mbits/sec                  sender
[  4]   0.00-10.00  sec  20.4 MBytes  17.1 Mbits/sec                  receiver

Hi,

I think the AC dongle would show improvement, but I would consider if you haven’t already adjusting the kodi video cache:

https://kodi.wiki/view/HOW-TO%3AModify_the_video_cache

This will most certainly help with streaming movies from you nas, as for internet internet streams it depends on the addon; as some setting there own cache setttings.

These settings I’m using on my pi3:

<advancedsettings>
	<cache>
		<memorysize>157286400</memorysize>
		<buffermode>1</buffermode>
		<readfactor>4.0</readfactor>
	</cache>
</advancedsettings> 

Thanks Tom.

hmm… any suggestions on how to do a proper iperf3 test? Other than running it off the router I can try any other option, I believe.

It is on fstab… below are the dd results

osmc@osmc:/mnt/movies$ dd if="Ac3 Dolby Digital 5.1Ch Sound Test.avi" of=/dev/null bs=1M status=progress
13631488 bytes (14 MB, 13 MiB) copied, 5.00776 s, 2.7 MB/s
14+1 records in
14+1 records out
15030272 bytes (15 MB, 14 MiB) copied, 5.39847 s, 2.8 MB/s
osmc@osmc:/mnt/movies$

Thanks Mate. I will check this out. BTW what do you infer from my latest iperf3 results? Is it good, bad or ugly? :slight_smile:

It’s the lower end of what you get out of a 54mbit 2.4 GHz network.
The basic question is what is the Bitrate of the files you want to play over this connection?

Hi,

Consistent with what I get with the internal adaptor on the pi3, but my router is upstairs and pi down, so no line of sight. I think your 2.4g network maybe congested.

Thanks Tom.

That file was to small for a good test. Try a larger file. But the results seem to indicate very poor network performance.

Is this file good enough?

osmc@osmc:/mnt/movies$ dd if="Out Of Reach.avi" of=/dev/null bs=1M status=progress
617611264 bytes (618 MB, 589 MiB) copied, 193.058 s, 3.2 MB/s
589+1 records in
589+1 records out
618420902 bytes (618 MB, 590 MiB) copied, 193.269 s, 3.2 MB/s
osmc@osmc:/mnt/movies$

TBH my NAS has all sorta files from 950 kb/s xvids to 11 Mb/s mkvs. While I would love to stream the 11 Mb/s MKVs without a hitch I can settle for something less than that without wires.

Well with an Iperf result of 11Mbit I would not expect anything above 7Mbit to play smooth.
But your DD result seems even worse.