I'm using x265 encoder for HEVC.
I have 3 different configurations. Have
- 4 B frames (B4)
- 2 B frames (B2)
- 0 B frames (B0 - all P frames)
Their encoding times are different.
B4 and B2 need much less encoding time than B0 that contains only P frames. Do you have any idea why?
Both P and B frames have equal QP using parameter --pbratio 1.0
.
You can see the three different output files here using QP 36: B4, B2 and B0.
With the development of HEVC, B frames became more popular for general use and basically replaced P frames in all use cases.
My expectation is simply that the x265 developers just spend more time and effort on optimizing the fast coding algorithms of B pictures, because these are used in the default configuration.
Although HM uses some shortcuts, the encoding time basically increases linearly with the number of reference pictures.