What is the problem you are having with rclone?
I am seeking general advice on mount or other settings to optimize for streaming music files. Currently it takes an average of 8-10 seconds to start playing a file. Ideally I would like to get this time to 1-2 seconds.
Version
rclone v1.56.0
- os/version: debian bullseye/sid (64 bit)
- os/kernel: 5.11.0-34-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.16.5
- go/linking: static
- go/tags: none
The command you were trying to run
I have tried many different configurations. Specifically adjusting the following settings:
- --vfs-cache-mode off, minimal, writes, full
Result: With the vfs cache off/minimal/writes there is a slight shudder when the file starts playing. This studded can be eliminated by using the full mode.
None of these other modes decrease the time to start playing.
- Priming the dir-cache with this setting:
ExecStartPost=/usr/bin/rclone rc vfs/refresh recursive=true --rc-addr 127.0.0.1:5572 _async=true
Result: After running this command, there is a big improvement in the time find . | wc -l
but it doesn't seem to improve time to play.
- Adjusting the following settings from very high values to very low values:
--buffer-size
--max-read-ahead
--vfs-read-chunk-size
--vfs-read-chunk-size-limit
--transfers
Result: If I have each one of these settings at a very high value, very low value or the default I do not see any difference in the time to start playing the file.
- I have tried wrapping my remote in the depreciated cache backend because in other threads it was mentioned that vfs is not suitable for music files.
Result: This actually added 1-2 seconds to the time to play. I adjusted the chunk size settings form high to low, which did not have a noticeable effect.
- I have tried two different cloud provider back ends.
Result: The results are similar for both. I do not believe that bandwidth is playing a factor here.
I have not come upon any settings that seem to make a measurable difference. Are there other settings I can try or that you would advise I concentrate on?
Does anyone use rclone for music playback?