Change ffmpeg encoding preset from 'fast' to 'slow' in Compare-Videos.ps1 and Stich-InBetween.ps1 for higher quality output at the cost of longer encoding time

This commit is contained in:
2026-07-09 07:24:46 -04:00
parent 7ef52e2ca1
commit db71ce09a0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -576,7 +576,7 @@ if (-not $NoAudio) {
$ffmpegArgs += @(
"-c:v", "libx264",
"-preset", "fast",
"-preset", "slow",
"-crf", "8",
"-pix_fmt", "yuv420p"
)
+1 -1
View File
@@ -250,7 +250,7 @@ if ($PSCmdlet.ShouldProcess($TempDir, "Generate interpolated frames with rife-nc
if ($PSCmdlet.ShouldProcess($Video, 'Create output video with ffmpeg')) {
Write-Host "Executing ffmpeg (FPS=$FPS)..."
& ffmpeg -y -framerate $FPS -i "${TempDir}%08d.png" -crf 8 -c:v libx264 -pix_fmt yuv420p "$Video"
& ffmpeg -y -framerate $FPS -i "${TempDir}%08d.png" -crf 8 -preset slow -c:v libx264 -pix_fmt yuv420p "$Video"
if ($LASTEXITCODE -ne 0) {
throw "ffmpeg failed with exit code $LASTEXITCODE"