How to access ffmpeg

I'm having some trouble to run the ffmpeg executable in my project, I need it to make a discord vocal bot
16 Replies
Percy
Percy2y ago
Project ID: 13160e48-de83-4357-ae78-221b90810634
root
root2y ago
Unfortunately, ffmpeg is blocked, as people like to use it to make illegal music downloading bots (which are against the TOS)
_Alex_
_Alex_OP2y ago
13160e48-de83-4357-ae78-221b90810634 Can i use something else ?
root
root2y ago
Not that I'm aware of, sorry. It's really unfortunate that some people do illegal things that ruin the experience for the rest of us, but they do.
Adam
Adam2y ago
I don't think ffmpeg is blocked... People have used it in the past
root
root2y ago
Oh, it's not?
Adam
Adam2y ago
Nah
root
root2y ago
Oh Sorry, pay no attention to my ramblings
Adam
Adam2y ago
https://nixpacks.com/docs/configuration/file Add it as a package in a nixpacks.toml
Configuration File Reference | Nixpacks
App source + Nix packages + Docker = Image
Adam
Adam2y ago
You can find packages here https://search.nixos.org/packages
root
root2y ago
[phases.setup]
nixPkgs = ["ffmpeg"]
[phases.setup]
nixPkgs = ["ffmpeg"]
And if you need it as a library, add nixLibs = ["ffmpeg"] as well
_Alex_
_Alex_OP2y ago
in the envierment variables ?
Adam
Adam2y ago
Make sure to add a "..." package as well so that all auto detected packages are installed as well No, read my message above
_Alex_
_Alex_OP2y ago
So it's a file that i create and where i put [phases.setup] nixPkgs = ["ffmpeg"] ?
Adam
Adam2y ago
Please read the configuration file docs The first link I sent
_Alex_
_Alex_OP2y ago
How to get it throw script after installing ? Here is my code source = discord.FFmpegPCMAudio(rf"{self.path}\message.mp3", executable="ffmpeg") rn, i'm getting a blank error (Error: )
Want results from more Discord servers?
Add your server