{"id":27165771,"url":"https://github.com/vishalkaleria/ffmpeg-installer","last_synced_at":"2026-04-16T15:32:09.597Z","repository":{"id":283534669,"uuid":"951684405","full_name":"VishalKaleria/ffmpeg-installer","owner":"VishalKaleria","description":"Cross-platform ffmpeg binary installer with TypeScript support","archived":false,"fork":false,"pushed_at":"2025-03-22T03:59:19.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T02:32:22.226Z","etag":null,"topics":["ffmpeg","ffmpeg-installer","ffprobe","static-ffmpeg"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VishalKaleria.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-20T04:39:10.000Z","updated_at":"2025-03-22T03:59:23.000Z","dependencies_parsed_at":"2025-03-20T19:08:17.128Z","dependency_job_id":"9c367616-ea2c-4ead-9ac6-282e589dfa8e","html_url":"https://github.com/VishalKaleria/ffmpeg-installer","commit_stats":null,"previous_names":["w3vish/ffmpeg-installer","vishalkaleria/ffmpeg-installer"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VishalKaleria%2Fffmpeg-installer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VishalKaleria%2Fffmpeg-installer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VishalKaleria%2Fffmpeg-installer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VishalKaleria%2Fffmpeg-installer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VishalKaleria","download_url":"https://codeload.github.com/VishalKaleria/ffmpeg-installer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247969065,"owners_count":21025911,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ffmpeg","ffmpeg-installer","ffprobe","static-ffmpeg"],"created_at":"2025-04-09T03:20:48.334Z","updated_at":"2026-04-16T15:32:09.525Z","avatar_url":"https://github.com/VishalKaleria.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @w3vish/ffmpeg-installer\n\n[![npm version](https://img.shields.io/npm/v/@w3vish/ffmpeg-installer.svg)](https://www.npmjs.com/package/@w3vish/ffmpeg-installer)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nA cross-platform FFmpeg binary installer for Node.js applications. This package provides a simple way to download and configure FFmpeg binaries for your platform, making it easy to use FFmpeg in your Node.js projects without manual installation.\n\n## ⚠️ ESM Only\n**This package only supports ES Modules**. CommonJS require() is not supported.\n\n## Installation\n\n```bash\n# Install the package\nnpm install @w3vish/ffmpeg-installer\n```\n\nAfter installation, run the CLI tool to install binaries:\n\n```bash\n# Install binaries via CLI\nnpx @w3vish/ffmpeg-installer\n```\n\nThe CLI will prompt you to select which components to install:\n1. FFmpeg and FFprobe (default)\n2. FFmpeg only\n3. FFprobe only\n\n## Usage\n\n```javascript\n// Import the package\nimport FFmpegInstaller from '@w3vish/ffmpeg-installer';\n\n// Access the data directly\nconsole.log('FFmpeg path:', FFmpegInstaller.ffmpeg.path);\nconsole.log('FFprobe path:', FFmpegInstaller.ffprobe.path);\nconsole.log('FFmpeg version:', FFmpegInstaller.ffmpeg.version);\nconsole.log('Platform:', FFmpegInstaller.platform);\nconsole.log('Architecture:', FFmpegInstaller.arch);\n```\n\n### With child_process\n\n```javascript\nimport { spawn } from 'child_process';\nimport FFmpegInstaller from '@w3vish/ffmpeg-installer';\n\nconst process = spawn(FFmpegInstaller.ffmpeg.path, [\n  '-i', 'input.mp4',\n  '-c:v', 'libx264',\n  'output.mp4'\n]);\n\nprocess.on('close', (code) =\u003e {\n  console.log(`Process exited with code ${code}`);\n});\n```\n\n### With fluent-ffmpeg\n\n```javascript\nimport ffmpeg from 'fluent-ffmpeg';\nimport FFmpegInstaller from '@w3vish/ffmpeg-installer';\n\n// Set paths\nffmpeg.setFfmpegPath(FFmpegInstaller.ffmpeg.path);\nffmpeg.setFfprobePath(FFmpegInstaller.ffprobe.path);\n\n// Use fluent-ffmpeg\nffmpeg('input.mp4')\n  .output('output.mp4')\n  .on('end', () =\u003e {\n    console.log('Conversion finished');\n  })\n  .run();\n```\n\n## CLI Options\n\nWhen running the installer CLI, you can specify options:\n\n```bash\nnpx @w3vish/ffmpeg-installer --platform=darwin-arm64 --ffmpeg-only\n```\n\nAvailable options:\n- `--platform=\u003cplatform\u003e`: Specify platform (win32-x64, darwin-arm64, linux-x64, etc.)\n- `--ffmpeg-only`: Install only FFmpeg\n- `--ffprobe-only`: Install only FFprobe\n\n## Supported Platforms\n\n- Windows (win32-x64, win32-ia32)\n- macOS (darwin-x64, darwin-arm64)\n- Linux (linux-x64, linux-arm64, linux-armv7l)\n\n## Return Object Structure\n\nThe package exports an `FFmpegInstaller` object with this structure:\n\n```javascript\n{\n  ffmpeg: {\n    path: '/path/to/ffmpeg',\n    version: 'v1.0.0',\n    url: 'https://github.com/w3vish/ffmpeg-installer/releases/download/v1.0.0/linux-x64-ffmpeg'\n  },\n  ffprobe: {\n    path: '/path/to/ffprobe',\n    version: 'v1.0.0',\n    url: 'https://github.com/w3vish/ffmpeg-installer/releases/download/v1.0.0/linux-x64-ffprobe'\n  },\n  platform: 'linux',\n  arch: 'x64'\n}\n```\n\n## TypeScript Types\n\nThe package includes TypeScript definitions:\n\n```typescript\n// Main installer result\nexport interface FFmpegInstaller {\n  ffmpeg?: BinaryInfo;\n  ffprobe?: BinaryInfo;\n  platform: string;\n  arch: string;\n}\n\n// Binary information\nexport interface BinaryInfo {\n  path: string;\n  version: string;\n  url: string;\n}\n```\n\n## Troubleshooting\n\n### Permission Issues\n\nIf you encounter permission errors when running the binaries on Linux/macOS:\n\n```bash\nchmod +x /path/to/ffmpeg\nchmod +x /path/to/ffprobe\n```\n\n### Installation Failures\n\nIf the installation fails, try:\n\n```bash\nnpm install @w3vish/ffmpeg-installer --unsafe-perm\n```\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvishalkaleria%2Fffmpeg-installer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvishalkaleria%2Fffmpeg-installer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvishalkaleria%2Fffmpeg-installer/lists"}