Giter Site home page Giter Site logo

Comments (8)

tomgallagher avatar tomgallagher commented on May 24, 2024 1

Will do. I'll post what I discover here.

from node-ffmpeg-installer.

tomgallagher avatar tomgallagher commented on May 24, 2024 1

OK. I'm here to report that your package works as expected on AWS Lambda, at least when testing locally. Optimizing FFmpeg on Lambda a whole different problem! Probably worth a blog post by someone somewhere...

But thanks!

from node-ffmpeg-installer.

kribblo avatar kribblo commented on May 24, 2024

Hello, the binary is installed when you run "npm install", which is usually only done on first run, or "npm update" when you want to update dependencies. I'm not too familiar with Lambda, but once it's installed, it should just be there, unless everything is installed every time? Otherwise, it's usually pretty fast, since there is no compiling etc.

Again, don't really know how Lambda does things, but if you can reuse already downloaded files there should not be a problem, but if it's rebuilding everything from scratch every time I guess it's doing that for everything else as well? In the second case, it would be the time for downloading the binary I guess, nothing else.

Never measured the time it takes, but it's pretty instant on a good network, whatever the time it takes for it to be downloaded from npmjs.org.

from node-ffmpeg-installer.

tomgallagher avatar tomgallagher commented on May 24, 2024

Hi - Thanks for getting back. I'm not sure either. I've just read that everything is uploaded when you create the Lambda function so it should be OK. It's hard to get a definitive answer but it seems the all the NPM packages are pre-installed.

from node-ffmpeg-installer.

kribblo avatar kribblo commented on May 24, 2024

If you try it out, please let me know the results, would be nice to have it documented.

from node-ffmpeg-installer.

tomgallagher avatar tomgallagher commented on May 24, 2024

OK, so the first problem I can foresee is the binary location. If the file is installed into the node_modules directory, it's probably going to work, Otherwise I would have to install the binary into a location that is accessible from Lambda, like an S3 bucket and then refer to that somehow.

from node-ffmpeg-installer.

kribblo avatar kribblo commented on May 24, 2024

It is, and you should be able to get a working path to it from the library. However, it should be mentioned that if you are running on one OS only it might also be a better idea to simply download a binary (see README) and put it in the project manually. It depends on your needs.

The probably biggest motivations for this project is a) getting updates and b) being able to run the same code/projects on multiple operating systems. If you don't have those needs, you may not need this project. On the other hand, if it Just Works, it's also pretty handy. :)

from node-ffmpeg-installer.

tomgallagher avatar tomgallagher commented on May 24, 2024

OK that's good news. If it's in the node_modules directory then Lambda should be able to find the binary no problem. Once again, I'll get back if and when I've got it working.

from node-ffmpeg-installer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.