The module returns a file path to the installed ffmpeg binary for the target operating system.
It is a modified version from the original ffmpeg-static to use electron-builder
file macros in package.json
, where OS name are mac
, linux
or win
In ffmpeg-static
, recognising the target OS is done with os.platform()
where mac os x is recognised asdarwin
rather then mac
.
There is also ffprobe-static-electron-esm
npm i github:peterdee/ffmpeg-static-electron-esm
Returns the path of a statically linked ffmpeg binary on the local filesystem.
import ffmpegPath from 'ffmpeg-static-electron-esm';
console.log(ffmpegPath);
npm run test