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

ARM64 architecture support (could not find ffmpeg executable) #78

Open
andskaal opened this issue Nov 6, 2023 · 1 comment
Open

ARM64 architecture support (could not find ffmpeg executable) #78

andskaal opened this issue Nov 6, 2023 · 1 comment

Comments

@andskaal
Copy link

andskaal commented Nov 6, 2023

After upgrading my mac from using an Intel chip to now using the M2 chip I'm experiencing issues running my project with the ffmpeg-installer. After trying to delete the node_modules folder and running yarn install again - I get the following error trying to run the project:

Could not find ffmpeg executable, tried "/Users/andreas/Desktop/backend/functions/node_modules/@ffmpeg-installer/darwin-x64/ffmpeg", "/Users/andreas/Desktop/backend/functions/node_modules/@ffmpeg-installer/ffmpeg/node_modules/@ffmpeg-installer/darwin-x64/ffmpeg" and "/Users/andreas/Desktop/backend/functions/node_modules/@ffmpeg-installer/darwin-x64/ffmpeg"

After doing some investigation I can see that I don't have any "darwin-x64" in my node_modules folder under @ffmpeg-installer. However, I do have a folder called just "ffmpeg" and one called "darwin-arm64". This error occurs trying to set the ffmpeg path like this:

const ffmpegPath = require("@ffmpeg-installer/ffmpeg");

And I have even tried to set the path directly like this:

const ffmpegPath = require("@ffmpeg-installer/darwin-arm64");

and replacing the path like so:

const ffmpegPath = require("@ffmpeg-installer/ffmpeg").path.replace(
  'darwin-x64', 
  'darwin-arm64'
);

Could someone please point me in the right direction of how to solve this issue?

@crazyratdev
Copy link

crazyratdev commented May 10, 2024

I'm facing the almost the same problem. I'm trying to compile my .js file into a .exe executable using pkg(I don't know if I should open this issue on the pkg repository, which is archived now). After compiling and executing I get this error too. I installed the @ffmpeg-installer/win32-x64, it is on node_modules, but for some reason it just don't run. I already tried using ffmpeg-static, but didnt work too. If someone asks, I'll send my code. If someone knows how to solve it, I would be really gratefull.

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

No branches or pull requests

2 participants