Jump to content


Photo

[TOOL] RClone Cache Pre-Caching for Emby


  • Please log in to reply
9 replies to this topic

#1 jrwr OFFLINE  

jrwr

    Newbie

  • Members
  • 1 posts
  • Local time: 01:16 AM

Posted 05 January 2020 - 09:26 PM

I have written a little webhook server to help with getting better performance if you are using rclone cache mounts and emby

 

This will create a small webserver to be put on the same machine as the rclone cache mount. when media is being played, it will tell rclone to cache the entire file to disk and help eliminate buffering.

 

This mimics the behavior that rclone cache has when setup to use Plex Pre-caching.

 

https://github.com/J...b/master/run.py

 

I've been testing it with my rather busy media server and it has made the experience a ton better.

 


  • neik and cuzz1369 like this

#2 cuzz1369 OFFLINE  

cuzz1369

    Member

  • Members
  • 29 posts
  • Local time: 02:16 AM

Posted 06 January 2020 - 12:29 AM

I have written a little webhook server to help with getting better performance if you are using rclone cache mounts and emby

This will create a small webserver to be put on the same machine as the rclone cache mount. when media is being played, it will tell rclone to cache the entire file to disk and help eliminate buffering.

This mimics the behavior that rclone cache has when setup to use Plex Pre-caching.

https://github.com/J...b/master/run.py

I've been testing it with my rather busy media server and it has made the experience a ton better.

Thanks for the share.

Sent from my SM-G965W using Tapatalk

#3 Spaceboy ONLINE  

Spaceboy

    Advanced Member

  • Members
  • 4769 posts
  • Local time: 08:16 AM

Posted 06 January 2020 - 04:25 AM

I have written a little webhook server to help with getting better performance if you are using rclone cache mounts and emby

This will create a small webserver to be put on the same machine as the rclone cache mount. when media is being played, it will tell rclone to cache the entire file to disk and help eliminate buffering.

This mimics the behavior that rclone cache has when setup to use Plex Pre-caching.

https://github.com/J...b/master/run.py

I've been testing it with my rather busy media server and it has made the experience a ton better.

nice and thanks! Still working on getting all my data up to gdrive but this will be great!

#4 doug.dimick OFFLINE  

doug.dimick

    Member

  • Members
  • 22 posts
  • Local time: 11:16 PM

Posted 08 February 2020 - 02:26 PM

Thanks for writing this! I submitted a PR to remove the need to edit the source file and also allow multiple Emby/rclone path mappings.

 

https://github.com/d...rclone-precache



#5 laris11 OFFLINE  

laris11

    Newbie

  • Members
  • 5 posts
  • Local time: 09:16 AM

Posted 21 March 2020 - 09:24 AM

Hey @jrwr thanks for the great work. I have a problem, every time that try to run the command cache/fetch I receive this error, do you know what could be the problem. I have last rclone and i mount the rclone with the --rc and the --rc-addr as default:

 

2020/03/21 14:22:31 Failed to rc: Failed to read rc response: 404 Not Found: {

"error": "couldn't find method \"cache/fetch\"",

"input": {},

"path": "cache/fetch",

"status": 404

}

 

Mar 21 13:34:44 emby run.py[31129]:         "input": {

Mar 21 13:34:44 emby run.py[31129]:                 "chunks": ":",

Mar 21 13:34:44 emby run.py[31129]:                 "file": "***/Media/TV/Outlander/Season 05/Outlander - S05E01 - The Fiery Cross - 4K_U

Mar 21 13:34:44 emby run.py[31129]:         },

Mar 21 13:34:44 emby run.py[31129]:         "path": "cache/fetch",

Mar 21 13:34:44 emby run.py[31129]:         "status": 404


Edited by laris11, 21 March 2020 - 09:24 AM.


#6 tomimc OFFLINE  

tomimc

    Advanced Member

  • Members
  • 154 posts
  • Local time: 09:16 AM

Posted 07 April 2020 - 08:11 PM

Hi i use rclone with vfs,
Woks with vfs? Or only with cache settings ?

Enviado desde mi MI 5 mediante Tapatalk

#7 NitroNine OFFLINE  

NitroNine

    Member

  • Members
  • 12 posts
  • Local time: 04:16 AM

Posted 10 May 2020 - 06:23 AM

Can this be set up on unRaid?



#8 kikinjo OFFLINE  

kikinjo

    Advanced Member

  • Members
  • 367 posts
  • Local time: 09:16 AM

Posted 10 May 2020 - 07:00 AM

How is this different from rclone cache backend ?



#9 neik OFFLINE  

neik

    Advanced Member

  • Members
  • 1140 posts
  • Local time: 09:16 AM

Posted 10 May 2020 - 07:16 AM

The Rclone devs have been working on bringing vfs and the cache backend closer together.

They seem to be close to a beta:
https://forum.rclone...ode-light/16191

Stay tuned, might make a great piece of software even greater. ;-)
  • kikinjo likes this

#10 kikinjo OFFLINE  

kikinjo

    Advanced Member

  • Members
  • 367 posts
  • Local time: 09:16 AM

Posted 10 May 2020 - 07:53 AM

Yes great news :) I use cache backed without an issues, it just needs some tuning and it is good and stable






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users