Add square video scaling to Crop-Clips.ps1 for non-1080 square resolutions, scaling to 1080x1080 when width equals height and dimensions are not already 1080

This commit is contained in:
guru committed 2026-09-18 23:08:40 -04:00
1 parent a5fea78758
commit 9d8bf8bad3
1 file changed
+3
+3
View File
@@ -179,6 +179,9 @@ foreach ($video in $videos) {
elseif ($inInfo.Width -eq 2112 -and $inInfo.Height -eq 3744) {
$vf = 'scale=-2:3840,crop=2160:3840:(in_w-2160)/2:0'
}
elseif ($inInfo.Width -eq $inInfo.Height -and $inInfo.Width -ne 1080) {
$vf = 'scale=1080:1080'
}
if (-not $vf) {
Write-Host "Skipping: $($inInfo.FileName) (resolution $inRes)"