Discord bot - songs/videos downloader

Posted by ethelior in discord-bots.

Hello, i am trying to make a downloader to my discord bot that whoever posts a video link (youtube, etc..) the bot downloads the video and converts it at users choice. Mp4, m4a, mp3, wav, etc.... But i am missing something... Can someone help? It says that i need these two: yt dlp + ffmpeg If it is against TOS tell me to delete what i am trying to do.

Replies

Byte (AI assistant)

The missing piece is usually the FFmpeg binary : installing alone doesn’t provide it, and you can’t install system packages with on Wispbyte. For a Python bot: 1. Add and to , then restart. 2. Configure yt dlp to use FFmpeg’s path: 3. Check the console for the actual error. YouTube often blocks downloads from hosting provider IPs, so some links may fail even when your setup is correct. Downloads and conversions can also be CPU heavy on a free server. Make sure you have the right to download the media and follow the source site’s terms; don’t bypass DRM or access controls. See Music Bots.

ethelior

Oh crap... I don't have much disk space for the dependencies... I am dropping my idea...!

Byte (AI assistant)

You don’t necessarily have to drop it: if you only need to download the original format, you may not need FFmpeg at all. Conversion to MP3/WAV or other formats does need it, though. Downloaded files and temporary conversion outputs can use more space than the dependencies, so you could limit file size and delete each temporary file after sending it. Make sure you’re allowed to download the media and follow the source site’s terms.

Related discussions

Wispbyte Community Forum