ysdragon / StreamBot

A self bot to stream videos to Discord.
Other
96 stars 19 forks source link

Can't be played, Source video or Local Folder #64

Closed Algerization closed 4 weeks ago

Algerization commented 4 weeks ago

Started playing video Playing ( 375456286_267127142851399_4003698449306018315_n )... 18 | } 19 | else { 20 | this.socketPath = './' + (++counter) + '.sock'; 21 | this.url = 'unix:' + this.socketPath; 22 | } 23 | try { ^ error: Failed to listen at \.\pipe\node-webrtc.1.sock errno: 2 code: "ENOENT"

  at listen (native:1:1)
  at node:net:688:16
  at node:net:32:30
  at listen (node:net:635:9)
  at new UnixStream (C:\Users\Rayan\Desktop\StreamBot-main\node_modules\@dank074\fluent-ffmpeg-multistream-ts\dist\index.js:23:20)
  at StreamOutput (C:\Users\Rayan\Desktop\StreamBot-main\node_modules\@dank074\fluent-ffmpeg-multistream-ts\dist\index.js:40:16)
  at C:\Users\Rayan\Desktop\StreamBot-main\node_modules\@dank074\discord-video-stream\dist\media\streamLivestreamVideo.js:87:75
  at new Promise (1:11)
  at streamLivestreamVideo (C:\Users\Rayan\Desktop\StreamBot-main\node_modules\@dank074\discord-video-stream\dist\media\streamLivestreamVideo.js:16:16)
  at C:\Users\Rayan\Desktop\StreamBot-main\dist\index.js:378:62

18 | } 19 | else { 20 | this.socketPath = './' + (++counter) + '.sock'; 21 | this.url = 'unix:' + this.socketPath; 22 | } 23 | try { ^ error: Failed to listen at \.\pipe\node-webrtc.2.sock errno: 2 code: "ENOENT"

  at listen (native:1:1)
  at node:net:688:16
  at node:net:32:30
  at listen (node:net:635:9)
  at new UnixStream (C:\Users\Rayan\Desktop\StreamBot-main\node_modules\@dank074\fluent-ffmpeg-multistream-ts\dist\index.js:23:20)
  at StreamOutput (C:\Users\Rayan\Desktop\StreamBot-main\node_modules\@dank074\fluent-ffmpeg-multistream-ts\dist\index.js:40:16)
  at C:\Users\Rayan\Desktop\StreamBot-main\node_modules\@dank074\discord-video-stream\dist\media\streamLivestreamVideo.js:110:64
  at new Promise (1:11)
  at streamLivestreamVideo (C:\Users\Rayan\Desktop\StreamBot-main\node_modules\@dank074\discord-video-stream\dist\media\streamLivestreamVideo.js:16:16)
  at C:\Users\Rayan\Desktop\StreamBot-main\dist\index.js:378:62

Bun v1.1.26 (Windows x64 baseline) error: script "start" exited with code 1

ysdragon commented 4 weeks ago

Hi @Algerization, Do NOT use the bot under Windows, it's not supported, run it under WSL2 on windows at least!

Algerization commented 4 weeks ago

Hi @Algerization, Do NOT use the bot under Windows, it's not supported, run it under WSL2 on windows at least!

I have no Experience running bots on other Platforms. Also, YOU should mention this in the Description of the bot so others can Know that without asking.

THANKS FOR HELPING AND FOR YOUR GREAT WORK!

ysdragon commented 4 weeks ago

YOU should mention this in the Description of the bot so others can Know that without asking.

Thanks for your suggestion.

Algerization commented 4 weeks ago

YOU should mention this in the Description of the bot so others can Know that without asking.

Thanks for your suggestion.

Running the Bot on Ubuntu is Supported?

ysdragon commented 4 weeks ago

Yes, of course, any Linux distro is supported

Algerization commented 4 weeks ago

Yes, of course, any Linux distro is supported

Using WSL: image

ysdragon commented 4 weeks ago

Weird, I didn't encounter this error before; just Google it!