Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ffmpeg file without the exe extension on window #131

Open
hunglsxx opened this issue Dec 20, 2023 · 2 comments
Open

ffmpeg file without the exe extension on window #131

hunglsxx opened this issue Dec 20, 2023 · 2 comments
Labels

Comments

@hunglsxx
Copy link

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 hunglsxx changed the title bug: ffmpeg file without the exe extension on window Dec 20, 2023
@derhuerst derhuerst added the bug label Dec 21, 2023
@derhuerst
Copy link
Collaborator

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

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

Refer to #35 for more background info on how ffmpeg-static is supposed to support Electron cross-platform building.

@pxim
Copy link

pxim commented Apr 12, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants