R
Railway16mo ago
_Alex_

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
Percy16mo ago
Project ID: 13160e48-de83-4357-ae78-221b90810634
root
root16mo ago
Unfortunately, ffmpeg is blocked, as people like to use it to make illegal music downloading bots (which are against the TOS)
_Alex_
_Alex_16mo ago
13160e48-de83-4357-ae78-221b90810634 Can i use something else ?
root
root16mo 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
Adam16mo ago
I don't think ffmpeg is blocked... People have used it in the past
root
root16mo ago
Oh, it's not?
Adam
Adam16mo ago
Nah
root
root16mo ago
Oh Sorry, pay no attention to my ramblings
Adam
Adam16mo 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
Adam16mo ago
You can find packages here https://search.nixos.org/packages
root
root16mo ago
[phases.setup]
nixPkgs = ["ffmpeg"]
[phases.setup]
nixPkgs = ["ffmpeg"]
And if you need it as a library, add nixLibs = ["ffmpeg"] as well
_Alex_
_Alex_16mo ago
in the envierment variables ?
Adam
Adam16mo 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_16mo ago
So it's a file that i create and where i put [phases.setup] nixPkgs = ["ffmpeg"] ?
Adam
Adam16mo ago
Please read the configuration file docs The first link I sent
_Alex_
_Alex_16mo 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: )