#Does FFMPEG not work?
129 messages · Page 1 of 1 (latest)
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.
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
any errors?
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
any errors relating to ffmpeg?
no
but ffmpeg is supposed to create the file
im not sure. If your envoking ffmpeg manually maybe log stderr
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
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
so like
[phases.setup].
nixPkgs = ['ffmpeg','JAVASCRIPT'].
??
so i'll make the file anywhere ? like not in any folder ?
ah alright
so workspace/nixpacks.toml ??
Whatever your root directory is, the bottom folder in your repo
i dont understand
like in node_modules ?
did i do it right ?
but uh... it still returns the same error
have you tried this?
hey um i tired logging stderr but nothing gets logged
How about stdout maybe it's just being places in a different location
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
Ide suggest running this locally in docker
If your using nixpacks on RAILWAY you can find the install instructions here https://nixpacks.com
App source + Nix packages + Docker = Image
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
i tried scoop too
i'll try that
and i dont have rust so no cargo
its asking for my sudo password
i have a sudo pass for wsl
i put that but its not taking input
im not on mac
/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
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
uh
new problem
i installed it on wsl
right
but when i run the cmd
nixpacks build ./path/to/app --name my-app
OH
That's like the selling point of wsl. But the mount speed is so fucking unusable it's insane
no shit
?
ok so my nixpacks build is done
but i cant run it using docker
i need to run docker docker daemon
but it just wont turn on even with root access
Wsl moment
You should have root access no?
sudo dockerd
Nixpacks build uses docker to run tho... So it must be working?
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
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
yeah it doesn't work, i'm trying to add a apt get install python into the docker file to see if it changes
like i'm getting a "little" confused at this point ahahah