Unable to play from external URLs on linux based systems

The bot cannot play from external URLs on linux based systems such as a vps like before but works perfectly on windows. The error was fixed by the developer of DisTube through a custom ffmpeg handler and he suggested to replace prism-media.
7 Replies
d.js toolkit
d.js toolkit7mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
Aman
AmanOP7mo ago
@discordjs/voice: v0.17.0 node: v20.13.1
duck
duck7mo ago
to my knowledge, the issue is with ffmpeg itself, and that fixing it with a custom ffmpeg handler is more avoiding the issue rather than fixing it that being said, it can also be avoided by simply streaming from the url yourself with your favorite http module (e.g. undici) though I'm not fully sure if you were even asking for support if not, this is your reminder that this is a support channel
Aman
AmanOP7mo ago
why else would i be posting here 🤦, the issue you mention is called premature close ig i tried what you said and it works, but isn't this inconsistent that urls work on windows but not on linux / ubuntu given most vps use it
Aman
AmanOP7mo ago
for context, i'm trying to stream radio channels from https://ilovemusic.de/streams/ i was told the same that its an ffmpeg problem, so i tried 3 different [free] hosts that run linux with ffmpeg v4-5, none worked. so i tried it locally on ubuntu 22.04 with ffmpeg v6 and still nothing
Alle Streams & Stream-Adressen von I Love Music
Hör unsere Channels in externen Playern und Lautsprechern oder stream sie mit deinem internetfähigen Fernseher, Spielekonsolen, Discord- und TeamSpeak Musikbots. Hier sind die Adressen unserer mp3-Streams.
duck
duck7mo ago
why else would i be posting here 🤦
I just wasn't entirely sure since you ended off by saying the error was fixed
i was told the same that its an ffmpeg problem, so i tried 3 different [free] hosts that run linux with ffmpeg v4-5, none worked. so i tried it locally on ubuntu 22.04 with ffmpeg v6 and still nothing
that's because ffmpeg has yet to fix the issue this is out of our control
Aman
AmanOP7mo ago
i see.. ok the error was fixed for distube but i wouldn't like to use it for something djs already does thanks for helping
Want results from more Discord servers?
Add your server