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:
+1
-1
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user