Stream issues. What flags should I use?

What is the problem you are having with rclone?

I'm using rclone as a plugin in unraid. Has worked perfectly before using google drive to stream my videos.

uploaded some mp4s into opendrive. They are instructional videos in my line of work. Ranging between 20MB and 400MB in size.

Created a remote in rclone with no issues. Both Plex and Emby "see" the videos directory and create a library. Problem is nothing plays.

I do not know what arguments to use. I don't think I want to use "-vfs-cache-mode full," so I tried "-vfs-cache-mode writes," as you will see below.

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

root@gio:~# rclone version
rclone v1.59.0-beta.6081.b53c38c9f

  • os/version: slackware 14.2+ (64 bit)
  • os/kernel: 4.19.107-Unraid (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.18.1
  • go/linking: static
  • go/tags: none

Which cloud storage system are you using?

opendrive

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

mkdir -p /mnt/disks/opendrivedotcom

rclone mount --allow-other --cache-chunk-total-size 32M --vfs-cache-mode writes --vfs-cache-max-size 32M opendrivedotcom: /mnt/disks/opendrivedotcom &

The rclone config contents with secrets removed.

[opendrivedotcom]
type = opendrive
username = me@myemail.com
password = *********************

A log from the command with the -vv flag

```Paste  log here

You'd want to use --log-file /tmp/rclone.log -vv and share the log as that might show what's going on.

i feel very stupid, but I had tried to figure out how to generate a log before I even posted the original post.

Runnign the below command in terminal
rclone --log-file /tmp/rclone.log -vv
produces nothing
Should this be attached to the mount script?

You'd add that to the end of your mount command.

well, now they're playing. Maybe it's the opendrive, but they take a bit to start. The videos. And they're low-res and short.

Anyway, here is the log.

2022/08/07 16:42:29 DEBUG : Creating backend with remote "opendrivedotcom:"
2022/08/07 16:42:29 DEBUG : Using config file from "/boot/config/plugins/rclone/.rclone.conf"
2022/08/07 16:42:49 DEBUG : pacer: low level retry 1/10 (error Post "https://dev.opendrive.com/api/v1/session/login.json": dial tcp: lookup dev.opendrive.com on 192.168.216.251>
2022/08/07 16:42:49 DEBUG : pacer: Rate limited, increasing sleep to 20ms
2022/08/07 16:43:09 DEBUG : pacer: low level retry 2/10 (error Post "https://dev.opendrive.com/api/v1/session/login.json": dial tcp: lookup dev.opendrive.com on 192.168.216.251>
2022/08/07 16:43:09 DEBUG : pacer: Rate limited, increasing sleep to 40ms
2022/08/07 16:43:09 DEBUG : pacer: Reducing sleep to 20ms
2022/08/07 16:43:09 DEBUG : Starting OpenDrive session with ID: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2022/08/07 16:43:09 INFO  : OpenDrive root '': poll-interval is not supported by this remote
2022/08/07 16:43:09 DEBUG : vfs cache: root is "/.cache/rclone"
2022/08/07 16:43:09 DEBUG : vfs cache: data root is "/.cache/rclone/vfs/opendrivedotcom"
2022/08/07 16:43:09 DEBUG : vfs cache: metadata root is "/.cache/rclone/vfsMeta/opendrivedotcom"
2022/08/07 16:43:09 DEBUG : Creating backend with remote "/.cache/rclone/vfs/opendrivedotcom/"
2022/08/07 16:43:09 DEBUG : Creating backend with remote "/.cache/rclone/vfsMeta/opendrivedotcom/"
2022/08/07 16:43:09 DEBUG : OpenDrive root '': Mounting on "/mnt/disks/opendrivedotcom"
2022/08/07 16:43:09 INFO  : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2022/08/07 16:43:09 DEBUG : : Root:
2022/08/07 16:43:09 DEBUG : : >Root: node=/, err=<nil>
2022/08/07 16:44:09 INFO  : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2022/08/07 16:45:09 INFO  : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2022/08/07 16:46:09 INFO  : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2022/08/07 16:47:09 INFO  : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2022/08/07 16:47:20 DEBUG : /: Attr:
2022/08/07 16:47:20 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxrwx, err=<nil>
2022/08/07 16:47:23 DEBUG : /: Lookup: name="MEDIA"
2022/08/07 16:47:23 DEBUG : pacer: Reducing sleep to 10ms
2022/08/07 16:47:23 DEBUG : /: >Lookup: node=MEDIA/, err=<nil>
2022/08/07 16:47:23 DEBUG : MEDIA/: Attr:
2022/08/07 16:47:23 DEBUG : MEDIA/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxrwx, err=<nil>
2022/08/07 16:47:23 DEBUG : MEDIA/: Lookup: name="Golf"
2022/08/07 16:47:24 DEBUG : MEDIA/: >Lookup: node=MEDIA/Golf/, err=<nil>
2022/08/07 16:47:24 DEBUG : MEDIA/Golf/: Attr:
2022/08/07 16:47:24 DEBUG : MEDIA/Golf/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxrwx, err=<nil>
2022/08/07 16:47:24 DEBUG : MEDIA/Golf/: Lookup: name="PGA"
2022/08/07 16:47:24 DEBUG : MEDIA/Golf/: >Lookup: node=MEDIA/Golf/PGA/, err=<nil>
2022/08/07 16:47:24 DEBUG : MEDIA/Golf/PGA/: Attr:
2022/08/07 16:47:24 DEBUG : MEDIA/Golf/PGA/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxrwx, err=<nil>
2022/08/07 16:47:24 DEBUG : MEDIA/Golf/PGA/: ReadDirAll:
2022/08/07 16:47:25 DEBUG : MEDIA/Golf/PGA/: >ReadDirAll: item=297, err=<nil>
2022/08/07 16:48:09 INFO  : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2022/08/07 16:49:09 INFO  : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2022/08/07 16:50:09 INFO  : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2022/08/07 16:51:09 INFO  : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2022/08/07 16:52:09 INFO  : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2022/08/07 16:52:41 DEBUG : /: Lookup: name="MEDIA"
2022/08/07 16:52:41 DEBUG : : Re-reading directory (5m17.893570469s old)
2022/08/07 16:52:41 DEBUG : /: >Lookup: node=MEDIA/, err=<nil>
2022/08/07 16:52:41 DEBUG : MEDIA/: Attr:
2022/08/07 16:52:41 DEBUG : MEDIA/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxrwx, err=<nil>
2022/08/07 16:52:41 DEBUG : MEDIA/: Lookup: name="Golf"

How does my mount command look? Are some flags unneeded or need changed values? Anything to add?

Thank you!

In that log file, there isn't any attempt of anything trying to be played.

Did you try to play something?

I did. Hadn't scrolled down enough.

The "Drills" video is 220MB. These videos of which I have about 150 for my job take a few seconds to start, but play.

For testing, I also uploaded a 11GB movie (changed the name). This one never started and errored out in Emby.

Would you help me change the flags to something that I can play everything, including small videos and huge, high-bitrate movies?

here is the log:
https://pastebin.com/raw/KW5mcMta

Thank you!

ok, so now that I've actually tried to watch my videos: the video skips every couple of seconds...
Again, these are very low-bitrate MP4s and Emby direct plays them.

the high(er) res 11GB movie doesn't play at all still

I don't use opendrive so have no idea how good/bad it is.

There are no rclone type items in there.

You can try --vfs-cache-mode full and see if that helps.

I'd set these up based on your space available.

--cache-dir string                   Directory rclone will use for caching.
--vfs-cache-mode CacheMode           Cache mode off|minimal|writes|full (default off)
--vfs-cache-max-age duration         Max age of objects in the cache (default 1h0m0s)
--vfs-cache-max-size SizeSuffix      Max total size of objects in the cache (default off)

I use age 9999h so it basically keeps what I configure via size as long as possible.

I am reading and reading other topics. And i'm still confused.
does
--vfs-cache-mode full
mean the entire file will be downloaded to my server? When playback ends, does the file get deleted automatically?

I don't need to write to the server (opendrive). Can I use
--read-only
?

And if I do use vfs-cache, does --cache-dir need to be set?

In the past with google drive, never had issues with a canned mount I found on the web somewhere:
rclone mount --allow-other --dir-cache-time 96h --drive-chunk-size 32M --log-level INFO --timeout 1h --umask 002 --rc --rc-addr=localhost:5573 --tpslimit 8 --vfs-read-chunk-size 32M --vfs-read-chunk-size-limit off gdrive: /mnt/disks/gdrive &

Check out:

rclone mount

I'm not quite sure on Unraid how that works. I use a separate cache disk for my cache-dir.

I've used Google Drive and Dropbox with no issues as I've got no experience with Opendrive so unknown how it would perform for streaming.

ok, thank you. I'll keep fiddling with it.

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