{"id":19389000,"url":"https://github.com/lemutec/mediainfonet","last_synced_at":"2025-04-23T23:31:59.417Z","repository":{"id":61959994,"uuid":"556517171","full_name":"lemutec/MediaInfoNet","owner":"lemutec","description":"The MediaInfoLib .NET Wrapper for Windows.","archived":false,"fork":false,"pushed_at":"2024-12-28T02:31:07.000Z","size":39593,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-02T22:33:08.508Z","etag":null,"topics":["mediainfo","mediainfodll","mediainfolib"],"latest_commit_sha":null,"homepage":"https://nuget.org/packages/MediaInfoDLL","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lemutec.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-24T02:06:08.000Z","updated_at":"2025-03-21T13:12:29.000Z","dependencies_parsed_at":"2024-04-29T09:27:27.676Z","dependency_job_id":"c3e800b0-ba5e-4f3b-bb00-ac5e7a8b5b46","html_url":"https://github.com/lemutec/MediaInfoNet","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"f7a1a27c39ad233ae415fda13db1cfc384b4b55f"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemutec%2FMediaInfoNet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemutec%2FMediaInfoNet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemutec%2FMediaInfoNet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemutec%2FMediaInfoNet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lemutec","download_url":"https://codeload.github.com/lemutec/MediaInfoNet/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250532177,"owners_count":21446133,"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":["mediainfo","mediainfodll","mediainfolib"],"created_at":"2024-11-10T10:14:21.158Z","updated_at":"2025-04-23T23:31:54.404Z","avatar_url":"https://github.com/lemutec.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![NuGet](https://img.shields.io/nuget/v/MediaInfoDLL.svg)](https://nuget.org/packages/MediaInfoDLL) [![Actions](https://github.com/lemutec/MediaInfoNet/actions/workflows/library.nuget.yml/badge.svg)](https://github.com/lemutec/MediaInfoNet/actions/workflows/library.nuget.yml) [![Platform](https://img.shields.io/badge/platform-Windows-blue?logo=windowsxp\u0026color=1E9BFA)](https://dotnet.microsoft.com/en-us/download/dotnet/latest/runtime)\n\n# MediaInfoNet\n\nMinimal MediaInfo .NET APIs wrapped from [MediaArea.net](https://mediaarea.net/en/MediaInfo/Download/Windows).\n\nSupport for Windows Vista, 7, 8, 10, 11 with x86, x64.\n\n## Usage\n\n1. Provide the Media Inform.\n\n```c#\nusing MediaInfoLib;\n\nusing MediaInfo lib = new();\nlib.Open(@\"C:\\media.mp4\");\nConsole.WriteLine(lib.Inform());\n```\n\nUseful options.\n\n```c#\nusing MediaInfoLib;\n\nusing MediaInfo lib = new();\nlib.Open(@\"C:\\media.mp4\");\nlib.Option(\"Complete\", \"1\"); // Set complete output.\nlib.Option(\"Inform\", Inform_Format.HTML.ToString()); // Set format to HTML.\nlib.Option(\"Language\", Language_ISO639.ChineseSimplified.ToIso639()); // Set language to Chinese.\nConsole.WriteLine(lib.Inform());\n```\n\n2. Check audio track exists.\n\n```C#\nusing MediaInfoLib;\n\nusing MediaInfo lib = new();\nbool hasAudio = lib.WithOpen(fileName).Count_Get(StreamKind.Audio) \u003e 0;\nConsole.WriteLine(hasAudio);\n```\n\n3. Get audio track parameter.\n\n```C#\nusing MediaInfoLib;\n\nusing MediaInfo lib = new();\nlib.Open(fileName);\n_ = double.TryParse(lib.Get(StreamKind.Audio, 0, \"BitRate\"), out double bitRate);\nConsole.WriteLine(bitRate);\n```\n\n## Examples\n\n1. [ConsoleDemo](https://github.com/lemutec/MediaInfoNet/tree/main/demo/ConsoleDemo) for Console Application.\n\n2. [WinFormsDemo](https://github.com/lemutec/MediaInfoNet/tree/main/demo/WinFormsDemo) for [WinForms](https://github.com/dotnet/winforms) Application.\n\n3. [VSEnc](https://github.com/lemutec/VSEnc) for [WPF](https://github.com/dotnet/wpf) Application.\n4. [LyricStudio](https://github.com/lemutec/LyricStudio) for [Avalonia](https://github.com/AvaloniaUI/Avalonia) Application.\n\n## References\n\nhttps://github.com/MediaArea/MediaInfoLib/blob/master/Source/MediaInfo/MediaInfo_Config.h\n\nhttps://github.com/MediaArea/MediaInfoLib/blob/master/Source/MediaInfo/File__Analyse_Automatic.h\n\nhttps://github.com/MediaArea/MediaInfo/tree/master/Source/Resource/Plugin/Language\n\nhttps://github.com/MediaArea/MediaInfo/blob/master/Source/Resource/Language.csv\n\n## License\n\nMediaInfoLib - https://github.com/MediaArea/MediaInfoLib\n\nCopyright (c) MediaArea.net SARL. All Rights Reserved.\n\nThis program is freeware under BSD-2-Clause license conditions.\n\nSee License.html for more information\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flemutec%2Fmediainfonet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flemutec%2Fmediainfonet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flemutec%2Fmediainfonet/lists"}