{"id":18338721,"url":"https://github.com/tableflip/video-dimensions","last_synced_at":"2025-04-09T20:35:47.921Z","repository":{"id":57250509,"uuid":"50921879","full_name":"tableflip/video-dimensions","owner":"tableflip","description":"A simple command line tool to find the width and height a video","archived":false,"fork":false,"pushed_at":"2016-02-02T13:48:50.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-16T08:16:47.881Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tableflip.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":"2016-02-02T13:20:25.000Z","updated_at":"2016-02-02T13:26:42.000Z","dependencies_parsed_at":"2022-08-24T16:51:41.164Z","dependency_job_id":null,"html_url":"https://github.com/tableflip/video-dimensions","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tableflip%2Fvideo-dimensions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tableflip%2Fvideo-dimensions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tableflip%2Fvideo-dimensions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tableflip%2Fvideo-dimensions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tableflip","download_url":"https://codeload.github.com/tableflip/video-dimensions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248108347,"owners_count":21049116,"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":[],"created_at":"2024-11-05T20:14:56.727Z","updated_at":"2025-04-09T20:35:47.896Z","avatar_url":"https://github.com/tableflip.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# video-dimensions\n\n**A simple command line tool to find the width and height a video**\n\n## Install\n\n```sh\nnpm install -g get-video-dimensions-cli\n```\n\nThis tool requires `ffprobe` to do the hard work, which is part of `ffmpeg`\n\nYou could:\n\n```sh\nbrew install ffmpeg\n```\n\nbut you can replace `brew` with your package manager of choice.\n\n## Usage\n\n```sh\nvideo-dimensions foo.mp4\n{\"name\":\"foo.mp4\",\"width\":690,\"height\":420}\n```\n\nOutput is json to make downstream parsing easier, for something like [`JSONstream`](https://github.com/dominictarr/JSONStream)\n\n**Find all the dimensions of videos in a directory**\n\n```\nfind . -name \"*.mp4\" -exec video-dimensions {} \\;\n```\n`find` is ace. The above will find all the files with the `.mp4` extension in the current directory `.`, and run video-dimensions on each one.\n\n`{}` is a placeholder for a single filename, and the `\\;` is used to tell `-exec` that that's the end of the command.\n\n## Credits\n\n- [`ffmpeg`](https://www.ffmpeg.org/) digs the info out of the videos and provides `ffprobe`\n- [`get-video-dimensions`](https://github.com/mgmtio/get-video-dimensions) - talks to `ffprobe` from node.\n\n\n---\n\nA [(╯°□°）╯︵TABLEFLIP](https://tableflip.io) side project.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftableflip%2Fvideo-dimensions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftableflip%2Fvideo-dimensions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftableflip%2Fvideo-dimensions/lists"}