{"id":19670037,"url":"https://github.com/native-bindings/ffmpeg","last_synced_at":"2026-05-11T13:35:46.005Z","repository":{"id":71712595,"uuid":"402272840","full_name":"native-bindings/ffmpeg","owner":"native-bindings","description":null,"archived":false,"fork":false,"pushed_at":"2021-09-02T03:12:10.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-07T16:05:12.882Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","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/native-bindings.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-09-02T03:06:40.000Z","updated_at":"2023-11-13T13:03:17.000Z","dependencies_parsed_at":"2023-03-01T16:46:09.025Z","dependency_job_id":null,"html_url":"https://github.com/native-bindings/ffmpeg","commit_stats":null,"previous_names":["victorqueiroz/node-ffmpeg"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/native-bindings/ffmpeg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/native-bindings%2Fffmpeg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/native-bindings%2Fffmpeg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/native-bindings%2Fffmpeg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/native-bindings%2Fffmpeg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/native-bindings","download_url":"https://codeload.github.com/native-bindings/ffmpeg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/native-bindings%2Fffmpeg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32897219,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-11T17:03:48.030Z","updated_at":"2026-05-11T13:35:45.988Z","avatar_url":"https://github.com/native-bindings.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-ffmpeg\n\n### Installation\n\n```\nyarn add node-ffmpeg\n```\n\n### Usage\n\n```\nimport {\n    Codec,\n    CodecContext,\n    FormatContext,\n    constants,\n    Packet,\n    Frame,\n    getBytesPerSample,\n    CodecParameters,\n    Rational\n} from 'node-ffmpeg';\n\nconst enc = Codec.findEncoder(constants.AV_CODEC_ID_OPUS);\nconsole.log(enc);\n\nconst encCtx = new CodecContext(enc);\nencCtx.parametersToContext(new CodecParameters({\n    codecId: constants.AV_CODEC_ID_OPUS,\n    channels: 1,\n    channelLayout: constants.AV_CH_LAYOUT_MONO,\n    sampleRate: 48000,\n    bitRate: 20000,\n    codecType: constants.AVMEDIA_TYPE_AUDIO,\n    format: sampleFormat\n}));\nencCtx.open(enc);\n\nconsole.log(encCtx.frameSize() === 960)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnative-bindings%2Fffmpeg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnative-bindings%2Fffmpeg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnative-bindings%2Fffmpeg/lists"}