AlenVelocity / wa-sticker-formatter

Sticker Creator for WhatsApp
https://alensaito1.github.io/wa-sticker-formatter/
MIT License
99 stars 45 forks source link

Error: cannot find ffmpeg #42

Closed AdamRoyn closed 1 year ago

AdamRoyn commented 2 years ago

When I'm going to make a sticker in mp4 format this error appears in the console

Error: Cannot find ffmpeg

Even though I already installed ffmpeg with

npm i fluent-ffmpeg
aidulcandra commented 2 years ago

+1

aidulcandra commented 2 years ago

Actually I have managed to figure it out This really depends on your environment. Where do you run your program? Does it support ffmpeg?

If it does, try to find the path to the ffmpeg executable first.

If you can't find it, you may have to use this module: ffmpeg-static, this will install ffmpeg in your system and it can give you the path to it. Just follow the instructions: here

After you get the path, set it to the environment system: process.env.FFMPEG_PATH = pathToFFMPEG