I want to use appwrite function convert video into audio using ffmpeg. How can I install ffmpeg into node runtime?
Hi
So, I've never tried it but
you would need to build ffmpeg and ship binary file as part of the deployment. Then, in the code, point to the binary and execute it.
I haven't done this, but based on the examples of node functions provided by appwrite, you should be able to npm install [whatever] in your function's node app, and then deploy it
another thing I've noticed while using functions, is that if you go to the Build Logs of your function, you will see something like this:
This is the generic output that npm install gives, so it seems like you should be able to add any dependencies to your node function, and when you deploy it, npm install will install whatever deps you have
Recommended threads
- THE COLUMNS STUCK ON PROCESSING HOW DO I...
I HAVE SELF HOSTED THE APPWRITE ON VPS
- Impossible to create project via CLI?
Is it possible to create a new project via the appwrite CLI ? I need to create a few projects for something I'm working on and because i don't want to do it man...
- Understanding S3 setup with appwrite
Hey, i'm planning to change the storage from local to S3, tho i have some questions to see before starting the migration. 1. Does all the `/storage/<storage_ty...