Installing FFmpeg
I'm trying to make a discord music bot and have already created the code but I'm using FFmpeg which I don't know how to download on repl. I've tried importing it but I just keep getting the error ERROR: ffprobe/avprobe and ffmpeg/avconv not found. Please install one.
Hey, I don't know if you're still looking for a way, seeing as though it's been 12 months, but I recently made a Discord music bot using FFmpeg and it worked, so they must have added support back for it.
@ParvaP I just put the ffmpeg executable into my project root directory. See https://replit.com/@Xephire/utils-bot-rewrite#main.py
@Xephire Hey sorry to bother you again but I did that and a bunch more things and it still didn't work (raises ClientException: ffmpeg not found), do you remember anything else that you did to make it work? (also I did try using the functions you use [discord.FFmpegPCMAudio()] instead of the ones I was using [discord.FFmpegOpusAudio.from_probe()] to get the audio with ffmpeg but to no avail), Thanks again
@Xephire Hey! I tried to install bot FFmpeg and PyNaCl to check if my code ran and it is running into the same error.
ERROR: ffprobe/avprobe and ffmpeg/avcon not found. Please install one.
@cuberocker1857 Hey, try forking my project and adding your files. It's been a while since I've looked at mine so I don't think I'll be able to remember how I did it, sorry. Good luck with your project.
There is a way to install FFmpeg in ReplIt!!
In the IDE type "from FFmpeg import video" and boom! You got FFmpeg installed!
It still says FFmpeg not found! @SidhakSingh1
Actually, you can use FFmpeg, just type it into the shell (at least for me)
if it isn't installed, just use their new nix system (which works on all systems)
2021 feb 9
really? @CrazyVideoGamez
@hedgieEL yup, it works. When for example when I went on my HTML/JS/CSS videos repository, I had ffmpeg automatically installed, and ffprobe too.
@hedgieEL Maybe it's just me, and somehow I got a special repl idk
Edit: nvm, it isn't me, I went to another repl and it was there
@CrazyVideoGamez Yeah, it still exists, you just can't use it with your programming language.
@Vandesm14 I've tried using python, it it works fine. I have a python file:
import os video = 'video.mp4' os.system(f'ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 "{video}"')
It gives me a duration.
@CrazyVideoGamez Well then, I guess they added it back.
@Vandesm14 ok cool
@Vandesm14 is it still here?
@Vandesm14 ok thanks a lot
@miras13 yup still here as of 2021 Jul 21
@CrazyVideoGamer Thx I'm gonna try
@CrazyVideoGamer is it still working? I've tried and it doesn't seem to work.
@CrazyVideoGamer Do u know how to make ffmpeg ith pydub?
@NeoPrint777 um.. you want me to make ffmpeg from scratch? can't you just use pydub directly? Also from the docs, it says that it uses pydub..
This is how:
- go to package in your repl
- type ffmpeg
- question about the tick that you gave to Vandesm14
but maybe they stopped update it (edit: the newest ver is there. and all of the other packages works the same)
install-pkg ffmpeg
You may simply install the static binaries for ffmpeg using
npm install ffmpeg-static --save
Currently, I think repl.it doesn't support this. Sorry :(
Repl.it does not support FFmpeg anymore. It was initially used for botting and spamming, so they removed the functionality.
@Vandesm14 Do you know any other tools for discord music bots?
@ArjunSS1 I'm pretty sure that they have completely prevented any form of discord music bot. I'll ask around to make sure I'm right.
@Vandesm14 what about avconv?
@Vandesm14 Repl.it does support it. to get it use nix. https://search.nixos.org/packages?channel=21.11&from=0&size=50&sort=relevance&type=packages&query=ffmpeg