Skip to content
← Back to Community
Installing FFmpeg
Profile icon
ArjunSS1

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.

Answered by Vandesm14 [earned 5 cycles]
View Answer
Voters
Profile icon
DanzzBotz
Profile icon
Duc-TaiTai5
Profile icon
pmkaiquexz
Profile icon
okxkdnmnfewhfanmrmgshotssdfd
Profile icon
AllanBaldez
Profile icon
LangXYZ
Profile icon
ChoirulAnnam
Profile icon
terraria637
Profile icon
Muhammad-Khair5
Profile icon
katuengogo
Comments
hotnewtop
Profile icon
Vandesm14

Repl.it does not support FFmpeg anymore. It was initially used for botting and spamming, so they removed the functionality.

Profile icon
ArjunSS1

@Vandesm14 Do you know any other tools for discord music bots?

Profile icon
Vandesm14

@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.

Profile icon
MaragiGames

@Vandesm14 what about avconv?

Profile icon
Bentley100Studi
Profile icon
Xephire

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.

Profile icon
ParvaP

@Xephire How did you add add it into your program?

Profile icon
Xephire

@ParvaP I just put the ffmpeg executable into my project root directory. See https://replit.com/@Xephire/utils-bot-rewrite#main.py

Profile icon
GoldonPt

@Xephire sorry, but I can't quite understand how/where to put the execcutable, I tried but it either doesn't find it or doesn't have permission to access it :/ it'd be great if you could help, thanks!

Profile icon
Xephire

@GoldonPt Hey, I don't actually need the executable anymore, and the program runs fine without it, I think all I did was go to packages, search for ffmpeg, and add it to my replit. If that doesn't work then make sure that you have the PyNaCl package installed as well.

Profile icon
GoldonPt

@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

Profile icon
GoldonPt

@Xephire Well, I managed to get it working by forking your project, deleting most of your files and replacing them with mine, Thanks for the help!

Profile icon
Xephire

@GoldonPt Hey, sorry for not responding sooner. I'm unfortunately still not sure why mine works, but I'm glad that you got it to work and sorry I couldn't help more. Good luck with your project!

Profile icon
cuberocker1857

@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.

Profile icon
Xephire

@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.

Profile icon
SidhakSingh1

There is a way to install FFmpeg in ReplIt!!
In the IDE type "from FFmpeg import video" and boom! You got FFmpeg installed!

Profile icon
SandeepKanekal

It still says FFmpeg not found! @SidhakSingh1

Profile icon
CrazyVideoGamer

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

Profile icon
hedgieSK
Profile icon
CrazyVideoGamer

@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.

Profile icon
CrazyVideoGamer

@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

Profile icon
Vandesm14

@CrazyVideoGamez Yeah, it still exists, you just can't use it with your programming language.

Profile icon
CrazyVideoGamer

@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.

Profile icon
Vandesm14

@CrazyVideoGamez Well then, I guess they added it back.

Profile icon
CrazyVideoGamer

@Vandesm14 ok cool

Profile icon
miras13

@Vandesm14 is it still here?

Profile icon
Vandesm14

@miras13 Not sure what you mean. I haven't tried using FFMpeg with Replit in forever so I don't know if it still works or not.

Profile icon
miras13

@Vandesm14 ok thanks a lot

Profile icon
CrazyVideoGamer

@miras13 yup still here as of 2021 Jul 21

Profile icon
miras13

@CrazyVideoGamer Thx I'm gonna try

Profile icon
gustgv

@CrazyVideoGamer is it still working? I've tried and it doesn't seem to work.

Profile icon
CrazyVideoGamer

@gustgv yea it's still working for me
if you don't have it installed you can install it with nix
By the way, ffmpeg might not be installed in node repls. It still works on other repls tho

Profile icon
NeoPrint777

@CrazyVideoGamer Do u know how to make ffmpeg ith pydub?

Profile icon
CrazyVideoGamer

@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..

Profile icon
TomWSC828

This is how:

  1. go to package in your repl
  2. type ffmpeg
  3. 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)

Profile icon
hardianto02

install-pkg ffmpeg

Profile icon
ZeroDiscord

You may simply install the static binaries for ffmpeg using

npm install ffmpeg-static --save
Profile icon
ArchieMaclean

Currently, I think repl.it doesn't support this. Sorry :(