{"id":214,"date":"2025-12-17T05:17:18","date_gmt":"2025-12-17T05:17:18","guid":{"rendered":"https:\/\/www.starluo.top\/?p=214"},"modified":"2025-12-17T05:18:06","modified_gmt":"2025-12-17T05:18:06","slug":"%e7%b4%a0%e6%9d%90%e7%ae%a1%e7%90%86%e5%b7%a5%e5%85%b7-%e8%a7%86%e9%a2%91%e6%89%b9%e9%87%8f%e5%88%86%e6%9e%90%e8%84%9a%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/www.starluo.top\/?p=214","title":{"rendered":"\u7d20\u6750\u7ba1\u7406\u5de5\u5177-\u89c6\u9891\u6279\u91cf\u5206\u6790\u811a\u672c"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u80cc\u666f\u4e0e\u9700\u6c42<\/h2>\n\n\n\n<p>\u5927\u9879\u76ee\u7684\u7d20\u6750\u7ba1\u7406\u5f80\u5f80\u4ee4\u4eba\u5934\u75bc\uff0c\u9010\u4e2a\u67e5\u770b\u89c6\u9891\u89c4\u683c\u3001\u7b5b\u51fa\u4e0d\u7b26\u5408\u8981\u6c42\u7684\u7a3f\u4ef6\u6781\u5176\u8d39\u65f6\u3002\u4e8e\u662f\uff0c\u6211\u548cDeepseek\u5520\u55d1\u4e00\u4e0a\u5348\uff0c\u7a0d\u52a0\u4fee\u6539\u5e76\u6d4b\u8bd5\u540e\uff0c\u7ed9\u51fa\u4e86\u4e00\u4e2a\u53ef\u80fd\u7684\u89e3\u51b3\u65b9\u6848\u2014\u2014\u57fa\u4e8ePowershell\u7684\u89c6\u9891\u6279\u91cf\u5206\u6790\u811a\u672c\u3002<\/p>\n\n\n\n<p>\u5206\u6790\u89c6\u9891\u89c4\u683c\u65f6\uff0c\u6211\u66f4\u52a0\u5173\u5fc3\u89c6\u9891\u753b\u9762\u3002\u4e3b\u8981\u5173\u6ce8\u70b9\u67093\u4e2a\uff1a<strong>\u5206\u8fa8\u7387\u3001\u5e27\u7387\u3001\u8272\u5f69\u7a7a\u95f4<\/strong>\u3002\u8003\u8651\u9879\u76ee\u5b9e\u9645\uff0c\u6211\u5c06\u7d20\u6750\u5212\u5206\u6210\u4ee5\u4e0b\u4e09\u4e2a\u7ea7\u522b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>\u7ea7\u522b<\/td><td>\u5206\u8fa8\u7387<\/td><td>\u5e27\u7387<\/td><td>\u8272\u5f69\u7a7a\u95f4<\/td><\/tr><tr><td><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">\u9700\u8981\u5904\u7406<\/mark><\/td><td>&lt;1080P<\/td><td>&lt;28fps<\/td><td>\u975e\u6807\u51c6SDR<\/td><\/tr><tr><td><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-amber-color\">\u5efa\u8bae\u4f18\u5316<\/mark><\/td><td>1080P<\/td><td>\u224830fps<\/td><td>-<\/td><\/tr><tr><td><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">\u9ad8\u8d28\u91cf<\/mark><\/td><td>4K<\/td><td>\u224860fps<\/td><td>SDR<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>*\u6839\u636e\u9879\u76ee\u9700\u6c42\uff0c\u6211\u5c06<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">HDR\u683c\u5f0f\u89c6\u9891<\/mark>\u5355\u72ec\u5206\u4e3a\u4e86\u4e00\u4e2a\u7ea7\u522b\u3002<\/p>\n\n\n\n<p>\u800c\u529f\u80fd\u9700\u6c42\u67092\u4e2a\uff1a<strong>\u67e5\u770b\u89c4\u683c\u53c2\u6570\u3001\u7f8e\u89c2\u62a5\u544a\u8f93\u51fa<\/strong>\u3002<\/p>\n\n\n\n<p>Deepseek\u6700\u7ec8\u7ed9\u51fa\u4e86Powershell+ffprobe+html\u8f93\u51fa\u7684\u65b9\u6848\u3002\u5728\u6b64\uff0c\u9644\u4e0a\u811a\u672c\u53ca\u4f7f\u7528\u65b9\u6cd5\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u73af\u5883\u51c6\u5907<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5b89\u88c5FFmpeg\uff0c\u5e76\u5c06ffprobe\u5305\u542b\u5728\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u4e2d<\/li>\n\n\n\n<li>\u5141\u8bb8\u8fd0\u884c\u811a\u672c\u7684Powershell<\/li>\n\n\n\n<li>\u4e00\u4e2a\u73b0\u4ee3\u6d4f\u89c8\u5668\uff08\u7528\u4e8e\u67e5\u770b\u5206\u6790\u62a5\u544a\uff09<\/li>\n<\/ul>\n\n\n\n<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cWindows \u51fa\u4e8e\u5b89\u5168\u8003\u8651\u4f1a\u963b\u6b62Powershell\u811a\u672c\u8fd0\u884c\u3002\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884cPowershell\uff0c\u5e76\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u66f4\u6539\u6267\u884c\u7b56\u7565\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u4f7f\u7528\u65b9\u6cd5<\/h2>\n\n\n\n<p>\u5c06\u6587\u672b\u7684\u811a\u672c\u590d\u5236\u5e76\u4fdd\u5b58\u4e3avideo-analyzer.ps1\u540e\u5373\u53ef\u4f7f\u7528\u3002<\/p>\n\n\n\n<p>\ud83d\udcd6 \u7528\u6cd5\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  .\\video-analyzer.ps1 &#91;-Path &lt;\u8def\u5f84>] &#91;-OutputFile &lt;\u6587\u4ef6\u540d\u524d\u7f00>] &#91;-NoCopyButtons] &#91;-Help]<\/code><\/pre>\n\n\n\n<p>\ud83d\udccb \u53c2\u6570\u8bf4\u660e\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  -Path &lt;\u8def\u5f84>         \u8981\u5206\u6790\u7684\u76ee\u5f55\u8def\u5f84 (\u9ed8\u8ba4: \u5f53\u524d\u76ee\u5f55)\n  -OutputFile &lt;\u524d\u7f00>   \u8f93\u51faHTML\u6587\u4ef6\u7684\u524d\u7f00 (\u53ef\u9009)\n  -NoCopyButtons       \u7981\u7528\u590d\u5236\u6309\u94ae\u529f\u80fd\n  -Help                \u663e\u793a\u6b64\u5e2e\u52a9\u4fe1\u606f<\/code><\/pre>\n\n\n\n<p>\ud83d\udcdd \u793a\u4f8b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  .\\video-analyzer.ps1 # \u5206\u6790\u5f53\u524d\u76ee\u5f55\u53ca\u5176\u5b50\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u89c6\u9891\u6587\u4ef6\n  .\\video-analyzer.ps1 -Path \"D:\\Movies\" # \u5206\u6790D:\\Movies\u53ca\u5176\u5b50\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u89c6\u9891\u6587\u4ef6\n  .\\video-analyzer.ps1 -OutputFile \"MyVideoAnalysis\" # \u7ed9\u8f93\u51fa\u6587\u4ef6\u6dfb\u52a0\u524d\u7f00MyVideoAnalysis\n  .\\video-analyzer.ps1 -NoCopyButtons # \u7981\u7528\u590d\u5236\u6309\u94ae\u529f\u80fd<\/code><\/pre>\n\n\n\n<p>\u5bf9<strong>\u201c\u7981\u7528\u590d\u5236\u6309\u94ae\u529f\u80fd\u201d<\/strong>\u4f5c\u4e00\u4e2a\u5c0f\u89e3\u91ca\uff1a\u8f93\u51fa\u7684\u62a5\u544a\u6587\u4ef6\u4e3ahtml\u3002\u7528\u6d4f\u89c8\u5668\u6253\u5f00\u8be5\u9875\u9762\u540e\uff0c\u70b9\u51fb\u9875\u9762\u4e0a\u663e\u793a\u7684<strong>\u6587\u4ef6\u8def\u5f84\/\u6587\u4ef6\u540d<\/strong>\u53ef\u4ee5\u5c06\u6587\u672c<strong>\u7c98\u8d34\u5230\u526a\u8d34\u677f<\/strong>\uff0c\u7528\u4ee5\u5feb\u901f\u5b9a\u4f4d\u89c6\u9891\u6587\u4ef6\u3002<strong>\u201c\u7981\u7528\u590d\u5236\u6309\u94ae\u529f\u80fd\u201d<\/strong>\u542f\u7528\u540e\uff0c\u8be5\u529f\u80fd\u5373\u5931\u6548\u3002<\/p>\n\n\n\n<p><s>\uff08Deepseek\u5199\u7684\u8fd9\u4e2a\u529f\u80fd\u592a\u9e21\u808b\u4e86\uff0c\u61d2\u5f97\u5220\u9664\uff0c\u80fd\u8dd1\u5c31\u884c\uff09<\/s><\/p>\n\n\n\n<p>\u811a\u672c\u4f1a\u5728\u8fd0\u884c\u5b8c\u6bd5\u540e\uff0c\u4e8e<strong>\u5de5\u4f5c\u76ee\u5f55<\/strong>\u4e0b\u751f\u6210\u4e00\u4e2ahtml\u6587\u4ef6\uff0c\u6587\u4ef6\u540d\u683c\u5f0f\u4e3a\u201c[\u6700\u5185\u5c42\u5b50\u6587\u4ef6\u5939\u540d]-[\u65f6\u95f4\u6233].html\u201d\u3002\u811a\u672c\u4f1a\u81ea\u52a8\u6253\u5f00\u8be5html\u6587\u4ef6\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e00\u4e9b\u5c0f\u95ee\u9898<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u811a\u672c\u8bfb\u53d6\u7684\u4fe1\u606f<strong>\u4e0d\u4e00\u5b9a\u5b8c\u5168\u51c6\u786e<\/strong>\uff0c\u6545\u4ec5\u4f9b\u53c2\u8003\u3002<s>\uff08\u4e0d\u77e5\u9053\u662f\u811a\u672c\u7684\u9505\u8fd8\u662fffprobe\u7684\u9505\uff09<\/s><\/li>\n\n\n\n<li>\u811a\u672c\u4e0d\u80fd\u5206\u6790\u51faLog\u89c6\u9891\/Raw\u89c6\u9891\u7b49\u7279\u5b9a\u683c\u5f0f\uff0c\u53ea\u80fd\u63d0\u4f9b\u57fa\u4e8e\u4f20\u8f93\u7279\u6027\u3001\u8272\u57df\u3001\u8272\u5f69\u7a7a\u95f4\u7b49\u53c2\u6570\u7684\u5206\u6790\u3002<\/li>\n<\/ol>\n\n\n\n<p>Enjoy it! \u6b22\u8fce\u6839\u636e\u81ea\u8eab\u9879\u76ee\u9700\u6c42\u8fdb\u884c\u6539\u7f16~<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u811a\u672c\u6e90\u4ee3\u7801<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code># \u89c6\u9891\u6279\u91cf\u5206\u6790\u811a\u672c v5.2 - \u4fee\u6539\u8d85\u94fe\u63a5\u4e3a\u590d\u5236\u6587\u672c\u529f\u80fd\n# \u9700\u8981\u5148\u5b89\u88c5FFmpeg\u5e76\u786e\u4fddffprobe\u5728\u7cfb\u7edf\u8def\u5f84\u4e2d\n\n&#91;CmdletBinding()]\nparam(\n    &#91;Parameter(Position=0)]\n    &#91;string]$Path = \".\",\n\n    &#91;string]$OutputFile,\n\n    &#91;switch]$NoCopyButtons = $false,\n\n    &#91;switch]$Help\n)\n\n# \u663e\u793a\u5e2e\u52a9\u4fe1\u606f\nfunction Show-Help {\n    Write-Host @\"\n\ud83c\udfac \u89c6\u9891\u6279\u91cf\u5206\u6790\u811a\u672c v5.2\n\n\ud83d\udcd6 \u7528\u6cd5:\n  .\\video-analyzer.ps1 &#91;-Path &lt;\u8def\u5f84>] &#91;-OutputFile &lt;\u6587\u4ef6\u540d\u524d\u7f00>] &#91;-NoCopyButtons] &#91;-Help]\n\n\ud83d\udccb \u53c2\u6570\u8bf4\u660e:\n  -Path &lt;\u8def\u5f84>         \u8981\u5206\u6790\u7684\u76ee\u5f55\u8def\u5f84 (\u9ed8\u8ba4: \u5f53\u524d\u76ee\u5f55)\n  -OutputFile &lt;\u524d\u7f00>   \u8f93\u51faHTML\u6587\u4ef6\u7684\u524d\u7f00 (\u53ef\u9009)\n  -NoCopyButtons       \u7981\u7528\u590d\u5236\u6309\u94ae\u529f\u80fd\n  -Help                \u663e\u793a\u6b64\u5e2e\u52a9\u4fe1\u606f\n\n\ud83d\udcca \u8f93\u51fa\u8bf4\u660e:\n  - \u811a\u672c\u4f1a\u81ea\u52a8\u751f\u6210HTML\u683c\u5f0f\u7684\u5206\u6790\u62a5\u544a\n  - HTML\u6587\u4ef6\u540d\u683c\u5f0f: &#91;\u6700\u5185\u5c42\u6587\u4ef6\u5939\u540d-\u65f6\u95f4\u6233].html\n  - \u5982\u679c\u6307\u5b9a\u4e86OutputFile\u53c2\u6570\uff0c\u5219\u4f7f\u7528\u6307\u5b9a\u540d\u79f0\n  - \u70b9\u51fb\u76ee\u5f55\/\u6587\u4ef6\u540d\u53ef\u590d\u5236\u5b8c\u6574\u8def\u5f84\u5230\u526a\u8d34\u677f\n\n\ud83c\udfaf \u989c\u8272\u7f16\u7801:\n  \ud83d\udfe5 \u7ea2\u8272: \u9700\u8981\u4f18\u5148\u5904\u7406\u7684\u95ee\u9898\n  \ud83d\udfe8 \u9ec4\u8272: \u6807\u51c6\u8d28\u91cf\uff0c\u5efa\u8bae\u4f18\u5316\n  \ud83d\udfe9 \u7eff\u8272: \u9ad8\u8d28\u91cf\uff0c\u7b26\u5408\u6807\u51c6\n  \ud83d\udfe6 \u84dd\u8272: HDR\u683c\u5f0f\u89c6\u9891\n  \u26aa \u767d\u8272: SDR\u683c\u5f0f\u89c6\u9891\n\n\ud83d\udcdd \u793a\u4f8b:\n  .\\video-analyzer.ps1\n  .\\video-analyzer.ps1 -Path \"D:\\Movies\"\n  .\\video-analyzer.ps1 -OutputFile \"MyVideoAnalysis\"\n  .\\video-analyzer.ps1 -NoCopyButtons\n\n\ud83d\udd27 \u7cfb\u7edf\u8981\u6c42:\n  - Windows PowerShell 5.1 \u6216\u66f4\u9ad8\u7248\u672c\n  - \u5df2\u5b89\u88c5FFmpeg\u5e76\u6dfb\u52a0\u5230\u7cfb\u7edfPATH\n\n\ud83d\udcc4 \u8f93\u51fa\u6587\u4ef6:\n  \u811a\u672c\u4f1a\u751f\u6210\u4e00\u4e2aHTML\u683c\u5f0f\u7684\u62a5\u544a\uff0c\u5305\u542b:\n  - \u89c6\u9891\u6587\u4ef6\u8be6\u7ec6\u5206\u6790\u8868\u683c\n  - \u7edf\u8ba1\u56fe\u8868\u548c\u5206\u5e03\u60c5\u51b5\n  - \u70b9\u51fb\u590d\u5236\u5b8c\u6574\u8def\u5f84\u529f\u80fd\n  - \u989c\u8272\u7f16\u7801\u7684\u95ee\u9898\u5206\u7c7b\n\n\"@\n    exit 0\n}\n\n# \u5982\u679c\u8bf7\u6c42\u5e2e\u52a9\uff0c\u663e\u793a\u5e2e\u52a9\u4fe1\u606f\nif ($Help) {\n    Show-Help\n}\n\n# \u68c0\u67e5\u662f\u5426\u5b89\u88c5\u4e86ffprobe\nif (-not (Get-Command ffprobe -ErrorAction SilentlyContinue)) {\n    Write-Host \"\u9519\u8bef: \u8bf7\u5148\u5b89\u88c5FFmpeg\u5e76\u786e\u4fddffprobe\u5728\u7cfb\u7edf\u8def\u5f84\u4e2d\" -ForegroundColor Red\n    Write-Host \"\u53ef\u4ee5\u4ece https:\/\/ffmpeg.org\/download.html \u4e0b\u8f7d\" -ForegroundColor Yellow\n    Write-Host \"\u4f7f\u7528 -Help \u53c2\u6570\u67e5\u770b\u4f7f\u7528\u8bf4\u660e\" -ForegroundColor Cyan\n    exit 1\n}\n\n# \u652f\u6301\u7684\u89c6\u9891\u6587\u4ef6\u6269\u5c55\u540d\n$videoExtensions = @('.mp4', '.avi', '.mkv', '.mov', '.wmv', '.flv', '.webm', '.m4v', '.mpg', '.mpeg', '.ts', '.mts', '.m2ts', '.hevc', '.h264', '.264', '.265', '.hevc', '.rmvb', '.rm', '.3gp', '.f4v', '.m2v', '.m4v', '.mp2', '.mpe', '.mpv', '.ogv', '.qt', '.vob')\n\nfunction Get-AbsolutePath {\n    param(\n        &#91;Parameter(Mandatory=$true, Position=0)]\n        &#91;string]$Path,\n        \n        &#91;Parameter(Position=1)]\n        &#91;string]$BasePath = (Get-Location).Path\n    )\n    \n    # \u5982\u679c\u8f93\u5165\u7684\u8def\u5f84\u5df2\u7ecf\u662f\u7edd\u5bf9\u8def\u5f84\uff0c\u76f4\u63a5\u8fd4\u56de\n    if (&#91;System.IO.Path]::IsPathRooted($Path)) {\n        return $Path\n    }\n    \n    # \u5c06\u76f8\u5bf9\u8def\u5f84\u8f6c\u6362\u4e3a\u7edd\u5bf9\u8def\u5f84\n    return &#91;System.IO.Path]::GetFullPath(&#91;System.IO.Path]::Combine($BasePath, $Path))\n}\n\n# \u51fd\u6570\uff1a\u83b7\u53d6\u6700\u5185\u5c42\u6587\u4ef6\u5939\u540d\nfunction Get-InnermostFolderName {\n    param(&#91;string]$Path)\n    \n    # \u89c4\u8303\u5316\u8def\u5f84\n    $fullPath = $Path\n\n    # \u5982\u679c\u8def\u5f84\u662f\u6587\u4ef6\uff0c\u83b7\u53d6\u5176\u76ee\u5f55\n    if (Test-Path -Path $fullPath -PathType Leaf) {\n        $fullPath = &#91;System.IO.Path]::GetDirectoryName($fullPath)\n    }\n    \n    # \u5982\u679c\u8def\u5f84\u4e0d\u5b58\u5728\uff0c\u8fd4\u56de\u9ed8\u8ba4\u503c\n    if (-not (Test-Path -Path $fullPath)) {\n        return \"Unknown\"\n    }\n\n    # \u83b7\u53d6\u8def\u5f84\u7684\u6700\u540e\u4e00\u90e8\u5206\n    $folderName = &#91;System.IO.Path]::GetFileName($fullPath)\n    \n    # \u5982\u679c\u662f\u6839\u76ee\u5f55\u6216\u4e3a\u7a7a\uff0c\u4f7f\u7528\u7236\u76ee\u5f55\u540d\u6216\u9a71\u52a8\u5668\u540d\n    if (&#91;string]::IsNullOrEmpty($folderName)) {\n        # \u5982\u679c\u662f\u6839\u76ee\u5f55\uff0c\u5982 C:\\\n        $drive = &#91;System.IO.Path]::GetPathRoot($fullPath).TrimEnd('\\')\n        if (-not &#91;string]::IsNullOrEmpty($drive)) {\n            $folderName = $drive.Replace(':', '')\n        } else {\n            $folderName = \"Root\"\n        }\n    }\n    \n    # \u5982\u679c\u662f\u5f53\u524d\u76ee\u5f55\u7684\u7279\u6b8a\u8868\u793a\n    if ($folderName -eq \".\" -or $folderName -eq \"..\") {\n        $currentDir = &#91;System.IO.Path]::GetFileName((Get-Location).Path)\n        if (-not &#91;string]::IsNullOrEmpty($currentDir)) {\n            $folderName = $currentDir\n        } else {\n            $folderName = \"Current\"\n        }\n    }\n    \n    # \u6e05\u7406\u6587\u4ef6\u5939\u540d\u4e2d\u7684\u975e\u6cd5\u5b57\u7b26\n    $invalidChars = &#91;System.IO.Path]::GetInvalidFileNameChars()\n    foreach ($char in $invalidChars) {\n        $folderName = $folderName.Replace($char, '-')\n    }\n    \n    return $folderName\n}\n\n# \u83b7\u53d6\u811a\u672c\u5f00\u59cb\u65f6\u95f4\n$startTime = Get-Date\n$timestamp = $startTime.ToString(\"yyyyMMdd-HHmmss\")\n\n$Path = Get-AbsolutePath -Path $Path -BasePath $PWD.Path\n\n# \u751f\u6210\u8f93\u51fa\u6587\u4ef6\u540d\nif (&#91;string]::IsNullOrEmpty($OutputFile)) {\n    $folderName = Get-InnermostFolderName -Path $Path\n    $OutputFile = \"${folderName}-${timestamp}\"\n} else {\n    # \u786e\u4fdd\u8f93\u51fa\u6587\u4ef6\u540d\u6ca1\u6709\u6269\u5c55\u540d\n    $OutputFile = &#91;System.IO.Path]::GetFileNameWithoutExtension($OutputFile)\n}\n\n# \u786e\u4fdd\u8f93\u51fa\u6587\u4ef6\u8def\u5f84\u5b8c\u6574\n$htmlFile = \"${OutputFile}.html\"\n\n# \u521d\u59cb\u5316\u8ba1\u6570\u5668\n$totalFiles = 0\n$lowResolutionCount = 0\n$goodResolutionCount = 0\n$excellentResolutionCount = 0\n$lowFramerateCount = 0\n$normalFramerateCount = 0\n$highFramerateCount = 0\n$hdrCount = 0\n$otherColorSpaceCount = 0\n\n# \u521b\u5efa\u7ed3\u679c\u6570\u7ec4\n$results = @()\n\nWrite-Host \"\ud83c\udfac \u89c6\u9891\u7b5b\u67e5\u811a\u672c v5.2\" -ForegroundColor Cyan\nWrite-Host (\"=\" * 60)\n\n# \u83b7\u53d6\u6240\u6709\u89c6\u9891\u6587\u4ef6\nWrite-Host \"\u6b63\u5728\u626b\u63cf\u89c6\u9891\u6587\u4ef6...\" -ForegroundColor Yellow\ntry {\n    $videoFiles = Get-ChildItem -Path $Path -Recurse -File -ErrorAction SilentlyContinue | \n        Where-Object { $videoExtensions -contains $_.Extension.ToLower() }\n    \n    $totalFiles = $videoFiles.Count\n    \n    if ($totalFiles -eq 0) {\n        Write-Host \"\u672a\u627e\u5230\u89c6\u9891\u6587\u4ef6\uff0c\u8bf7\u68c0\u67e5\u6587\u4ef6\u662f\u5426\u5b58\u5728\uff0c\u6216\u811a\u672c\u5de5\u4f5c\u76ee\u5f55\u3001\u76ee\u5f55\u53c2\u6570\u662f\u5426\u6b63\u786e\" -ForegroundColor Red\n        Write-Host \"\u652f\u6301\u7684\u683c\u5f0f: $($videoExtensions -join ', ')\" -ForegroundColor Gray\n        exit 1\n    }\n    \n    Write-Host \"\u627e\u5230 $totalFiles \u4e2a\u89c6\u9891\u6587\u4ef6\" -ForegroundColor Green\n} catch {\n    Write-Host \"\u9519\u8bef: \u65e0\u6cd5\u8bbf\u95ee\u8def\u5f84 '$Path'\" -ForegroundColor Red\n    Write-Host \"\u8bf7\u68c0\u67e5\u8def\u5f84\u662f\u5426\u6b63\u786e\uff0c\u6216\u60a8\u662f\u5426\u6709\u8bbf\u95ee\u6743\u9650\" -ForegroundColor Yellow\n    exit 1\n}\n\nWrite-Host \"\u5f00\u59cb\u5206\u6790\u89c6\u9891...\" -ForegroundColor Yellow\n\n# \u5904\u7406\u6bcf\u4e2a\u89c6\u9891\u6587\u4ef6\n$processedCount = 0\nforeach ($file in $videoFiles) {\n    $processedCount++\n    $percentComplete = &#91;math]::Round(($processedCount \/ $totalFiles) * 100, 1)\n    \n    # \u6bcf\u5904\u740610\u4e2a\u6587\u4ef6\u6216\u8fdb\u5ea6\u6709\u6574\u6570\u53d8\u5316\u65f6\u66f4\u65b0\u72b6\u6001\n    if ($processedCount % 10 -eq 0 -or &#91;math]::Round($percentComplete) -ne &#91;math]::Round(($processedCount - 1) \/ $totalFiles * 100)) {\n        Write-Progress -Activity \"\u5206\u6790\u89c6\u9891\u6587\u4ef6\" -Status \"\u8fdb\u5ea6: $processedCount\/$totalFiles ($percentComplete%)\" `\n            -PercentComplete $percentComplete -CurrentOperation \"\u6b63\u5728\u5904\u7406: $($file.Name)\"\n    }\n    \n    try {\n        # \u4f7f\u7528ffprobe\u83b7\u53d6\u89c6\u9891\u4fe1\u606f\n        $ffprobeOutput = &amp; ffprobe -v error -select_streams v:0 -show_entries stream=width,height,r_frame_rate,color_transfer,color_primaries,color_space,pix_fmt -of json $file.FullName 2>$null\n        \n        # \u89e3\u6790JSON\u8f93\u51fa\n        $videoInfo = $ffprobeOutput | ConvertFrom-Json\n        \n        if ($videoInfo.streams) {\n            $stream = $videoInfo.streams&#91;0]\n            \n            # \u83b7\u53d6\u5bbd\u5ea6\u548c\u9ad8\u5ea6\n            $width = &#91;int]$stream.width\n            $height = &#91;int]$stream.height\n            \n            # \u5904\u7406\u7ad6\u5c4f\u89c6\u9891\uff1a\u53d6\u8f83\u5927\u7684\u503c\u4f5c\u4e3a\u5bbd\n            $effectiveWidth = &#91;Math]::Max($width, $height)\n            $effectiveHeight = &#91;Math]::Min($width, $height)\n            \n            # \u5224\u65ad\u5206\u8fa8\u7387\n            $resolution = \"${width}x${height}\"\n            $resolutionStatus = \"\"\n            $resolutionColor = \"white\"\n            $resolutionCategory = \"\"\n            \n            if ($effectiveWidth -lt 1920 -or $effectiveHeight -lt 1080) {\n                $resolutionStatus = \"\u4f4e\u753b\u8d28(&lt;1080p)\"\n                $resolutionColor = \"red\"\n                $resolutionCategory = \"Low\"\n                $lowResolutionCount++\n            }\n            elseif ($effectiveWidth -ge 3840 -and $effectiveHeight -ge 2160) {\n                $resolutionStatus = \"4K \u2713\"\n                $resolutionColor = \"green\"\n                $resolutionCategory = \"4K\"\n                $excellentResolutionCount++\n            }\n            else {\n                $resolutionStatus = \"1080p\"\n                $resolutionColor = \"yellow\"\n                $resolutionCategory = \"1080p\"\n                $goodResolutionCount++\n            }\n            \n            # \u5224\u65ad\u5e27\u7387\n            $framerateText = $stream.r_frame_rate\n            $framerate = 0\n            if ($framerateText -match \"(\\d+)\/(\\d+)\") {\n                $num = &#91;double]$Matches&#91;1]\n                $den = &#91;double]$Matches&#91;2]\n                if ($den -ne 0) {\n                    $framerate = $num \/ $den\n                }\n            }\n            elseif (&#91;double]::TryParse($framerateText, &#91;ref]$framerate)) {\n                # \u5df2\u7ecf\u662f\u6570\u5b57\n            }\n            \n            $framerateStatus = \"\"\n            $framerateColor = \"white\"\n            $framerateDisplay = \"\"\n            $framerateCategory = \"\"\n            \n            if ($framerate -eq 0) {\n                $framerateDisplay = \"\u672a\u77e5\"\n                $framerateStatus = \"\u672a\u77e5\"\n                $framerateColor = \"gray\"\n                $framerateCategory = \"Unknown\"\n            }\n            elseif ($framerate -lt 28) {\n                $framerateDisplay = &#91;math]::Round($framerate, 1).ToString(\"0.0\") + \" fps\"\n                $framerateStatus = \"\u4f4e\u5e27\u7387\"\n                $framerateColor = \"red\"\n                $framerateCategory = \"Low\"\n                $lowFramerateCount++\n            }\n            elseif ($framerate -ge 55 -and $framerate -le 65) {\n                $framerateDisplay = \"60 fps\"\n                $framerateStatus = \"\u9ad8\u5e27\u7387 \u2713\"\n                $framerateColor = \"green\"\n                $framerateCategory = \"High\"\n                $highFramerateCount++\n            }\n            elseif (($framerate -ge 29 -and $framerate -le 31) -or \n                    ($framerate -ge 29.9 -and $framerate -le 30.1)) {\n                $framerateDisplay = \"30 fps\"\n                $framerateStatus = \"\u6807\u51c6\u5e27\u7387\"\n                $framerateColor = \"yellow\"\n                $framerateCategory = \"Normal\"\n                $normalFramerateCount++\n            }\n            else {\n                $framerateDisplay = &#91;math]::Round($framerate, 1).ToString(\"0.0\") + \" fps\"\n                $framerateStatus = $framerateDisplay\n                $framerateColor = \"white\"\n                $framerateCategory = \"Other\"\n            }\n            \n            # \u5224\u65ad\u8272\u5f69\u7a7a\u95f4 - \u6539\u4e3a\u8ffd\u52a0\u6027\u5199\u5165\n            $colorInfoArray = @()  # \u7528\u4e8e\u5b58\u50a8\u989c\u8272\u4fe1\u606f\u7684\u6570\u7ec4\n            $colorDisplayArray = @()  # \u7528\u4e8e\u5b58\u50a8\u663e\u793a\u4fe1\u606f\u7684\u6570\u7ec4\n            $colorSpaceColor = \"white\"\n            $colorCategory = \"SDR\"\n            $isHDR = $false\n            $isOtherColorSpace = $false\n            \n            # \u68c0\u67e5\u4f20\u8f93\u7279\u6027\n            if ($stream.color_transfer) {\n                switch ($stream.color_transfer) {\n                    \"smpte2084\" { \n                        $colorInfoArray += \"PQ (SMPTE 2084)\"\n                        $colorDisplayArray += \"HDR10\"\n                        $isHDR = $true\n                        $colorSpaceColor = \"blue\"\n                        $colorCategory = \"HDR\"\n                    }\n                    \"arib-std-b67\" { \n                        $colorInfoArray += \"HLG (ARIB STD-B67)\"\n                        $colorDisplayArray += \"HDR HLG\"\n                        $isHDR = $true\n                        $colorSpaceColor = \"blue\"\n                        $colorCategory = \"HDR\"\n                    }\n                    \"bt2020-10\" { \n                        $colorInfoArray += \"BT.2020-10bit\"\n                        $colorDisplayArray += \"HDR10\"\n                        $isHDR = $true\n                        $colorSpaceColor = \"blue\"\n                        $colorCategory = \"HDR\"\n                    }\n                    \"bt2020\" { \n                        $colorInfoArray += \"BT.2020\"\n                        $colorDisplayArray += \"\u5bbd\u8272\u57df\"\n                        $isOtherColorSpace = $true\n                        $colorSpaceColor = \"red\"\n                        $colorCategory = \"WideGamut\"\n                    }\n                    \"bt709\" { \n                        $colorInfoArray += \"Rec.709\"\n                        $colorCategory = \"SDR\"\n                    }\n                    \"smpte170m\" { \n                        $colorInfoArray += \"BT.601\"\n                        $colorCategory = \"SDR\"\n                    }\n                    \"gamma22\" { \n                        $colorInfoArray += \"Gamma 2.2\"\n                        $colorCategory = \"SDR\"\n                    }\n                    \"gamma28\" { \n                        $colorInfoArray += \"Gamma 2.8\"\n                        $colorCategory = \"SDR\"\n                    }\n                    default { \n                        $colorInfoArray += \"$($stream.color_transfer)\"\n                        $colorDisplayArray += \"\u975eSDR\"\n                        $isOtherColorSpace = $true\n                        $colorSpaceColor = \"red\"\n                        $colorCategory = \"Other\"\n                    }\n                }\n            }\n            \n            # \u68c0\u67e5\u8272\u5f69\u539f\u8272\uff08\u8272\u57df\uff09\n            if ($stream.color_primaries -and -not $isHDR) {\n                switch ($stream.color_primaries) {\n                    \"bt2020\" { \n                        if ($colorCategory -eq \"SDR\") {\n                            $colorInfoArray += \"BT.2020\u8272\u57df\"\n                            $colorDisplayArray += \"\u5bbd\u8272\u57df\"\n                            $isOtherColorSpace = $true\n                            $colorSpaceColor = \"red\"\n                            $colorCategory = \"WideGamut\"\n                        }\n                    }\n                    \"p3\" { \n                        $colorInfoArray += \"DCI-P3\u8272\u57df\"\n                        $colorDisplayArray += \"\u5e7f\u8272\u57df\"\n                        $isOtherColorSpace = $true\n                        $colorSpaceColor = \"red\"\n                        $colorCategory = \"WideGamut\"\n                    }\n                    default { \n                        if ($stream.color_primaries -notin @(\"bt709\", \"smpte170m\") -and $colorCategory -eq \"SDR\") {\n                            $colorInfoArray += \"$($stream.color_primaries)\u8272\u57df\"\n                            $colorDisplayArray += \"\u975e\u6807\u51c6\u8272\u57df\"\n                            $isOtherColorSpace = $true\n                            $colorSpaceColor = \"red\"\n                            $colorCategory = \"Other\"\n                        }\n                    }\n                }\n            }\n            \n            # \u68c0\u67e5\u8272\u5f69\u7a7a\u95f4\u53c2\u6570\n            if ($stream.color_space) {\n                switch ($stream.color_space) {\n                    \"bt2020nc\" { \n                        $colorInfoArray += \"BT.2020\u975e\u6052\u5b9a\u4eae\u5ea6\"\n                        $colorDisplayArray += \"BT.2020 NC\"\n                    }\n                    \"bt2020c\" { \n                        $colorInfoArray += \"BT.2020\u6052\u5b9a\u4eae\u5ea6\"\n                        $colorDisplayArray += \"BT.2020 CL\"\n                    }\n                    \"bt709\" { \n                        $colorInfoArray += \"BT.709\u8272\u5f69\u7a7a\u95f4\"\n                        $colorDisplayArray += \"Rec.709\"\n                    }\n                    default { \n                        $colorInfoArray += \"$($stream.color_space)\u8272\u5f69\u7a7a\u95f4\"\n                        $colorDisplayArray += \"$($stream.color_space)\"\n                    }\n                }\n            }\n            \n            # \u68c0\u67e5\u50cf\u7d20\u683c\u5f0f\n            if ($stream.pix_fmt -and -not $isHDR -and $colorCategory -eq \"SDR\") {\n                if ($stream.pix_fmt -match \"p10|p12\") {\n                    $colorInfoArray += \"10\/12-bit\u8272\u6df1: $($stream.pix_fmt)\"\n                    $colorDisplayArray += \"\u9ad8\u8272\u6df1\"\n                    $isOtherColorSpace = $true\n                    $colorSpaceColor = \"red\"\n                    $colorCategory = \"HighBitDepth\"\n                }\n                elseif ($stream.pix_fmt -match \"yuva\") {\n                    $colorInfoArray += \"\u5e26Alpha\u901a\u9053: $($stream.pix_fmt)\"\n                    $colorDisplayArray += \"\u5e26\u900f\u660e\u901a\u9053\"\n                    $isOtherColorSpace = $true\n                    $colorSpaceColor = \"red\"\n                    $colorCategory = \"Advanced\"\n                }\n                elseif ($stream.pix_fmt -match \"yuv444\") {\n                    $colorInfoArray += \"4:4:4\u8272\u5ea6\u62bd\u6837: $($stream.pix_fmt)\"\n                    $colorDisplayArray += \"4:4:4\u683c\u5f0f\"\n                    $isOtherColorSpace = $true\n                    $colorSpaceColor = \"red\"\n                    $colorCategory = \"Advanced\"\n                }\n                elseif ($stream.pix_fmt -match \"rgb|bgr\") {\n                    $colorInfoArray += \"RGB\u683c\u5f0f: $($stream.pix_fmt)\"\n                    $colorDisplayArray += \"RGB\u683c\u5f0f\"\n                    $isOtherColorSpace = $true\n                    $colorSpaceColor = \"red\"\n                    $colorCategory = \"Advanced\"\n                }\n                else {\n                    $colorInfoArray += \"\u50cf\u7d20\u683c\u5f0f: $($stream.pix_fmt)\"\n                    $colorDisplayArray += \"$($stream.pix_fmt)\"\n                }\n            }\n            \n            # \u5982\u679c\u6ca1\u6709\u68c0\u6d4b\u5230\u4efb\u4f55\u989c\u8272\u4fe1\u606f\uff0c\u6dfb\u52a0\u9ed8\u8ba4\u503c\n            if ($colorInfoArray.Count -eq 0) {\n                $colorInfoArray += \"SDR\"\n                $colorDisplayArray += \"SDR\"\n            }\n            \n            # \u5c06\u6570\u7ec4\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\uff0c\u7528\u9017\u53f7\u5206\u9694\n            $colorInfo = $colorInfoArray -join \", \"\n            $colorDisplay = $colorDisplayArray -join \", \"\n            \n            # \u66f4\u65b0\u8ba1\u6570\u5668\n            if ($isHDR) {\n                $colorSpaceColor = \"blue\"\n                $hdrCount++\n            }\n            if ($isOtherColorSpace) {\n                $otherColorSpaceCount++\n            }\n            \n            # \u663e\u793a\u9700\u8981\u8b66\u544a\u7684\u6587\u4ef6\n            # \u521b\u5efa\u7ed3\u679c\u5bf9\u8c61\n            $result = &#91;PSCustomObject]@{\n                Directory = $file.DirectoryName\n                FileName = $file.Name\n                FullPath = $file.FullName\n                Resolution = $resolution\n                ResolutionStatus = $resolutionStatus\n                ResolutionColor = $resolutionColor\n                ResolutionCategory = $resolutionCategory\n                Framerate = $framerateDisplay\n                FramerateStatus = $framerateStatus\n                FramerateColor = $framerateColor\n                FramerateCategory = $framerateCategory\n                ColorSpace = $colorDisplay\n                ColorInfo = $colorInfo\n                ColorSpaceColor = $colorSpaceColor\n                ColorCategory = $colorCategory\n            }\n                \n                $results += $result\n        }\n    }\n    catch {\n        # \u9759\u9ed8\u5904\u7406\u9519\u8bef\uff0c\u7ee7\u7eed\u5904\u7406\u4e0b\u4e00\u4e2a\u6587\u4ef6\n    }\n}\n\nWrite-Progress -Activity \"\u5206\u6790\u89c6\u9891\u6587\u4ef6\" -Completed\n\n# \u8ba1\u7b97\u5206\u6790\u65f6\u95f4\n$endTime = Get-Date\n$duration = $endTime - $startTime\n\n$sdrCount = $totalFiles - $hdrCount - $otherColorSpaceCount\n\n# \u663e\u793a\u7b80\u8981\u7edf\u8ba1\u4fe1\u606f\nWrite-Host \"`n\u5206\u6790\u5b8c\u6210!\" -ForegroundColor Green\nWrite-Host (\"=\" * 60)\nWrite-Host \"\ud83d\udcca \u7edf\u8ba1\u6982\u89c8:\" -ForegroundColor Cyan\nWrite-Host \"  &#91;\u5206\u8fa8\u7387]\"\nWrite-Host (\"  &lt;1080p:  {0,5} ({1:P1})\" -f $lowResolutionCount, ($lowResolutionCount \/ $totalFiles)) -ForegroundColor Red\nWrite-Host (\"  1080p:   {0,5} ({1:P1})\" -f $goodResolutionCount, ($goodResolutionCount \/ $totalFiles)) -ForegroundColor Yellow\nWrite-Host (\"  4K:      {0,5} ({1:P1})\" -f $excellentResolutionCount, ($excellentResolutionCount \/ $totalFiles)) -ForegroundColor Green\nWrite-Host \"  &#91;\u5e27\u7387]\"\nWrite-Host (\"  &lt;28fps:   {0,5} ({1:P1})\" -f $lowFramerateCount, ($lowFramerateCount \/ $totalFiles)) -ForegroundColor Red\nWrite-Host (\"  30fps:    {0,5} ({1:P1})\" -f $normalFramerateCount, ($normalFramerateCount \/ $totalFiles)) -ForegroundColor Yellow\nWrite-Host (\"  60fps:    {0,5} ({1:P1})\" -f $highFramerateCount, ($highFramerateCount \/ $totalFiles)) -ForegroundColor Green\nWrite-Host \"  &#91;\u8272\u5f69\u7a7a\u95f4]\"\nWrite-Host (\"  SDR:      {0,5} ({1:P1})\" -f $sdrCount, ($sdrCount \/ $totalFiles)) -ForegroundColor Green\nWrite-Host (\"  HDR:      {0,5} ({1:P1})\" -f $hdrCount, ($hdrCount \/ $totalFiles)) -ForegroundColor Blue\nWrite-Host (\"  \u5176\u4ed6:     {0,5} ({1:P1})\" -f $otherColorSpaceCount, ($otherColorSpaceCount \/ $totalFiles)) -ForegroundColor Red\nWrite-Host (\"`n  \u5206\u6790\u7528\u65f6: {0:mm}\u5206{0:ss}\u79d2\" -f $duration) -ForegroundColor Cyan\n\n# \u5982\u679c\u6ca1\u6709\u627e\u5230\u9700\u8981\u8b66\u544a\u7684\u6587\u4ef6\nif ($results.Count -eq 0) {\n    Write-Host \"`n\u2705 \u606d\u559c! \u6ca1\u6709\u53d1\u73b0\u9700\u8981\u8b66\u544a\u7684\u89c6\u9891\u6587\u4ef6\u3002\" -ForegroundColor Green\n    exit 0\n}\n\n# \u751f\u6210HTML\u62a5\u544a\nWrite-Host \"`n\u6b63\u5728\u751f\u6210HTML\u62a5\u544a...\" -ForegroundColor Yellow\n\n# \u8ba1\u7b97\u767e\u5206\u6bd4\n$lowResolutionPercent = if ($totalFiles -gt 0) { &#91;math]::Round($lowResolutionCount \/ $totalFiles * 100, 1) } else { 0 }\n$goodResolutionPercent = if ($totalFiles -gt 0) { &#91;math]::Round($goodResolutionCount \/ $totalFiles * 100, 1) } else { 0 }\n$excellentResolutionPercent = if ($totalFiles -gt 0) { &#91;math]::Round($excellentResolutionCount \/ $totalFiles * 100, 1) } else { 0 }\n$lowFrameratePercent = if ($totalFiles -gt 0) { &#91;math]::Round($lowFramerateCount \/ $totalFiles * 100, 1) } else { 0 }\n$normalFrameratePercent = if ($totalFiles -gt 0) { &#91;math]::Round($normalFramerateCount \/ $totalFiles * 100, 1) } else { 0 }\n$highFrameratePercent = if ($totalFiles -gt 0) { &#91;math]::Round($highFramerateCount \/ $totalFiles * 100, 1) } else { 0 }\n$hdrPercent = if ($totalFiles -gt 0) { &#91;math]::Round($hdrCount \/ $totalFiles * 100, 1) } else { 0 }\n$otherColorSpacePercent = if ($totalFiles -gt 0) { &#91;math]::Round($otherColorSpaceCount \/ $totalFiles * 100, 1) } else { 0 }\n$sdrPercent = if ($totalFiles -gt 0) { &#91;math]::Round($sdrCount \/ $totalFiles * 100, 1) } else { 0 }\n\n# \u521b\u5efaHTML\u6587\u6863\n$html = @\"\n&lt;!DOCTYPE html>\n&lt;html lang=\"zh-CN\">\n&lt;head>\n    &lt;meta charset=\"UTF-8\">\n    &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    &lt;title>\u89c6\u9891\u5206\u6790\u62a5\u544a - $(Get-Date -Format 'yyyy-MM-dd HH:mm:ss')&lt;\/title>\n    &lt;style>\n        body {\n            font-family: 'Consolas', 'Monaco', 'Courier New', monospace;\n            margin: 20px;\n            background-color: #1e1e1e;\n            color: #d4d4d4;\n        }\n        h1 {\n            color: #4ec9b0;\n            border-bottom: 2px solid #4ec9b0;\n            padding-bottom: 10px;\n        }\n        h2 {\n            color: #ce9178;\n            margin-top: 30px;\n        }\n        table {\n            border-collapse: collapse;\n            width: 100%;\n            margin: 20px 0;\n            font-size: 14px;\n        }\n        th {\n            background-color: #2d2d30;\n            color: #9cdcfe;\n            padding: 10px;\n            text-align: left;\n            border: 1px solid #3e3e42;\n            font-weight: bold;\n        }\n        td {\n            padding: 8px 10px;\n            border: 1px solid #3e3e42;\n            vertical-align: top;\n        }\n        tr:nth-child(even) {\n            background-color: #252526;\n        }\n        tr:hover {\n            background-color: #2a2d2e;\n        }\n        .red {\n            color: #f48771;\n            font-weight: bold;\n        }\n        .yellow {\n            color: #ffd700;\n        }\n        .green {\n            color: #6a9955;\n            font-weight: bold;\n        }\n        .blue {\n            color: #569cd6;\n            font-weight: bold;\n        }\n        .cyan {\n            color: #4ec9b0;\n        }\n        .gray {\n            color: #858585;\n        }\n        .white {\n            color: #d4d4d4;\n        }\n        .stats {\n            display: flex;\n            flex-wrap: wrap;\n            gap: 20px;\n            margin: 20px 0;\n        }\n        .stat-box {\n            background-color: #252526;\n            border: 1px solid #3e3e42;\n            border-radius: 5px;\n            padding: 15px;\n            min-width: 200px;\n            flex: 1;\n        }\n        .stat-title {\n            font-size: 16px;\n            margin-bottom: 10px;\n            color: #ce9178;\n        }\n        .stat-value {\n            font-size: 24px;\n            font-weight: bold;\n            margin: 5px 0;\n        }\n        .summary {\n            background-color: #252526;\n            border: 1px solid #3e3e42;\n            border-radius: 5px;\n            padding: 20px;\n            margin: 20px 0;\n        }\n        .timestamp {\n            color: #858585;\n            font-style: italic;\n            margin-top: 30px;\n            text-align: center;\n        }\n        .copy-btn {\n            color: #4ec9b0;\n            cursor: pointer;\n            text-decoration: underline;\n            border: none;\n            background: none;\n            padding: 0;\n            font: inherit;\n            outline: inherit;\n        }\n        .copy-btn:hover {\n            color: #6a9955;\n        }\n        .copy-btn:active {\n            color: #ce9178;\n        }\n        .dir-cell {\n            max-width: 300px;\n            overflow: hidden;\n            text-overflow: ellipsis;\n            white-space: nowrap;\n        }\n        .file-cell {\n            max-width: 250px;\n            overflow: hidden;\n            text-overflow: ellipsis;\n            white-space: nowrap;\n        }\n        .filter-buttons {\n            margin: 20px 0;\n        }\n        .filter-btn {\n            padding: 8px 15px;\n            margin-right: 10px;\n            background-color: #2d2d30;\n            border: 1px solid #3e3e42;\n            color: #d4d4d4;\n            cursor: pointer;\n            border-radius: 3px;\n        }\n        .filter-btn:hover {\n            background-color: #3e3e42;\n        }\n        .filter-btn.active {\n            background-color: #007acc;\n            color: white;\n        }\n        .toast {\n            position: fixed;\n            bottom: 20px;\n            right: 20px;\n            background-color: #333;\n            color: white;\n            padding: 12px 20px;\n            border-radius: 4px;\n            box-shadow: 0 2px 10px rgba(0,0,0,0.3);\n            z-index: 1000;\n            opacity: 0;\n            transition: opacity 0.3s;\n        }\n        .toast.show {\n            opacity: 1;\n        }\n    &lt;\/style>\n&lt;\/head>\n&lt;body>\n    &lt;h1>\ud83c\udfac \u89c6\u9891\u5206\u6790\u62a5\u544a&lt;\/h1>\n    &lt;div class=\"summary\">\n        &lt;p>&lt;strong>\u5206\u6790\u65f6\u95f4:&lt;\/strong> $(Get-Date -Format 'yyyy-MM-dd HH:mm:ss')&lt;\/p>\n        &lt;p>&lt;strong>\u5206\u6790\u8def\u5f84:&lt;\/strong> $Path&lt;\/p>\n        &lt;p>&lt;strong>\u603b\u6587\u4ef6\u6570:&lt;\/strong> $totalFiles&lt;\/p>\n        &lt;p>&lt;strong>\u5206\u6790\u7528\u65f6:&lt;\/strong> $($duration.ToString('mm\\\u5206ss\\\u79d2'))&lt;\/p>\n        &lt;p>&lt;em>\u70b9\u51fb\u76ee\u5f55\u6216\u6587\u4ef6\u540d\u53ef\u590d\u5236\u5b8c\u6574\u8def\u5f84\u5230\u526a\u8d34\u677f&lt;\/em>&lt;\/p>\n    &lt;\/div>\n    \n    &lt;h2>\ud83d\udcca \u7edf\u8ba1\u6982\u89c8&lt;\/h2>\n    &lt;div class=\"stats\">\n        &lt;div class=\"stat-box\">\n            &lt;div class=\"stat-title\">\u5206\u8fa8\u7387\u5206\u5e03&lt;\/div>\n            &lt;div class=\"stat-value red\">$lowResolutionCount &lt;span class=\"white\">($lowResolutionPercent%)&lt;\/span>&lt;\/div>\n            &lt;div class=\"stat-title\">\u4f4e\u753b\u8d28(&lt;1080p)&lt;\/div>\n            &lt;div class=\"stat-value yellow\">$goodResolutionCount &lt;span class=\"white\">($goodResolutionPercent%)&lt;\/span>&lt;\/div>\n            &lt;div class=\"stat-title\">1080p&lt;\/div>\n            &lt;div class=\"stat-value green\">$excellentResolutionCount &lt;span class=\"white\">($excellentResolutionPercent%)&lt;\/span>&lt;\/div>\n            &lt;div class=\"stat-title\">4K&lt;\/div>\n        &lt;\/div>\n        \n        &lt;div class=\"stat-box\">\n            &lt;div class=\"stat-title\">\u5e27\u7387\u5206\u5e03&lt;\/div>\n            &lt;div class=\"stat-value red\">$lowFramerateCount &lt;span class=\"white\">($lowFrameratePercent%)&lt;\/span>&lt;\/div>\n            &lt;div class=\"stat-title\">\u4f4e\u5e27\u7387(&lt;28fps)&lt;\/div>\n            &lt;div class=\"stat-value yellow\">$normalFramerateCount &lt;span class=\"white\">($normalFrameratePercent%)&lt;\/span>&lt;\/div>\n            &lt;div class=\"stat-title\">30fps&lt;\/div>\n            &lt;div class=\"stat-value green\">$highFramerateCount &lt;span class=\"white\">($highFrameratePercent%)&lt;\/span>&lt;\/div>\n            &lt;div class=\"stat-title\">60fps&lt;\/div>\n        &lt;\/div>\n        \n        &lt;div class=\"stat-box\">\n            &lt;div class=\"stat-title\">\u8272\u5f69\u7a7a\u95f4\u5206\u5e03&lt;\/div>\n            &lt;div class=\"stat-value blue\">$hdrCount &lt;span class=\"white\">($hdrPercent%)&lt;\/span>&lt;\/div>\n            &lt;div class=\"stat-title\">HDR\u89c6\u9891&lt;\/div>\n            &lt;div class=\"stat-value red\">$otherColorSpaceCount &lt;span class=\"white\">($otherColorSpacePercent%)&lt;\/span>&lt;\/div>\n            &lt;div class=\"stat-title\">\u5176\u4ed6\u975eSDR&lt;\/div>\n            &lt;div class=\"stat-value white\">$sdrCount &lt;span class=\"white\">($sdrPercent%)&lt;\/span>&lt;\/div>\n            &lt;div class=\"stat-title\">SDR\u89c6\u9891&lt;\/div>\n        &lt;\/div>\n    &lt;\/div>\n    \n    &lt;h2>\ud83d\udccb \u8be6\u7ec6\u5206\u6790\u7ed3\u679c&lt;\/h2>\n    &lt;div class=\"filter-buttons\">\n        &lt;button class=\"filter-btn active\" onclick=\"filterTable('all')\">\u5168\u90e8&lt;\/button>\n        &lt;button class=\"filter-btn\" onclick=\"filterTable('red')\">\u9700\u8981\u5904\u7406&lt;\/button>\n        &lt;button class=\"filter-btn\" onclick=\"filterTable('yellow')\">\u5efa\u8bae\u4f18\u5316&lt;\/button>\n        &lt;button class=\"filter-btn\" onclick=\"filterTable('green')\">\u9ad8\u8d28\u91cf&lt;\/button>\n        &lt;button class=\"filter-btn\" onclick=\"filterTable('blue')\">HDR\u683c\u5f0f&lt;\/button>\n    &lt;\/div>\n    \n    &lt;div class=\"table-container\">\n        &lt;table id=\"videoTable\">\n            &lt;thead>\n                &lt;tr>\n                    &lt;th width=\"30%\">\u76ee\u5f55\u8def\u5f84&lt;\/th>\n                    &lt;th width=\"25%\">\u6587\u4ef6\u540d&lt;\/th>\n                    &lt;th width=\"15%\">\u5206\u8fa8\u7387\u72b6\u6001&lt;\/th>\n                    &lt;th width=\"15%\">\u5e27\u7387\u72b6\u6001&lt;\/th>\n                    &lt;th width=\"15%\">\u8272\u5f69\u7a7a\u95f4&lt;\/th>\n                &lt;\/tr>\n            &lt;\/thead>\n            &lt;tbody>\n\"@\n\n# \u5982\u679c\u6ca1\u6709\u7ed3\u679c\uff0c\u663e\u793a\u76f8\u5e94\u6d88\u606f\nif ($results.Count -eq 0) {\n    $html += @\"\n                &lt;tr>\n                    &lt;td colspan=\"5\" style=\"text-align: center; padding: 50px; color: #888;\">\n                        &lt;h3>\ud83c\udf89 \u606d\u559c\uff01&lt;\/h3>\n                        &lt;p>\u6ca1\u6709\u53d1\u73b0\u9700\u8981\u8b66\u544a\u7684\u89c6\u9891\u6587\u4ef6\u3002&lt;\/p>\n                        &lt;p style=\"margin-top: 20px; opacity: 0.7;\">\u6240\u6709\u89c6\u9891\u90fd\u7b26\u5408\u9ad8\u6807\u51c6\u8981\u6c42\u3002&lt;\/p>\n                    &lt;\/td>\n                &lt;\/tr>\n\"@\n} else {\n    # \u6dfb\u52a0\u6570\u636e\u884c\n    foreach ($result in $results) {\n        # \u786e\u5b9a\u884c\u7c7b\u522b\n        $rowClass = \"\"\n        if ($result.ResolutionColor -eq \"red\" -or $result.FramerateColor -eq \"red\" -or $result.ColorSpaceColor -eq \"red\") {\n            $rowClass = \"red\"\n        } elseif ($result.ResolutionColor -eq \"yellow\" -or $result.FramerateColor -eq \"yellow\") {\n            $rowClass = \"yellow\"\n        } elseif ($result.ResolutionColor -eq \"green\" -or $result.FramerateColor -eq \"green\") {\n            $rowClass = \"green\"\n        }\n        if ($result.ColorSpaceColor -eq \"blue\") {\n            $rowClass = \"blue\"\n        }\n        \n        # \u8f6c\u4e49\u7279\u6b8a\u5b57\u7b26\uff0c\u9632\u6b62JavaScript\u9519\u8bef\n        $escapedDir = $result.Directory.Replace(\"\\\",\"\\\\\").Replace(\"'\", \"\\\\'\").Replace('\"', '\\\"')\n        $escapedFile = $result.FileName.Replace(\"\\\",\"\\\\\").Replace(\"'\", \"\\\\'\").Replace('\"', '\\\"')\n        $escapedFullPath = $result.FullPath.Replace(\"\\\",\"\\\\\").Replace(\"'\", \"\\\\'\").Replace('\"', '\\\"')\n        \n        $html += @\"\n                &lt;tr class=\"data-row $rowClass\">\n                    &lt;td class=\"dir-cell\">\n    $(if (-not $NoCopyButtons) { \n        \"&lt;button class='copy-btn' onclick=\"\"copyToClipboard('$escapedDir')\"\" title='\u70b9\u51fb\u590d\u5236\u76ee\u5f55\u8def\u5f84'>$($result.Directory)&lt;\/button>\" \n    } else { \n        $result.Directory \n    })\n                    &lt;\/td>\n                    &lt;td class=\"file-cell\">\n    $(if (-not $NoCopyButtons) { \n        \"&lt;button class='copy-btn' onclick=\"\"copyToClipboard('$escapedFullPath')\"\" title='\u70b9\u51fb\u590d\u5236\u5b8c\u6574\u6587\u4ef6\u8def\u5f84'>$($result.FileName)&lt;\/button>\" \n    } else { \n        $result.FileName \n    })\n                    &lt;\/td>\n                    &lt;td class=\"$($result.ResolutionColor)\">$($result.ResolutionStatus)&lt;\/td>\n                    &lt;td class=\"$($result.FramerateColor)\">$($result.FramerateStatus)&lt;\/td>\n                    &lt;td class=\"$($result.ColorSpaceColor)\">$($result.ColorSpace)&lt;\/td>\n                &lt;\/tr>\n\"@\n    }\n}\n\n$html += @\"\n            &lt;\/tbody>\n        &lt;\/table>\n    &lt;\/div>\n    \n    &lt;div class=\"timestamp\">\n        \u62a5\u544a\u751f\u6210\u65f6\u95f4: $(Get-Date -Format 'yyyy-MM-dd HH:mm:ss') | \u811a\u672c\u7248\u672c: 5.2\n    &lt;\/div>\n\n    &lt;div id=\"toast\" class=\"toast\">&lt;\/div>\n\n    &lt;script>\n        \/\/ \u8fc7\u6ee4\u8868\u683c\u51fd\u6570\n        function filterTable(filter) {\n            \/\/ \u66f4\u65b0\u6309\u94ae\u72b6\u6001\n            var buttons = document.querySelectorAll('.filter-btn');\n            buttons.forEach(function(btn) {\n                btn.classList.remove('active');\n            });\n            event.target.classList.add('active');\n            \n            \/\/ \u663e\u793a\/\u9690\u85cf\u884c\n            var rows = document.querySelectorAll('.data-row');\n            rows.forEach(function(row) {\n                if (filter === 'all') {\n                    row.style.display = '';\n                } else if (filter === 'red') {\n                    row.style.display = row.classList.contains('red') ? '' : 'none';\n                } else if (filter === 'yellow') {\n                    row.style.display = row.classList.contains('yellow') ? '' : 'none';\n                } else if (filter === 'green') {\n                    row.style.display = row.classList.contains('green') ? '' : 'none';\n                } else if (filter === 'blue') {\n                    row.style.display = row.classList.contains('blue') ? '' : 'none';\n                }\n            });\n        }\n        \n        \/\/ \u590d\u5236\u5230\u526a\u8d34\u677f\u51fd\u6570\n        function copyToClipboard(text) {\n            \/\/ \u521b\u5efa\u4e34\u65f6textarea\u5143\u7d20\n            var textArea = document.createElement(\"textarea\");\n            textArea.value = text;\n            textArea.style.position = \"fixed\";\n            textArea.style.left = \"-999999px\";\n            textArea.style.top = \"-999999px\";\n            document.body.appendChild(textArea);\n            textArea.focus();\n            textArea.select();\n            \n            try {\n                var successful = document.execCommand('copy');\n                showToast(successful ? '\u2705 \u5df2\u590d\u5236\u5230\u526a\u8d34\u677f: ' + (text.length > 50 ? text.substring(0, 50) + '...' : text) : '\u274c \u590d\u5236\u5931\u8d25');\n            } catch (err) {\n                showToast('\u274c \u590d\u5236\u5931\u8d25: ' + err);\n            }\n            \n            document.body.removeChild(textArea);\n        }\n        \n        \/\/ \u663e\u793a\u63d0\u793a\u4fe1\u606f\n        function showToast(message) {\n            var toast = document.getElementById('toast');\n            toast.textContent = message;\n            toast.classList.add('show');\n            \n            setTimeout(function() {\n                toast.classList.remove('show');\n            }, 3000);\n        }\n        \n        \/\/ \u6dfb\u52a0\u6392\u5e8f\u529f\u80fd\n        document.querySelectorAll('th').forEach(function(th, index) {\n            th.style.cursor = 'pointer';\n            th.addEventListener('click', function() {\n                sortTable(index);\n            });\n        });\n        \n        function sortTable(column) {\n            var table = document.getElementById('videoTable');\n            var tbody = table.querySelector('tbody');\n            var rows = Array.from(tbody.querySelectorAll('tr'));\n            \n            var isAscending = table.dataset.sortColumn === column.toString() &amp;&amp; table.dataset.sortOrder === 'asc';\n            \n            rows.sort(function(a, b) {\n                var aText = a.cells&#91;column].textContent.trim();\n                var bText = b.cells&#91;column].textContent.trim();\n                \n                \/\/ \u7279\u6b8a\u5904\u7406\u6570\u5b57\u548c\u72b6\u6001\n                if (column === 2 || column === 3) {\n                    var aValue = parseFloat(aText) || 0;\n                    var bValue = parseFloat(bText) || 0;\n                    return isAscending ? aValue - bValue : bValue - aValue;\n                }\n                \n                return isAscending ? aText.localeCompare(bText) : bText.localeCompare(aText);\n            });\n            \n            \/\/ \u66f4\u65b0\u6392\u5e8f\u72b6\u6001\n            table.dataset.sortColumn = column.toString();\n            table.dataset.sortOrder = isAscending ? 'desc' : 'asc';\n            \n            \/\/ \u91cd\u65b0\u6dfb\u52a0\u884c\n            rows.forEach(function(row) {\n                tbody.appendChild(row);\n            });\n        }\n        \n        \/\/ \u9875\u9762\u52a0\u8f7d\u5b8c\u6210\u540e\u6dfb\u52a0\u6253\u5370\u6309\u94ae\n        document.addEventListener('DOMContentLoaded', function() {\n            var header = document.querySelector('h1');\n            var printBtn = document.createElement('button');\n            printBtn.innerHTML = '\ud83d\udda8\ufe0f \u6253\u5370\u62a5\u544a';\n            printBtn.style.cssText = 'margin-left: 20px; padding: 5px 10px; background: #007acc; color: white; border: none; border-radius: 3px; cursor: pointer;';\n            printBtn.onclick = function() { window.print(); };\n            header.appendChild(printBtn);\n        });\n    &lt;\/script>\n&lt;\/body>\n&lt;\/html>\n\"@\n\n# \u4fdd\u5b58HTML\u6587\u4ef6\ntry {\n    $html | Out-File -FilePath $htmlFile -Encoding UTF8\n    Write-Host \"\u2705 HTML\u62a5\u544a\u5df2\u751f\u6210: \" -NoNewline -ForegroundColor Green\n    Write-Host $htmlFile -ForegroundColor Cyan\n    \n    # \u5c1d\u8bd5\u5728\u9ed8\u8ba4\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00\u62a5\u544a\n    try {\n        Start-Process $htmlFile\n        Write-Host \"\ud83d\udcc4 \u62a5\u544a\u5df2\u5728\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00\" -ForegroundColor Green\n        Write-Host \"\ud83d\udccb \u70b9\u51fb\u76ee\u5f55\/\u6587\u4ef6\u540d\u53ef\u590d\u5236\u5b8c\u6574\u8def\u5f84\u5230\u526a\u8d34\u677f\" -ForegroundColor Cyan\n    } catch {\n        Write-Host \"\ud83d\udcc4 \u8bf7\u624b\u52a8\u6253\u5f00\u62a5\u544a\u6587\u4ef6\" -ForegroundColor Yellow\n    }\n    \n} catch {\n    Write-Host \"\u274c \u751f\u6210\u62a5\u544a\u65f6\u51fa\u9519: $_\" -ForegroundColor Red\n    exit 1\n}\n\nWrite-Host (\"=\" * 60)\nWrite-Host \"\u811a\u672c\u6267\u884c\u5b8c\u6210!\" -ForegroundColor Green<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u80cc\u666f\u4e0e\u9700\u6c42 \u5927\u9879\u76ee\u7684\u7d20\u6750\u7ba1\u7406\u5f80\u5f80\u4ee4\u4eba\u5934\u75bc\uff0c\u9010\u4e2a\u67e5\u770b\u89c6\u9891\u89c4\u683c\u3001\u7b5b\u51fa\u4e0d\u7b26\u5408\u8981\u6c42\u7684\u7a3f\u4ef6\u6781\u5176\u8d39\u65f6\u3002\u4e8e\u662f\uff0c\u6211\u548cDeepseek\u5520\u55d1\u4e00\u4e0a\u5348\uff0c\u7a0d &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[1,7],"tags":[],"class_list":["post-214","post","type-post","status-publish","format-standard","hentry","category-uncategorized","category-7"],"_links":{"self":[{"href":"https:\/\/www.starluo.top\/index.php?rest_route=\/wp\/v2\/posts\/214","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.starluo.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.starluo.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.starluo.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.starluo.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=214"}],"version-history":[{"count":7,"href":"https:\/\/www.starluo.top\/index.php?rest_route=\/wp\/v2\/posts\/214\/revisions"}],"predecessor-version":[{"id":222,"href":"https:\/\/www.starluo.top\/index.php?rest_route=\/wp\/v2\/posts\/214\/revisions\/222"}],"wp:attachment":[{"href":"https:\/\/www.starluo.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=214"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.starluo.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=214"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.starluo.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}