How can I easily deploy FFMPEG
r2997790
HOBBYOP

2 years ago

Hi I'm new to Railway and trying to figure out how to deploy FFMPEG.

Could some kind soul please help give me some pointers. I've read the forum threads but the explantion, such as it exists, is very confusing, and presupposes you're not a newbie like me.

Many thanks

R

Solved

53 Replies

2 years ago

FFMPEG is a cli tool/package, which is not useful to deploy on its own without an interface. Could you please explain your usecase and what you're aiming to accomplish?


r2997790
HOBBYOP

2 years ago

I want to deploy FFMPEG with a API script so I can use it via API


2 years ago

This isn't related to Railway and or it's platform, you want FFMPEG help and how to use it as an API


2 years ago

There's some docker images that do that, they transform FFMPEG into an API


r2997790
HOBBYOP

2 years ago

No. I want to know how to install it on Railway.


r2997790
HOBBYOP

2 years ago

Is 100% related to Railway.


2 years ago

Do you know docker?


r2997790
HOBBYOP

2 years ago

A little. I deployed something but now I am stuck.


r2997790
HOBBYOP

2 years ago

For example I don't know where/how to deploy the API python script.


2 years ago

So you got a python script with FFMPEG?


r2997790
HOBBYOP

2 years ago

Yup.


2 years ago

what is it using? fastAPI? I don't know python that much


r2997790
HOBBYOP

2 years ago

I believe so. I just noticed I didn't deploy the docker package. Maybe it errored. I need to check it again. But still not sure how to sort it.


2 years ago

Did u manage to run it locally? Again, I'm 100% sure this is better asked in the FFMPEG discord server


r2997790
HOBBYOP

2 years ago

I run ffmpeg on my local machine all the time


2 years ago

If you already have an api that you’re able to run locally and works, this is a Railway question. The first step is to deploy your script through the Github repo you’ve created. Do that and we’ll troubleshoot from there


2 years ago

If your code does not work locally, you will need to fix it before attempting to host your project on Railway


2 years ago

If you are encountering errors on Railway, share them here


r2997790
HOBBYOP

2 years ago

1343648933783666798


r2997790
HOBBYOP

2 years ago

I deployed this and it's crashed without even doing anything


2 years ago

What are the logs?


r2997790
HOBBYOP

2 years ago

the deploy log doesn't show any specific errro


r2997790
HOBBYOP

2 years ago

1343649533195714792


r2997790
HOBBYOP

2 years ago

I restarted it, and it crashed again immediately


r2997790
HOBBYOP

2 years ago

it was deployed fine, then crashed a few seconds later


2 years ago

cntrl + k -> download deploy logs


2 years ago

attach it here


r2997790
HOBBYOP

2 years ago


r2997790
HOBBYOP

2 years ago

from this docker package: linuxserver/ffmpeg


r2997790
HOBBYOP

2 years ago

when you google ffmpeg + railway it seems I'm not the only person who's having issues.


2 years ago

after inspecting the image, I don't think you can use it on railway


2 years ago

they want to install ffmpeg into their code deployment, dont they?


2 years ago

tbh I still don't fully get what's hes trying to do


2 years ago

but this linuxserver/ffmpeg doesn't work on railway, you send run commands to it's docker container and he generates a file in a specific dir


r2997790
HOBBYOP

2 years ago

I want to host ffmpeg add an API wrapper and pass video to be adapted and then passed back


2 years ago

have you already coded the api wrapper?


r2997790
HOBBYOP

2 years ago

I have one


2 years ago

have you tried deploying it to railway


2 years ago

(your api wrapper, not the docker image)


r2997790
HOBBYOP

2 years ago

nope


2 years ago

please go ahead and do that, deploy your code to railway


r2997790
HOBBYOP

2 years ago

I am not sure how to do that. I haven't hooked up GitHub. do I need to do it via that?


2 years ago

That’s the best way


2 years ago

yep the best way is to have your code in github


r2997790
HOBBYOP

2 years ago

why will it help to push the API code to railway if ffmpeg isn't working?


2 years ago

Because we can ensure the API itself is working and resolve any dependency issues from there


2 years ago

installing ffmpeg through nixpacks is easy


r2997790
HOBBYOP

2 years ago

so can you explain how I will deploy ffmpeg via nixpicks Adam please. Is there a site with all their packages?


2 years ago

Let’s start with the basics first, get your api on Github and deploy. If there are any issues, we’ll solve them from there


r2997790
HOBBYOP

2 years ago

ok lads


r2997790
HOBBYOP

2 years ago

thank you for the input and feedback


2 years ago

If you want to read ahead while doing so, here are the nixpacks configuration file docs and nix package repository


2 years ago

!s


Status changed to Solved adam • over 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...