Rclone and music

Does anyone know a way to use rclone with music files comfortably?

I have a linux server which serves a mount over caddy and a windows client. Works fine for anything but music since it's not possible to use foobar or to drag folders to vlc this way.

Here's what I've tried:

Direct mount on widows: Mount is slow and choppy
SMB: Choppy playback, interrupts every 5 seconds, same as for video btw.
NFS: Worse than SMB
Webdav: Equally slow
Caddy over http works, but I have to drag single files to the player (vlc)

Someone must have solved this already?

Use Emby or Jellyfin, works without any issues.

you can use rclone as a dlna server.
then vlc will see it, works great
https://rclone.org/commands/rclone_serve/
here is my command
rclone serve dlna --addr=:8123 --name=MediaServer01 wasabimediacrypt:

image

Kinda don't want to play it via browser. Thats what I have now with plex.

The dir seems to be too big. It times out unless I just share a subdirectory via dlna

i am not having any problems.
3000+ files in 320+ folders

how many files in the folder?
what is your rclone command?

what are the speeds of your internet connection?
what is the cloud provider you are using?

14k files in 100 folders

 /usr/bin/rclone serve dlna cgdrive:music2 --addr 192.168.1.11:8001 --buffer-size 1G --dir-cache-time 1h

Using google drive with 1gb fiber

i also have 1Gbps, from verizon fios fiber and i use wasabi, a s3 rclone.

i am no expert for rclone serve, and only in the last week have i started to use it.
i use it for videos, not music, and video is much more resource intensive.
so far, zero problems.

my command very simple:
rclone serve dlna remote:

are you sure you need those extra flags?

you should use a log file with debug info.

i know that gdrive has lots of limits in terms for downloads and transactions per second.
have you tried?
https://rclone.org/drive/#fast-list

and have you read this?
https://rclone.org/drive/#limitations
"Drive has quite a lot of rate limiting"

and have you done this?
https://rclone.org/drive/#making-your-own-client-id

I've just copied the service file command from another dlna serve I use. The result without additional flags is the same. I use my own client id. My other serve shares 1600 media files without a problem.

-v doesn't output anything after starting serve, -vv only posts unknow file errors from logs and stuff in the folder.

so the issue is the number of files in the folder that rclone servce is using?

in the first rclone serve with the problem, how many files are in the main folder?

on the 'other' rclone serve without a problem, are all 1600 media files in the same single folder?

you could try to add this flag, not sure the flag works with rclone serve command.

 --fast-list                            Use recursive list if available. Uses more memory but fewer transactions

idk. It works for smaller folders, thats all I know. --fast-list didn't change anything.

Each of the served directories has about 300 folders in the dir root. The one with 1600 files works the other don't.

it seems that when the rclone serve command starts, it does indexes, most if not all, the files in all subfolders.

if you add debug output, you would see what is going on.
Re-reading directory (5m28.2399706s old)
unrecognized file type
associating subtitle

2020/04/10 17:35:49 DEBUG : rclone: Version "v1.50.1" starting with parameters ["/usr/bin/rclone" "serve" "dlna" "cgdrive:music2" "--addr" "192.168.1.11:8001" "--fast-list" "-vv" "--log-file=debug.txt"]
2020/04/10 17:35:49 DEBUG : Using config file from "/home/crm/.config/rclone/rclone.conf"
2020/04/10 17:35:51 DEBUG : Adding path "vfs/forget" to remote control registry
2020/04/10 17:35:51 DEBUG : Adding path "vfs/refresh" to remote control registry
2020/04/10 17:35:51 DEBUG : Adding path "vfs/poll-interval" to remote control registry
2020/04/10 17:35:51 NOTICE: Encrypted drive 'cgdrive:music2': Serving HTTP on 192.168.1.11:8001
2020/04/10 17:35:51 INFO  : DLNA server on 192.168.1.11:8001: Started SSDP on eth0
2020/04/10 17:35:51 INFO  : DLNA server on 192.168.1.11:8001: Started SSDP on eth3
2020/04/10 17:35:51 INFO  : DLNA server on 192.168.1.11:8001: Started SSDP on eth1
2020/04/10 17:35:51 INFO  : DLNA server on 192.168.1.11:8001: Started SSDP on eth2
2020/04/10 17:36:51 DEBUG : Google drive root 'gdrive/t4nlghvcds3h4cd3obb3bfgec': Checking for changes on remote
2020/04/10 17:37:51 DEBUG : Google drive root 'gdrive/t4nlghvcds3h4cd3obb3bfgec': Checking for changes on remote
2020/04/10 17:38:51 DEBUG : Google drive root 'gdrive/t4nlghvcds3h4cd3obb3bfgec': Checking for changes on remote
2020/04/10 17:39:51 DEBUG : Google drive root 'gdrive/t4nlghvcds3h4cd3obb3bfgec': Checking for changes on remote
2020/04/10 17:40:51 DEBUG : Google drive root 'gdrive/t4nlghvcds3h4cd3obb3bfgec': Checking for changes on remote
2020/04/10 17:41:51 DEBUG : Google drive root 'gdrive/t4nlghvcds3h4cd3obb3bfgec': Checking for changes on remote
2020/04/10 17:42:51 DEBUG : Google drive root 'gdrive/t4nlghvcds3h4cd3obb3bfgec': Checking for changes on remote
2020/04/10 17:42:56 INFO  : /ctl: 192.168.1.242:59216 POST 200 "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"
2020/04/10 17:42:56 INFO  : /ctl: 192.168.1.242:58581 POST 200 "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"
2020/04/10 17:42:56 INFO  : /ctl: 192.168.1.242:57966 POST 200 "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"
2020/04/10 17:42:56 INFO  : DLNA server on 192.168.1.11:8001: Error writing response: write tcp 192.168.1.11:8001->192.168.1.242:58581: write: broken pipe
2020/04/10 17:42:56 INFO  : DLNA server on 192.168.1.11:8001: Error writing response: write tcp 192.168.1.11:8001->192.168.1.242:57966: write: broken pipe
2020/04/10 17:42:56 INFO  : /ctl: 192.168.1.242:57669 POST 200 "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"
2020/04/10 17:42:56 INFO  : DLNA server on 192.168.1.11:8001: Error writing response: write tcp 192.168.1.11:8001->192.168.1.242:57669: write: broken pipe
2020/04/10 17:42:56 INFO  : /ctl: 192.168.1.242:57747 POST 200 "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"
2020/04/10 17:42:56 INFO  : DLNA server on 192.168.1.11:8001: Error writing response: write tcp 192.168.1.11:8001->192.168.1.242:57747: write: broken pipe
2020/04/10 17:42:56 INFO  : /ctl: 192.168.1.242:58081 POST 200 "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"
2020/04/10 17:42:56 INFO  : DLNA server on 192.168.1.11:8001: Error writing response: write tcp 192.168.1.11:8001->192.168.1.242:58081: write: broken pipe
2020/04/10 17:42:56 INFO  : /ctl: 192.168.1.242:58344 POST 200 "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"
2020/04/10 17:42:56 INFO  : DLNA server on 192.168.1.11:8001: Error writing response: write tcp 192.168.1.11:8001->192.168.1.242:58344: write: broken pipe
2020/04/10 17:42:56 INFO  : /ctl: 192.168.1.242:58225 POST 200 "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"
2020/04/10 17:42:56 INFO  : /ctl: 192.168.1.242:59100 POST 200 "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"
2020/04/10 17:42:56 INFO  : DLNA server on 192.168.1.11:8001: Error writing response: write tcp 192.168.1.11:8001->192.168.1.242:58225: write: broken pipe
2020/04/10 17:42:56 INFO  : /ctl: 192.168.1.242:57860 POST 200 "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"
2020/04/10 17:42:56 INFO  : DLNA server on 192.168.1.11:8001: Error writing response: write tcp 192.168.1.11:8001->192.168.1.242:57860: write: broken pipe
2020/04/10 17:42:56 INFO  : /ctl: 192.168.1.242:58843 POST 200 "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"
2020/04/10 17:42:56 INFO  : /ctl: 192.168.1.242:58732 POST 200 "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"
2020/04/10 17:42:56 INFO  : /ctl: 192.168.1.242:58453 POST 200 "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"
2020/04/10 17:42:56 INFO  : DLNA server on 192.168.1.11:8001: Error writing response: write tcp 192.168.1.11:8001->192.168.1.242:58453: write: broken pipe
2020/04/10 17:42:56 INFO  : /ctl: 192.168.1.242:58947 POST 200 "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"
2020/04/10 17:43:51 DEBUG : Google drive root 'gdrive/t4nlghvcds3h4cd3obb3bfgec': Checking for changes on remote
2020/04/10 17:44:51 DEBUG : Google drive root 'gdrive/t4nlghvcds3h4cd3obb3bfgec': Checking for changes on remote
2020/04/10 17:45:51 DEBUG : Google drive root 'gdrive/t4nlghvcds3h4cd3obb3bfgec': Checking for changes on remote
2020/04/10 17:46:51 DEBUG : Google drive root 'gdrive/t4nlghvcds3h4cd3obb3bfgec': Checking for changes on remote
2020/04/10 17:47:51 DEBUG : Google drive root 'gdrive/t4nlghvcds3h4cd3obb3bfgec': Checking for changes on remote
2020/04/10 17:48:51 DEBUG : Google drive root 'gdrive/t4nlghvcds3h4cd3obb3bfgec': Checking for changes on remote
2020/04/10 17:49:51 DEBUG : Google drive root 'gdrive/t4nlghvcds3h4cd3obb3bfgec': Checking for changes on remote
2020/04/10 17:49:58 INFO  : /ctl: 192.168.1.242:60884 POST 200 "urn:schemas-upnp-org:service:ContentDirectory:1#GetSearchCapabilities"
2020/04/10 17:49:58 INFO  : /ctl: 192.168.1.242:60884 POST 200 "urn:schemas-upnp-org:service:ConnectionManager:1#GetProtocolInfo"

this does not look good
Error writing response: write tcp 192.168.1.11:8001->192.168.1.242:58453: write: broken pipe

What does it mean, where is the problem?

vlc supports the plex server

what exactly happens?
you should see something in the logs.

You have seen the logs. I did some more testing. Seems to get very slow after 1800 files and it stops working at 3000ish.

So dlna serve wont work for me. There is no difference in the logs between working and not working btw

the problem is that rclone dlna server does not have a persistent database.

i installed UMS on my server.
tho there are a lot of free open source dlna server, UMS, does not require a desktop version of windows.
as i am running the free microsoft hyper-v server, which is command line only, no gui, no desktop.

in a few minutes, it scanned my remote.
so far, video playing is smooth.

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