{"_id":"@davepagurek/ffmpeg-static-electron","name":"@davepagurek/ffmpeg-static-electron","dist-tags":{"latest":"2.0.3"},"versions":{"2.0.3":{"name":"@davepagurek/ffmpeg-static-electron","version":"2.0.3","description":"ffmpeg static binaries for Mac OSX and Linux and Windows","main":"index.js","scripts":{"test":"tape test/*.js","publish:public":"npm publish  --access public","publish:dry:run":"npm publish --dry-run"},"repository":{"type":"git","url":"git+https://github.com/pietrop/ffmpeg-static-electron.git"},"keywords":["ffmpeg","static","library","binary","binaries","mac","linux","windows"],"author":{"name":"Pietro Passarelli","email":"pietro.passarelli@gmail.com"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/Butter-Creatives/ffmpeg-static/issues"},"dependencies":{},"devDependencies":{"tape":"~2.3.2"},"_id":"@davepagurek/ffmpeg-static-electron@2.0.3","gitHead":"7ec3a72fc8d7510b96a416c5f5dd734a1d401c76","homepage":"https://github.com/pietrop/ffmpeg-static-electron#readme","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-2sY+98QISt9zd2v14KrFxSWH2jHeSl3N8bIufF2HmaUJEHuoh7FK5iQsIRDF53Onk0njlRay/qo8Wl3Gl6qpXw==","shasum":"a034b613b4c6bbea0cd69e75073c7e6964ba14cf","tarball":"https://registry.npmjs.org/@davepagurek/ffmpeg-static-electron/-/ffmpeg-static-electron-2.0.3.tgz","fileCount":11,"unpackedSize":348272733,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDhyGeqvQwCbwluoBjonEG3Qsq8oakmNOiq7ykXc6lYyAiEAtQcHwlxDSB1q6d0YIYa+4ufq1kbf7kOU/1p9odbB3Sg="}]},"_npmUser":{"name":"davepagurek","email":"davepagurek@gmail.com"},"directories":{},"maintainers":[{"name":"davepagurek","email":"davepagurek@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ffmpeg-static-electron_2.0.3_1730121230018_0.48812952759675543"},"_hasShrinkwrap":false}},"time":{"created":"2024-10-28T13:13:49.902Z","2.0.3":"2024-10-28T13:13:51.614Z","modified":"2024-10-28T13:13:51.849Z"},"maintainers":[{"name":"davepagurek","email":"davepagurek@gmail.com"}],"description":"ffmpeg static binaries for Mac OSX and Linux and Windows","homepage":"https://github.com/pietrop/ffmpeg-static-electron#readme","keywords":["ffmpeg","static","library","binary","binaries","mac","linux","windows"],"repository":{"type":"git","url":"git+https://github.com/pietrop/ffmpeg-static-electron.git"},"author":{"name":"Pietro Passarelli","email":"pietro.passarelli@gmail.com"},"bugs":{"url":"https://github.com/Butter-Creatives/ffmpeg-static/issues"},"license":"BSD-3-Clause","readme":"# `ffmpeg-static-electron`\n\nThe module returns a file path to the binary for the target operating system. \n\nIt is a modified version from the original [ffmpeg-static](https://github.com/pietrop/ffmpeg-static) to use [`electron-builder` file macros  in `package.json`, where OS name are `mac`, `linux` or `win`](https://www.electron.build/file-patterns/#file-macros)\n\nIn `ffmpeg-static`, recognising the target OS is done with [`os.platform()`](https://nodejs.org/api/os.html#os_os_platform) where mac os x is  recognised as`darwin` rather then `mac`.\n\nThe need to tailor ffmpeg-static to use with `electron-builder` came from a use cases such as that of [autoEdit.io](http://autoEdit.io). \n\n<!-- I've also added `browser`, as a platform option, for use case when module is use client side, eg bundled using browserify.-->\n\nSee here for more info on [How to package ffmpeg with the fluent-ffmpeg node library in electron, so that you only ship the binaries for the target operating system](https://pietropassarelli.com/ffmpeg-electron.html)\n\nThere is also [`ffprobe-static-electron`](https://github.com/pietrop/ffprobe-static-electron)\n\n---\n\nffmpeg static binaries for Mac OSX and Linux and Windows\n\n## Installation\n\nThis module is installed via npm:\n\n``` bash\n$ npm install ffmpeg-static-electron\n```\n\n## Example Usage\n\nReturns the path of a statically linked ffmpeg binary on the local filesystem.\n\n``` js\nvar ffmpeg = require('ffmpeg-static-electron');\nconsole.log(ffmpeg.path);\n// /Users/eugeneware/Dropbox/work/ffmpeg-static/bin/darwin/x64/ffmpeg\n```\n\nCurrently supports Mac OS X (64-bit), Linux (32 and 64-bit) and Windows\n(32 and 64-bit).\n\nCurrently version `3.1` is installed for Mac and Linux, and `3.0.1` for\nWindows.\n\nI pulled the versions from the ffmpeg static build pages linked from the\nofficial ffmpeg site. Namely:\n\n* [64 bit Mac OSX](https://evermeet.cx/ffmpeg/)\n* [64 bit Linux](http://johnvansickle.com/ffmpeg/)\n* [32 bit Linux](http://johnvansickle.com/ffmpeg/)\n* [64 bit Windows](http://ffmpeg.zeranoe.com/builds/win64/static/)\n* [32 bit Windows](http://ffmpeg.zeranoe.com/builds/win32/static/)\n\nNB: Open to pull requests to update this module with the latest versions.\n\nIdeally I'd like to dynamically pull the latest version down, but this requires\naccess to 7-zip which and being able to untar `xz` files.\n\nAnd I couldn't find a good js-only decoders for these files either.\n\nSo, for now it's just embedded binaries.\n","readmeFilename":"README.md"}