#Does FFMPEG not work?

129 messages · Page 1 of 1 (latest)

cunning spireBOT
#

Project ID: N/A

#

It looks like the relevant parameters are in the variables, but the ffmpeg is not being found. It is not possible to put the parameters in the .env file instead. Check the logs to see if there is an error, and if not, it may be necessary to install ffmpeg on the Linux system.

rough burrow
#

it needs to be installed

#

reason is that on my pc i got the same error before installing ffmpeg but after installing it worked fine

#

and it works on my pc but not on railway

#

do i install it if yes then how

#

project id: eb93983b-74c5-4a1d-aed0-88334e129dae

odd wind
#

any errors?

rough burrow
#

yeah

#
node:internal/process/promises:279
triggerUncaughtException(err, true /* fromPromise */);
^
[Error: ENOENT: no such file or directory, stat '/workspace/recordings/722302164302692472.pcm.mp3'] {
errno: -2,
code: 'ENOENT',
syscall: 'stat',
path: '/workspace/recordings/722302164302692472.pcm.mp3'
}
#

my code is supposed to convert a .pcm file to .mp3 file using ffmped

#

but mp3 file is not being created

#

hence the error

#

@odd wind

odd wind
#

any errors relating to ffmpeg?

rough burrow
#

no

rough burrow
odd wind
#

im not sure. If your envoking ffmpeg manually maybe log stderr

rough burrow
#

im not

#

im using the lib

#

ffmpeg

odd wind
#

not sure. i guess try work out how to find the error

#

railways fs is a normal fs the only difference is it gets wiped between deploys

pale cave
#

ffmpeg isn’t installed by default, create a NIXPKGS environment variable with the value ffmpeg and it should be installed

#

@rough burrow

#

or create a nixpacks.toml file with

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

with yourlanguagehere replaced with the language you’re using

rough burrow
#

??

#

so i'll make the file anywhere ? like not in any folder ?

pale cave
#

it has to be in the root directory

#

and make sure javascript isn’t capitalized

rough burrow
#

ah alright

rough burrow
pale cave
#

Whatever your root directory is, the bottom folder in your repo

rough burrow
#

like in node_modules ?

rugged prairie
#

whatever your root directory is

#

the top folder of your project

rough burrow
rugged prairie
#

It looks like It's root directory

#

yep

rough burrow
#

but uh... it still returns the same error

rugged prairie
rough burrow
#

no

#

ok lemme

rough burrow
odd wind
#

How about stdout maybe it's just being places in a different location

rough burrow
#

ok

#

node:internal/process/promises:279
triggerUncaughtException(err, true /* fromPromise */);
^
[Error: ENOENT: no such file or directory, stat '/workspace/recordings/722302164302692472.pcm.mp3'] {
errno: -2,
code: 'ENOENT',
syscall: 'stat',
path: '/workspace/recordings/722302164302692472.pcm.mp3'
}
#

its not logging anything other than this

odd wind
#

Ide suggest running this locally in docker

rough burrow
#

getting errors installing tho

#

@odd wind

#

I have WSL installed so I am using this

odd wind
#

Ugh

#

What command did you run?

#

( you probally need to specify a version )

rough burrow
#

first this

curl -LO https://github.com/railwayapp/nixpacks/releases/download/v0.15.0/nixpacks-v0.15.0-amd64.deb

then

sudo dpkg -i nixpacks-v0.15.0-amd64.deb
odd wind
#

I Have absolutely zero ide

#

Idea

#

Are there other install methods

rough burrow
#

i tried scoop too

odd wind
#

How Bout
curl -sSL https://nixpacks.com/install.sh | bash

#

Or using cargo

#

Idk

rough burrow
#

thats scoop

rough burrow
#

and i dont have rust so no cargo

rough burrow
#

i have a sudo pass for wsl

#

i put that but its not taking input

odd wind
#

Input is hidden

#

Cus its a password

rough burrow
#

i hit enter

#

nothing happen

odd wind
#

Idk

#

Literally no idea

#

You can try homebrew

rough burrow
#

im not on mac

odd wind
#

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" ( or Google now to install homebrew )

#

You can install homebrew in wsl irrc

rough burrow
#

@odd wind 😭

#

after so many restarts it finally

odd wind
#

Wsl moment

#

Yea so you can build your project with nixpacks

#

Then run the container and exec onto it

#

To see what's going on

rough burrow
#

new problem

#

i installed it on wsl

#

right

#

but when i run the cmd

nixpacks build ./path/to/app --name my-app
odd wind
#

Yes

#

Just cd to the directory in windows

#

And type wsl

rough burrow
#

OH

odd wind
#

That's like the selling point of wsl. But the mount speed is so fucking unusable it's insane

rough burrow
#

no shit

odd wind
#

?

rough burrow
odd wind
#

I'm guessing path to add is wrong

#

You need to set that

rough burrow
#

but i cant run it using docker

#

i need to run docker docker daemon

#

but it just wont turn on even with root access

odd wind
#

Wsl moment

#

You should have root access no?

#

sudo dockerd

#

Nixpacks build uses docker to run tho... So it must be working?

sly bobcat
#

Hi! I have a bit of a issue that I've been trying to solve for a day and a half but cannot find any answer that can solve this problem. i am trying to deploy my app on railways using docker but I always seem to get this error and I just cannot understand why.. rpc error: code = Unknown desc = Failed to start container: "python3" executable file not found in $PATH unknown

#

here is my dockerfile

#

FROM python:3.10

WORKDIR /.

COPY . .

RUN apt-get -y update

RUN apt-get install -y ffmpeg

RUN pip3 install --user -r requirements.txt

RUN pip3 uninstall -y ffmpeg-python
RUN pip3 uninstall -y ffmpeg

RUN pip3 install python-ffmpeg

CMD ["python3", "app.py"]

#

the app runs perfectly locally using python3 app.py, using docker containers but when I try to deploy it on railways it just gives me that weird error and I've already exhausted all the solutions I could find

odd wind
#

Try

#

CMD ["/bin/bash", "python3", "app.py"]

sly bobcat
#

it went active for a split second and then this appeared in the deploy logs /bin/bash: python3: No such file or directory

#

it crashed

#

i'm trying to now deploy with /usr/local/bin instead of "/bin/bash" to see if something changes

sly bobcat
#

yeah it doesn't work, i'm trying to add a apt get install python into the docker file to see if it changes

odd wind
#

But your extending the python image

#

Try python instead of python3

sly bobcat
#

just python also didn't work

#

that was one of the first things i had tried

sly bobcat
#

like i'm getting a "little" confused at this point ahahah