Comment on Home server
webcam_stalker@lemmy.world 3 days agothanks 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 🤣😂
Hamknight@lemmy.world 3 days ago
Tdarr is a pretty fun automation tool if you Wana try. Basically I down scale to 1080p if it’s higher, then I rencode to av1 at 8mbps or lower depending on current bitrate