{"id":15286975,"url":"https://github.com/potatoparser/ffmpeg-cli","last_synced_at":"2025-04-13T02:32:48.745Z","repository":{"id":34034710,"uuid":"166148527","full_name":"PotatoParser/ffmpeg-cli","owner":"PotatoParser","description":"ffmpeg with support for multiple OSs","archived":false,"fork":false,"pushed_at":"2022-10-30T10:44:09.000Z","size":262754,"stargazers_count":17,"open_issues_count":5,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T20:55:06.124Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PotatoParser.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-17T02:45:54.000Z","updated_at":"2024-03-19T09:19:24.000Z","dependencies_parsed_at":"2023-01-15T04:06:18.004Z","dependency_job_id":null,"html_url":"https://github.com/PotatoParser/ffmpeg-cli","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PotatoParser%2Fffmpeg-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PotatoParser%2Fffmpeg-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PotatoParser%2Fffmpeg-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PotatoParser%2Fffmpeg-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PotatoParser","download_url":"https://codeload.github.com/PotatoParser/ffmpeg-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248657824,"owners_count":21140842,"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":["hacktoberfest"],"created_at":"2024-09-30T15:19:47.386Z","updated_at":"2025-04-13T02:32:48.483Z","avatar_url":"https://github.com/PotatoParser.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ffmpeg-cli\n[![Build Status](https://img.shields.io/travis/com/PotatoParser/ffmpeg-cli/master?style=flat-square)](https://travis-ci.com/PotatoParser/ffmpeg-cli) [![Node LTS](https://img.shields.io/badge/Node-LTS-brightgreen.svg?style=flat-square)](https://nodejs.org/en/download/) [![Node v10](https://img.shields.io/badge/Node-v10-brightgreen.svg?style=flat-square)](https://nodejs.org/dist/latest-v10.x/)\n\nA simple way of implementing FFmpeg regardless of OS\n```javascript\nconst ffmpeg = require(\"ffmpeg-cli\");\nffmpeg.run(\"-version\");\nconsole.log(ffmpeg.runSync(\"-version\"));\n```\n## Hassle Free!\nNo need to install other programs as ffmpeg-cli will download and extract necessary binaries for your OS!\n\n## Supported OS\n+ MacOS ~ 64 bit\n+ Linux ~ 32/64 bit\n+ Windows ~ [~~32/~~](https://github.com/PotatoParser/ffmpeg-cli/issues/9)64 bit\n\n## FFmpeg Path\nReturns the path of FFmpeg executable\n```javascript\nffmpeg.path;\n// Ex: C:\\Users\\PotatoParser\\Desktop\\NodeJS\\ffmpeg-cli\\ffmpeg\\win32x64\\bin\\ffmpeg.exe\n```\n## Synchronous Commands\nReturns the output from FFmpeg\n```javascript\nffmpeg.runSync(commands);\n// Ex: ffmpeg.runSync(`-i input.jpg -vf scale=320:240 output.png`);\n```\n## Asynchronous Commands\nReturns a `Promise`\n```javascript\nffmpeg.run(commands);\nffmpeg.run(commands).catch((error)=\u003e{...}); // Catch errors\nffmpeg.run(commands).then((result)=\u003e{...}); // Only results\nffmpeg.run(commands).then((result)=\u003e{...}).catch((error)=\u003e{...}); // Catches when errors found\n```\n\n## FFmpeg Force Re-Download\n**Run to redownload (synchronously) ffmpeg files**\nReturns true if download is successful\n\n```javascript\nffmpeg.forceDownload();\n```\n\n## FFmpeg Documentation\n[FFmpeg's Official Documentation](https://www.ffmpeg.org/ffmpeg.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpotatoparser%2Fffmpeg-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpotatoparser%2Fffmpeg-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpotatoparser%2Fffmpeg-cli/lists"}