aiko-chan-ai / Discord-video-selfbot

for djs-selfbot-v13
https://github.com/dank074/Discord-video-stream
34 stars 8 forks source link

A bad/low bitrate stream #22

Open Majoramari opened 9 months ago

Majoramari commented 9 months ago

for some reason the stream is low quality even at 1440p

Majoramari commented 9 months ago

After some testing, I found out its only bad on youtube streams

I tried these settings 2 times one using youtube and one using local file:

player.setResolution("1080p");
player.setVideoCodec("VP8");
// play method
void client.stream.play({
  volume: 1,
  kbpsAudio: 384,
  kbpsVideo: 3072,
});

Here's a comparison between youtube and local

https://github.com/aiko-chan-ai/Discord-video-selfbot/assets/33487552/3e8a87d5-6c4e-47da-a5ac-37cbe74648e7

aiko-chan-ai commented 9 months ago

I think it's due to insufficient bandwidth (downloading yt video and streaming on discord).

Majoramari commented 9 months ago

I think it's due to insufficient bandwidth (downloading yt video and streaming on discord).

I guessed that too

Zsl8 commented 9 months ago

it's a problem from youtube download you can't download a video more resolution than 720p so you are streaming 720 not 1080p and if you check the streamed video data you can see that

Majoramari commented 8 months ago

it's a problem from youtube download you can't download a video more resolution than 720p so you are streaming 720 not 1080p and if you check the streamed video data you can see that

I guess if there's no workaround we have to clarify this in the readme or docs or something

NOTE (Important): I used yt-dlp to download the local video, which left me feeling more confused because this means yt-dlp is able to download 1080p.