AV1 has problem with 2 pass and the last percent
Hello, I have a small but important problem with the AV1 codec or AV1 and 2-pass. I noticed that in the last run from 99% onwards, the bps shot up when encoding and the image quality deteriorated dramatically, so that there were only blocks left. This is particularly noticeable in films that hardly have any credits. E.g. "All Quiet on the Western Front".
I use the HandBrake tool to encode. and here are the setting or LOG
Svt[info]: SVT [version]: SVT-AV1 Encoder Lib v2.0.0
Svt[info]: SVT [build] : GCC 13.2.0 64 bit
Svt[info]: -------------------------------------------
Svt[warn]: The input q value is ignored in vbr mode 43
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: preset : Pass 1
Svt[info]: -------------------------------------------
[05:42:34] sync: first pts video is 0
[05:42:34] sync: "Chapter 1" (1) at frame 1 time 0
[05:42:34] sync: first pts audio 0x1 is 0
[05:46:14] sync: "Chapter 2" (2) at frame 13861 time 52026975
[05:47:34] sync: "Chapter 3" (3) at frame 19405 time 72837765
[05:50:48] sync: "Chapter 4" (4) at frame 33019 time 123941317
[05:52:22] sync: "Chapter 5" (5) at frame 39645 time 148813665
[05:53:51] sync: "Chapter 6" (6) at frame 46182 time 173351928
[05:54:41] sync: "Chapter 7" (7) at frame 49705 time 186576390
[05:56:01] sync: "Chapter 8" (8) at frame 55277 time 207492285
[05:58:15] sync: "Chapter 9" (9) at frame 63749 time 239294055
[06:00:18] sync: "Chapter 10" (10) at frame 72180 time 270941921
[06:01:20] sync: "Chapter 11" (11) at frame 76827 time 288385597
[06:03:05] sync: "Chapter 12" (12) at frame 84158 time 315904338
[06:06:52] sync: "Chapter 13" (13) at frame 98552 time 369935816
[06:08:59] sync: "Chapter 14" (14) at frame 107306 time 402796143
[06:10:08] sync: "Chapter 15" (15) at frame 112298 time 421534863
[06:12:56] sync: "Chapter 16" (16) at frame 124533 time 467461995
[06:14:51] sync: "Chapter 17" (17) at frame 132653 time 497942445
[06:17:11] sync: "Chapter 18" (18) at frame 142319 time 534226192
[06:23:10] sync: "Chapter 19" (19) at frame 168554 time 632705823
[06:27:54] sync: "Chapter 20" (20) at frame 189101 time 709834125
[06:28:23] reader: done. 1 scr changes
[06:28:25] work: average encoding speed for job is 69.545113 fps
[06:28:25] vfr: 191250 frames output, 0 dropped and 0 duped for CFR/PFR
[06:28:25] vfr: lost time: 0 (0 frames)
[06:28:25] vfr: gained time: 0 (0 frames) (0 not accounted for)
[06:28:26] dca-decoder done: 747814 frames, 0 decoder errors
[06:28:26] h264-decoder done: 191250 frames, 0 decoder errors
[06:28:26] sync: got 191250 frames, 191249 expected
[06:28:26] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
[06:28:26] Starting Task: Encoding Pass
[06:28:26] work: skipping crop/scale filter
[06:28:26] work: track 1, dithering not supported by codec
[06:28:26] job configuration:
[06:28:26] * source
[06:28:26] + I:\RIP\Im Westen nichts Neues_t01.mkv
[06:28:26] + title 1, chapter(s) 1 to 20
[06:28:26] + container: matroska,webm
[06:28:26] + data rate: 16820 kbps
[06:28:26] * destination
[06:28:26] + I:\Encode\Im Westen nichts Neues_t01.AV1.mkv
[06:28:26] + container: Matroska (libavformat)
[06:28:26] + chapter markers
[06:28:26] * video track
[06:28:26] + decoder: h264 8-bit (yuv420p)
[06:28:26] + filters
[06:28:26] + Framerate Shaper (mode=1)
[06:28:26] + frame rate: 23.976 fps -> constant 23.976 fps
[06:28:26] + Format (format=yuv420p10le)
[06:28:26] + Output geometry
[06:28:26] + storage dimensions: 1920 x 1080
[06:28:26] + pixel aspect ratio: 1 : 1
[06:28:26] + display dimensions: 1920 x 1080
[06:28:26] + encoder: AV1 10-bit (SVT)
[06:28:26] + preset: 5
[06:28:26] + options: film-grain=8
[06:28:26] + profile: auto
[06:28:26] + level: auto
[06:28:26] + bitrate: 4500 kbps, pass: 2
[06:28:26] + color profile: 1-1-1
[06:28:26] + color range: tv
[06:28:26] + chroma location: left
[06:28:26] * audio track 1
[06:28:26] + name: Mono
[06:28:26] + decoder: Deutsch (DTS, 1.0 ch, 768 kbps) (track 1, id 0x1)
[06:28:26] + bitrate: 768 kbps, samplerate: 48000 Hz
[06:28:26] + mixdown: Mono
[06:28:26] + encoder: AC3 (libavcodec)
[06:28:26] + bitrate: 96 kbps, samplerate: 48000 Hz
[06:28:26] sync: expecting 191250 video frames
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]: SVT-AV1 Encoder Lib v2.0.0
Svt[info]: SVT [build] : GCC 13.2.0 64 bit
Svt[info]: -------------------------------------------
Svt[warn]: For CRF or 2PASS RC mode, the maximum needed Lookahead distance is 42. Force the look_ahead_distance to be 42
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile tier (auto) level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator : 1920 / 1080 / 24000 / 1001
Svt[info]: SVT [config]: bit-depth / color format : 10 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct : 5 / VQ / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type : 245 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / target bitrate (kbps) : VBR / 4500
Svt[info]: SVT [config]: film grain synth / denoising / level : 1 / 0 / 8
another Movie
another Movie
Edited by Thomas