discord-player icon indicating copy to clipboard operation
discord-player copied to clipboard

Song ending at a random time

Open tonyG433 opened this issue 2 years ago • 3 comments

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:

  • Node Version: 16.16.0
  • Discord Player Version: 5.3.1
  • Discord.js Version: 14.2.0

tonyG433 avatar Aug 13 '22 22:08 tonyG433

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

tonyG433 avatar Aug 17 '22 16:08 tonyG433

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

twlite avatar Aug 18 '22 03:08 twlite

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

TrixiS avatar Oct 07 '22 16:10 TrixiS

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

Greensky-gs avatar Nov 01 '22 17:11 Greensky-gs

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

Pluzdev avatar Feb 11 '23 20:02 Pluzdev

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

twlite avatar Mar 21 '23 17:03 twlite