You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A recurring issue I've seen with svt-av1, is that av1an will stop processing new frames near the end of an encode occasionally. The program will not freeze as the timer and fps counter will continue to update, but there is no cpu load and no new frames completed for many hours. This only appears to occur with .vpy files as inputs and when the last set of chunks for each worker are being processed. av1an.log
Update: The problem does appear to be due to vspipe processes hanging, not av1an itself. Ending one in task manager allows av1an to continue processing chunks.
The text was updated successfully, but these errors were encountered:
I should rule out if this is due to any background applications I have. It may be due to a thread scheduling program.
Update: No even without any other programs affecting process priority or cpu pinning, the issue persists.
A workaround is to run a service in task scheduler that ends any vspipe instances that remain open for too long.
# Check if av1an.exe is running
$av1anProcess = Get-Process -Name "av1an" -ErrorAction SilentlyContinue
if ($null -eq $av1anProcess) {
Write-Output "av1an.exe is not running. Exiting script."
exit
}
# Define the maximum allowed runtime in seconds (10 minutes = 600 seconds)
$maxRuntime = 300
# Get the current date and time
$currentTime = Get-Date
# Get all instances of vspipe.exe
$vspipeProcesses = Get-Process -Name "vspipe" -ErrorAction SilentlyContinue
foreach ($process in $vspipeProcesses) {
# Calculate the runtime of the process
$processStartTime = $process.StartTime
$runtime = ($currentTime - $processStartTime).TotalSeconds
# Check if the runtime exceeds the maximum allowed time
if ($runtime -ge $maxRuntime) {
# Terminate the process
try {
Stop-Process -Id $process.Id -Force
Write-Output "Terminated vspipe.exe (PID $($process.Id)) running for $runtime seconds."
} catch {
Write-Output "Failed to terminate vspipe.exe (PID $($process.Id)). Error: $_"
}
}
}
A recurring issue I've seen with svt-av1, is that av1an will stop processing new frames near the end of an encode occasionally. The program will not freeze as the timer and fps counter will continue to update, but there is no cpu load and no new frames completed for many hours. This only appears to occur with .vpy files as inputs and when the last set of chunks for each worker are being processed.
av1an.log
Update: The problem does appear to be due to vspipe processes hanging, not av1an itself. Ending one in task manager allows av1an to continue processing chunks.
The text was updated successfully, but these errors were encountered: