0

I have been rolling around with my studies in x265 encoder for days by following this online x265 docs and this article. But I cannot figure out how to set the x265 encoder to code only I- and B-frames as in the Random Access or Low-Delay-B configurations in HEVC reference software.

I set my encoder with this CLI option to encode 500 frames of BasketballPass sequence:

--input BasketballPass_416x240_50.yuv --input-res 416x240 --fps 50 --frames 500 --rd 4 --no-lossless --csv-log-level 2 --csv infoQP37.csv --no-wpp --psnr --ssim -b 16 --b-pyramid 0 --b-adapt 0 --keyint 48

Instead of get only I- and B-frames encoded, P-frames also show up in my log file:

Enc.order Type      POC
0         I-SLICE   0
**1         P-SLICE   17**
2         B-SLICE   9
3         b-SLICE   1
4         b-SLICE   2
5         b-SLICE   3
6         b-SLICE   4
7         b-SLICE   5
8         b-SLICE   6
9         b-SLICE   7
10        b-SLICE   8
11        b-SLICE   10
12        b-SLICE   11
13        b-SLICE   12
14        b-SLICE   13
15        b-SLICE   14
16        b-SLICE   15
17        b-SLICE   16
**18          P-SLICE   34**
19        B-SLICE   26
20        b-SLICE   18
21        b-SLICE   19
22        b-SLICE   20
23        b-SLICE   21
24        b-SLICE   22
25        b-SLICE   23
26        b-SLICE   24
27        b-SLICE   25
28        b-SLICE   27
29        b-SLICE   28
30        b-SLICE   29
31        b-SLICE   30
32        b-SLICE   31
33        b-SLICE   32
34        b-SLICE   33
35        i-SLICE   48
......

My question is, can the x265 configure encoder as in RA or LDB of HEVC? If yes, I'd appreciate any guidance to do it. Or How can we encode only I- and B-frame only (without P-frame) in x265?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.