Closed luokunman closed 2 years ago
Can you try running the ffmpeg
binary manually from the terminal?
/Users/study/xxx/node_modules/_ffmpeg-static@4.4.1@ffmpeg-static/ffmpeg --help
This is not valid。
response:command not found
This is not valid。 response:
command not found
This file is not an exec program file
@derhuerst I studied for a day and never found the reason. It is only observed that ffmpeg cannot be called.
I hope you can help me see it as soon as possible. Thank you.🌹
I downloaded @ffmpeg-installer/ffmpeg
.
replace ffmpeg
file
For some reason, on your machine, the ffmpeg
file was not marked as executable. I can't reproduce this problem unfortunately.
Glad that using @ffmpeg-installer/ffmpeg
worked for you.
Hey, I'm just dropping a note here because this was the first issue I found when trying to solve this issue.
For me the solution was to use this webpack plugin: https://github.com/GeKorm/webpack-permissions-plugin
I was using electron forge, and CopyWebpackPlugin to get the ffmpeg binary into the correct location. but CopyWebpackPlugin doesn't preserve permissions on copied files.
macOS 12.3.1 Apple M1