porcino / Av1ador

AV1/VVC/HEVC/VP9/H264 parallel encoder GUI for FFmpeg with preview/comparison
GNU General Public License v3.0
53 stars 2 forks source link

[Feature Request] Two-pass encoding. #11

Closed Artoch47 closed 11 months ago

Artoch47 commented 11 months ago

Please add two-pass encoding option for the codecs that support it. The first pass can take a while to finish, but the smaller file size and better detail are worth it.

There is an example of two-pass encode using libaom-av1 here: https://trac.ffmpeg.org/wiki/Encode/AV1

porcino commented 11 months ago

I tried 2 pass before, but the gain (like 0.01% in score) vs the speed lost by filtering twice (tonemapping, denoising, etc) is not worth. Also ffmpeg doesn't report the time progress on the first pass for whatever reason, so the progress bar is going to be more innacurate

Artoch47 commented 11 months ago

Still, having it as an optional feature would be nice. I don't mind waiting if it means a smaller file size. The VP9 could also benefit from it, more than the AV1.

porcino commented 11 months ago

The VP9 could also benefit from it, more than the AV1.

You are right, VP9 benefit from it, so now VP9 will always use 2pass when auto-alf-ref is enabled 151438bf4af2f764e20e61ca9ab6616ff3118962 thanks for the suggestion