steeve / plugin.video.pulsar

Pulsar addon for XBMC/Kodi
http://forum.kodi.tv/showthread.php?tid=200957
Other
545 stars 351 forks source link

RPi freezing when buffering/streaming (Please add Peer/Seeder number limit) #24

Open jijijaco opened 9 years ago

jijijaco commented 9 years ago

I'm using Openelec 4.2.1, Pulsar 0.2, on a RPi model B first gen (256mb ram). My issue is : when I play a video with high peer/seed, Pulsar is freezing after a few seconds/minutes.

My explanation of the issue : The number of IN/OUT connections is too high for my RPi. I've already encountered this problem using Transmission Bittorent.

My solution : Could you add a limit on the number of connections for which a parameter would be available in config such as the speed limit. Once the limit is reached, new connections shall be refused.

For transmission bittorent I had to limit the number of connection around 50 maximum. Limiting the speed doesn't help at all.

Thank you for the great work.

BTopbas commented 9 years ago

Raspberry Pi B+ 512MB Overclocked turbo. Usb3 storage. Same problem happening. Video 1-2 mins play and freeze auto stop without error. My internet speed is high. I think pulsar issue or cpu usage high.

steeve commented 9 years ago

Ideally you shouldn't have to worry about such things, me thinks. That's why I'll add a fix for that to make it automatic when on RPi.

steeve commented 9 years ago

Ok, I've updated the code to set a global connection limit to 50 on single core arm cpus I will go in the next update

jijijaco commented 9 years ago

Nice! Thank you very much for considering it. What would be ideal I think is to have this limit set in a config file. So we could tweak it if needed. In a config file this would need an advance level to find it and change it. The provider time out value would sit there as well so that people may relax the timeout if they have a slow connection... For example you could have one config file per architecture... My peny for your great work.

ghost commented 9 years ago

Steeve, it would be awesome if you could make that an option for any os as the 500+ connections i get totally kills my router

joeldwine commented 9 years ago

Hi, Currently running pulsar 0.2.0 on Raspberry Pi B + (RaspBMC Gotham)

Although I have trouble with Movies "closing" after about 20 seconds when streaming using xbmctorrent the problem does not occur using Pulsar 0.2.0,

Its been advised that you will be implementing a 50 seed limit on single core rasp pi etc might I suggest an Option / setting for the application of this.

Download speeds are obviously fast with increased seed number so some people (myself) may want to keep it the way it is.

On another note, your add-on is ridiculously well executed and you should be very proud good sir.

JoostV commented 9 years ago

Step one vi /storage/.xbmc/userdata/advancedsettings.xml

Step 2, insert these lines: <?xml version="1.0" encoding="UTF-8"?>

25165824 1 false

Step 3: Reboot

Step 4: Test and report back. :-)

JoostV commented 9 years ago

See http://forum.kodi.tv/showthread.php?pid=1832403#pid1832403 for correct xml

Petrakeas commented 9 years ago

The proposed xml (and generally using Kodi's cache) produces artifats when playing back the video. Disabling caching solves the problem for me.

See XML: http://forum.kodi.tv/showthread.php?tid=200957&pid=2029332#pid2029332

mortenbock commented 8 years ago

My router seems to die on me when using Pulsar on a RaspPi 2.

Was the connection limit of 50 implemented? I can't seem to find it in the source? Would it be possible to make this configurable?