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