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
- Functions Failing on CRON Schedule
I set up an hourly CRON Schedule for my function and It only executes successfully every after 3 hours sometimes 10 hours. When I execute it manually it works e...
- hi guys! my site is not accesible in my ...
- MongoDb Database Breaks integer[] & bigi...
I've got a table with the below column created. When I try to insert the value `[-3408048000]` into it, the dart sdk cloud function call is successful (no error...