Androz2091 / discord-player

🎧 Complete framework to simplify the implementation of music commands using discord.js v14
https://discord-player.js.org/
MIT License
589 stars 192 forks source link

Song ending at a random time #1298

Closed tonyG433 closed 1 year ago

tonyG433 commented 2 years ago

Describe the bug Usually when the video is over 2 hours long, my bot would stop it at a random time, usually after 45 minutes and emit the queue end event.

Expected behavior I expect it to be able to play the entire video with no stopping.

Please complete the following information:

tonyG433 commented 2 years ago

Ive went further on to investigate this issue and it turns out that a 3 hour video ends at the 33rd minute of playing. image

twlite commented 2 years ago

If you are on default settings, it could be happening due to node-ytdl-core returning a corrupted stream which causes ffmpeg to crash

TrixiS commented 1 year ago

Same issue

from {"status":"idle","resource":false,"stepTimeout":false}
to {"status":"playing","missedFrames":0,"playbackDuration":0,"resource":true,"stepTimeout":false}

from {"status":"playing","missedFrames":0,"playbackDuration":435040,"resource":true,"stepTimeout":false}
to {"status":"idle","resource":false,"stepTimeout":false}

Solved with increasing highWaterMark player option

Greensky-gs commented 1 year ago

I have the same issue when I play some lofi music (live diffusion)

Pluzdev commented 1 year ago

Hello, is this problem fixed? I want to play music using live too

twlite commented 1 year ago

for regular tracks, this could be related to https://github.com/Androz2091/discord-player/issues/1639

for yt live, it could be due to corrupted packet being received by ffmpeg or the stream url getting expired.

let's discuss at https://github.com/Androz2091/discord-player/issues/1639