How do I add FFMPEG to my discord bot
danorelse
HOBBYOP

a month ago

I cannot figure out how to enable the ffmpeg package on my project. Help would be appreciated.

Solved$10 Bounty

Pinned Solution

ilyassbreth
FREE

a month ago

check which builder you're using first: go to service settings → build section

if using railpack (most likely): add this environment variable in your service variables tab:

RAILPACK_DEPLOY_APT_PACKAGES=ffmpeg

if using nixpacks: create nixpacks.toml file in your repo root:

toml

[phases.setup]
nixPkgs = ['...', 'ffmpeg']

then redeploy. ffmpeg will be in your system path

hope this help you slightly_smiling_face emoji

5 Replies

ilyassbreth
FREE

a month ago

check which builder you're using first: go to service settings → build section

if using railpack (most likely): add this environment variable in your service variables tab:

RAILPACK_DEPLOY_APT_PACKAGES=ffmpeg

if using nixpacks: create nixpacks.toml file in your repo root:

toml

[phases.setup]
nixPkgs = ['...', 'ffmpeg']

then redeploy. ffmpeg will be in your system path

hope this help you slightly_smiling_face emoji


ilyassbreth
FREE

a month ago

does it work as expected?


ilyassbreth

does it work as expected?

danorelse
HOBBYOP

a month ago

Thank you. It worked!


danorelse
HOBBYOP

a month ago

I had to enter the variable as you sent it through the raw editor is all. Otherwise couldn't get it to work.


ilyassbreth
FREE

a month ago

i'm happy it works for you


Status changed to Solved brody 26 days ago


Loading...