Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

Plex Remote Transcoder - A distributed transcoding backend for Plex

pevapeva Posts: 100Members, Plex Pass Plex Pass

I just came across this repo and couldn't find a post on here about it. I AM NOT THE DEVELOPER, but I am really excited about this and have been waiting for something like this.

https://github.com/wnielson/Plex-Remote-Transcoder

Would love to hear peoples take/opinion on this project.

«13456724

Comments

  • SuspenseSuspense Posts: 287Members, Plex Pass Plex Pass

    Would this be compatible and run fine on windows machines? Been looking for this for well over 2 years now

    Regards

  • wnielsonwnielson Posts: 114Members, Plex Pass Plex Pass

    In the current state, no, it will not work on Windows. That's said it shouldn't take too much effort to get it working. Cygwin would likely be a prerequisite.

  • CB2131CB2131 Posts: 25Members, Plex Pass Plex Pass

    Brilliant work!!

  • SuspenseSuspense Posts: 287Members, Plex Pass Plex Pass

    @wnielson said:
    In the current state, no, it will not work on Windows. That's said it shouldn't take too much effort to get it working. Cygwin would likely be a prerequisite.

    Would absolutely love if you could port this to windows

  • CB2131CB2131 Posts: 25Members, Plex Pass Plex Pass

    I'm excited to see where this goes!

  • CB2131CB2131 Posts: 25Members, Plex Pass Plex Pass
    edited August 2015

    Can I assume that the initial setup via (sudo prt install) needs to be re-run when the PMS is updated?

  • wnielsonwnielson Posts: 114Members, Plex Pass Plex Pass

    @CB2131 said:
    Can I assume that the initial setup via (sudo prt install) needs to be re-run when the PMS is updated?

    Correct. Upgrading PMS will overwrite the changes made by prt. For now you'll probably need to remove the plex_transcoder (located in /usr/lib/plexmediaserver/Resources) before runnning sudo prt install again, at least until I've updated the code to be a bit smarter.

  • CB2131CB2131 Posts: 25Members, Plex Pass Plex Pass

    Is Real-Time Load-Based Balancing configured by default?

  • wnielsonwnielson Posts: 114Members, Plex Pass Plex Pass

    @CB2131 said:
    Is Real-Time Load-Based Balancing configured by default?

    Yeah, it is the only load-balancing currently. If you have more than one host, it'll automatically pick the one with the lowest load.

  • CB2131CB2131 Posts: 25Members, Plex Pass Plex Pass
    edited August 2015

    Ahh! Followed your guide precisely. It's non-functional over here. The transcoder does not seem to be firing up at all.

  • wnielsonwnielson Posts: 114Members, Plex Pass Plex Pass

    @CB2131 said:
    Ahh! Followed your guide precisely. It's non-functional over here. The transcoder does not seem to be firing up at all.

    Debugging is tricky. If I had to guess I'd say it is a permissions error related to the PMS temporary directory. Try logging into the slave, su to the plex user, cd to the network shared PMS temp dir and make sure it is writable.

  • CB2131CB2131 Posts: 25Members, Plex Pass Plex Pass
    edited August 2015

    Ok so that did the trick. Seems to be passing transcoding from the master to the slave. So given the Real-Time Load-Based Balancing...this will automatically shift jobs between the Master and Slave nodes based on CPU load?

    If One slave exists, does it pass jobs back to the master when CPU load hit a particular %?

  • wnielsonwnielson Posts: 114Members, Plex Pass Plex Pass

    @CB2131 said:
    Ok so that did the trick. Seems to be passing transcoding from the master to the slave. So given the Real-Time Load-Based Balancing...this will automatically shift jobs between the Master <------> Slaves based on CPU load?

    If One slave exists, does it pass jobs back to the master when CPU load hit a particular %?

    By default, the master is not considered as a transcode slave. If you want the master to be considered a slave as well, then run prt add_host and use the loopback address 127.0.0.1.

  • CB2131CB2131 Posts: 25Members, Plex Pass Plex Pass
    edited August 2015

    plex@master:/root$ prt add_host
    Host: 127.0.0.1
    Port: 22
    User: plex
    We're going to add the following transcode host:
      Host: 127.0.0.1
      Port: 22
      User: plex
    Proceed: [y/n]y
    close failed in file object destructor:
    IOError: [Errno 28] No space left on device
    Host successfully added

    What are you thoughts on this? What is the location of the host file? i.e. the file where I can remove configured hosts?

  • wnielsonwnielson Posts: 114Members, Plex Pass Plex Pass

    @CB2131 said:

    plex@master:/root$ prt add_host
    Host: 127.0.0.1
    Port: 22
    User: plex
    We're going to add the following transcode host:
      Host: 127.0.0.1
      Port: 22
      User: plex
    Proceed: [y/n]y
    close failed in file object destructor:
    IOError: [Errno 28] No space left on device
    Host successfully added

    What are you thoughts on this? What is the location of the host file? i.e. the file where I can remove configured hosts?

    The configuration file is ~/.prt.conf, which should be /var/lib/plexmediaserver/.prt.conf on the master. There isn't an option to hangs that location yet, but maybe I should add a way to specify a different location.

  • CB2131CB2131 Posts: 25Members, Plex Pass Plex Pass

    That config file seems to be empty.

  • wnielsonwnielson Posts: 114Members, Plex Pass Plex Pass

    @CB2131 said:
    That config file seems to be empty.

    Are you running the prt command as the plex user?

  • CB2131CB2131 Posts: 25Members, Plex Pass Plex Pass
    edited August 2015

    Yes correct, prt is run as under plex user

«13456724
Sign In or Register to comment.