plugin.video.quasar icon indicating copy to clipboard operation
plugin.video.quasar copied to clipboard

Download slows down after 10 seconds when downloading to USB on android TV

Open thim0o opened this issue 7 years ago • 29 comments

When i try to download a torrent to a usb drive attached to my sony android tv (kodi 17.3) it first starts downloading at the speeds it should be downloading (about 8000kb/s) but after about 10 seconds it quickly decreases to 40-50 kb/s. Is anyone else having this issue aswell? The version is v0.9.78. Also i tested to download to the usb from a windows computer and that's working as it should. So no issue with the usb drive.

A torrent download to the internal storage of the tv worked fine a few months ago.

Things that i've tried:

Rebooted the TV Fresh install Reformat the usb to NTSF and exFAT Limit max connections Limit download and upload speed Tried old versions Installed in SPMC 16 Nothing seems to fix this problem

I don't have a log file because it's not that easy to get on android tv, but if it's really needed i can post one.

Any help will be greatly appreciated

thim0o avatar May 31 '17 18:05 thim0o

I had this issue as well. Im using a Intel NUC and what solved it for me was that I switched the usb port for the external drive.

herrwusel avatar Jun 01 '17 06:06 herrwusel

I had this issue as well. Im using a Intel NUC and what solved it for me was that I switched the usb port for the external drive.

The TV has one usb 1.0 one 2.0 and one 3.0. I tried it in usb 2 and 3. Both have exactly the same problem. Usb 1 isn't worth trying, right? Because of the 12 Mbit/s speed limitation.

thim0o avatar Jun 01 '17 06:06 thim0o

I mean if the other two ports don't give you a better result it's worth trying the third, isn't it?

herrwusel avatar Jun 01 '17 08:06 herrwusel

Yes i Will try. But I think 12mbit/ 1,5mb on the usb1 per second is too slow. Not sure if it is USB 1 though. Will try.

thim0o avatar Jun 01 '17 10:06 thim0o

It's a libtorrent issue...

josete2k avatar Jun 01 '17 14:06 josete2k

It's a libtorrent issue...

Any fix or temporary workaround?

thim0o avatar Jun 01 '17 14:06 thim0o

No success with the other USB port. Also if I open the exact same torrent with "Yet another torrent player" for Kodi, it streams perfectly fine. So the problem is in the quasar add-on.

thim0o avatar Jun 02 '17 10:06 thim0o

https://github.com/scakemyer/plugin.video.quasar/issues/90

josete2k avatar Jun 02 '17 13:06 josete2k

It doesn't crash though. It just slows down to 40-50kbps and keeps downloading at that speed. So this is not the same problem but definitely related.

thim0o avatar Jun 02 '17 15:06 thim0o

Yes, it's the same problem.

Sometimes it slows down and ups in a few seconds... and you can see the stream, but many times it remains at 10kbs-5kbs-30kbs...

josete2k avatar Jun 02 '17 17:06 josete2k

Please check out #843

We've got a build with gotorrent instead of libtorrent thanks to @elgatito, plus a FAT32 driver that's specially tuned to Android, which solves the slow down problem in most cases. Although, testing indicates a LOT better performance with MicroSD cards compared with cheap USB drives (premium ones perform a little better, which suggests cheap flash is the problem, not the fact they are USB).

iamacarpet avatar Jun 08 '17 15:06 iamacarpet

No i'm sure the issue is not with the usb drive. When i plug it in to my pc i can steam something in quasar to the usb perfectly fine.

thim0o avatar Jun 09 '17 17:06 thim0o

The version with gotorrent doesn't work at all for me.

thim0o avatar Jun 12 '17 16:06 thim0o

Getting error or what does not work?

elgatito avatar Jun 12 '17 17:06 elgatito

If I remember it correctly it just keeps loading when i try to open the addon. I'm not sure though. I will check it tomorrow to make sure.

thim0o avatar Jun 12 '17 18:06 thim0o

@thim0o , take the latest version here - https://github.com/elgatito/plugin.video.quasar/releases/tag/v0.9.78 and give a kodi.log with debug mode enabled.

elgatito avatar Jun 12 '17 19:06 elgatito

Update: I remember now, it does work but has the exact same problem with usb. However I'm not sure if I installed it correctly since I was in a bit of a hurry. Thanks for the link, I'll test it again tomorrow.

thim0o avatar Jun 12 '17 19:06 thim0o

You can also try the memory storage type (first tab of Quasar settings). Not finished, but you can look how it works for the moment.

elgatito avatar Jun 12 '17 19:06 elgatito

Newer USB flash [UFD] have a cache on first write. Perhaps you are filling that and then hitting the WriteOut bottleneck.

foklorr avatar Aug 16 '17 20:08 foklorr

try both of these

https://amazon.com/gp/aw/d/B013UHK0TK/

https://amazon.com/gp/aw/d/B00OAJ412U/

foklorr avatar Aug 16 '17 20:08 foklorr

Hi, where can I download elementum? because there are not releases at this moment https://github.com/elgatito/plugin.video.elementum/releases

ikerfp avatar Oct 25 '17 14:10 ikerfp

Sorry, no estimates yet. It will appear there when working version is ready. But thag will be a separate plugin.

elgatito avatar Oct 25 '17 15:10 elgatito

I've got the exact same problem with my Sony android tv and also with xiaomi mi box. Is there any solution?

talrhv avatar Nov 27 '17 17:11 talrhv

Can i ask how did you set download path to external drive? I have a sony android tv device and all i see in the download path is the /sdcard path which is my internal memory and I cannot go up from this folder.

avshi114 avatar Nov 28 '17 08:11 avshi114

Same problem here. One thing i tried to do is:

-Format your USB stick as NTFS format. -Create a folder structure like this on the USB stick: \Android\data\org.xbmc.kodi\files\Quasar -Insert USB stick. -Open Quasar settings. -Click on “Download path (not FAT32)” and select the folder we previously created: \Android\data\org.xbmc.kodi\files\Quasar -Save the settings.

It works with some drop of download speed (hardware limitation, of course), but nothing to compromise. E.g.: 2000 KB/s then a little drop to 1600 but go to 2000 again.

I have 3 USB sticks with 4, 8 and 16gb. Only the ones with 4 and 16 worked.

joaopauloss avatar Dec 13 '17 15:12 joaopauloss

Formatting my Samsung evo plus 64gb microsd to NTFS solved the problem, @joaopauloss. I still see some drops from 8000KB/s to 2000KB/s but it goes back to 8000KB/s quickly. These minor drops could as well be due to bandwith availabilty in the swarm.

Running Kodi/Quasar on quad-core ARM 64 hardware with 1gb RAM.

Edit: I did an extra check, no download speed drops so this issue is solved for me. The microsd card was originally formatted exfat.

frevib avatar Dec 29 '17 22:12 frevib

@joaopauloss Great instructions.

I'd like to add that the GoTorrent version is fairly mature now as Elementum.

There is a FAT32 driver specifically made for the old AFTV2 with the MicroSD slot where NTFS/exFAT isn't supported, plus @elgatito 's in memory driver is getting fairly mature and is very usable, so you don't need backing storage at all.

iamacarpet avatar Jan 03 '18 13:01 iamacarpet

Thanks, @joaopauloss ... great instructions ... worked perfectly here on my tv box with a micro usb 64gb sandisk ...

bobnett avatar Jan 14 '18 23:01 bobnett

Thanks, @joaopauloss !!! worked perfectly on my tv box with a micro usb 64gb Samsung I searched 2 days and solved, thanks P.S. The microsd card was originally formatted exfat.

mixalbl4-127 avatar Jun 28 '18 20:06 mixalbl4-127