Provide me with the best rclone mount script for watching large video files using…
- User
Provide me with the best rclone mount script for watching large video files using onedrive. The script should try and reduce seek delay as much as possible and load the videos as quickly as possible with no buffering. I am using the most recent version, Rclone 1.62.2.
- Assistant
Below is an optimized rclone mount script for watching large video files with OneDrive. It reduces seek delay and ensures quick loading with minimal buffering. Replace REMOTE_NAME with the name of your OneDrive remote connection and MOUNT_DIR with your desired mount directory.
#!/bin/bash REMOTE_NAME="OneDrive" MOUNT_DIR="/path/to/mount/" rclone mount "$REMOTE_NAME:" "$MOUNT_DIR" --umask 002 --allow-non-empty --allow-other \ --dir-cache-time 96h \ --vfs-cache-mode full \ --vfs-cache-max-age 96h \ --vfs-cache-poll-interval 15m \ --buffer-size 1G \ --attr-timeout 1s \ --vfs-read-chunk-size 128M \ --vfs-read-chunk-size-limit 1G \ --vfs-write-back 5m \ --rc \ --log-level INFO \ --syslog - User
How do I calculate buffer-size vfs-read-chunk-size and vfs-read-chunk-size-limit ?
- Assistant
Calculating the optimal values for
buffer-size,vfs-read-chunk-size, andvfs-read-chunk-size-limitdepends on your system's resources, internet bandwidth, and your personal preferences, such as how much time you're willing to wait when seeking through a video. Here are some general suggestions for calculating these values:-
buffer-size: This value represents the amount of data rclone will preload into memory. Allocating a larger buffer size can potentially reduce buffering issues, but it requires more available RAM on your system. As a general rule, you could set this value to be about 5-10% of your available memory, but not exceeding 50%. For example, if you have 8GB of RAM, you could use a buffer size between 400M to 1G.
-