Adding ffmpeg to Railway project

valtonuaTRIAL

a year 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

2 Replies

valtonuaTRIAL

a year 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)


a year 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']

Adding ffmpeg to Railway project - Railway Help Station