diff --git a/Crop-Clips.ps1 b/Crop-Clips.ps1 index e933cab..4bd2de9 100644 --- a/Crop-Clips.ps1 +++ b/Crop-Clips.ps1 @@ -149,6 +149,36 @@ foreach ($video in $videos) { elseif ($inInfo.Width -eq 320 -and $inInfo.Height -eq 576) { $vf = 'crop=320:570:0:3' } + elseif ($inInfo.Width -eq 1248 -and $inInfo.Height -eq 704) { + $vf = 'scale=1280:-2,crop=1280:720:0:(in_h-720)/2' + } + elseif ($inInfo.Width -eq 1872 -and $inInfo.Height -eq 1056) { + $vf = 'scale=1920:-2,crop=1920:1080:0:(in_h-1080)/2' + } + elseif ($inInfo.Width -eq 2160 -and $inInfo.Height -eq 1216) { + $vf = 'scale=1920:-2,crop=1920:1080:0:(in_h-1080)/2' + } + elseif ($inInfo.Width -eq 2496 -and $inInfo.Height -eq 1408) { + $vf = 'scale=2560:-2,crop=2560:1440:0:(in_h-1440)/2' + } + elseif ($inInfo.Width -eq 3744 -and $inInfo.Height -eq 2112) { + $vf = 'scale=3840:-2,crop=3840:2160:0:(in_h-2160)/2' + } + elseif ($inInfo.Width -eq 704 -and $inInfo.Height -eq 1248) { + $vf = 'scale=-2:1280,crop=720:1280:(in_w-720)/2:0' + } + elseif ($inInfo.Width -eq 1056 -and $inInfo.Height -eq 1872) { + $vf = 'scale=-2:1920,crop=1080:1920:(in_w-1080)/2:0' + } + elseif ($inInfo.Width -eq 1216 -and $inInfo.Height -eq 2160) { + $vf = 'scale=-2:1920,crop=1080:1920:(in_w-1080)/2:0' + } + elseif ($inInfo.Width -eq 1408 -and $inInfo.Height -eq 2496) { + $vf = 'scale=-2:2560,crop=1440:2560:(in_w-1440)/2:0' + } + elseif ($inInfo.Width -eq 2112 -and $inInfo.Height -eq 3744) { + $vf = 'scale=-2:3840,crop=2160:3840:(in_w-2160)/2:0' + } if (-not $vf) { Write-Host "Skipping: $($inInfo.FileName) (resolution $inRes)"