My first post here so please excuse me for my mistakes if any. I'm using rclone + WinFSP + Google Drive for video streaming only. Everything works well so far, except that when I try to right-click a movie file, the context menu takes a long time to pop up.
Any help would be greatly appreciated. Thanks in advance.
What is the problem you are having with rclone?
When right-clicking a movie file (for example, when I want to assign the video to a different player than the default), the context menu takes about 15 seconds to pop up with the mouse cursor circling.
Note that it's not about Windows thumbnail caching, as I always turn off thumbnails. File listing is very quick - a folder with hundreds of videos loads within a few seconds.
What is your rclone version (output from rclone version)
I upgrade rclone daily from beta.rclone.org, so it's always the latest beta version.
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Windows 10 Enterprise, 64 bit
Which cloud storage system are you using? (eg Google Drive)
Google Drive (G Suite)
The command you were trying to run (eg rclone copy /tmp remote:tmp)
My command is extremely simple - I was trying to narrow down the problem.
rclone cmount GoogleDrive: Z: --read-only
The rclone config contents with secrets removed.
As I mentioned, I tried to keep everything simple and as default if possible. The config file doesn't have anything other than my credentials.
[GoogleDrive]
type = drive
scope = drive
token = {...}
A log from the command with the -vv flag
Below is the log for when I (1) mounted the drive; (2) navigated to the video folder; (3) right-clicked a file named "20190626_WebDL.mp4" and waited for the context menu to pop up; (4) unmounted the drive. Feel free to use the filename to narrow down the relevant log block.
I did a quick search in the log file. It looks like the entire file is being downloaded to show the Windows context menu, and this may take some time for large files such as videos. You are downloading app. 130 MByte in the 10 seconds you are waiting. The upside may be that you video starts playing immediately, once you click play
What are the response times if you right click the same file twice? (I guess the second is quick)
What is the response time if you right click a very small file? (I guess it is quick)
Thank you for your reply and going through my tedious log file (much appreciated!). Yes - It does seem like the file is being downloaded when I invoke the context menu. It's not desirable because I'm using a Gigabit network (~120MB/s) - fast enough so that even if I double click the file to play it directly without that "pre-caching", it starts playing immediately. Considering my bandwidth, I also wonder if during the 10 seconds it downloads way more than 130MB (the whole file is 800MB), or downloads 130MB much slower than my bandwidth.
Anyway, to answer your two questions:
Nope, the second right-click leads to the same waiting time.
Yes, If I right click a much smaller file (like ~50MB) it is significantly faster.
Thank you for your reply as well. To answer your questions:
For some reason I have a vague (and possibly false) impression that cmount is newer and more advanced than mount. In reality I haven't observed much difference. In this case both commands lead to the same waiting time, too.
Adding --vfs-cache-mode=full reduces the waiting time to 3~5 seconds. Downside is that now the file is caching to my hard drive (while I prefer caching to the RAM). The log indicates that the file is being read to my hard drive while I'm waiting for the context menu:
Mounting as a network drive also reduces the waiting time to 3~5 seconds. Probably the best solution for me so far as it is caching to the RAM. The log indicates that the file is still being read while I am waiting:
i shared a weblink, with that you should be able to find the menu entry is reading the media file.
or use process explorer, from another great set of windows utilities from sysinternals, to figure out which executable is accessing the media file.
My apologies. Your earlier reply was too fast and ahead of mine My context menus are all Windows default without 3rd party applications. Process Monitor confirms that it is Windows Explorer that's reading the file. So I guess I cannot stop it unless there is a hidden Windows setting somewhere...
Thank you for the suggestion. ShellExView listed 240 menu entries (all from Windows default) and warned me when I tried to disable them, citing that disabling default shell extensions may lead to boot problems. I guess I will leave them as is for now, until I set up a virtual machine to try out.
Make sure the folders you're accessing, or better yet the entire drive, is set to 'Documents'.
This helps quite a bit with Windows Explorer. And, like the human monkey suggested, change the command to 'mount'. Here is what I've been using for a long time now: