Comment on Home server

<- View Parent
webcam_stalker@lemmy.world ⁨3⁩ ⁨days⁩ ago

thanks for sharing, i was hoping for more specifics to experiment with; i have a powershell script i’m running that does the same thing:

    try {
        ffmpeg -y -hwaccel nvdec -i "$input" `
            -map 0:v? -map 0:a? -map 0:s? `
            -c:v h264_nvenc -preset slow -rc vbr -cq 21 -b:v 0 `
            -pix_fmt yuv420p `
            -c:a aac -b:a 160k `
            @subtitleArgs `
            "$temp"

        if ($LASTEXITCODE -eq 0 -and (Test-Path $temp)) {
            $encoded = $true
        }
        else {
            throw "GPU encode failed"
        }
    }
    catch {
        Write-Warning "GPU failed -> CPU fallback"
        Add-Content $logFile "GPU failed, CPU fallback: $input"
        $gpuFallbackCount++

        ffmpeg -y -i "$input" `
            -map 0:v? -map 0:a? -map 0:s? `
            -c:v libx264 -preset slow -crf 20 `
            -pix_fmt yuv420p `
            -c:a aac -b:a 160k `
            @subtitleArgs `
            "$temp"

        if ($LASTEXITCODE -eq 0 -and (Test-Path $temp)) {
            $encoded = $true
        }
    }

cool gaming rig, too! you also know the SFF pains 🤣😂

original
Sort:hotnewtop