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
- Error connecting Github
I have followed the documentation online for setting up VCS and cannot get my Github to properly connect in Functions. When I press the "Connect to Github" I am...
- delete cancelled site deployment
I would like to remove a cancelled site deployment, but the site menu shows only "Redeploy".
- How Can I Create landing page in appwrit...
I created function called invoice URL https://app.getrestt.com/v1/functions/invoice/executions?id=test-76f948fe83c43422561fe096c0674a1bd3ff0702cdfcf2444293ab31...