discord-player
discord-player copied to clipboard
Song ending at a random time
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
Ive went further on to investigate this issue and it turns out that a 3 hour video ends at the 33rd minute of playing.
If you are on default settings, it could be happening due to node-ytdl-core returning a corrupted stream which causes ffmpeg to crash
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
I have the same issue when I play some lofi music (live diffusion)
Hello, is this problem fixed? I want to play music using live too
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