master-of-zen / Av1an

Cross-platform command-line AV1 / VP9 / HEVC / H264 encoding framework with per scene quality encoding
GNU General Public License v3.0
1.4k stars 147 forks source link

Return code is always non-0 for windows #793

Closed piotrvass closed 3 months ago

piotrvass commented 6 months ago

I've been having issue since the merge on 26th Nov (new chunk methods) - both using dgdecnv and lsmash.

Script itself running those wasn't modified in any way - running under powershell, windows 11:

arguments: -i "{$input}" -o "{$output}" --temp="{$temp}" -m lsmash --concat mkvmerge --vmaf-path="vmaf_4k_v0.6.1.json" -w 8 --encoder svt-av1 -p 1 --video-params="--tune 2 --film-grain-denoise 0 --input-depth 10 --enable-qm 1 --qm-min 0 --qm-max 9 --irefresh-type 2 --enable-overlays 1 --preset 4 --rc 0 --keyint -1 --lookahead 120 --film-grain 5 --lp 4 --crf 20" --audio-params="-c:a copy" -f " -vf vaguedenoiser " --vmaf-filter " vaguedenoiser " --resume --verbose

$process = Start-Process -FilePath "H:/ENCODER/av1an/av1an.exe" -WorkingDirectory "H:/ENCODER/av1an/" -ArgumentList $fullargs -NoNewWindow -Wait -PassThru
    $result = $process.ExitCode

    if ($result -eq 0) {
        Write-Host "Success: $infile"
        Move-Item -LiteralPath "$infile" "$Comp"
    }
    else
    {
        Write-Host "FAILED: $infile"
        Move-Item -LiteralPath "$infile" "$Fail"
    }

Every single encode I do ends with FAILED and is moved to $Fail path, but both the output is ok and temp files removed suggesting the encoding actually worked fine, just the return code is not.

Any idea what could be a reason or how to debug it?

piotrvass commented 3 months ago

result is 0 again, closing. Guessing it was either rust or used converter issue.