Open hunglsxx opened 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.
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
Same issue. I am using Windows and npm install ffmpeg-static
does not download the exe file, just the *nix file:
Fix: Call npm install --save @ffmpeg-installer/ffmpeg
this will populate the exe.
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.
Can you help me?