ffmpeg-static icon indicating copy to clipboard operation
ffmpeg-static copied to clipboard

ffmpeg file without the exe extension on window

Open hunglsxx opened this issue 1 year ago • 3 comments

ffmpeg-static version

5.2.0

Node.js version

v16.14.2

operating system and/or environment

Window

What happened?

Hello, I'm using ffmpeg-static when building Electron with a Windows target. However, the downloaded ffmpeg build doesn't have the .exe extension, while the path provided by ffmpeg-static includes the .exe extension. This causes my application to be unable to execute ffmpeg.

import ffmpegStaticPath from 'ffmpeg-static';
console.log(ffmpegStaticPath); // This line prints something like: node_modules/ffmpeg-static/ffmpeg.exe. However, in reality, the ffmpeg file is located at node_modules/ffmpeg-static/ffmpeg (without the exe extension).

Can you help me?

hunglsxx avatar Dec 20 '23 10:12 hunglsxx

while the path provided by ffmpeg-static includes the .exe extension

I assume this is under the Windows cross-platform environment, too?

Refer to https://github.com/eugeneware/ffmpeg-static/issues/35 for more background info on how ffmpeg-static is supposed to support Electron cross-platform building.

derhuerst avatar Dec 21 '23 17:12 derhuerst

ffmpeg-static version

5.2.0

Node.js version

v16.14.2

operating system and/or environment

Window

What happened?

Hello, I'm using ffmpeg-static when building Electron with a Windows target. However, the downloaded ffmpeg build doesn't have the .exe extension, while the path provided by ffmpeg-static includes the .exe extension. This causes my application to be unable to execute ffmpeg.

import ffmpegStaticPath from 'ffmpeg-static';
console.log(ffmpegStaticPath); // This line prints something like: node_modules/ffmpeg-static/ffmpeg.exe. However, in reality, the ffmpeg file is located at node_modules/ffmpeg-static/ffmpeg (without the exe extension).

Can you help me?

Excuse me, is this problem solved? I encountered the same problem

pxim avatar Apr 12 '24 02:04 pxim

Same issue. I am using Windows and npm install ffmpeg-static does not download the exe file, just the *nix file: image

Fix: Call npm install --save @ffmpeg-installer/ffmpeg this will populate the exe.

ullenboom avatar Jul 05 '24 09:07 ullenboom