Skip to content

peterdee/ffmpeg-static-electron-esm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

Resources

License

Stars

Watchers

Forks

Contributors

Languages

  • JavaScript 100.0%