# Run Smart GPU Encoder # Wrapper to ensure correct environment $ScriptPath = "$PSScriptRoot\smart_gpu_encoder.py" $PythonPath = "python" # Or specific path like "C:\Python39\python.exe" # Directories (Change these to your actual paths) $TvDir = "Z:\tv" $ContentDir = "Z:\content" Write-Host "==========================================" -ForegroundColor Cyan Write-Host " SMART GPU ENCODER (AMD AMF + VMAF)" -ForegroundColor Cyan Write-Host "==========================================" -ForegroundColor Cyan Write-Host "Script: $ScriptPath" Write-Host "TV Dir: $TvDir" Write-Host "Content Dir: $ContentDir" Write-Host "" # Check if ab-av1 exists in bin if (-not (Test-Path "$PSScriptRoot\bin\ab-av1.exe")) { Write-Host "WARNING: ab-av1.exe not found in bin folder!" -ForegroundColor Red Write-Host "Please download it and place it in $PSScriptRoot\bin\" exit 1 } # Run the python script & $PythonPath $ScriptPath --tv-dir $TvDir --content-dir $ContentDir Write-Host "`nDone." -ForegroundColor Green Read-Host "Press Enter to exit..."