It turns out to be interesting. I made several tests with various files and sizes and it seems *.mp4 files are always uploaded very slow. If file extension is not "mp4" (I used *.somefile) it uploads very fast with full available speed (~10 Mbytes/sec).
I tried to change HTTP header Content-Type to "application/octet-stream" (test #5) - no difference, the *.mp4 file was still uploaded with low speed.
All files except #6 are created with random bytes. In test #6 "spanish_kazakh(1).somefile" is actual MP4 video with extension changed manually.
Here are the tests:
1 - file extension = mp4, large file - slow
rclone.exe --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36" --dump=headers -vv copy c:\distrib\rclone-v1.66.0-windows-amd64\random_file_1500MB.mp4 yd_nastroim:share/test/ > rclone_log.txt 2>&1
2 - file extension = somefile - fast
rclone.exe --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36" --dump=headers -vv --timeout 60m copy c:\distrib\rclone-v1.66.0-windows-amd64\random_file_100MB_1.somefile yd_nastroim:share/test/ > rclone_log_2.txt 2>&1
3 - file extension = somefile, large file - fast
rclone.exe --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36" --dump=headers -vv --timeout 60m copy c:\distrib\rclone-v1.66.0-windows-amd64\random_file_1000MB_3.somefile yd_nastroim:share/test/ > rclone_log_3.txt 2>&1
4 - file extension = mp4 - slow
rclone.exe --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36" --dump=headers -vv --timeout 60m copy c:\distrib\rclone-v1.66.0-windows-amd64\random_file_100MB_4.mp4 yd_nastroim:share/test/ > rclone_log_4.txt 2>&1
5 - extension = mp4, header set to "Content-Type: application/octet-stream" - slow
rclone.exe --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36" --dump=headers -vv --timeout 60m --header "Content-Type: application/octet-stream" copy c:\distrib\rclone-v1.66.0-windows-amd64\random_file_100MB_5.mp4 yd_nastroim:share/test/ > rclone_log_5.txt 2>&1
6 - actual video file renamed to *.somefile - slow
rclone.exe --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36" --dump=headers -vv --timeout 60m copy c:\Users\btaran\Downloads\spanish_kazakh(1).somefile yd_nastroim:share/test/ > rclone_log_6.txt 2>&1
Any ideas how extension affects upload speed this strange way? At least, who is affecting - rclone or Yandex?
I attach all log files in case anybody wants to dig in. I interrupted some of tests when I saw the speed is definitely low.
rclone_log.txt (71.4 KB)
rclone_log_2.txt (13.1 KB)
rclone_log_3.txt (13.6 KB)
rclone_log_4.txt (16.2 KB)
rclone_log_5.txt (9.0 KB)
rclone_log_6.txt (13.1 KB)