eugeneware / ffmpeg-static

ffmpeg static binaries for Mac OSX and Linux and Windows
GNU General Public License v3.0
1.11k stars 182 forks source link

ffmpeg file without the exe extension on window #131

Open hunglsxx opened 11 months ago

hunglsxx commented 11 months ago

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?

derhuerst commented 11 months ago

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.

pxim commented 7 months ago

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

ullenboom commented 4 months ago

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.