{"id":17676596,"url":"https://github.com/trossr32/ps-video-resolution","last_synced_at":"2025-04-17T05:56:59.880Z","repository":{"id":91119437,"uuid":"242584597","full_name":"trossr32/ps-video-resolution","owner":"trossr32","description":"A Powershell module that probes video files for their resolution and output results to host and optionally to log files.","archived":false,"fork":false,"pushed_at":"2024-01-02T09:39:53.000Z","size":620,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-29T06:04:06.954Z","etag":null,"topics":["ffmpeg","ffprobe","powershell","powershell-module","powershell-modules","resolution","video"],"latest_commit_sha":null,"homepage":"https://powershellgallery.com/packages/VideoResolution","language":"PowerShell","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/trossr32.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-23T20:20:06.000Z","updated_at":"2024-06-12T00:28:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"24ae4093-7fd4-48e4-97f4-f0333deb762f","html_url":"https://github.com/trossr32/ps-video-resolution","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trossr32%2Fps-video-resolution","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trossr32%2Fps-video-resolution/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trossr32%2Fps-video-resolution/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trossr32%2Fps-video-resolution/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trossr32","download_url":"https://codeload.github.com/trossr32/ps-video-resolution/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249319201,"owners_count":21250496,"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","ffprobe","powershell","powershell-module","powershell-modules","resolution","video"],"created_at":"2024-10-24T07:26:07.997Z","updated_at":"2025-04-17T05:56:59.487Z","avatar_url":"https://github.com/trossr32.png","language":"PowerShell","funding_links":["https://ko-fi.com/K3K22CEIT'"],"categories":[],"sub_categories":[],"readme":"# VideoResolution\n\n[![PowerShell Gallery Version](https://img.shields.io/powershellgallery/v/VideoResolution?label=VideoResolution\u0026logo=powershell\u0026style=plastic)](https://www.powershellgallery.com/packages/VideoResolution)\n[![PowerShell Gallery](https://img.shields.io/powershellgallery/dt/VideoResolution?style=plastic)](https://www.powershellgallery.com/packages/VideoResolution)\n\nA Powershell module that probes video files for their resolution and output results to host and optionally to log files.\n\nAvailable in the [Powershell Gallery](https://www.powershellgallery.com/packages/VideoResolution)\n\n## Description\nUses ffmpeg (ffprobe) to interrogate video files and retrieve the resolution and file size. ffmpeg must be installed.\n\n\u003e [!NOTE]\n\u003e ffmpeg must be installed for this module to work. It can be installed using [chocolatey](https://chocolatey.org/packages/ffmpeg) or [scoop](https://scoop.sh/) or downloaded from [ffmpeg.org](https://ffmpeg.org/download.html).\n\nCan be run against: \n\n* all files in an input directory supplied as an `-InputDirectory` parameter.\n* a file using the `-File` parameter. This can be a file name in the current directory, a relative path, a full path, or a file name used in conjunction with the `-InputDirectory` parameter.\n* a collection of files piped into the module (note: this expects correct paths and won't use the `-InputDirectory` parameter).\n\nIf there is more than one result the module outputs the results to the host in 2 ordered lists, firstly by resolution and secondly by file name.\n\nResults can also be output to log and json files if an `-OutputDirectory` parameter is supplied.\nA text log file is created that is a duplicate of the results written to the host.\nA json file is created with an array representation of the `VideoInfo` class.\n\nAlternatively return results as json using the `-Json` parameter, or as an object using the `-PSObject` parameter.\n\n## Installation\n\n```powershell\nInstall-Module VideoResolution\n```\n\n## Parameters\n\n#### `-InputDirectory`\n*Optional*. If supplied this is the path used to find video files to process. If used in conjunction with the File\nparameter then this path will be joined to the file provided.\n\n#### `-OutputDirectory`\n*Optional*. If supplied this is the path used to write text and json data files.\n\n#### `-File`\n*Optional*. If supplied, this file will be processed. Must be a file in the current directory, a relative path, a full\npath, or a filename used in conjunction with the InputDirectory parameter.\n\n#### `-Files`\n*Optional*. Accepted as piped input. If supplied, all files in this string array will be processed. Each file must be\nin the current directory, a relative path, or a full path. Will be ignored if used in conjunction with the\nInputDirectory parameter.\n\n#### `-Recursive`\n*Optional*. If supplied along with an input directory, all sub-directories will also be searched for video files.\n\n#### `-Json`\n*Optional*. If supplied json will be returned instead of the standard output.\n\n#### `-PSObject`\n*Optional*. If supplied a PsObject will be returned instead of the standard output.\n\n## Examples\n\nProcess the supplied file using the current directory\n\n```powershell\nPS C:\\Videos\\\u003e Get-VideoResolution -File \"ExampleFile.mkv\"\n```\n\nAll files in the supplied input directory, writing json and log files to the supplied output directory.\n\n```powershell\nPS C:\\\u003e Get-VideoResolution -InputDirectory \"C:\\Videos\" -OutputDirectory \"C:\\Videos\\Logs\"\n```\n\nProcess the supplied file using the supplied input directory\n\n```powershell\nPS C:\\Videos\\\u003e Get-VideoResolution -File \"ExampleFile.mkv\" -InputDirectory \"C:\\Videos\"\n```\n\nProcess the supplied file with path\n\n```powershell\nPS C:\\Videos\\\u003e Get-VideoResolution -File \"C:\\Videos\\ExampleFile.mkv\"\n```\n\nProcess the supplied file and return json\n\n```powershell\nPS C:\\Videos\\\u003e Get-VideoResolution -File \"C:\\Videos\\ExampleFile.mkv\" -Json\n```\n\nProcess the supplied file and return a PSObject\n\n```powershell\nPS C:\\Videos\\\u003e Get-VideoResolution -File \"C:\\Videos\\ExampleFile.mkv\" -PSObject\n```\n\nProcess the piped files array, writing json and log files to the supplied output directory.\n\n```powershell\nPS C:\\\u003e \"C:\\Videos\\ExampleFile1.mkv\",\"C:\\Videos\\ExampleFile2.mkv\" | Get-VideoResolution -OutputDirectory \"C:\\Videos\\Logs\"\n```\n\n## Contribute\n\nPlease raise an issue if you find a bug or want to request a new feature, or create a pull request to contribute.\n\n\u003ca href='https://ko-fi.com/K3K22CEIT' target='_blank'\u003e\u003cimg height='36' style='border:0px;height:36px;' src='https://cdn.ko-fi.com/cdn/kofi4.png?v=2' border='0' alt='Buy Me a Coffee at ko-fi.com' /\u003e\u003c/a\u003e\n\n## Credit\n\n- [ffmpeg](https://ffmpeg.org/)\n- [Xabe.FFmpeg](https://ffmpeg.xabe.net/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrossr32%2Fps-video-resolution","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrossr32%2Fps-video-resolution","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrossr32%2Fps-video-resolution/lists"}