Rpi3 + Plex Media Server + Bittorrent

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
drakecoldwinter
Posts: 6
Joined: Thu Oct 27, 2016 5:21 pm

Rpi3 + Plex Media Server + Bittorrent

Post by drakecoldwinter »

Hello, I'm brand new user here. I have a Raspberry Pi 3 and I have chosen DietPi as the default Os (Sd card is samsung 64Gb evo+).

I want to have a plex media server on the raspberry connected to a NAS(readyNas Nv+). I have 3 clients(often simultaneous):

- windows web browser
- Samsung tv
- MacOSX web browser

I have only tested 1 simultaneous stream with MacOSX, soon I'll be doing real testing with the 3 simultaneous streams and see how well the Rpi3 performs. I'm afraid the samsung tv will require sometranscoding and I know this may be a problem for the Rpi3, I will test in the next few days. Now, I have bought heatsinks from ebay (on the mail) when I install them I plan on overclocking a little the cpu, so I have some questions:

1 - What would be a good/safe overclocking for my setup? or maybe I shouldn't overclock at all?
2 - Should I overclock the sd card reader speeds ? The plexserver metadata is on the sd card, the files are on the NAS.
3 - It's there some services/stuff I can disable to get better performance? I don't need wifi nor bluetooth. I aready setted 16Mb to GPU.

I wish to install a bittorrent program, the Rpi will do nothing else (PMS + torrent). I need to configure a scheduler so that the torrents will download only on the middle of the night and the files would be directly downloaded on the NAS (so that I don't stress the sd card). I need the lightest torrent software because I wish all the power and resources allocated to Plex Server.

4 - What torrent software you recommed me ?

Thanks for your input and guidance.
GaM3r2Xtreme
Posts: 10
Joined: Thu Jun 02, 2016 4:00 am

Re: Rpi3 + Plex Media Server + Bittorrent

Post by GaM3r2Xtreme »

Hey drake,

I'm no pro myself, but here are my suggestions to your questions:
1 - What would be a good/safe overclocking for my setup? or maybe I shouldn't overclock at all?
I'd say stress test the Raspberry Pi 3 first without any kind of overclocking to see if it will be able to handle the load. I'm not quite sure if you plan to go headless or not (no monitor attached to the video output) but you could watch how much load is on the processor by using the htop command either by using the terminal directly from the pi or an SSH connection through your network. If the load is sufficient by your standards and nothing lags, I wouldn't overclock in order to give that extra protection and unneeded wear and tear on the pi.

If you are willing to overclock you system, it appears that there is currently no support on overclocking a pi 3 as of yet (meaning it could be risky). It seems like it is still possible to do based on this blog post if your up for the task: http://www.jackenhack.com/raspberry-pi-3-overclocking/.
2 - Should I overclock the sd card reader speeds ? The plexserver metadata is on the sd card, the files are on the NAS.
You could attempt to overclock the sd card bus speed, but you risk the chance of corrupting data on the sd card if the card is too slow to begin with. Take a look at the forum post here to read a little more about this: http://dietpi.com/phpbb/viewtopic.php?f=9&t=331
3 - It's there some services/stuff I can disable to get better performance? I don't need wifi nor bluetooth. I aready setted 16Mb to GPU.
There should be some menus within the dietpi-config command that will allow you to disable a few peripherals (wifi, bluetooth, hdmi, picam). You might not obtain all that much performance turning these off, but it would help to cut back power consumption. If I remember correctly, most of these are disabled to begin with too. Background processes are pretty minimal from the start, so most of the processing power will be going between your plex media server and torrent client.
4 - What torrent software you recommed me ?
I haven't tried any of the torrent clients myself (I still use utorrent on my windows machine for now) but I would say try each one found in the dietpi-software command. Depending on how you plan to run the torrent client, one might stand out to be the better pick. Dietpi is optimized for the following four clients:
Transmission http://dietpi.com/phpbb/viewtopic.php?f=8&t=5#p46
Deluge http://dietpi.com/phpbb/viewtopic.php?f ... art=10#p61
qBitTorrent http://dietpi.com/phpbb/viewtopic.php?f ... t=70#p2272
rTorrent http://dietpi.com/phpbb/viewtopic.php?f ... 2603#p2603

Hope this helps, and good luck with your build! Let us know how it turns out too.
drakecoldwinter
Posts: 6
Joined: Thu Oct 27, 2016 5:21 pm

Re: Rpi3 + Plex Media Server + Bittorrent

Post by drakecoldwinter »

The raspberry can stream wonderfully up to 3 clients without any lag as long as there is no hvec x265 on view... The samsung tv is able to see the hvec x265 without trouble, the computers aren't able, it would seem the raspberry is unable to do the transcoding at all and I don't manage to force direct play (except the samsung tv).

So I will do some more test and check how it plays.

Also I'm having some troubles with the plex media scanner who seems to stay hang up on some items.
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: Rpi3 + Plex Media Server + Bittorrent

Post by johnvick »

I do much the same as you but on an Odroid XU4 as the server and clients are Odroid C2, Android phone/tablet and Windows & Linux PCs. I use Ebmy not Plex and it works very well on the whole. I use Deluge as a bittorrent client runs well on DietPi as does Transmission but I can't comment on resource use.

The Pi3 doesn't handle HEVC well playing directly above 720p resolution at least and although I haven't tried transcoding on it it would seem unlikely it would do that adequately. But I haven't tried overclocking it. The Odroid XU4 has enough power to transcode these files - for example playing 1080p HEVC on a Samsung Pro S tablet from the SD card doesn't work but streaming from XU4/Emby does and looks pretty good.

I'm maybe waffling a bit but DietPi will run all the software you need to do what you want if the hardware is up to it - and maybe the Pi3 isn't (I have one) - Odroid XU4 or C2 is maybe a better choice.

John
drakecoldwinter
Posts: 6
Joined: Thu Oct 27, 2016 5:21 pm

Re: Rpi3 + Plex Media Server + Bittorrent

Post by drakecoldwinter »

I installed OpenPHT on the client computers and now the server is just doing direct play while the clients are doing the heavy lifting for the transcoding. All videos work pretty well even the h265 hvec ones, so that overall I'm pretty happy with the result and I think that the Pi doesn't need overclock or anything like that, the system is snappy enought for 3 simultaneus streams.

I will remain with Plex as I haven't never tried Emby but Plex suits me pretty well, so I don't see the need to move on.

Now I will check for the bittorrent, I will look the lighter one (ressource wise) that has a scheduler (very important, my bandwich is limited in the day). Deluge, Transmission, humm I will check the choices carefully before choosing.
GaM3r2Xtreme
Posts: 10
Joined: Thu Jun 02, 2016 4:00 am

Re: Rpi3 + Plex Media Server + Bittorrent

Post by GaM3r2Xtreme »

Heck, try them both out. I'm pretty sure it is extremely easy to uninstall one or the other through the dietpi-software script. I'm glad to see the Plex server is treating you well.
drakecoldwinter
Posts: 6
Joined: Thu Oct 27, 2016 5:21 pm

Re: Rpi3 + Plex Media Server + Bittorrent

Post by drakecoldwinter »

qBittorrent doesn't have any scheduler, I can't use it. Trasmission the scheduler is very poor/limited. Deluge it's the only one that has a decent scheduler so it's the one I'll use.
drakecoldwinter
Posts: 6
Joined: Thu Oct 27, 2016 5:21 pm

Re: Rpi3 + Plex Media Server + Bittorrent

Post by drakecoldwinter »

I will do a final recap.

I have installed Plex Media Server on the Raspberry Pi3, wifi and bluetooth are disabled. I also installed Deluge with the scheduler plug-in(downloads happen in the middle of the night). Samba is installed to map my Netgear ReadyNAS. Plex data is stored on the sd card (Samsung Evo+ 64gb) but the media files are on the NAS. Deluge downloads directy to the NAS.

On the clients I installed OpenPHT and defined that the transcoding would be done by the client. Currently the system is able to deliver 3 simultaneous streams without any hiccups, even the famous x265 videos stream without troubles.

Overall I'm very happy with the setup and I'm impressed by how well the raspberry performs (I was very sceptical about the overall performance).
mefistos

Re: Rpi3 + Plex Media Server + Bittorrent

Post by mefistos »

Did you change any settings in Plex? I am trying to get it streaming on 1 device and I cant get more than 10s without a video stuttering... :cry:
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Rpi3 + Plex Media Server + Bittorrent

Post by Fourdee »

mefistos wrote:Did you change any settings in Plex? I am trying to get it streaming on 1 device and I cant get more than 10s without a video stuttering... :cry:
If your running PMS on a RPi 3 or similar, disable transcoding and use the original stream. It cant handle transcoding.
Untitled.png
If problems persists with original stream, its a bandwidth limitation issue on device, client and/or network. Or, inability to play original stream due to lack of hw support for codec.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Post Reply