{"id":21526354,"url":"https://github.com/scderox/video-metadata","last_synced_at":"2026-05-17T13:07:35.865Z","repository":{"id":61437159,"uuid":"551555648","full_name":"SCDerox/video-metadata","owner":"SCDerox","description":"Extract metadata from any video on your hard drive","archived":false,"fork":false,"pushed_at":"2023-07-18T07:43:54.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-08T13:04:58.801Z","etag":null,"topics":["metadata","nodejs","video","video-metadata"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SCDerox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"scderox","custom":["https://bunq.me/scderox","https://paypal.me/therealscderox"]}},"created_at":"2022-10-14T16:16:55.000Z","updated_at":"2022-10-14T17:30:05.000Z","dependencies_parsed_at":"2024-11-10T07:16:30.759Z","dependency_job_id":null,"html_url":"https://github.com/SCDerox/video-metadata","commit_stats":{"total_commits":12,"total_committers":2,"mean_commits":6.0,"dds":0.08333333333333337,"last_synced_commit":"f12a2f1e3679f92149dbfabf19cd6e4d7954e371"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SCDerox%2Fvideo-metadata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SCDerox%2Fvideo-metadata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SCDerox%2Fvideo-metadata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SCDerox%2Fvideo-metadata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SCDerox","download_url":"https://codeload.github.com/SCDerox/video-metadata/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244089399,"owners_count":20396246,"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":["metadata","nodejs","video","video-metadata"],"created_at":"2024-11-24T01:44:42.008Z","updated_at":"2026-05-17T13:07:30.818Z","avatar_url":"https://github.com/SCDerox.png","language":"TypeScript","funding_links":["https://github.com/sponsors/scderox","https://bunq.me/scderox","https://paypal.me/therealscderox"],"categories":[],"sub_categories":[],"readme":"# get-video-metadata\n\n\u003cp align=\"center\"\u003e\u003ca href=\"https://nodei.co/npm/get-video-metadata/\"\u003e\u003cimg alt=\"npm package stats\" src=\"https://nodei.co/npm/get-video-metadata.png\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp align=\"center\"\u003e\u003ca href=\"https://github.com/scderox/video-metadata?sponsor=1\"\u003e\u0026hearts; Sponsor\u003c/a\u003e or \u003ca href=\"https://github.com/SCDerox/video-metadata\"\u003e★ Star\u003c/a\u003e\u003c/p\u003e\n\nThis library uses [ffprobe](https://ffmpeg.org/ffprobe.html)-CLI-Tool to extract data (fps, aspect-ratio, size, duration,\n…) from any video on your hard drive.\n\n## Installation\n\n1. Install [ffmpeg](https://ffmpeg.org/download.html) (we only need ffprobe, ffprobe is included in ffmpeg). The library\n   will use the CMD-Library by default, unless the `FFPROBE_EXEC` environment variable is specified.\n2. Install get-video-metadata from NPM: `npm i --save get-video-metadata`\n3. Enjoy 🎉\n\n## Usage\n\n```javascript\nimport getVideoMetadata from \"get-video-metadata\";\n\ngetVideoMetadata('./test.mp4').then(console.log)\n/* Output: \n{\n  codec: {\n    name: 'h264',\n    longName: 'H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10',\n    type: 'video'\n  },\n  aspectRatio: '16:9',\n  width: '1280',\n  height: '720',\n  frameRate: 30,\n  bitRate: '2477866',\n  duration: '10.933333'\n}\n*/\n```\n\nNote: This also work with image files, but this library was designed for videos. Please also note that `code.type` will\nalways be \"video\", as this is the way we are telling ffprobe to parse the video.\n\n## Issues \u0026 Contributing\n\nFeel free to create issues / raise PRs in the [repository](https://github.com/SCDerox/video-metadata).\n\n## License\n\nThis program is free software. It comes without any warranty, to the extent permitted by applicable law. You can\nredistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as\npublished by Sam Hocevar. See http://www.wtfpl.net/ for more details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscderox%2Fvideo-metadata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscderox%2Fvideo-metadata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscderox%2Fvideo-metadata/lists"}