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
@@ -576,7 +576,7 @@ if (-not $NoAudio) {
|
|||||||
|
|
||||||
$ffmpegArgs += @(
|
$ffmpegArgs += @(
|
||||||
"-c:v", "libx264",
|
"-c:v", "libx264",
|
||||||
"-preset", "fast",
|
"-preset", "slow",
|
||||||
"-crf", "8",
|
"-crf", "8",
|
||||||
"-pix_fmt", "yuv420p"
|
"-pix_fmt", "yuv420p"
|
||||||
)
|
)
|
||||||
|
|||||||
+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')) {
|
if ($PSCmdlet.ShouldProcess($Video, 'Create output video with ffmpeg')) {
|
||||||
Write-Host "Executing ffmpeg (FPS=$FPS)..."
|
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) {
|
if ($LASTEXITCODE -ne 0) {
|
||||||
throw "ffmpeg failed with exit code $LASTEXITCODE"
|
throw "ffmpeg failed with exit code $LASTEXITCODE"
|
||||||
|
|||||||
Reference in New Issue
Block a user