snobu / destreamer

Save Microsoft Stream videos for offline enjoyment.
MIT License
2.36k stars 441 forks source link

RangeError: Invalid array length #329

Closed weixu0834 closed 3 years ago

weixu0834 commented 3 years ago

OS: Windows 10

Launch command used: $ ./destreamer.sh -i "https://web.microsoftstream.com/video/a40f2c61-f458-46a6-a025-452dc814043e"

I download compiled ffmpeg.exe, and put these three exe into project's root file. I use cmd command also shows same error and by the way, I pull down the polimi version of this code.

Verbose log ``` ![image](https://user-images.githubusercontent.com/26054604/108974049-03886180-76c0-11eb-8b13-f3ffed8addbb.png) PASTE VERBOSE LOG HERE ```
weixu0834 commented 3 years ago

image

lukaarma commented 3 years ago

I'll take a better look this evening, in the mean time could you run it with the --verbosse flag?

weixu0834 commented 3 years ago

I'll take a better look this evening, in the mean time could you run it with the --verbosse flag?

it seems same error Access token still good for 59 minutes.

Fetching metadata... RangeError: Invalid array length at Object.parse (E:\个人文件\Study\POLIMI\SEMESTER4\destreamer\node_modules\cli-progress\lib\options.js:48:38) at new SingleBar (E:\个人文件\Study\POLIMI\SEMESTER4\destreamer\node_modules\cli-progress\lib\single-bar.js:8:24) at downloadVideo (E:\个人文件\Study\POLIMI\SEMESTER4\destreamer\build\src\destreamer.js:138:22) at processTicksAndRejections (internal/process/task_queues.js:93:5)

weixu0834 commented 3 years ago

I'll take a better look this evening, in the mean time could you run it with the --verbosse flag?

I using windows own cmd shell and try to avoid Chinese characters thus can be solved.

but token just last one hour, and my speed of network is too slow, will there be any interruptions with this situation after one hour?

snobu commented 3 years ago

You are using CygWin/MinGW or some other variant of a half-baked Linux shell on Windows. Please use either cmd.exe or PowerShell to run destreamer and everything will be well.