alexheretic / ab-av1

AV1 re-encoding using ffmpeg, svt-av1 & vmaf.
MIT License
442 stars 29 forks source link

Add custom ETA calculation #174

Open alexheretic opened 8 months ago

alexheretic commented 8 months ago

Current eta provided by upstream indicatif has issues with slow ticks of some encode jobs. It also struggles with switching between different rates of encoding and VMAF part of a single job.

A custom eta calculation tailored for ab-av1 usage may do better.

alexheretic commented 8 months ago

One workaround could be to increase granularity from using encoding progress seconds / total_seconds to µs / total_µs to provide the upstream algorithm more regular integer progress.

alexheretic commented 8 months ago

175 improves some scenarios but I can still see it eta rocketing up to years when it should be minutes.

zedstate commented 8 months ago

Why not base the ETA on frames per second?

alexheretic commented 8 months ago

Why not base the ETA on frames per second?

Indeed. Currently we use upstream eta calc based on progress bar updates. So yes replacing that with a custom calculation we can base it on ffmpeg reported rate. We can also account for vmaf rate & encoding rate in crf-searches.