webcam_stalker

View original page

@webcam_stalker@lemmy.world · Joined ⁨Jul⁩ ⁨2023⁩

Replying to @⁨Hamknight@lemmy.world⁩

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 🤣😂

Replying to @⁨Hamknight@lemmy.world⁩

thanks for sharing, nicely done, would love a video or dB reading. noise wise, my rack doesn’t get too bad running mini-itx boards and quadro p2200s; my gaming rig, on the other hand, could benefit from this. SFF case with a deshrouded rx 6650 xt and 80mm server fans from arctic (max 8000rpm). it sounds like a jet engine spinning up when i play anything, despite the 3000rpm limit i put in fan control.

aside, would you mind sharing your av1 settings? i currently pass everything through ffmpeg to mkv in an attempt to save space with my plex library