Plex Remote Transcoder - A distributed transcoding backend for Plex

@mrjonny2 said:
Has anyone put a step by step guide on how to do this?

Not yet—I’m still putting it together.

FINALLY!!
The most interesting thread on the whole plex forum!!
I would be happy to donate for this awesome (and really needed by me) feature

Thanks and keep up the good work!

It would be awesome if this could handle waking an offline slave using WOL or something and then shutting it back down when it’s done. Then you could have a small, low power main PMS that can wake up a big, power hungry compute node only when needed.

@mrschmid47 said:
It would be awesome if this could handle waking an offline slave using WOL or something and then shutting it back down when it’s done. Then you could have a small, low power main PMS that can wake up a big, power hungry compute node only when needed.

This is already doable, in theory. You can have prt call an external script when a transcode session is about to start through the path_script configuration option. For example, create a script called “plex_wol.sh”:

#!/bin/bash
wakeonlan 01:23:45:67:89:ab  > /dev/null 2>&1

replacing 01:23:45:67:89:ab with the MAC address of the machine you want to wakeup. Then make plex_wol.sh executable:

chmod +x plex_wol.sh

Then edit your prt configuration file and edit the path_script entry:

{
...
    "path_script":   "/path/to/plex_wol.sh",
    "servers_script": None,
...

Finally, you have to modify your transcode machine to go to sleep after it has been idle, which I’ll leave as an exercise for the reader.

I haven’t tested this, but the basic idea should work.

I wish with all my soul that this could be developed to work on Windows.
My server needs some love (and trans-coding help from the spare i7 in the other room).

@alternativesurfer said:
I wish with all my soul that this could be developed to work on Windows.
My server needs some love (and trans-coding help from the spare i7 in the other room).

Absolutely agree, we need this on windows! :slight_smile:

The sole reason I even monitor this forum thread is waiting to see if a Windows version comes out. :slight_smile:

I was going to try to work on Windows support (for some reason I thought Windows 10 was free), but I don’t have access to two valid licenses…

I can provide you with valid Windows licenses for your testing purposes if you need. Shoot me a PM

Interesting project. Definitely could be useful for me.

Quick question. I have this all set up and everything is working for the transcoding. This seems like a dumb question, but I am going to ask it anyways. This would in no way affect the Plex Media Scanner, correct? I recently lost the ability to generate the media index files and am just trying to backtrack anything that I have done recently. When I run the command line it just crashes. This is all on Ubuntu 14.

Cheers!

@nogardvfx said:
Quick question. I have this all set up and everything is working for the transcoding. This seems like a dumb question, but I am going to ask it anyways. This would in no way affect the Plex Media Scanner, correct? I recently lost the ability to generate the media index files and am just trying to backtrack anything that I have done recently. When I run the command line it just crashes. This is all on Ubuntu 14.

Cheers!

Actually, I haven’t tested that. The media index files are likely generated by the transcoder, so this could potentially affect that. I can’t think of why things would stop working though. Have you looked at the logs?

Will take a look when I get home. Was killing some time remotely on my ipad. I also will take a peek at the crash report.

Another theory speaking comment:
What about sync throttling? Under normal conditions the sync transcoder thread throttles whenever live transcoding kicks in. How does this could react to remote transcoder?

Thanks

This is a awesome project and I have to try it. Keep up the good work. :slight_smile:
I am sorry if I am going a little of topic here, but would this maybe also be able to help the server to index movies? Or is it only for transcoding?

I promised to test it under OS X but did not get enough time. Sorry for that.

@simonx said:
Another theory speaking comment:
What about sync throttling? Under normal conditions the sync transcoder thread throttles whenever live transcoding kicks in. How does this could react to remote transcoder?

Thanks

I’m not completely sure, but I believe the transcoder used for syncing is the same as the one for streaming. If that is the case, then this should just work out of the box. I’ll have to investigate further to know for sure though.

@henkall said:
I am sorry if I am going a little of topic here, but would this maybe also be able to help the server to index movies? Or is it only for transcoding?

It is only for transcoding at the moment. In theory it should help with media indexing, but there might be a bug, which I am looking into.

@wnielson said:
I was going to try to work on Windows support (for some reason I thought Windows 10 was free), but I don’t have access to two valid licenses…

Let me know if licenses are still needed. I have a couple spare 2008 R2 Standard licenses lying around I can issue.

Hi there, sorry I didn’t get back to you sooner about the media indexing. I was waiting for a Plex server update before I did some of my testing. I grabbed the recent update, which reset all the balance transcoding. As soon as Plex was brought back up the media indexing worked. I waiting a few days to let it chug through my library. I reinstalled the load balacing yesterday and the media indexing has ceased.

Is there anything I can provide to help with this issue?

Cheers,
-Chris