Skip to content

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

@andskaal

Description

@andskaal

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions