Closed Yureien closed 3 years ago
I don't believe this is a bug that I can deal with.
FFmpegPCMAudio.cleanup
is called whenever we're done reading from the process or it errors out. How it got to that state is outside of the library's scope.
I don't think this helps but i have gotten the same issue
the numbers changing everytime
discord.player:ffmpeg process 21112 has not terminated. Waiting to terminate...
discord.player: ffmpeg process 21112 should have terminated with a return code of 1.
Summary
Recently, the music feature stopped working by itself without any change in the code of my discord bot. I tried updating all the libraries but could not fix it. Before this, it worked fine.
Reproduction Steps
Here is the actual code for the bot: https://github.com/FadedCoder/PinocchioBot/blob/master/music/functions.py#L41
And this is the major snippet:
This is the part of the code that pulls the audio from Youtube-DL and sends it to the client. I can confirm that youtube-dl is working properly as I can get the streaming URL for the music.
Expected Results
Music to play, instead it remains quiet.
Actual Results
This is the output. For some reason, ffmpeg is terminating before playing anything.
Checklist
System Information