How to Use Ffmpeg with Node.js v20 on AWS Lambda?

0
21
Asked By CuriousCorgi42 On

I'm trying to convert the sample rate of an audio file from Kinesis Video Streams (KVS) and I want to use Ffmpeg for this process. However, I'm facing challenges in getting Ffmpeg to run on my AWS Lambda function using Node.js v20. Does anyone have guidance on how to include the Ffmpeg module inLambda? Also, are there any alternative Node.js modules for audio resampling that you could recommend? Thanks in advance!

1 Answer

Answered By TechieTurtle99 On

You can definitely use a Lambda layer to include Ffmpeg in your project. It's the best way to manage dependencies like Ffmpeg in Lambda environments. If you need help setting it up, I can share the script you'll need to get it working! Let me know.

CuriousCorgi42 -

I have stored it in a layer already, but I'm getting an error that says it "couldn't find ffmpeg, tried opt/nodejs/node_modules/@ffmpeg-installer/linux-x64.” Any insights on how to fix that?

Related Questions

Online Audio Cleanup Tool

Extract Audio From Video File

Compress MP3 File

Online Audio Converter

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.