peterdee / ffmpeg-static-electron-esm

ffmpeg static binaries for Mac, Linux and Windows (adapted for ESM)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ffmpeg-static-electron-esm

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 maclinux 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

Install

npm i github:peterdee/ffmpeg-static-electron-esm

Usage

Returns the path of a statically linked ffmpeg binary on the local filesystem.

import ffmpegPath from 'ffmpeg-static-electron-esm';
console.log(ffmpegPath);

Testing

npm run test

License

MIT

About

ffmpeg static binaries for Mac, Linux and Windows (adapted for ESM)

License:MIT License


Languages

Language:JavaScript 100.0%