This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ---------------------------------------------------- | |
| # PASSO 1: AVVIO DELLE RICODIFICHE IN PARALLELO (Runspace Pool) | |
| # ---------------------------------------------------- | |
| # Solo se la conversione è necessaria | |
| if ($group.RequiresConversion) { | |
| Write-Host "▶ Avvio ricodifiche in parallelo (max $MaxSimultaneousJobs)..." -ForegroundColor Yellow | |
| # Resetta $jobs per questo gruppo (solo i job attivi contano) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # --- LOGICA RICODIFICA CON FALLBACK --- | |
| $currentEncoder = $null | |
| $currentQualityParamArray = $null | |
| $attempt = 1 | |
| $maxAttempts = 3 | |
| $success = $false | |
| $errorMessage = "" | |
| while ($attempt -le $maxAttempts -and -not $success) { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # PER FAVORE, INCOLLA QUI TUTTO IL TUO CODICE UNITO E COMPLETO | |
| # (Dalla prima all'ultima riga) | |
| # -------------------------- | |
| # Parametri: MODIFICATO | |
| # -------------------------- | |
| # Accetta il percorso della cartella passata dalla funzione 'Send To' del file BAT. | |
| param( | |
| [Parameter(Position=0)] | |
| [string]$TargetDirectory | |
| ) |