Adding ffmpeg to Railway project
valtonua
TRIALOP

2 years ago

I am working with ffmpeg in my project but I can't figure out how to make it work here. I receive this error:
import ffmpeg
ModuleNotFoundError: No module named 'ffmpeg'

It works on my computer because I've put ffmpeg.exe to the folder with my scripts:
\venv\Scripts

4 Replies

valtonua
TRIALOP

2 years ago

and I don't know how to do the same here

I imported my project from github (and there is no venv folder there)


2 years ago

Railway uses nixpacks to build your app, to get nixpacks to install ffmpeg add this nixpacks.toml file to your project -

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

brody

Railway uses [nixpacks](https://nixpacks.com/docs/guides/configuring-builds) to build your app, to get nixpacks to install ffmpeg add this nixpacks.toml file to your project - ``` [phases.setup] nixPkgs = ['...', 'ffmpeg'] ```

azeemh
PRO

4 months ago

thanks for posting this. this perfectly worked as i added ffmpeg to my project recently.


brody

Railway uses [nixpacks](https://nixpacks.com/docs/guides/configuring-builds) to build your app, to get nixpacks to install ffmpeg add this nixpacks.toml file to your project - ``` [phases.setup] nixPkgs = ['...', 'ffmpeg'] ```

connorjchen
HOBBY

4 months ago

hey! how does this work with railpack since nixpacks is deprecated on railway?


Loading...