Skip to content
Back

Is possible install ffmpeg to node runtime appwrite function?

  • 0
  • Self Hosted
  • Functions
kaliz
30 Mar, 2023, 08:31

I want to use appwrite function convert video into audio using ffmpeg. How can I install ffmpeg into node runtime?

TL;DR
The user is asking if it is possible to install ffmpeg into the node runtime of an Appwrite function. The suggestion is to use `npm install` to add dependencies to the node function and then deploy it. It is also suggested to build ffmpeg and include the binary file with the deployment, and then point to the binary and execute it in the code. There is no clear solution provided in the thread.
joeyouss
30 Mar, 2023, 09:20

Hi

joeyouss
30 Mar, 2023, 09:20

So, I've never tried it but

joeyouss
30 Mar, 2023, 09:20

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.

safwan
30 Mar, 2023, 10:24

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

safwan
30 Mar, 2023, 10:26

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:

safwan
30 Mar, 2023, 10:27

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

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more