snobu / destreamer

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

Chromium not working on Mac M1 #458

Closed tamlhp closed 1 year ago

tamlhp commented 1 year ago

but it always use /usr/bin/chromium-browser: [ERROR] Error: Failed to launch the browser process! spawn /usr/bin/chromium-browser ENOENT

OS:

Launch command used: ./destreamer.sh -i "https://web.microsoftstream.com/video/cad98f79-b53e-4201-9870-c1a6fceca1fa" --verbose

Verbose log ``` [VERBOSE] Using ffmpeg version 5.1.1 Copyright (c) 2000-2022 the FFmpeg developers [VERBOSE] Using aria2 version 1.36.0 [WARNING] .token_cache not found. Launching headless Chrome to perform the OpenID Connect dance... [ERROR] Error: Failed to launch the browser process! spawn /usr/bin/chromium-browser ENOENT TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md at onClose (/Users/s2993348/workspace/github/destreamer/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:193:20) at ChildProcess. (/Users/s2993348/workspace/github/destreamer/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:185:85) at ChildProcess.emit (node:events:513:28) at ChildProcess._handle.onexit (node:internal/child_process:289:12) at onErrorNT (node:internal/child_process:476:16) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) [FATAL ERROR] Unhandled error or uncaught exception! ```
tamlhp commented 1 year ago

It is the problem of puppeteer. Solution: https://github.com/puppeteer/puppeteer/issues/6634