wa-sticker-formatter icon indicating copy to clipboard operation
wa-sticker-formatter copied to clipboard

Error: cannot find ffmpeg

Open AdamRoyn opened this issue 2 years ago • 2 comments

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

AdamRoyn avatar Jul 03 '22 14:07 AdamRoyn

+1

aidulcandra avatar Aug 22 '22 01:08 aidulcandra

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

aidulcandra avatar Aug 22 '22 02:08 aidulcandra