Rclone x Jellyfin

What is the problem you are having with rclone?

I would like to know the recommendations, or a guide for the correct functioning of rclone for Jellyfin, mainly focused on fast loading and loading the subtitles of my content.

Run the command 'rclone version' and share the full output of the command.

rclone v1.53.3-DEV

  • os/arch: linux/amd64
  • go version: go1.18.1

Which cloud storage system are you using? (eg Google Drive)

HTTP Type service

The command you were trying to run (eg rclone copy /tmp remote:tmp)

sudo rclone mount monstertv: /mnt/monster \
  --allow-other \
  --gid=1000 \
  --uid=1000 \
  --read-only \
  --dir-cache-time=72h \
  --fast-list \
  --vfs-cache-mode full \
  --vfs-cache-max-age 24h \
  --vfs-cache-max-size 10G \
  --vfs-read-chunk-size 32M \
  --vfs-read-chunk-size-limit 2G \
  --cache-chunk-path=/mnt/rclone-cache \
  --cache-db-path=/mnt/rclone-cache \
  --cache-chunk-size=16M \
  --cache-chunk-total-size=20G \
  --cache-info-age=2d \
  --cache-db-purge \
  --syslog \
  --umask 002 \
  --daemon

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[monstertv]
type = http
url = https://xxxxx.net/xxxxxx

A log from the command that you were trying to run with the -vv flag

When I try to fast forward the movie it doesn't work, when I try to load the subtitles it doesn't work either.

welcome to the forum,

that is many years old.

  1. uninstall that version
  2. https://rclone.org/install/#script-installation

--fast-list does nothing on a mount. so remove that.


--cache-chunk-path=/mnt/rclone-cache \
  --cache-db-path=/mnt/rclone-cache \
  --cache-chunk-size=16M \
  --cache-chunk-total-size=20G \
  --cache-info-age=2d \
  --cache-db-purge \

those flags are for the deprecated cache remote, which you are not using. so remove them.


--vfs-read-chunk-size-limit 2G - i would remove that.


that is handled by jellyfin. nothing needs to be done with rclone.

1 Like

It works a little better, I made this change:

sudo rclone mount monstertv: /mnt/monster \
  --allow-other \
  --gid=1000 \
  --uid=1000 \
  --read-only \
  --dir-cache-time=72h \
  --vfs-cache-mode full \
  --vfs-cache-max-age 6h \
  --vfs-cache-max-size 10G \
  --vfs-read-chunk-size 32M \
  --vfs-read-ahead 100M

But I notice that it still doesn't load the (embedded) subtitles and, especially when using transcoding, the time jumps don't work well.

  • post output of rclone version
  • post the top thirty lines of a debug log

in my experience, subtitles are handled by the media server.
not sure what rclone has to do with subtitles.

could be internet connection or remote server, that is slow and/or has high latency.
transcoding is handled by the media server, not rclone.

rclone v1.67.0

  • os/version: ubuntu 22.04 (64 bit)
  • os/kernel: 5.15.0-119-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.22.4
  • go/linking: static
  • go/tags: none

post the top thirty lines of a debug log.

Any way to see how fast my server communicates with the storage?

download a file

I did a direct download of the video using wget, it says it goes to 9MB/s, sometimes to 15MB/s.

HTTP request sent, awaiting response... 200 OK
Length: 21560424403 (20G) [video/x-matroska]
Saving to: ‘[tmdbid-573435].mkv’

[tmdbid-573435].mkv 1%[> ] 233,44M  9,23MB/s    eta 24m 28s
2024/09/04 17:46:10 DEBUG : rclone: Version "v1.67.0" starting with parameters ["rclone" "mount" "carmelo:" "/mnt/carmelo" "--allow-other" "--gid=1000" "--uid=1000" "--read-only" "--dir-cache-time=5m" "--vfs-cache-mode" "full" "--vfs-cache-max-age" "6h" "--vfs-cache-max-size" "10G" "--vfs-read-chunk-size" "32M" "--vfs-read-ahead" "100M" "-vv"]
2024/09/04 17:46:10 DEBUG : Creating backend with remote "carmelo:"
2024/09/04 17:46:10 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2024/09/04 17:46:10 DEBUG : Root: https://carmelo.net/xxxx/
2024/09/04 17:46:11 INFO  : https://carmelo.net/xx/: poll-interval is not supported by this remote
2024/09/04 17:46:11 DEBUG : vfs cache: root is "/root/.cache/rclone"
2024/09/04 17:46:11 DEBUG : vfs cache: data root is "/root/.cache/rclone/vfs/carmelo"
2024/09/04 17:46:11 DEBUG : vfs cache: metadata root is "/root/.cache/rclone/vfsMeta/carmelo"
2024/09/04 17:46:11 DEBUG : Creating backend with remote "/root/.cache/rclone/vfs/carmelo/"
2024/09/04 17:46:11 DEBUG : fs cache: renaming cache item "/root/.cache/rclone/vfs/carmelo/" to be canonical "/root/.cache/rclone/vfs/carmelo"
2024/09/04 17:46:11 DEBUG : Creating backend with remote "/root/.cache/rclone/vfsMeta/carmelo/"
2024/09/04 17:46:11 DEBUG : fs cache: renaming cache item "/root/.cache/rclone/vfsMeta/carmelo/" to be canonical "/root/.cache/rclone/vfsMeta/carmelo"
2024/09/04 17:46:11 DEBUG : vfs cache RemoveNotInUse (maxAge=21600000000000, emptyOnly=false): item movies/[tmdbid-1022789].mkv not removed, freed 0 bytes
2024/09/04 17:46:11 DEBUG : vfs cache RemoveNotInUse (maxAge=21600000000000, emptyOnly=false): item movies/[tmdbid-1049574].mkv not removed, freed 0 bytes
2024/09/04 17:46:11 DEBUG : vfs cache RemoveNotInUse (maxAge=21600000000000, emptyOnly=false): item movies/[tmdbid-1094138].mkv not removed, freed 0 bytes
2024/09/04 17:46:11 DEBUG : vfs cache RemoveNotInUse (maxAge=21600000000000, emptyOnly=false): item movies/[tmdbid-573435].mkv not removed, freed 0 bytes
2024/09/04 17:46:11 DEBUG : vfs cache RemoveNotInUse (maxAge=21600000000000, emptyOnly=false): item movies/[tmdbid-704239].mkv not removed, freed 0 bytes
2024/09/04 17:46:11 DEBUG : vfs cache RemoveNotInUse (maxAge=21600000000000, emptyOnly=false): item movies/[tmdbid-704239].mp4 not removed, freed 0 bytes
2024/09/04 17:46:11 INFO  : vfs cache: cleaned: objects 6 (was 6) in use 0, to upload 0, uploading 0, total size 7.466Gi (was 7.466Gi)
2024/09/04 17:46:11 DEBUG : https://carmelo.net/xxxx/: Mounting on "/mnt/carmelo"
2024/09/04 17:46:11 DEBUG : : Root: 
2024/09/04 17:46:11 DEBUG : : >Root: node=/, err=<nil>
2024/09/04 17:46:23 DEBUG : /: Attr: 
2024/09/04 17:46:23 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2024/09/04 17:46:27 DEBUG : /: Lookup: name="movies"
2024/09/04 17:46:27 DEBUG : /: >Lookup: node=movies/, err=<nil>
2024/09/04 17:46:27 DEBUG : movies/: Attr: 
2024/09/04 17:46:27 DEBUG : movies/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2024/09/04 17:46:27 DEBUG : movies/: ReadDirAll: 
2024/09/04 17:46:28 DEBUG : movies/: >ReadDirAll: item=7, err=<nil>

i think you mean MB, not Mb

My mistake, it is MB/s (megabytes).

if you want to know what rclone is doing and how long it takes to stream.

  1. kill the mount
  2. delete the local cache
  3. start playing without transcoding
  4. watch three seconds
  5. skip ahead
  6. wait till playback starts again
  7. kill the mount
  8. post that debug log

and post the media info details about the video

Debug file doing what you asked for: Debug Rclone · GitHub

But it does not allow me very long jumps, that is to say, if I go in the second 0:30 I can not jump to 30 minutes, but I can jump from 0:30 to 5 minutes, (the white bar of loaded in that time comes out).

did you delete the files in the cache before re-starting the mount?

The first time I didn't delete it, now I deleted it and now it allows long line breaks.

not sure what more rclone can do about your use-case.
rclone simply download/streams the media file as fast as it can.

1 Like

Thanks, I will keep these things in mind, I will try to change server to have a better bandwidth.
Finally, the embedded subtitles don't load, is that too difficult to solve? The best thing would be external subtitles, right?

as a test, download the media file to local and play it with emby.

not an expert about that.

check the playback settings, see if emby is doing direct play or transcoding the subtitles.
also, post at emby forum.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.