-
Notifications
You must be signed in to change notification settings - Fork 70
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
"Could not find ffmpeg executable" using 'app.asar.unpacked' #26
Comments
Interestingly, the above works fine on linux. I've used the following as a solution on windows:
|
Hmm. Yeah, the code is trying to verify that the file exists, actually only because of a requested fallback to NPM 2 by some user: https://github.com/kribblo/node-ffmpeg-installer/blob/master/index.js Not sure why it would work on one platform and not the other though, seems, as you put it, interesting. :) Maybe the easiest way to fix it for everyone is to also check for the electron paths, seems a common enough use case. As in, adding more else ifs. |
I'm on version I'm using the same command: It seems to work with my Electron (Windows and Mac definitely, Linux haven't checked recently): 🤷♂ |
I had the same problem with my electron which is built by electronforge, I manage to make it work by use this config for my asar in the package.json hope it helps those in need |
I'm trying to run this once packaged on Windows (electron packager). The folder containing ffmpeg.exe successfully unpacks. I then use:
const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path.replace('app.asar', 'app.asar.unpacked');
but I get the error
"Could not find ffmpeg executable"
tried ..,"resources\app.asar\node_modules\@ffmpeg-installer\win32-ia32\ffmpeg.exe"
So it seems to be trying to find the file before it allows the path to be modified to include "app.asar.unpacked".
The text was updated successfully, but these errors were encountered: