How do I add FFMPEG to my discord bot
danorelse
HOBBYOP

4 months 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

4 months 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 🙂

5 Replies

ilyassbreth
FREE

4 months 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 🙂


ilyassbreth
FREE

4 months ago

does it work as expected?


ilyassbreth

does it work as expected?

danorelse
HOBBYOP

4 months ago

Thank you. It worked!


danorelse
HOBBYOP

4 months 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

4 months ago

i'm happy it works for you


Status changed to Solved brody 4 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...